:root {
  --ink: #060507;
  --paper: #f5edf1;
  --pink: #ed3d8c;
  --pink-bright: #ff66a8;
  --pink-deep: #b81d67;
  --muted: #cbbdc5;
  --line: rgba(245, 237, 241, .24);
  --shadow: 0 24px 60px rgba(184, 29, 103, .16);
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--paper); text-underline-offset: .28em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-bright); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 20; left: 1rem; top: 1rem; min-height: 44px; padding: .65rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.masthead { width: min(1280px, calc(100% - 3rem)); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.site-mark { min-height: 44px; display: inline-flex; align-items: baseline; gap: .55rem; text-decoration: none; font-family: var(--mono); font-size: 1rem; letter-spacing: .03em; }
.site-mark span { color: var(--pink-bright); }
.site-mark strong { font-weight: 500; }
.language-toggle { display: none; min-height: 48px; border: 1px solid var(--line); border-radius: 4px; padding: .55rem .8rem; background: transparent; color: var(--paper); cursor: pointer; text-align: left; transition: border-color 220ms ease-out, transform 220ms ease-out; }
.js-enabled .language-toggle { display: grid; }
.language-toggle:hover { border-color: var(--pink); transform: translateY(-2px); }
.language-toggle span { font-family: var(--mono); font-size: .875rem; color: var(--pink-bright); }
.language-toggle strong { font-size: 1rem; }
.hero-split { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; min-height: 690px; padding: 8rem 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.hero-copy { max-width: 740px; animation: rise-in 420ms ease-out both; }
.eyebrow, .mono-label, .source-label { margin: 0 0 1rem; color: var(--pink-bright); font-family: var(--mono); font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h1 { max-width: 15ch; color: var(--pink); font-size: clamp(2.5rem, 5vw, 4rem); line-height: .98; font-style: italic; }
h2 { color: var(--pink); font-size: 2.25rem; line-height: 1.05; font-style: italic; }
h3 { font-size: 1.5rem; line-height: 1.2; }
.hero-dek { max-width: 62ch; margin: 2rem 0 0; color: var(--paper); font-size: 1.125rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.primary-action, .text-action { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; padding: .65rem 1rem; font-weight: 600; transition: transform 220ms ease-out, background 220ms ease-out, color 220ms ease-out; }
.primary-action { background: var(--pink); color: var(--ink); text-decoration: none; }
.primary-action:hover { background: var(--pink-bright); color: var(--ink); transform: translateY(-2px); }
.text-action:hover { transform: translateY(-2px); }
.paper-visual { margin: 0; transform: rotate(1.5deg); animation: fade-in 420ms 80ms ease-out both; }
.paper-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--pink-deep); border-radius: 4px; background: linear-gradient(145deg, #21121a, #0b0709); box-shadow: var(--shadow); }
.article-grid { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; }
.editorial-row { min-height: 430px; padding: clamp(4rem, 8vw, 8rem) 0; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.08fr); gap: clamp(3rem, 8vw, 9rem); align-items: start; border-top: 1px solid var(--line); }
.row-shift { grid-template-columns: minmax(0, 1.08fr) minmax(260px, .72fr); }
.row-shift .section-heading { grid-column: 2; }
.row-shift .section-copy { grid-column: 1; grid-row: 1; }
.section-heading { position: sticky; top: 2rem; }
.section-copy { max-width: 72ch; }
.section-copy > p { margin: 0 0 1.4rem; font-size: 1rem; }
.section-copy > p:first-child { font-size: 1.125rem; }
.plain-term { padding: 0 .12em; color: var(--pink-bright); border-bottom: 1px dashed var(--pink); }
.check-lines { margin: 0; padding: 0; list-style: none; }
.check-lines li { position: relative; min-height: 48px; padding: .8rem 0 .8rem 2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.check-lines li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .75rem; height: .75rem; border: 1px solid var(--pink); border-radius: 2px; transform: rotate(-4deg); }
.margin-note { margin: 2rem 0 0; padding: 1.35rem 1.5rem; color: var(--ink); background: var(--paper); border: 1px solid var(--pink); border-radius: 4px; box-shadow: 10px 10px 0 var(--pink-deep); }
.margin-note p { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.45; }
.source-notes { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--pink-deep); }
.source-notes p { margin: 0 0 .85rem; display: grid; grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr); gap: 1rem; font-size: 1rem; }
.source-notes .source-label { display: block; margin-bottom: 1rem; }
.source-notes a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.source-notes span { color: var(--muted); }
.section-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.section-links a { min-height: 48px; display: inline-flex; align-items: center; gap: .7rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 600; transition: border-color 220ms ease-out, transform 220ms ease-out; }
.section-links a:hover { border-color: var(--pink); transform: translateY(-2px); }
.notebook-index { width: min(1280px, calc(100% - 3rem)); margin: clamp(4rem, 8vw, 8rem) auto; padding: clamp(2rem, 5vw, 5rem); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(3rem, 7vw, 7rem); color: var(--ink); background: var(--paper); border: 1px solid var(--pink); border-radius: 4px; box-shadow: var(--shadow); }
.notebook-index h2 { color: var(--pink-deep); }
.notebook-index .mono-label { color: #8f1450; }
.eyebrow { font-size: 1rem; }
.notebook-index p { max-width: 42ch; font-size: 1rem; }
.index-groups { display: grid; gap: 2rem; }
.index-groups section { border-top: 1px solid rgba(6, 5, 7, .2); }
.index-groups h3 { margin: 1rem 0 .5rem; }
.index-groups a { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink); border-bottom: 1px solid rgba(6, 5, 7, .15); text-decoration: none; }
.index-groups a:hover { color: var(--pink-deep); }
.page-turn { width: min(1280px, calc(100% - 3rem)); margin: 0 auto clamp(4rem, 8vw, 8rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.page-turn a { min-height: 92px; padding: 1rem; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; transition: border-color 220ms ease-out, transform 220ms ease-out; }
.page-turn a:last-child { text-align: right; }
.page-turn a:hover { border-color: var(--pink); transform: translateY(-2px); }
.page-turn span { color: var(--pink-bright); font-family: var(--mono); font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; }
.page-turn strong { font-size: 1rem; }
.site-footer { width: min(1280px, calc(100% - 3rem)); margin: 0 auto; padding: 3rem 0; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 1rem; }
.site-footer p { max-width: 72ch; margin: 2rem 0 0; color: var(--muted); font-size: 1rem; }
.error-page { width: min(900px, calc(100% - 3rem)); min-height: 70vh; margin: 0 auto; padding: 8rem 0; display: grid; align-content: center; }
.error-page p { max-width: 60ch; font-size: 1.125rem; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) {
  .masthead { width: min(100% - 2rem, 1280px); min-height: 76px; }
  .site-mark { flex-direction: column; gap: 0; align-items: flex-start; justify-content: center; }
  .language-toggle { max-width: 150px; }
  .hero-split { width: min(100% - 2rem, 1280px); min-height: auto; padding: 4rem 0; grid-template-columns: 1fr; gap: 3rem; }
  .paper-visual { max-width: 100%; transform: none; }
  .article-grid { width: min(100% - 2rem, 1280px); }
  .editorial-row, .row-shift { min-height: 0; padding: 4rem 0; grid-template-columns: 1fr; gap: 2rem; }
  .row-shift .section-heading, .row-shift .section-copy { grid-column: 1; grid-row: auto; }
  .section-heading { position: static; }
  .source-notes p { grid-template-columns: 1fr; gap: .2rem; }
  .notebook-index { width: min(100% - 2rem, 1280px); padding: 2rem 1.25rem; grid-template-columns: 1fr; gap: 2rem; }
  .page-turn { width: min(100% - 2rem, 1280px); grid-template-columns: 1fr; }
  .page-turn a:last-child { text-align: left; }
  .site-footer { width: min(100% - 2rem, 1280px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  :root { --ink: #ffffff; --paper: #111111; --pink: #7b1748; --pink-bright: #7b1748; --pink-deep: #7b1748; --muted: #333333; --line: rgba(0, 0, 0, .25); }
  body { color: #111; background: #fff; }
  .masthead, .paper-visual, .page-turn, .site-footer, .hero-actions, .section-links { display: none !important; }
  .hero-split, .editorial-row, .row-shift { min-height: 0; padding: 1rem 0; display: block; }
  .hero-split { width: 100%; }
  .article-grid { width: 100%; }
  h1 { max-width: none; color: #7b1748; font-size: 2.4rem; }
  h2 { color: #7b1748; font-size: 1.55rem; }
  .check-lines li { break-inside: avoid; min-height: 0; padding: .35rem 0 .35rem 1.5rem; }
  .check-lines li::before { top: .65rem; }
  .margin-note { color: #111; background: #fff; box-shadow: none; }
}
