:root {
  --ground: #07080a;
  --ink: #e9ebee;
  --quiet: #9aa1aa;
  --steel: #9dbcd6;
  --steel-dim: rgba(157, 188, 214, 0.42);
  --steel-line: rgba(157, 188, 214, 0.16);
  --red: #d52b1e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

figure { margin: 0; }

ul { list-style: none; margin: 0; padding: 0; }

a { color: inherit; text-decoration-color: var(--steel-dim); text-underline-offset: 0.2em; }

/* The wordmark: CH heavy, router light, and its variants */

.wm {
  font-family: var(--sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--ink);
}

.wm b { font-weight: 800; }
.wm > span { font-weight: 300; }
.wm i { font-style: normal; }

.wm .sq, .url .sq {
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin: 0 0.1em 0 0.12em;
  background: var(--red);
  vertical-align: 0.06em;
}

.wm.v4 { font-weight: 300; }

.wm svg {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.3em;
  vertical-align: -0.18em;
  color: var(--steel);
}

.top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.4rem 1.5rem 0;
}

.brand { font-size: 1.3rem; }
.brand .tld { font-weight: 300; color: var(--quiet); }

.preview {
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--steel-dim);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
}

/* Hero */

.hero {
  position: relative;
  max-width: 72rem;
  margin: 0 auto;
  padding: 10vh 1.5rem 0;
  text-align: center;
  overflow-x: clip;
  animation: rise 1.6s cubic-bezier(.2, .7, .2, 1) both;
}

.glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(157, 188, 214, 0.14),
    rgba(63, 109, 143, 0.06) 45%,
    rgba(7, 8, 10, 0) 100%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(0.96); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

h1 {
  position: relative;
  margin: 0 auto;
  max-width: 14em;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  color: var(--steel);
  text-shadow: 0 0 28px rgba(157, 188, 214, 0.4);
}

.lede {
  position: relative;
  margin: 1.8rem auto 0;
  max-width: 36em;
  font-size: clamp(1.02rem, 2.1vw, 1.2rem);
  color: var(--quiet);
  text-wrap: balance;
}

.hero-img {
  position: relative;
  margin: 3.5rem auto 0;
  max-width: 64rem;
}

.hero-img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  /* Centred on the node, low and short: the empty sky is a shade lighter than the ground and fades out whole. */
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 70%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 70%, #000 40%, transparent 100%);
}

/* Blocks */

.label {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}

h2 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* :where() keeps this at element weight, so a section's own rules (.marks .note) win */
section p:where(:not(.label, .lede, .mark)) {
  margin: 0 0 1rem;
  font-size: 1.04rem;
  color: var(--quiet);
}

.blocks {
  display: grid;
  gap: 2.5rem 4rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.blocks article {
  padding-top: 1.6rem;
  border-top: 1px solid var(--steel-line);
}

@media (min-width: 52rem) {
  .blocks { grid-template-columns: 1fr 1fr; padding-top: 5rem; }
}

/* The mark */

.marks {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.marks .note { max-width: 34em; margin-left: auto; margin-right: auto; }

.wordmarks {
  display: grid;
  gap: 1rem;
  margin-top: 2.4rem;
}

.wordmarks li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 9.5rem;
  padding: 1.6rem 1rem;
  border: 1px solid var(--steel-line);
  border-radius: 0.9rem;
  background: rgba(157, 188, 214, 0.03);
}

.wordmarks .wm { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.1; }

.url {
  font-size: 0.98rem;
  color: var(--quiet);
  white-space: nowrap;
}

.url b { font-weight: 700; color: var(--ink); }

.cap {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.emblems {
  display: grid;
  gap: 1.4rem;
  max-width: 20rem;
  margin: 2.4rem auto 0;
}

.emblems li {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.emblems img {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid var(--steel-line);
}

@media (min-width: 40rem) {
  .wordmarks { grid-template-columns: 1fr 1fr; }
  .emblems { grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: none; }
}

/* Close */

.close {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
}

.mark {
  margin: 0 0 1.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--steel);
}

.mark::before, .mark::after {
  content: "";
  display: inline-block;
  width: 1.8em;
  height: 1px;
  margin: 0 0.9em;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--steel-dim), transparent);
}

footer {
  padding: 0 1.5rem 2rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5b6068;
}

@media (max-width: 34rem) {
  .hero { padding-top: 8vh; }
  .hero-img { margin-left: -1.5rem; margin-right: -1.5rem; }
  .hero-img img { border-radius: 0; }
  .mark { letter-spacing: 0.18em; line-height: 1.9; }
  .mark::before, .mark::after { display: none; }
  .glow { width: 150vw; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .hero { animation: none; }
}
