:root {
  --paper: #f6f4ef;
  --ink: #111111;
  --muted: #73716c;
  --hairline: #1c1c1c;
  --accent: #c52118;
  --accent-soft: #ffe7e4;
  --dark: #050505;
  --reverse: #ffffff;
  --rule: 2px solid var(--hairline);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #080808;
  --ink: #f7f4ec;
  --muted: #aaa39a;
  --hairline: #f4f1e9;
  --accent: #f04a3f;
  --accent-soft: #32100e;
  --dark: #f7f4ec;
  --reverse: #080808;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.5;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 6px 6px;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 6px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-dot {
  color: var(--accent);
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: var(--rule);
  background: var(--paper);
  text-decoration: none;
}

.brand-glyph {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.brand-pulse {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 999px;
}

.edition {
  flex: 0 1 auto;
  border: var(--rule);
  padding: 5px 12px;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 26px);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav a {
  white-space: nowrap;
  text-decoration: none;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  border: var(--rule);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 190px;
  display: grid;
  gap: 0;
  border: var(--rule);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
  text-transform: none;
  letter-spacing: 0;
}

.language-options a {
  padding: 10px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
}

.language-options a:last-child {
  border-bottom: 0;
}

.language-options a[aria-current="true"] {
  color: var(--accent);
  font-weight: 900;
}

.language-menu:not([open]) .language-options {
  display: none;
}

.language-menu summary:focus-visible,
.theme-toggle:focus-visible,
.copy-btn:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.ticker {
  overflow: hidden;
  padding: 12px 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Courier New", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: clamp(42px, 6vw, 86px);
  align-items: center;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.ticker span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.ticker b {
  font-family: Georgia, serif;
  letter-spacing: 0;
  font-size: 1.15rem;
}

.ticker em {
  color: var(--accent);
  font-style: normal;
  background: var(--paper);
  padding: 1px 5px;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.wrap {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  min-height: calc(100vh - 82px);
  border-bottom: var(--rule);
}

.hero-main {
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 92px) 56px 0;
  border-right: var(--rule);
}

.kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before,
.section-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
}

h1,
h2,
h3 {
  line-height: 0.93;
  letter-spacing: 0;
  margin: 0;
}

h1 {
  max-width: 930px;
  margin-top: 42px;
  font-size: clamp(4rem, 9.5vw, 8.7rem);
  font-weight: 950;
}

.dek {
  max-width: 760px;
  margin: 36px 0 0;
  font-size: clamp(1.22rem, 2vw, 1.72rem);
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
}

.seo-focus {
  max-width: 760px;
  margin-top: 24px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  font-family: "Courier New", monospace;
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
}

.seo-focus p {
  margin: 0 0 8px;
  font-size: 0.98rem;
}

.seo-focus p:last-child {
  margin-bottom: 0;
}

.dropcap::first-letter {
  float: left;
  padding: 0 12px 0 0;
  color: var(--accent);
  font-size: 4.5rem;
  line-height: 0.82;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.hero-rail {
  padding: 44px clamp(20px, 4vw, 48px);
}

.rail-box {
  border-bottom: var(--rule);
  padding-bottom: 28px;
}

.rail-title {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: var(--rule);
  padding-bottom: 12px;
  margin-bottom: 22px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 13px 0;
}

.stat-label {
  font-family: "Courier New", monospace;
  color: var(--muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: right;
}

.stat-note {
  display: block;
  color: var(--accent);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.section {
  padding: clamp(58px, 8vw, 104px) 0;
  border-bottom: var(--rule);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
  border-bottom: 5px solid var(--ink);
  padding-bottom: 12px;
}

.section-title {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
}

.section-link {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.code-table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--rule);
  border-bottom: var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, white);
}

.code-table th,
.code-table td {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 28%, transparent);
  padding: 18px 14px;
  text-align: left;
  vertical-align: top;
}

.code-table th {
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code-token {
  font-family: "Courier New", monospace;
  font-weight: 900;
  font-size: 1rem;
}

.copy-cell {
  width: 118px;
}

.copy-btn {
  width: 100%;
  min-height: 42px;
  border: var(--rule);
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.status-pill {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 2px 8px;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--rule);
}

.guide-card {
  min-height: 285px;
  padding: 38px 30px;
  border-right: var(--rule);
  text-decoration: none;
}

.guide-card:last-child {
  border-right: 0;
}

.guide-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: var(--rule);
  font-family: "Courier New", monospace;
  margin-bottom: 34px;
}

.guide-card h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  margin-bottom: 18px;
}

.guide-card p,
.text-block p,
.faq-item p,
.policy-copy p {
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
  font-size: 1.08rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.news-image {
  border: var(--rule);
  padding: 14px;
  background: var(--paper);
}

.news-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--ink);
}

.caption {
  margin-top: 10px;
  font-family: "Courier New", monospace;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: var(--rule);
}

.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
}

.step-list li::before {
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border: 3px solid var(--paper);
  outline: 2px solid var(--accent);
  font-weight: 900;
}

.black-band {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(60px, 8vw, 110px) 0;
}

.black-band .section-header {
  border-color: var(--paper);
}

.black-band p,
.black-band .guide-card p {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.black-band .guide-card {
  border-color: color-mix(in srgb, var(--paper) 38%, transparent);
}

.black-band .guide-icon {
  border-color: var(--paper);
}

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.note-card {
  border-top: var(--rule);
  padding-top: 16px;
}

.note-card time {
  display: block;
  font-family: "Courier New", monospace;
  color: var(--muted);
  margin-bottom: 10px;
}

.note-card h3 {
  font-size: 1.55rem;
  line-height: 1.08;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-item {
  border-top: var(--rule);
  padding-top: 18px;
}

.faq-item h3 {
  font-size: 1.45rem;
  line-height: 1.12;
}

.breadcrumb {
  padding: 22px 0 0;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.page-hero {
  padding: clamp(46px, 7vw, 96px) 0 clamp(42px, 7vw, 80px);
  border-bottom: var(--rule);
}

.page-hero h1 {
  font-size: clamp(3.6rem, 9vw, 8.3rem);
  margin-top: 26px;
}

.expired-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.expired-list li {
  border: 1px solid color-mix(in srgb, var(--ink) 42%, transparent);
  padding: 8px 10px;
  font-family: "Courier New", monospace;
}

.footer-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(76px, 11vw, 140px) 18px;
}

.footer-cta h2 {
  max-width: 980px;
  margin: 0 auto 22px;
  font-size: clamp(3.2rem, 8vw, 8rem);
}

.footer-cta p {
  max-width: 720px;
  margin: 0 auto 34px;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
  font-size: 1.25rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: clamp(28px, 6vw, 86px);
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background: var(--paper);
  color: var(--ink);
}

.footer-col h3 {
  font-family: Arial, sans-serif;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  padding-bottom: 8px;
  margin: 0 0 22px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.legal-bottom {
  padding: 0 clamp(18px, 5vw, 72px) 36px;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  color: var(--muted);
}

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

@media (max-width: 1060px) {
  .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
  }

  .nav {
    margin-left: 0;
    justify-self: stretch;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .two-col,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero-main {
    border-right: 0;
  }

  .hero-rail {
    border-top: var(--rule);
    padding-left: 0;
    padding-right: 0;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-card:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .masthead {
    padding: 12px 16px;
    border-bottom-width: 4px;
  }

  .edition {
    max-width: 100%;
    white-space: normal;
  }

  .nav {
    overflow-x: visible;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .nav a {
    white-space: nowrap;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.8rem, 14vw, 3.8rem);
    overflow-wrap: anywhere;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-main {
    padding: 46px 0 40px;
    min-width: 0;
  }

  .hero-rail {
    min-width: 0;
  }

  .section-header {
    display: block;
  }

  .section-link {
    display: inline-block;
    margin-top: 12px;
  }

  .code-table,
  .code-table thead,
  .code-table tbody,
  .code-table th,
  .code-table td,
  .code-table tr {
    display: block;
  }

  .code-table thead {
    display: none;
  }

  .code-table tr {
    padding: 16px 0;
    border-bottom: var(--rule);
  }

  .code-table td {
    border-bottom: 0;
    padding: 8px 14px;
  }

  .code-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .copy-cell {
    width: 100%;
  }

  .grid-4,
  .simple-grid {
    grid-template-columns: 1fr;
  }

  .guide-card,
  .guide-card:nth-child(2) {
    border-right: 0;
    border-bottom: var(--rule);
  }

  .footer-cta h2 {
    font-size: clamp(2.9rem, 16vw, 5rem);
  }
}
