:root {
  --bg: #151b23;
  --bg-raised: #1c252f;
  --ink: #f4efe6;
  --muted: #b3aa9e;
  --faint: #7d766c;
  --line: rgba(244, 239, 230, 0.14);
  --teal: #7ee0cb;
  --teal-deep: #1f8f7a;
  --blue: #2f6fbe;
  --paper: #f4efe6;
  --header: 4.5rem;
  --measure: 42rem;
  --wide: 72rem;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 1rem);
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(47, 111, 190, 0.18), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(61, 206, 180, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.18;
  background-image: radial-gradient(rgba(244, 239, 230, 0.28) 0.55px, transparent 0.55px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection {
  background: #1a6b5c;
  color: var(--paper);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 80;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header);
  width: min(var(--wide), calc(100% - 2.5rem));
  margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  z-index: 2;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nav-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 3rem;
  align-items: end;
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--teal);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 500;
}

.kicker i {
  width: 0.55rem;
  height: 0.55rem;
  background: var(--paper);
  transform: rotate(45deg);
  display: inline-block;
}

.hero h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: clamp(4.2rem, 8.6vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #8fd0ea 0%, #7ee0cb 55%, #d7fff4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 38rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.18rem;
  line-height: 1.45;
}

.plate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 0.4rem 0 0;
}

.plate-logo {
  width: 168px;
  height: 168px;
  margin: 0 0 1rem;
}

.tape {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
}

.tape div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.tape dt {
  margin: 0;
  color: var(--faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.tape dd {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: 1.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.tape dd span {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.25rem;
}

.tape-note {
  margin: 0.7rem 0 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.feature {
  position: relative;
  margin: 4.5rem 0 1rem;
  padding: 2.6rem 2.4rem 2.4rem;
  background:
    linear-gradient(160deg, rgba(47, 111, 190, 0.16), transparent 42%),
    var(--bg-raised);
  overflow: hidden;
  isolation: isolate;
}

.feature::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 190px;
  right: -70px;
  bottom: -50px;
  background: linear-gradient(120deg, #245f9e, #3dceb2);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
  opacity: 0.9;
}

.feature::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 120px;
  height: 120px;
  right: 86px;
  bottom: 28px;
  background: var(--paper);
  transform: rotate(45deg);
  opacity: 0.92;
}

.feature time {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.feature h2 {
  margin: 0;
  max-width: 18em;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.feature h2 a {
  text-decoration: none;
}

.feature h2 a:hover {
  color: var(--teal);
}

.feature .dek {
  max-width: 46rem;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.08rem;
  line-height: 1.5;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  color: var(--bg);
  background: var(--paper);
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.75rem 1rem;
}

.more:hover {
  background: var(--teal);
}

.sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: baseline;
  margin: 4.2rem 0 1.2rem;
}

.sec-head span {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--teal);
  font-size: 1.05rem;
}

.sec-head h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.sec-head p {
  grid-column: 2;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-weight: 300;
  max-width: 40rem;
}

.journal {
  display: flex;
  flex-direction: column;
}

.entry {
  display: grid;
  grid-template-columns: 8.2rem 1fr auto;
  gap: 1.2rem;
  align-items: start;
  padding: 1.55rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.journal .entry:last-child {
  border-bottom: 1px solid var(--line);
}

.entry time {
  color: var(--teal);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 0.4rem;
  font-size: 0.92rem;
}

.entry strong {
  display: block;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.entry em {
  display: block;
  margin-top: 0.45rem;
  font-style: normal;
  font-weight: 300;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.45;
}

.entry .go {
  padding-top: 0.45rem;
  color: var(--faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.entry:hover strong {
  color: var(--teal);
}

.entry:hover .go {
  color: var(--ink);
  transform: translateX(4px);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1rem 0 3rem;
  color: var(--muted);
  font-weight: 300;
}

.about p {
  margin: 0;
  max-width: 38rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--faint);
  font-size: 0.86rem;
}

.site-footer a {
  color: var(--muted);
}

.article-hero {
  padding: 3.2rem 0 1.4rem;
  max-width: var(--measure);
  margin-inline: auto;
}

.back {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.back:hover {
  color: var(--teal);
}

.article-hero h1 {
  margin: 0.35rem 0 0.9rem;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.article-hero time {
  color: var(--faint);
}

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  padding-bottom: 2rem;
}

.prose p,
.prose li {
  font-size: 1.12rem;
  line-height: 1.68;
  font-weight: 400;
}

.prose p {
  margin: 0 0 1.15em;
}

.prose h2 {
  margin: 2.1em 0 0.55em;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

.prose ol {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0 0 1.4rem;
}

.prose ol li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.prose ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Fraunces", serif;
  color: var(--teal);
  font-size: 1.05rem;
  padding-top: 0.15rem;
}

.sources {
  margin-top: 2rem;
  color: var(--faint);
  font-size: 0.88rem;
}

.pager {
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0 3rem;
  border-top: 1px solid var(--line);
}

.pager a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-decoration: none;
  padding-top: 1rem;
  max-width: 46%;
}

.pager a span {
  color: var(--faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.pager a:hover strong {
  color: var(--teal);
}

.pager .next {
  text-align: right;
  margin-left: auto;
}

.geo-faq-section {
  margin-top: 2.8rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}

.geo-faq-section h2 {
  margin-top: 0.6rem;
}

.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.missing {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 4rem 0;
}

.missing h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.9;
  margin: 0 0 1rem;
  letter-spacing: -0.04em;
}

.missing p {
  color: var(--muted);
  max-width: 32rem;
}

@media (max-width: 860px) {
  .hero,
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  .plate {
    align-items: flex-start;
  }

  .plate-logo {
    width: 112px;
    height: 112px;
  }

  .feature {
    padding: 1.6rem 1.2rem 1.5rem;
  }

  .feature::before,
  .feature::after {
    opacity: 0.35;
  }

  .entry {
    grid-template-columns: 1fr auto;
  }

  .entry time {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .site-footer,
  .pager {
    flex-direction: column;
  }

  .pager .next {
    text-align: left;
    margin-left: 0;
  }

  .pager a {
    max-width: none;
  }

  .nav-btn {
    display: inline-block;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding-top: 0.3rem;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
    padding: 0.7rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .entry .go {
    transition: none;
  }
}
