:root {
  --ink: #f6f7fb;
  --muted: #a6aab5;
  --dim: #727783;
  --surface: #10131a;
  --surface-2: #171b24;
  --line: rgba(255,255,255,.13);
  --blue: #2587ff;
  --amber: #ffad09;
  --max: 1280px;
  --reading: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #090b10; color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .15; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); z-index: 20; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 14px; background: white; color: black; transform: translateY(-150%); z-index: 100; }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 15; border-bottom: 1px solid var(--line); background: rgba(9,11,16,.88); backdrop-filter: blur(16px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 178px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 36px; color: #d7dae2; font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; color: white; padding: 8px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }

.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .78rem; line-height: 1.2; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero { position: relative; overflow: hidden; padding: 76px clamp(24px, 4vw, 56px) 64px; background: linear-gradient(90deg, rgba(5,7,11,.96) 0%, rgba(5,7,11,.76) 50%, rgba(5,7,11,.38) 100%), url("/assets/wireframe-town-banner.webp") center / cover no-repeat; border: 1px solid rgba(37,135,255,.24); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 110px rgba(9,11,16,.72); }
.hero > * { position: relative; z-index: 1; }
.hero-kicker { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--dim); font: 700 .72rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .72fr); align-items: end; gap: 70px; padding-top: 44px; }
.hero-grid > * { min-width: 0; }
h1, h2, h3 { margin: 0; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero h1 { max-width: 900px; font-size: clamp(3.7rem, 7vw, 7rem); font-weight: 850; text-transform: uppercase; }
.hero h1 em { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.7); font-style: normal; }
.hero-intro { margin: 0 0 4px; color: #c0c4ce; font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.55; }

.featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .85fr); min-height: 580px; background: var(--surface); border: 1px solid var(--line); }
.featured-image { min-height: 420px; overflow: hidden; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.featured-image:hover img { transform: scale(1.025); }
.featured-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(36px, 5vw, 76px); }
.featured-copy h2 { font-size: clamp(2.3rem, 4vw, 4.3rem); }
.featured-copy h2 a:hover { color: var(--blue); }
.featured-copy > p:not(.eyebrow) { color: var(--muted); margin: 28px 0 34px; }
.button { display: inline-flex; gap: 28px; align-items: center; padding: 14px 18px; background: var(--blue); color: white; font-size: .84rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, transform .2s; }
.button:hover, .button:focus-visible { background: #086ee9; transform: translateY(-2px); }

.stories { padding-block: 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 48px; margin-bottom: 42px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: clamp(3rem, 5vw, 5.2rem); text-transform: uppercase; }
.section-heading > p { max-width: 390px; margin: 0 0 5px; color: var(--muted); }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px 30px; }
.story-card { min-width: 0; }
.card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.card-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: transform .6s ease, filter .35s ease; }
.story-card:hover .card-image img { transform: scale(1.035); filter: saturate(1); }
.card-copy { padding-top: 22px; }
.story-meta, .article-byline { display: flex; gap: 20px; color: var(--dim); font: 700 .72rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.story-meta span + span::before, .article-byline span + span::before { content: "/"; margin-right: 20px; color: #3c424e; }
.card-copy h3 { margin: 14px 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.04; }
.card-copy h3 a:hover { color: var(--blue); }
.card-copy p { max-width: 620px; color: var(--muted); }
.text-link { display: inline-flex; gap: 9px; color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; border-bottom: 1px solid var(--blue); }
.text-link:hover { color: var(--blue); }

.about { margin-bottom: 120px; padding: 70px; background: linear-gradient(130deg, #172338, #10131a 62%); border: 1px solid rgba(37,135,255,.28); }
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: start; }
.about h2 { font-size: clamp(2.7rem, 5vw, 5.5rem); text-transform: uppercase; }
.about-grid div { color: #bdc2cc; font-size: 1.08rem; }
.about-grid div p:first-child { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); padding-block: 48px; }
.footer-inner { display: grid; grid-template-columns: 190px 1fr auto; gap: 50px; align-items: center; }
.footer-inner img { width: 175px; }
.footer-inner p { margin: 0; color: var(--dim); font-size: .87rem; }
.copyright { text-transform: uppercase; letter-spacing: .08em; }

.reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 50; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--blue); }
.article-hero { padding-top: 44px; }
.back-link { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.back-link:hover { color: var(--blue); }
.article-heading { max-width: 1050px; padding: 78px 0 58px; }
.article-heading h1 { font-size: clamp(3.2rem, 7vw, 7.4rem); text-transform: uppercase; }
.article-byline { margin-top: 32px; }
.article-cover { height: min(68vw, 730px); margin: 0; overflow: hidden; background: var(--surface); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 150px minmax(0, var(--reading)) 1fr; gap: 50px; padding-block: 80px 120px; }
.article-rail { grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: sticky; top: 40px; align-self: start; color: var(--dim); font: 700 .7rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.rail-line { width: 1px; height: 70px; background: linear-gradient(var(--blue), transparent); }
.copy-link { padding: 0; color: inherit; border: 0; background: none; cursor: pointer; text-transform: uppercase; letter-spacing: inherit; }
.copy-link:hover { color: var(--blue); }
.article-content { grid-column: 2; min-width: 0; overflow-wrap: anywhere; color: #d0d3db; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.35vw, 1.24rem); line-height: 1.82; }
.article-content > p:first-child { margin-top: 0; color: #f0f1f5; font-size: 1.35em; line-height: 1.55; }
.article-content h2, .article-content h3 { scroll-margin-top: 30px; font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; }
.article-content h2 { margin: 2.3em 0 .7em; color: white; font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: 1.04; }
.article-content h3 { margin: 2em 0 .6em; color: white; font-size: 1.75rem; line-height: 1.15; }
.article-content p { margin: 1.2em 0; }
.article-content a { color: #76b6ff; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content strong { color: #f2f3f6; }
.article-content ul, .article-content ol { margin: 1.2em 0; padding-left: 1.3em; }
.article-content li { margin: .55em 0; padding-left: .25em; }
.article-content figure { width: min(1050px, calc(100vw - 48px)); margin: 3.2em 0 3.2em -80px; }
.article-content figure img { width: 100%; max-height: 720px; object-fit: cover; background: var(--surface); }
.article-content figcaption { margin-top: 9px; color: var(--dim); font: 700 .66rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; text-transform: uppercase; }
.article-content blockquote { margin: 2em 0; padding: 1px 0 1px 28px; color: white; font-size: 1.28em; font-style: italic; border-left: 3px solid var(--blue); }
.article-content hr { margin: 3.5em 0; border: 0; border-top: 1px solid var(--line); }
.author-card { display: grid; grid-template-columns: 120px minmax(0, 650px); gap: 30px; align-items: center; margin-bottom: 120px; padding: 28px; background: linear-gradient(135deg, #151b27, var(--surface) 68%); border: 1px solid var(--line); }
.author-card img { width: 120px; height: 120px; object-fit: cover; object-position: center 22%; border: 1px solid rgba(37,135,255,.5); }
.author-card h2 { margin-bottom: 14px; font-size: clamp(2rem, 3vw, 3.3rem); text-transform: uppercase; }
.author-card p:not(.eyebrow) { margin: 0 0 19px; color: var(--muted); }
.article-byline a:hover, .footer-inner a:hover { color: var(--blue); }
.next-story { margin-bottom: 120px; padding: 50px 0; border-block: 1px solid var(--line); }
.next-story > a { display: grid; grid-template-columns: minmax(0, 900px) auto; align-items: center; justify-content: space-between; gap: 40px; font: 800 clamp(2rem, 4.5vw, 4.7rem)/1.03 "Arial Narrow", "Roboto Condensed", Impact, sans-serif; text-transform: uppercase; }
.next-story > a:hover { color: var(--blue); }
.not-found { min-height: 68vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.not-found h1 { max-width: 850px; font-size: clamp(4rem, 8vw, 8rem); text-transform: uppercase; }
.not-found > p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; }

.profile { padding-block: 70px 120px; }
.profile-hero { max-width: 980px; }
.profile-copy h1 { max-width: 850px; font-size: clamp(4rem, 8vw, 8rem); text-transform: uppercase; }
.profile-lead { max-width: 720px; margin: 34px 0 0; color: #d5d8df; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.55; }
.profile-bio { max-width: 900px; margin-top: 120px; padding-top: 70px; border-top: 1px solid var(--line); }
.profile-bio h2, .profile-stories h2 { font-size: clamp(2.7rem, 5vw, 5.4rem); text-transform: uppercase; }
.profile-prose { display: grid; grid-template-columns: 144px minmax(0, 1fr); gap: 30px; align-items: start; margin-top: 34px; color: #c8ccd5; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.82; }
.profile-prose p { margin: 0 0 1.2em; }
.profile-inline-avatar { width: 144px; margin: 7px 0 0; }
.profile-inline-avatar img { width: 144px; height: 144px; object-fit: cover; object-position: center 22%; border: 1px solid rgba(37,135,255,.5); }
.profile-inline-avatar figcaption { margin-top: 11px; color: var(--ink); font: 800 .72rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.profile-inline-avatar figcaption span { color: var(--dim); font-size: .64rem; }
.profile-stories { margin-top: 110px; }
.profile-stories ol { margin: 38px 0 0; padding: 0; list-style: none; counter-reset: stories; border-top: 1px solid var(--line); }
.profile-stories li { counter-increment: stories; border-bottom: 1px solid var(--line); }
.profile-stories a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 25px 0; }
.profile-stories a::before { content: "0" counter(stories); color: var(--dim); font: 700 .72rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.profile-stories strong { font: 800 clamp(1.4rem, 2.4vw, 2.4rem)/1.08 "Arial Narrow", "Roboto Condensed", Impact, sans-serif; text-transform: uppercase; }
.profile-stories a span { color: var(--dim); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-stories a:hover strong, .profile-stories a:hover span { color: var(--blue); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease var(--delay, 0ms), transform .65s ease var(--delay, 0ms); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .featured, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 26px; }
  .featured-copy { min-height: 430px; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-rail { display: none; }
  .article-content { grid-column: 1; margin-inline: auto; }
  .article-content figure { margin-left: 0; }
  .footer-inner { grid-template-columns: 180px 1fr; }
  .copyright { grid-column: 2; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .header-inner { min-height: 68px; }
  .brand img { width: 145px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 68px 0 auto; padding: 24px 15px; justify-content: center; background: #090b10; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .hero { padding: 50px 20px; background-position: 58% center; border-inline: 0; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .hero h1 em { overflow-wrap: anywhere; }
  .hero-kicker span:last-child { display: none; }
  .featured { width: 100%; border-inline: 0; }
  .featured-image { min-height: 58vw; }
  .featured-copy { min-height: auto; padding: 36px 20px 44px; }
  .stories { padding-block: 85px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 20px; }
  .story-grid { grid-template-columns: 1fr; gap: 56px; }
  .about { width: 100%; margin-bottom: 80px; padding: 50px 20px; border-inline: 0; }
  .about-grid { gap: 30px; }
  .footer-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .article-heading { padding: 54px 0 40px; }
  .article-heading h1 { font-size: clamp(2.9rem, 14vw, 5rem); }
  .article-cover { width: calc(100% + 30px); height: 68vw; margin-left: -15px; }
  .article-layout { padding-block: 55px 85px; }
  .article-content { width: 100%; font-size: 1.06rem; line-height: 1.75; }
  .article-content h2, .article-content h3, .article-content a { overflow-wrap: anywhere; }
  .article-content > p:first-child { font-size: 1.18em; }
  .article-content figure { width: calc(100% + 30px); margin-left: -15px; }
  .article-content figcaption { padding-inline: 15px; }
  .author-card { grid-template-columns: 82px minmax(0, 1fr); gap: 20px; margin-bottom: 80px; padding: 20px; }
  .author-card img { width: 82px; height: 82px; }
  .author-card .eyebrow { margin-bottom: 10px; }
  .author-card p:not(.eyebrow) { font-size: .92rem; line-height: 1.5; }
  .profile { padding-block: 50px 85px; }
  .profile-copy h1 { font-size: clamp(3.5rem, 18vw, 5.7rem); }
  .profile-lead { margin-top: 24px; font-size: 1.2rem; }
  .profile-bio { margin-top: 85px; padding-top: 50px; }
  .profile-prose { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; margin-top: 26px; }
  .profile-inline-avatar { width: 96px; margin-top: 5px; }
  .profile-inline-avatar img { width: 96px; height: 96px; }
  .profile-inline-avatar figcaption { font-size: .64rem; }
  .profile-inline-avatar figcaption span { font-size: .56rem; }
  .profile-stories { margin-top: 80px; }
  .profile-stories a { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; }
  .profile-stories a span { display: none; }
  .next-story { margin-bottom: 80px; }
  .next-story > a { grid-template-columns: 1fr auto; font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
