:root {
  --ink: #18123a;
  --ink-2: #241a51;
  --ink-3: #3a2d6b;
  --lime: #d7ff4f;
  --lime-soft: #efffb2;
  --paper: #f5f1e8;
  --paper-2: #fffdf8;
  --muted: #716b82;
  --line: #b9b2c9;
  --line-dark: #4e4378;
  --shadow: 0 18px 54px rgba(24, 18, 58, .14);
  --radius: 2px;
  color-scheme: light;
  font-family: ui-serif, Georgia, "Times New Roman", "Noto Serif CJK SC", "Songti SC", serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); line-height: 1.75; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 100; transform: translateY(-180%); padding: 10px 14px; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 20; background: var(--ink); color: var(--paper-2); border-bottom: 1px solid var(--line-dark); }
.utility-bar { border-bottom: 1px solid rgba(255,255,255,.16); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.utility-inner { min-height: 34px; display: flex; align-items: center; gap: 22px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.utility-inner::-webkit-scrollbar { display: none; }
.utility-inner a { margin-left: auto; color: var(--lime); }
.primary-bar { background: linear-gradient(100deg, var(--ink), var(--ink-2)); }
.primary-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 1.12rem; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 45px; background: var(--lime); color: var(--ink); border: 1px solid var(--paper-2); box-shadow: 5px 5px 0 var(--ink-3); }
.primary-nav { margin-left: auto; min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav a { display: block; padding: 8px 10px; border: 1px solid transparent; text-decoration: none; font-family: ui-sans-serif, system-ui, sans-serif; font-size: .86rem; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible { border-color: var(--lime); color: var(--lime); outline: none; }
.nav-toggle { display: none; margin-left: auto; padding: 9px 12px; color: var(--paper-2); background: transparent; border: 1px solid var(--lime); cursor: pointer; }

.page-main { padding-block: 34px 90px; }
.breadcrumb { display: flex; gap: 9px; align-items: center; margin: 4px 0 22px; color: var(--muted); font: .78rem/1.4 ui-sans-serif, system-ui, sans-serif; overflow-wrap: anywhere; }
.page-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .38fr); gap: 24px 52px; align-items: end; padding: 46px 0 38px; border-top: 7px solid var(--ink); border-bottom: 1px solid var(--line); }
.page-hero .kicker { grid-column: 1 / -1; }
.page-hero h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 5rem); line-height: .98; letter-spacing: -.045em; overflow-wrap: anywhere; }
.hero-lead { margin: 0; max-width: 680px; font-size: clamp(1.02rem, 2vw, 1.28rem); color: #3e3850; }
.boundary-chip { align-self: start; justify-self: end; margin: 0; padding: 9px 12px; background: var(--lime-soft); border: 1px solid var(--ink); font: 700 .75rem/1.4 ui-sans-serif, system-ui, sans-serif; }
.kicker, .panel-label, .section-heading p { margin: 0; color: #4f447b; font: 800 .76rem/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

.archive-cover { position: relative; min-height: 610px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 28px clamp(24px, 5vw, 64px) 58px; background: var(--ink); color: var(--paper-2); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.archive-cover::before, .archive-cover::after { content: ""; position: absolute; pointer-events: none; }
.archive-cover::before { inset: 14px; border: 1px solid rgba(215,255,79,.45); }
.archive-cover::after { width: 330px; height: 330px; right: -120px; bottom: -120px; border: 70px solid var(--ink-3); border-radius: 50%; }
.cover-meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.25); font: .74rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.cover-body { position: relative; z-index: 1; align-self: center; max-width: 800px; padding-block: 70px 42px; }
.cover-body .kicker { color: var(--lime); }
.cover-body h1 { margin: 18px 0 24px; max-width: 760px; font-size: clamp(4rem, 12vw, 8.8rem); line-height: .86; letter-spacing: -.075em; }
.cover-body .hero-lead { color: #ded9ec; }
.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button-primary, .button-quiet { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--lime); font: 750 .88rem/1.2 ui-sans-serif, system-ui, sans-serif; text-decoration: none; }
.button-primary { background: var(--lime); color: var(--ink); }
.button-quiet { color: var(--paper-2); }
.cover-seal { position: absolute; right: clamp(24px, 5vw, 64px); bottom: 48px; z-index: 2; display: grid; width: 112px; height: 112px; place-items: center; align-content: center; border: 1px solid var(--lime); border-radius: 50%; color: var(--lime); transform: rotate(-8deg); }
.cover-seal span { font: 800 2rem/1 ui-monospace, monospace; }
.cover-seal small { font: .55rem/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .15em; }

.editorial-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); margin-top: 72px; }
.text-section { min-width: 0; padding: clamp(24px, 4vw, 44px); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: rgba(255,255,255,.42); }
.text-section h2 { margin: 0 0 16px; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.12; }
.text-section p { margin: 0; color: #373146; }
.content-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(210px, 1fr); gap: clamp(36px, 6vw, 82px); align-items: start; padding-block: 54px; }
.article-layout .reading-column { border-left: 1px solid var(--line); }
.article-layout .text-section { background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 36px 34px; margin-bottom: 36px; }
.content-layout .text-section { background: var(--paper-2); border: 1px solid var(--line); margin-bottom: 18px; }
.margin-note { position: sticky; top: 22px; padding: 22px; background: var(--ink); color: var(--paper-2); border-left: 8px solid var(--lime); box-shadow: var(--shadow); }
.margin-note span { color: var(--lime); font: 750 .72rem/1.4 ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.margin-note p { margin: 12px 0 0; }

.archive-index, .related-block { margin-top: 74px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1; }
.archive-rows { border-top: 1px solid var(--ink); }
.archive-rows a { display: grid; grid-template-columns: 54px minmax(160px, .7fr) minmax(0, 1.3fr); gap: 20px; align-items: center; padding: 20px 6px; border-bottom: 1px solid var(--ink); text-decoration: none; }
.archive-rows a:hover { background: var(--lime-soft); }
.archive-rows span { font: .75rem/1 ui-monospace, monospace; }
.archive-rows strong { font-size: 1.15rem; }
.archive-rows em { color: var(--muted); font-style: normal; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-card { min-width: 0; min-height: 176px; display: flex; flex-direction: column; padding: 22px; background: var(--paper-2); border: 1px solid var(--ink); text-decoration: none; box-shadow: 6px 6px 0 var(--line); overflow-wrap: anywhere; }
.note-card:hover, .note-card:focus-visible { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--lime); outline: none; }
.note-card span { color: var(--muted); font: .7rem/1.3 ui-sans-serif, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.note-card strong { margin-top: 18px; font-size: 1.15rem; line-height: 1.3; }
.note-card em { margin-top: auto; padding-top: 22px; color: #4f447b; font: 700 .76rem/1.2 ui-sans-serif, system-ui, sans-serif; font-style: normal; }

.checklist-panel { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 24px 48px; margin: 24px 0 72px; padding: clamp(24px, 5vw, 52px); background: var(--lime-soft); border: 1px solid var(--ink); }
.checklist-panel h2 { margin: 8px 0 0; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; }
.checklist-panel ol { margin: 0; padding: 0; list-style: none; }
.checklist-panel li + li { border-top: 1px solid rgba(24,18,58,.3); }
.checklist-panel label { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; cursor: pointer; }
.checklist-panel input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ink); }
.reset-button { grid-column: 2; justify-self: start; padding: 10px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-2); cursor: pointer; }
.microcopy { grid-column: 2; margin: -12px 0 0; color: #514b61; font-size: .82rem; }

.site-footer { background: var(--ink); color: var(--paper-2); border-top: 8px solid var(--lime); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: 42px; padding-block: 54px; }
.footer-title { margin: 0 0 12px; color: var(--lime); font-size: 1.35rem; font-weight: 800; }
.site-footer p { margin: 6px 0; color: #d1cbe1; }
.site-footer ul { columns: 2; margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 8px; break-inside: avoid; }
.site-footer a { color: var(--paper-2); }
.footer-state { display: flex; flex-direction: column; gap: 8px; color: var(--lime); font: .72rem/1.5 ui-monospace, monospace; }

@media (max-width: 920px) {
  .primary-inner { flex-wrap: wrap; min-height: 74px; padding-block: 12px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; flex-basis: 100%; margin-left: 0; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { padding: 10px 0 4px; }
  .page-hero { grid-template-columns: 1fr; }
  .boundary-chip { justify-self: start; }
  .content-layout, .article-layout { grid-template-columns: 1fr; }
  .margin-note { position: static; }
  .note-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-state { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .utility-inner { gap: 16px; }
  .utility-inner a { margin-left: 0; }
  .primary-inner { gap: 12px; }
  .brand { font-size: .96rem; }
  .brand-mark { width: 34px; height: 39px; }
  .page-main { padding-block: 24px 64px; }
  .archive-cover { min-height: 660px; padding: 22px 22px 42px; }
  .cover-meta { display: grid; gap: 6px; }
  .cover-body { padding-block: 52px 120px; }
  .cover-body h1 { font-size: clamp(3.7rem, 24vw, 6rem); }
  .cover-actions { display: grid; }
  .cover-seal { right: 24px; bottom: 32px; width: 92px; height: 92px; }
  .editorial-copy { grid-template-columns: 1fr; }
  .page-hero { padding: 34px 0 28px; }
  .page-hero h1 { font-size: clamp(2.15rem, 13vw, 3.5rem); }
  .content-layout, .article-layout { padding-block: 36px; gap: 28px; }
  .article-layout .reading-column { border-left: 0; }
  .article-layout .text-section { padding-left: 0; }
  .content-layout .text-section { padding: 24px; }
  .archive-rows a { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
  .archive-rows em { grid-column: 2; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 150px; }
  .checklist-panel { grid-template-columns: 1fr; }
  .reset-button, .microcopy { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer ul { columns: 1; }
}

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