:root {
  color-scheme: light;
  --paper: #f2efe8;
  --paper-deep: #e5dfd3;
  --ink: #171918;
  --muted: #62635e;
  --line: #bbb7ad;
  --soft-line: #d8d3c8;
  --accent: #c83d2a;
  --accent-ink: #f8f2e8;
  --night: #17353a;
  --serif: 'Songti SC', 'STSong', 'SimSun', serif;
  --sans: 'Microsoft YaHei UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  --shadow: 0 24px 70px rgba(39, 33, 24, .12);
  --page: min(100% - 28px, 1460px);
  --gutter: clamp(18px, 3.5vw, 58px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme='dark'] {
  color-scheme: dark;
  --paper: #171a19;
  --paper-deep: #222624;
  --ink: #ebe8df;
  --muted: #aaa9a2;
  --line: #4a4d49;
  --soft-line: #333733;
  --accent: #e15d47;
  --accent-ink: #171918;
  --night: #0d2429;
  --shadow: 0 24px 70px rgba(0, 0, 0, .26);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #c9c4ba; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: linear-gradient(135deg, #cbc5ba, #ddd8cf 48%, #c3bdb2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  opacity: 0;
  transition: opacity .24s ease;
}
body.is-ready { opacity: 1; }
body.menu-open { overflow: hidden; }
body.is-leaving { cursor: progress; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, figure { margin-top: 0; }
::selection { color: #fff; background: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.page-transition {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
  color: #eaf7ff;
  background: #061019;
  clip-path: inset(100% 0 0 0);
}

.page-transition::before,
.page-transition::after,
.page-transition__grid { content: ''; position: absolute; inset: 0; }
.page-transition::before {
  background: linear-gradient(90deg, transparent 0 48%, rgba(0, 221, 255, .2) 48% 52%, transparent 52%);
  transform: translateX(-55%);
}
.page-transition::after {
  inset: auto 0 0;
  height: 3px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}
.page-transition__grid {
  opacity: .26;
  background-image: linear-gradient(rgba(84, 219, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(84, 219, 255, .16) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-transition p {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 16px 20px;
  border-left: 2px solid #56e7ff;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.page-transition p span:first-child { color: #56e7ff; font-size: 16px; letter-spacing: .22em; }
.page-transition.is-active { visibility: visible; }
.page-transition.is-entering { animation: page-reveal .58s var(--ease) forwards; }
.page-transition.is-leaving { animation: page-cover .42s var(--ease) forwards; }
.page-transition.is-entering::before { animation: transition-sweep .58s var(--ease) both; }
.page-transition.is-leaving::before { animation: transition-sweep .42s var(--ease) both reverse; }

@keyframes page-reveal {
  from { clip-path: inset(0 0 0 0); }
  to { clip-path: inset(0 0 100% 0); }
}
@keyframes page-cover {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes transition-sweep {
  from { transform: translateX(-55%); }
  to { transform: translateX(55%); }
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: #111;
  transform: translateY(-150%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: var(--page);
  min-height: 100vh;
  margin-inline: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: background-color .18s linear, color .18s linear;
}

.site-header { position: relative; z-index: 10; padding: 0 var(--gutter); border-bottom: 1px solid var(--ink); }
.masthead-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft-line);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}
.masthead-meta span:nth-child(2) { display: none; }
.masthead-main { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 16px; }
.brand { display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; align-items: center; column-gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { grid-row: 1 / 3; position: relative; width: 30px; height: 38px; border: 1px solid var(--ink); }
.brand-mark i { position: absolute; display: block; background: var(--accent); }
.brand-mark i:first-child { width: 12px; height: 100%; left: 0; top: 0; }
.brand-mark i:last-child { width: 17px; height: 12px; right: 0; top: 13px; }
.brand > span:nth-child(2) { font-family: var(--serif); font-size: 27px; font-weight: 900; line-height: 1; letter-spacing: .12em; }
.brand small { align-self: start; color: var(--muted); font-size: 9px; line-height: 1.2; letter-spacing: .08em; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.theme-toggle, .menu-toggle {
  min-width: 48px;
  min-height: 48px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.theme-label, .menu-toggle > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.theme-icon { width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.menu-lines { display: grid; gap: 6px; width: 22px; }
.menu-lines i { display: block; height: 1px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded='true'] .menu-lines i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-lines i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.primary-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 0 solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: max-height .32s var(--ease), opacity .22s ease, padding .32s var(--ease), border-width .1s linear;
}
.primary-nav[data-open='true'] { max-height: 520px; padding-top: 14px; padding-bottom: 22px; border-bottom-width: 1px; opacity: 1; visibility: visible; }
.primary-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--soft-line); text-decoration: none; font-family: var(--serif); font-size: 21px; }
.primary-nav a::before { content: '↗'; width: 32px; color: var(--accent); font-family: var(--sans); font-size: 13px; }
.primary-nav a[aria-current='page'] { color: var(--accent); }

main { min-height: 65vh; }
.eyebrow { margin-bottom: 16px; font-size: 10px; font-weight: 900; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; }
.read-link { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.read-link span { color: var(--accent); font-size: 17px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(32px, 6vw, 62px); line-height: 1; }

.home-hero { position: relative; padding: 34px var(--gutter) 56px; border-bottom: 1px solid var(--ink); }
.hero-label { display: none; }
.hero-story { color: inherit; text-decoration: none; }
.hero-story figure { position: relative; margin: 0 0 28px; overflow: hidden; background: var(--paper-deep); aspect-ratio: 12 / 7.6; }
.hero-story figure::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(0,0,0,.08); pointer-events: none; }
.hero-story img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s ease; }
.hero-story:hover img { transform: scale(1.015); }
.hero-copy h1 { max-width: 12ch; margin-bottom: 20px; font-family: var(--serif); font-size: clamp(40px, 10vw, 84px); font-weight: 900; line-height: 1.12; letter-spacing: -.04em; }
.hero-copy > p:not(.eyebrow) { max-width: 38em; color: var(--muted); }

.manifesto { padding: 72px var(--gutter); border-bottom: 1px solid var(--ink); }
.manifesto > p:last-child { max-width: 20em; margin: 0; font-family: var(--serif); font-size: clamp(28px, 6vw, 58px); font-weight: 600; line-height: 1.45; letter-spacing: -.035em; }
.manifesto em { color: var(--accent); font-style: normal; border-bottom: .08em solid currentColor; }

.featured-grid, .latest, .category-archive, .related { padding: 64px var(--gutter); }
.feature-list { display: grid; }
.feature-card { position: relative; padding: 28px 0; border-bottom: 1px solid var(--soft-line); }
.article-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.article-card .card-image { overflow: hidden; margin: 0 0 20px; background: var(--paper-deep); aspect-ratio: 12 / 7.6; }
.article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease), filter .3s ease; }
.article-card:hover img { transform: scale(1.02); filter: contrast(1.05); }
.card-copy { display: flex; flex: 1; flex-direction: column; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.card-meta span:first-child { color: var(--accent); }
.article-card h2 { margin-bottom: 12px; font-family: var(--serif); font-size: clamp(25px, 5vw, 38px); line-height: 1.35; letter-spacing: -.025em; }
.article-card .card-copy > p:not(.card-meta) { color: var(--muted); font-size: 14px; }

.topics { padding: 64px var(--gutter); color: #f3eee3; background: var(--night); }
.topics .section-heading { border-color: #f3eee3; }
.topic-list a { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.22); color: inherit; text-decoration: none; }
.topic-list > a > span { color: #d69462; font-size: 11px; font-weight: 900; }
.topic-list p { margin-bottom: 4px; color: #aabbbc; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.topic-list h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 32px; line-height: 1.15; }
.topic-list small { display: block; max-width: 28em; color: #b9c4c3; font-size: 13px; }
.topic-list b { grid-column: 2; align-self: end; font-size: 11px; }

.latest-grid { display: grid; }
.article-card.horizontal { padding: 28px 0; border-bottom: 1px solid var(--soft-line); }
.article-card.horizontal h2 { font-size: 27px; }
.editor-note { margin: 0 var(--gutter) 64px; padding: 32px; color: #201f1c; background: #d5a23e; }
.editor-note > div span { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.editor-note h2 { margin: 12px 0 20px; font-family: var(--serif); font-size: 32px; line-height: 1.3; }
.editor-note p { max-width: 48em; }
.editor-note a { font-size: 13px; font-weight: 700; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; color: var(--muted); font-size: 11px; font-weight: 700; }
.breadcrumbs a { text-decoration-thickness: 1px; }
.category-hero { position: relative; min-height: 420px; padding: 38px var(--gutter) 54px; overflow: hidden; border-bottom: 1px solid var(--ink); }
.category-title { position: relative; z-index: 2; display: flex; min-height: 270px; flex-direction: column; justify-content: end; }
.category-title h1 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(64px, 18vw, 160px); line-height: .88; letter-spacing: -.08em; }
.category-title > p:last-child { max-width: 34em; margin-bottom: 0; color: var(--muted); }
.category-glyph { position: absolute; z-index: 1; right: -5vw; top: 60px; color: var(--category-accent); opacity: .14; font-family: var(--serif); font-size: 360px; font-weight: 900; line-height: 1; }
.category-lead { padding: 42px var(--gutter) 0; }
.category-feature .card-copy { padding: 24px 0 42px; }
.category-feature h2 { font-size: clamp(35px, 8vw, 70px); }
.archive-list .archive-row { padding: 22px 0 0; border-bottom: 1px solid var(--line); }
.archive-row .article-card { border: 0; }
.archive-jumps {
  display: flex;
  gap: 8px;
  padding: 24px var(--gutter);
  overflow-x: auto;
  border-bottom: 1px solid var(--ink);
  scrollbar-width: thin;
}
.archive-jumps a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.archive-jumps a:hover { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.all-articles-page { padding: 24px var(--gutter) 72px; }
.all-articles-group { padding-top: 56px; scroll-margin-top: 24px; }
.all-articles-list { display: grid; }
.feature-card .article-card {
  height: 100%;
}
.feature-card .card-image {
  width: 100%;
  margin: 0 0 20px;
  aspect-ratio: 16 / 10;
}
.back-row { display: flex; justify-content: space-between; padding: 28px var(--gutter) 64px; border-top: 1px solid var(--ink); }
.back-row a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 700; }

.article-page { position: relative; }
.article-rail { display: none; }
.article-hero { padding: 38px var(--gutter) 42px; }
.article-hero h1 { max-width: 12ch; margin-bottom: 28px; font-family: var(--serif); font-size: clamp(44px, 10vw, 92px); font-weight: 900; line-height: 1.12; letter-spacing: -.05em; }
.article-deck { max-width: 42em; color: var(--muted); font-family: var(--serif); font-size: clamp(19px, 3.5vw, 25px); line-height: 1.7; }
.byline { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 22px; border-top: 1px solid var(--soft-line); color: var(--muted); font-size: 11px; font-weight: 600; }
.byline span:first-child { color: var(--ink); }
.article-cover { margin: 0; padding: 0 var(--gutter); }
.article-cover img { width: 100%; background: var(--paper-deep); aspect-ratio: 12 / 7.6; object-fit: cover; }
.article-cover figcaption { padding: 9px 0 18px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 10px; }
.article-layout { padding: 52px var(--gutter) 72px; }
.article-aside { margin-bottom: 34px; padding: 18px 0; border-top: 3px solid var(--accent); border-bottom: 1px solid var(--soft-line); }
.article-aside p { margin-bottom: 6px; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.article-aside span { color: var(--muted); font-size: 13px; }
.article-content { max-width: 740px; }
.article-content > p, .article-section p { font-family: var(--serif); font-size: 17px; line-height: 2; }
.article-intro { margin-bottom: 54px; font-size: 20px !important; font-weight: 600; line-height: 1.9 !important; }
.article-section { margin: 0 0 52px; }
.article-section h2 { margin-bottom: 22px; padding-top: 18px; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: clamp(27px, 5vw, 39px); line-height: 1.35; }
.references { margin-top: 70px; padding: 28px 0; border-top: 4px solid var(--ink); border-bottom: 1px solid var(--ink); }
.references h2 { margin-bottom: 24px; font-family: var(--serif); font-size: 30px; }
.references ol { margin: 0; padding: 0; list-style: none; }
.references li { display: grid; grid-template-columns: 34px 1fr; padding: 12px 0; border-top: 1px solid var(--soft-line); }
.references li span { color: var(--accent); font-size: 11px; font-weight: 900; }
.references li a { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.reference-note { margin: 18px 0 0; color: var(--muted); font-family: var(--sans) !important; font-size: 12px !important; line-height: 1.7 !important; }
.article-return { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 54px; }
.article-return a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; font-weight: 700; }
.related { border-top: 1px solid var(--ink); }
.related-grid { display: grid; gap: 34px; padding-top: 34px; }

.info-page { padding: 0 var(--gutter); }
.info-hero { padding: 70px 0 64px; border-bottom: 1px solid var(--ink); }
.info-hero h1 { max-width: 11em; margin-bottom: 32px; font-family: var(--serif); font-size: clamp(43px, 10vw, 92px); line-height: 1.2; letter-spacing: -.05em; }
.info-hero > p:last-child { max-width: 45em; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.info-layout { padding: 45px 0 70px; }
.info-layout > aside { margin-bottom: 30px; color: var(--muted); font-size: 11px; }
.info-layout > aside span { color: var(--accent); font-weight: 900; letter-spacing: .15em; }
.info-sections section { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 30px 0; border-top: 1px solid var(--soft-line); }
.info-sections section > span { color: var(--accent); font-size: 11px; font-weight: 900; }
.info-sections h2 { font-family: var(--serif); font-size: clamp(25px, 5vw, 37px); line-height: 1.4; }
.info-sections p, .info-sections li { max-width: 48em; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 2; }
.info-sections li { margin-bottom: 8px; }
.contact-box { padding: 20px; color: #f6f1e7 !important; background: var(--night); font-family: var(--sans) !important; }
.contact-box a { color: #f0b269; overflow-wrap: anywhere; }
.fine-print { font-family: var(--sans) !important; font-size: 12px !important; }
code, kbd { padding: .12em .35em; border: 1px solid var(--line); background: var(--paper-deep); font-family: ui-monospace, monospace; font-size: .86em; }
.info-page > .back-row { padding-inline: 0; }

.not-found { display: grid; min-height: 66vh; align-items: center; padding: 60px var(--gutter); }
.error-code { color: var(--accent); font-family: var(--serif); font-size: clamp(120px, 35vw, 410px); font-weight: 900; line-height: .8; opacity: .18; letter-spacing: -.1em; }
.not-found h1 { font-family: var(--serif); font-size: clamp(38px, 8vw, 72px); line-height: 1.2; }
.not-found p:not(.eyebrow) { max-width: 40em; color: var(--muted); }
.button-link { display: inline-flex; min-height: 48px; align-items: center; margin-top: 16px; padding: 0 20px; color: var(--accent-ink); background: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; }

.site-footer { padding: 56px var(--gutter) 24px; color: #f0ede5; background: #111412; }
.footer-lead { padding-bottom: 40px; border-bottom: 1px solid #4b4f4c; }
.footer-brand { font-family: var(--serif); font-size: 54px; font-weight: 900; text-decoration: none; letter-spacing: .08em; }
.footer-lead p { max-width: 24em; margin: 12px 0 0; color: #aeb3ae; font-family: var(--serif); }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding: 40px 0; }
.footer-group { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.footer-group p { margin-bottom: 6px; color: #d68b62; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.footer-group a { display: inline-flex; min-height: 35px; align-items: center; color: #c6c9c5; font-size: 12px; }
.footer-base { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid #4b4f4c; color: #8e938f; font-size: 9px; letter-spacing: .05em; }
.footer-base p { margin: 0; }

@media (min-width: 430px) {
  :root { --page: min(100% - 36px, 1460px); }
  .masthead-meta { grid-template-columns: 1fr auto 1fr; }
  .masthead-meta span:nth-child(2) { display: inline; }
  .masthead-meta span:last-child { text-align: right; }
  .article-card.horizontal { display: grid; grid-template-columns: minmax(112px, 34%) minmax(0, 1fr); gap: 16px; align-items: start; }
  .article-card.horizontal .card-image { align-self: start; margin-bottom: 0; aspect-ratio: 4 / 3; }
  .article-card.horizontal .card-image img { width: 100%; height: 100%; object-fit: cover; }
  .article-card.horizontal h2 { font-size: 24px; }
}

@media (min-width: 768px) {
  :root { --page: min(100% - 48px, 1460px); }
  body.menu-open { overflow: auto; }
  .page-shell { border-radius: 8px; overflow: hidden; }
  .site-header { padding-top: 4px; }
  .masthead-main { justify-content: center; min-height: 116px; }
  .brand { transform: scale(1.15); transform-origin: center; }
  .header-actions { position: absolute; right: var(--gutter); top: 52px; }
  .menu-toggle { display: none; }
  .primary-nav { position: static; display: flex; max-height: none; justify-content: center; gap: clamp(22px, 4vw, 54px); padding: 0; border: 0; border-top: 1px solid var(--soft-line); opacity: 1; visibility: visible; }
  .primary-nav a { min-height: 50px; border: 0; font-family: var(--sans); font-size: 11px; font-weight: 700; }
  .primary-nav a::before { display: none; }
  .home-hero { display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding-top: 52px; }
  .hero-label { display: flex; flex-direction: column; justify-content: end; border-right: 1px solid var(--line); }
  .hero-label p { margin: 0 20px 0 0; font-size: 9px; font-weight: 700; letter-spacing: .16em; writing-mode: vertical-rl; }
  .hero-story { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(280px, .7fr); align-items: end; gap: clamp(30px, 5vw, 76px); }
  .hero-story figure { margin: 0; }
  .hero-copy { padding-bottom: 12px; }
  .hero-copy h1 { font-size: clamp(52px, 6vw, 84px); }
  .manifesto { display: grid; grid-template-columns: 1fr 4fr; align-items: start; }
  .feature-list { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .feature-card { padding: 34px 24px; border-right: 1px solid var(--soft-line); }
  .feature-card:first-child { padding-left: 24px; }
  .feature-card:last-child { padding-right: 24px; border-right: 0; }
  .feature-card .article-card h2 { font-size: 27px; }
  .topic-list a { grid-template-columns: 44px 1fr auto; align-items: center; transition: padding .25s var(--ease), background .25s ease; }
  .topic-list a:hover { padding-inline: 14px; background: rgba(255,255,255,.04); }
  .topic-list h3 { font-size: 39px; }
  .topic-list b { grid-column: 3; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); column-gap: 42px; }
  .editor-note { display: grid; grid-template-columns: .85fr 1.4fr; gap: 40px; padding: 48px; }
  .editor-note a { grid-column: 2; }
  .category-hero { min-height: 500px; }
  .category-lead .category-feature { display: grid; grid-template-columns: 1.35fr 1fr; gap: 42px; }
  .category-feature .card-copy { padding-top: 8px; }
  .archive-row { display: block; }
  .archive-row .article-card.horizontal { grid-template-columns: 240px 1fr; }
  .article-hero { padding-top: 70px; padding-bottom: 60px; }
  .article-cover { padding-inline: calc(var(--gutter) + 6vw); }
  .article-layout { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 740px) minmax(0, .4fr); gap: clamp(36px, 6vw, 90px); }
  .article-aside { position: sticky; top: 24px; align-self: start; }
  .article-content { grid-column: 2; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .info-layout { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 780px) minmax(0, .4fr); gap: clamp(30px, 6vw, 80px); }
  .info-layout > aside { position: sticky; top: 24px; align-self: start; }
  .info-sections { grid-column: 2; }
  .not-found { grid-template-columns: 1.1fr 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-base { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  :root { --gutter: clamp(40px, 4.4vw, 68px); }
  .home-hero { min-height: 650px; }
  .hero-story { align-items: center; }
  .latest-grid { grid-template-columns: repeat(3, 1fr); }
  .article-card.horizontal { display: flex; }
  .latest .article-card.horizontal .card-image { aspect-ratio: 16 / 10; }
  .category-title { min-height: 340px; }
  .article-rail { position: absolute; top: 80px; right: 20px; display: flex; gap: 40px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; writing-mode: vertical-rl; }
  .article-hero { padding-left: calc(var(--gutter) + 7vw); }
  .article-hero h1 { font-size: clamp(70px, 7vw, 104px); }
}

@media (min-width: 1280px) {
  .page-shell { margin-block: 24px; }
  .category-lead { padding-top: 60px; }
  .category-lead .category-feature { grid-template-columns: 1.55fr 1fr; }
}

/* Cyber editorial visual system */
:root {
  --paper: #f3f7fa;
  --paper-deep: #e7eef4;
  --ink: #071522;
  --muted: #516675;
  --line: #9eb4c2;
  --soft-line: #d4e0e8;
  --accent: #006fe8;
  --accent-2: #00a9c7;
  --accent-ink: #f7fdff;
  --night: #04121d;
  --serif: 'Bahnschrift', 'Arial Narrow', 'Segoe UI', sans-serif;
  --sans: 'Segoe UI Variable', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --mono: 'Cascadia Code', 'SFMono-Regular', Consolas, monospace;
  --shadow: none;
  --page: 100%;
  --gutter: clamp(20px, 4.5vw, 84px);
}

[data-theme='dark'] {
  --paper: #071018;
  --paper-deep: #0a1a26;
  --ink: #e8f5fb;
  --muted: #8ca5b5;
  --line: #315064;
  --soft-line: #183344;
  --accent: #00d5ff;
  --accent-2: #39f4c4;
  --accent-ink: #001016;
  --night: #02090f;
}

html { background: var(--paper); }
body {
  background: var(--paper);
  background-image:
    linear-gradient(rgba(28, 101, 137, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 101, 137, .035) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* FACET signal rail: a deliberately quiet scroll position indicator. */
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #030b12;
}

::-webkit-scrollbar {
  width: 15px;
  height: 15px;
}

::-webkit-scrollbar-track {
  background:
    linear-gradient(90deg, transparent 0 4px, #123147 4px 5px, transparent 5px 10px, #081721 10px 100%);
  border-left: 1px solid #1c4a61;
}

::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 3px solid #081721;
  border-radius: 2px;
  background: linear-gradient(180deg, #63f3ff 0%, var(--accent) 48%, #0078ca 100%);
  box-shadow: inset 0 0 0 1px rgba(233, 255, 255, .68), 0 0 12px rgba(0, 213, 255, .22);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b7fbff 0%, #00dcff 48%, #159eff 100%);
  box-shadow: inset 0 0 0 1px #efffff, 0 0 18px rgba(0, 213, 255, .48);
}

::-webkit-scrollbar-thumb:active {
  background: #39f4c4;
  box-shadow: inset 0 0 0 1px #eafff8, 0 0 18px rgba(57, 244, 196, .52);
}

::-webkit-scrollbar-corner { background: #081721; }
::-webkit-scrollbar-button { width: 0; height: 0; }

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background-color: color-mix(in srgb, var(--paper) 96%, transparent);
}

.site-header {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(14px);
}
.site-header::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2) 28%, transparent 70%);
  pointer-events: none;
}
.masthead-meta {
  color: var(--muted);
  border-bottom-color: var(--soft-line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .17em;
}
.masthead-meta span:first-child, .masthead-meta span:last-child { color: var(--accent); }
.masthead-main { min-height: 92px; }
.brand { grid-template-columns: 38px auto; column-gap: 13px; }
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  position: static;
  border: 0;
  clip-path: none;
  box-shadow: none;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 28%, transparent));
}
.brand > span:nth-child(2) {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .21em;
}
.brand small { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .09em; }
.theme-toggle, .menu-toggle {
  border: 1px solid transparent;
  font-family: var(--mono);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--accent); border-color: var(--line); background: var(--paper-deep); }
.theme-icon { border-radius: 2px; transform: rotate(45deg); background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.theme-label, .menu-toggle > span:first-child { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.primary-nav a { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.primary-nav a[aria-current='page'] { color: var(--accent); text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }

.eyebrow, .card-meta, .read-link, .breadcrumbs, .byline,
.hero-label, .article-rail, .footer-group p, .info-layout > aside {
  font-family: var(--mono);
}
.eyebrow { color: var(--accent); letter-spacing: .19em; }
.section-heading { border-color: var(--line); }
.section-heading h2, .article-card h2, .hero-copy h1, .category-title h1,
.article-hero h1, .article-section h2, .references h2, .info-hero h1,
.info-sections h2, .not-found h1, .editor-note h2, .topic-list h3 {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -.035em;
}

.home-hero, .category-hero, .article-hero, .info-hero {
  background-image:
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30%),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 18%, transparent) 1px, transparent 1px);
  background-size: auto, 48px 100%;
}
.home-hero { border-bottom-color: var(--line); }
.hero-story figure, .article-card .card-image, .article-cover img {
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.hero-story figure::after {
  border: 0;
  background: linear-gradient(135deg, transparent 55%, color-mix(in srgb, var(--accent) 12%, transparent));
}
.hero-copy h1 {
  font-size: clamp(39px, 9vw, 78px);
  line-height: 1.01;
}
.read-link { min-height: 44px; color: var(--accent); text-transform: uppercase; letter-spacing: .09em; }
.manifesto { border-bottom-color: var(--line); }
.manifesto > p:last-child { font-family: var(--serif); font-size: clamp(28px, 5vw, 56px); font-weight: 560; line-height: 1.22; }
.manifesto em { color: var(--accent); border-bottom-width: 2px; }

.feature-card, .article-card.horizontal, .archive-list .archive-row { border-color: var(--soft-line); }
.feature-card { transition: background-color .25s ease, padding .25s ease; }
.feature-card:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.article-card .card-image { position: relative; }
.article-card h2 { line-height: 1.15; }
.card-meta span:first-child { color: var(--accent); }
.article-card:hover h2 { color: var(--accent); }
.article-card:hover img { transform: scale(1.025); filter: saturate(1.15) contrast(1.08); }

.topics {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 85% 20%, rgba(0, 213, 255, .16), transparent 26%),
    linear-gradient(rgba(67, 161, 196, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 161, 196, .10) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.topics::before {
  content: 'FACET // SIGNAL DIRECTORY';
  position: absolute;
  top: 18px;
  right: var(--gutter);
  color: rgba(105, 222, 255, .38);
  font: 9px/1 var(--mono);
  letter-spacing: .2em;
}
.topic-list a:hover { border-color: var(--accent); background: rgba(0, 213, 255, .055); }
.editor-note {
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.editor-note > div span { color: var(--accent); font-family: var(--mono); }

.category-hero { border-bottom-color: var(--line); }
.category-title h1 { color: var(--ink); font-size: clamp(58px, 14vw, 148px); text-transform: uppercase; }
.category-glyph { color: var(--accent); opacity: .07; font-family: var(--serif); }
.category-feature .card-copy { border-top: 2px solid var(--accent); }

.article-page {
  background-image: linear-gradient(90deg, transparent calc(50% - 371px), color-mix(in srgb, var(--line) 15%, transparent) calc(50% - 370px), transparent calc(50% - 369px));
}
.article-hero { border-bottom: 1px solid var(--soft-line); }
.article-hero h1 {
  max-width: 16ch;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 1.01;
  text-wrap: balance;
}
.article-deck { font-family: var(--sans); font-size: clamp(18px, 2.6vw, 24px); line-height: 1.55; }
.byline { color: var(--muted); }
.byline span:first-child { color: var(--accent); }
.article-cover figcaption { border-bottom-color: var(--line); font-family: var(--mono); letter-spacing: .03em; }
.article-aside { border-top-color: var(--accent); border-bottom-color: var(--soft-line); }
.article-aside p { color: var(--accent); font-family: var(--mono); }
.article-content > p, .article-section p {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: 0;
}
.article-intro {
  margin-bottom: 54px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  font-size: 19px !important;
  font-weight: 450 !important;
  line-height: 1.75 !important;
}
.article-intro::first-letter {
  float: none;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.article-section h2 { border-top-color: var(--line); font-size: clamp(27px, 4vw, 37px); }
.article-section h2::before { content: '// '; color: var(--accent); font-family: var(--mono); font-size: .55em; vertical-align: middle; }
.references { border-top-color: var(--accent); border-bottom-color: var(--line); }
.references li { border-top-color: var(--soft-line); }

.info-sections section { border-color: var(--soft-line); }
.contact-box { background: var(--night); border-left: 3px solid var(--accent); }
.button-link { clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
.not-found { background-image: radial-gradient(circle at 20% 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 30%); }
.error-code { color: var(--accent); font-family: var(--mono); }

.site-footer {
  color: #dcecf3;
  border-top: 1px solid #1a6380;
  background-color: #020a10;
  background-image: linear-gradient(90deg, rgba(0, 213, 255, .07) 1px, transparent 1px);
  background-size: 48px 100%;
}
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #ecfaff; font-family: var(--serif); letter-spacing: .18em; }
.footer-brand img { width: 34px; height: 34px; filter: drop-shadow(0 0 8px rgba(0, 213, 255, .28)); }
.footer-lead p, .footer-group a { color: #8ea7b5; }
.footer-group p { color: #00cfee; }
.footer-base { border-color: #174257; color: #678392; font-family: var(--mono); }

@media (min-width: 768px) {
  .page-shell { width: 100%; margin: 0; border-radius: 0; overflow: visible; }
  .masthead-main { min-height: 106px; }
  .primary-nav { border-top-color: var(--soft-line); }
  .primary-nav a { font-size: 10px; }
  .home-hero { grid-template-columns: 44px 1fr; min-height: 620px; }
  .hero-label { border-right-color: var(--line); }
  .hero-story { grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); }
  .article-layout { grid-template-columns: minmax(180px, 1fr) minmax(0, 760px) minmax(60px, .65fr); }
  .article-content { max-width: 760px; }
}

@media (min-width: 1024px) {
  .article-hero { padding-left: calc(var(--gutter) + 4vw); }
  .article-hero h1 { font-size: clamp(60px, 6.2vw, 88px); }
}

@media (min-width: 1280px) {
  .page-shell { margin-block: 0; }
}

/* Archive cards use an image-led stack on phones and a restrained thumbnail on larger screens. */
.archive-row .article-card.horizontal,
.all-articles-list .article-card.horizontal {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.archive-row .article-card.horizontal .card-image,
.all-articles-list .article-card.horizontal .card-image {
  width: 100%;
  margin: 0 0 22px;
  aspect-ratio: 16 / 9;
}

@media (min-width: 768px) {
  .archive-row .article-card.horizontal,
  .all-articles-list .article-card.horizontal {
    display: grid;
    grid-template-columns: clamp(240px, 24vw, 360px) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }
  .archive-row .article-card.horizontal .card-image,
  .all-articles-list .article-card.horizontal .card-image {
    width: auto;
    margin: 0;
    aspect-ratio: 16 / 10;
  }
}

/* Keep category feature media independent from the headline column on tablets.
   The old stretched grid item turned a short landscape image into an empty panel
   whenever its adjacent headline needed more lines. */
@media (min-width: 768px) {
  .category-lead .category-feature {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .category-lead .category-feature .card-image {
    align-self: start;
    margin-bottom: 0;
    aspect-ratio: 16 / 10;
  }

  .category-lead .category-feature .card-copy {
    min-width: 0;
    padding: 4px 0 0;
  }

  .category-lead .category-feature h2 {
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.04;
    text-wrap: balance;
  }
}

@media (min-width: 1280px) {
  .category-lead .category-feature {
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.8fr);
    gap: clamp(42px, 5vw, 76px);
  }

  .category-lead .category-feature h2 {
    font-size: clamp(42px, 4.3vw, 64px);
  }
}

/* Tablets need a distinct cover-story composition. The desktop split layout
   leaves too little room for a long headline at 768–1199px, so the editorial
   copy leads and the cover becomes a deliberate wide visual beneath it. */
@media (min-width: 768px) and (max-width: 1199px) {
  .home-hero {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 0;
    padding-top: 42px;
    padding-bottom: 52px;
  }

  .hero-label p {
    margin-right: 12px;
  }

  .hero-story {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .hero-copy {
    order: 1;
    max-width: 720px;
    padding-bottom: 0;
  }

  .hero-copy h1 {
    max-width: 16ch;
    margin-bottom: 16px;
    font-size: clamp(42px, 6.1vw, 60px);
    line-height: 1.03;
  }

  .hero-story figure {
    order: 2;
    width: 100%;
    margin: 0;
    max-height: 330px;
    aspect-ratio: 16 / 7;
  }
}

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

@media (forced-colors: active) {
  html { scrollbar-color: auto; }
  ::-webkit-scrollbar-track, ::-webkit-scrollbar-thumb { background: Canvas; border-color: CanvasText; box-shadow: none; }
}

@media print {
  body { background: #fff; opacity: 1; }
  .page-shell { width: 100%; box-shadow: none; }
  .site-header, .site-footer, .related, .article-return, .article-rail { display: none; }
  .article-content { max-width: none; }
}
