@font-face {
  font-family: 'Instrument Serif';
  src: url('/assets/display.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Instrument Sans';
  src: url('/assets/text.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #1b1714;
  --hero: #1b1714;
  --coal: #211a16;
  --paper: #f5efe5;
  --cream: #fff3de;
  --muted: #d0bfb0;
  --body: #62564c;
  --copper: #f17d50;
  --rust: #a13220;
  --line: #d9cbbc;
  --night-line: #55453a;
  --text-font: 'Instrument Sans', 'Segoe UI', sans-serif;
  --display-font: 'Instrument Serif', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); margin: 0; font: 1rem/1.6 var(--text-font); }
a { color: inherit; text-underline-offset: .25em; }
button { color: inherit; font: inherit; }
button:disabled { cursor: wait; opacity: .65; }
img { display: block; width: 100%; }
em { font-style: normal; color: var(--copper); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
.masthead :focus-visible, .hero :focus-visible, .footer :focus-visible { outline-color: var(--copper); }

.wrap { width: min(100% - 2 * clamp(24px, 7vw, 112px), 1240px); margin-inline: auto; }
.skip { position: absolute; z-index: 4; inset: .5rem auto auto .5rem; padding: .5rem 1rem; transform: translateY(-150%); background: var(--cream); }
.skip:focus { transform: none; }
.masthead { background: var(--ink); color: var(--cream); border-bottom: 1px solid var(--night-line); }
.masthead-inner { min-height: 78px; display: flex; gap: 2rem; align-items: center; justify-content: space-between; }
.wordmark { display: inline-block; width: fit-content; color: var(--cream); text-decoration: none; font-size: 1.75rem; font-weight: 700; line-height: 1; letter-spacing: -.075em; }
.wordmark span { color: var(--copper); }
.main-nav, .footer nav { display: flex; gap: clamp(1.1rem, 3.3vw, 3.2rem); align-items: center; }
.main-nav a, .footer nav a { font-weight: 550; text-decoration: none; }
.main-nav a { min-height: 44px; display: flex; align-items: center; border-block: 2px solid transparent; font-size: .9375rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--copper); }
.network-link { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; font-size: .9rem; color: var(--muted); }
.network-link:hover { color: var(--cream); }
.network-link span, .hero-kicker span, .status > span { width: .45rem; height: .45rem; background: var(--copper); border-radius: 50%; flex: none; }

.hero { position: relative; isolation: isolate; min-height: clamp(480px, 47vw, 640px); display: grid; align-items: center; background: var(--hero); color: var(--cream); }
.hero-image { position: absolute; overflow: hidden; inset: 0 0 0 31%; z-index: -1; }
.hero-image img { height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero), rgb(27 23 20 / .66) 18%, transparent 52%); }
.hero-inner { padding-block: 76px 83px; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; line-height: 1.35; }
.hero-kicker { display: flex; align-items: center; gap: .65rem; color: var(--muted); margin-bottom: 1.4rem; }
h1, .contents h2, .article h2, .side-panel h2, .index-list h3 { font-family: var(--display-font); }
.hero h1 { font-size: clamp(4.6rem, 8.5vw, 8.1rem); line-height: .87; letter-spacing: -.038em; }
.hero-description { max-width: 29rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.125rem); margin-block: 1.8rem 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { font-size: .9375rem; font-weight: 650; padding: .75rem 1.15rem; min-height: 46px; text-decoration: none; line-height: 1.35; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.button.primary { background: var(--copper); color: #26140f; }
.button.primary:hover { background: #ff9c73; }
.button.ghost { color: var(--cream); border-color: #9c8170; background: rgb(27 23 20 / .22); }
.button.ghost:hover { background: #3c2d24; }
.button.dark-outline { border-color: #957e6b; background: transparent; }
.button.dark-outline:hover { border-color: var(--rust); background: #f1e5d6; }
.button.compact { min-height: 42px; padding-inline: .85rem; white-space: nowrap; }

.spec-band { background: var(--coal); color: var(--cream); border-top: 1px solid var(--night-line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats > div { display: grid; align-content: center; gap: .2rem; min-height: 116px; padding: 1.15rem 1.5rem; border-left: 1px solid var(--night-line); }
.stats > div:first-child { padding-left: 0; border-left: 0; }
.stats dt { font-size: .875rem; color: var(--muted); }
.stats dd { margin: 0; font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 625; line-height: 1.3; }
.status { display: flex; align-items: center; gap: .55rem; }
.contents { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.4rem, 7vw, 8rem); padding-block: clamp(60px, 8vw, 124px); }
.contents-intro p:not(.eyebrow) { color: var(--body); max-width: 21rem; margin-top: 1.25rem; }
.contents h2 { font-size: clamp(3.3rem, 6vw, 6.4rem); line-height: .94; letter-spacing: -.025em; }
.index-list { align-self: center; border-top: 1px solid var(--line); }
.index-list a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--line); padding: 1.05rem .15rem; text-decoration: none; }
.index-list a:hover { color: var(--rust); border-bottom-color: var(--rust); }
.index-list h3 { font-size: 2.15rem; line-height: 1.08; margin-bottom: .25rem; }
.index-list p { color: var(--body); }
.index-list span { text-decoration: underline; font-size: .875rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; flex: none; }

.title-band { background: var(--coal); color: var(--cream); }
.title-inner { padding-block: clamp(52px, 7vw, 95px); }
.title-inner .eyebrow { color: var(--copper); margin-bottom: 1rem; }
.title-inner h1 { font-size: clamp(4rem, 8vw, 8.25rem); letter-spacing: -.04em; line-height: .92; }
.title-inner p:not(.eyebrow) { color: var(--muted); max-width: 42rem; font-size: 1.125rem; margin-top: 1.35rem; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); padding-block: clamp(52px, 7vw, 96px); align-items: start; }
.article h2, .side-panel h2 { font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05; letter-spacing: -.02em; margin-bottom: 1rem; }
.article h2:not(:first-child) { margin-top: 2.55rem; }
.article h3 { font-size: 1.1rem; font-weight: 675; margin-block: 1.25rem .6rem; }
.article p, .side-panel p { max-width: 43rem; color: var(--body); }
.data-table { margin: 0 0 1.5rem; border-top: 1px solid var(--line); }
.data-table div { display: grid; grid-template-columns: 1fr 1.05fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.data-table dt { color: var(--body); }
.data-table dd { margin: 0; font-weight: 650; }
.data-table code, .address-box code { font: .92rem/1.5 ui-monospace, 'Cascadia Code', monospace; }
.address-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; background: #ede3d6; border: 1px solid var(--line); padding: .65rem .8rem; }
.address-box code { overflow-wrap: anywhere; }
.text-link { display: inline-block; margin-top: .75rem; font-weight: 650; color: var(--rust); }
.side-panel { background: #eee4d7; color: var(--ink); border-top: 3px solid var(--rust); padding: clamp(1.4rem, 2.5vw, 2rem); scroll-margin-top: 1rem; }
.side-panel .eyebrow { color: var(--rust); margin-bottom: .8rem; }
.side-panel h2 { font-size: 2.45rem; margin-bottom: .65rem; }
.side-action { margin-top: 1.15rem; }
.status-result:empty { display: none; }
.status-result { margin-top: .55rem; color: var(--body); font-size: .875rem; }
.route { display: flex; align-items: center; gap: clamp(.65rem, 3vw, 2rem); border: 1px solid var(--line); padding: clamp(1rem, 2.8vw, 1.7rem); }
.route div { flex: 1; min-width: 0; }
.route small, .route strong { display: block; }
.route small { color: var(--body); font-size: .875rem; }
.route strong { font-size: clamp(1rem, 2vw, 1.2rem); }
.route > span { width: clamp(22px, 6vw, 74px); height: 1px; background: #a58772; flex: none; }
.bridge-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.2rem; }

.footer { background: var(--ink); color: var(--cream); }
.footer-inner { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; align-items: center; padding-block: 2.25rem; }
.footer p, .footer-contract { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.footer nav { gap: 1.5rem; font-size: .9rem; }
.footer nav a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .hero-description { max-width: 23rem; }
  .hero-image { left: 25%; }
  .reading-grid { gap: 2.25rem; }
  .stats > div { padding-inline: 1rem; }
}

@media (max-width: 680px) {
  .masthead-inner { min-height: 0; flex-wrap: wrap; column-gap: 1rem; row-gap: .2rem; padding-top: .95rem; }
  .masthead .wordmark { font-size: 1.65rem; }
  .main-nav { order: 3; width: 100%; gap: 1.6rem; }
  .network-link { margin-left: auto; }
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero-inner { padding-block: 47px 6px; }
  .hero-image { order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 1.43; margin-top: 0; }
  .hero-image img { object-position: 59% 54%; }
  .hero-image::after { background: linear-gradient(180deg, var(--hero), transparent 27%); }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 5.4rem); }
  .hero-description { margin-block: 1.25rem; font-size: 1rem; }
  .hero-kicker { margin-bottom: 1.1rem; }
  .hero-actions { gap: .6rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { min-height: 87px; }
  .stats > div:nth-child(3) { border-left: none; padding-left: 0; }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--night-line); }
  .contents, .reading-grid { grid-template-columns: 1fr; }
  .contents { gap: 2rem; }
  .contents h2 br { display: none; }
  .contents h2 { font-size: clamp(3.4rem, 11vw, 5.4rem); }
  .title-inner h1 { font-size: clamp(3.75rem, 13vw, 5.5rem); }
  .footer-inner { gap: 1rem 1.5rem; }
  .footer-inner > div { width: 100%; }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 36px); }
  .button { padding-inline: .8rem; font-size: .875rem; }
  .index-list a { gap: .75rem; }
  .bridge-steps { grid-template-columns: 1fr; gap: .25rem; }
}

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