/* The Click2CE Journal — site styles
   Built from the Journal design system: linen ground, warm-black accent, Click2CE red.
   Fonts: Bodoni Moda (display) + Poppins (text), loaded from Google Fonts in each page head. */

:root {
  --surface: #f2ece3;
  --surface-raised: #f9f6f1;
  --surface-sunken: #e8e0d4;
  --ink: #1c1a17;
  --ink-muted: #5e574f;
  --hairline: #d8cdbd;
  --accent: #b42f22;
  --accent-hover: #8f241a;
  --accent-fill: #cc3729;
  --highlight: #161412;
  --on-dark: #f4f1ea;
  --on-dark-muted: #b0aa9f;
  --on-dark-accent: #e0453a;
  --hairline-dark: #34302b;

  --font-display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
  --font-sans: Poppins, "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 40px; --space-6: 64px; --space-7: 104px; --space-8: 160px;

  --max: 1440px;
  --gutter: 40px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.05; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 680px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.medium { max-width: 1040px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--highlight); color: var(--on-dark); padding: 10px 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.kicker {
  font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.kicker.muted { color: var(--ink-muted); }
.display { font-size: clamp(46px, 6.4vw, 96px); line-height: .98; letter-spacing: -.02em; }
.display-lg { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -.015em; }
.headline { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.deck { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; font-weight: 300; }
.muted { color: var(--ink-muted); }
.caption { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.pull { font-family: var(--font-display); font-style: italic; font-size: clamp(28px, 3vw, 40px); line-height: 1.25; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.wordmark { font-family: var(--font-sans); font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.wordmark .two { color: var(--accent-fill); }
.wordmark .i { position: relative; display: inline-block; }
.wordmark .i svg { position: absolute; left: .07em; top: .05em; width: .27em; height: .27em; overflow: visible; }
.brand .rule { width: 1px; height: 22px; background: var(--hairline); }
.brand .journal { font-size: 11px; font-weight: 600; letter-spacing: .38em; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 14px; font-weight: 500; letter-spacing: .04em; }
.menu a { color: var(--ink-muted); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px; border-radius: 2px; border: 1px solid transparent;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: .04em; line-height: 1;
  cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease);
}
.btn-red { background: var(--accent-fill); color: #fff; }
.btn-red:hover { background: #b02d20; color: #fff; }
.btn-black { background: var(--highlight); color: var(--on-dark); }
.btn-black:hover { background: #000; color: var(--on-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-sm { min-height: 44px; padding: 0 22px; }
.btn .disc { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: rgba(255,255,255,.2); margin-left: -16px; }

/* ---------- Cinema windows (video frames) ---------- */
.cinema { position: relative; background: var(--highlight); overflow: hidden; aspect-ratio: 16 / 9; }
.cinema.wide { aspect-ratio: 2.39 / 1; min-height: 280px; }
.cinema .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 92px; height: 92px; border: 0; border-radius: 999px; background: var(--accent-fill);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .4s var(--ease), background .3s var(--ease);
}
.play:hover { transform: translate(-50%, -50%) scale(1.06); background: #b02d20; }
.cinema .badge {
  position: absolute; left: 18px; bottom: 14px; font-size: 12px; letter-spacing: .08em; color: var(--on-dark-muted);
}

/* ---------- Home ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: var(--space-7); }
.hero .copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero .media { flex: 1.25 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.hero .cinema { aspect-ratio: 16 / 10; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

.editor { background: var(--surface-raised); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.editor .inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: var(--space-7); padding-bottom: var(--space-7); }
.portrait { flex: 1 1 300px; max-width: 380px; aspect-ratio: 4 / 5; background: var(--surface-sunken); display: flex; align-items: flex-end; padding: 20px; }
.editor .text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.signature { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 14px; }
.signature .line { width: 48px; height: 1px; background: var(--accent-fill); }
.signature strong { font-weight: 500; letter-spacing: .04em; }

.section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid var(--ink); }
.section-head h2 { font-size: clamp(40px, 4vw, 56px); line-height: 1; }

.story-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 36px 0; border-bottom: 1px solid var(--hairline); color: var(--ink); }
a.story-row:hover { color: var(--ink); }
a.story-row:hover .story-title { color: var(--accent); }
.story-num { flex: 0 0 110px; font-family: var(--font-display); font-size: 88px; line-height: .9; }
.story-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.story-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.12; transition: color .3s var(--ease); }
.story-deck { font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.story-by { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.story-meta { flex: 0 1 240px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.status { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.status.live { color: var(--accent); }
.film-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-muted); }

.band-black { background: var(--highlight); color: var(--on-dark); }
.band-black .kicker { color: var(--on-dark-accent); }
.band-black .muted, .band-black .caption { color: var(--on-dark-muted); }
.band-black a { color: var(--on-dark-accent); }
.term-feature { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; padding-top: var(--space-7); padding-bottom: var(--space-7); }
.term-feature .left { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.term-feature .right { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 8px; }
.term-feature h2 { font-size: clamp(56px, 7vw, 96px); line-height: .95; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tag { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline); font-size: 13px; color: var(--ink-muted); }
.band-black .tag { border-color: var(--hairline-dark); color: var(--on-dark-muted); }

.subscribe { background: var(--surface-raised); border: 1px solid var(--hairline); padding: 64px 40px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.subscribe .copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.subscribe h2 { font-size: clamp(34px, 3.4vw, 44px); }
.subscribe form { flex: 1 1 420px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.subscribe label { flex: 1 1 240px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.subscribe input { min-height: 52px; padding: 0 16px; border-radius: 2px; border: 1px solid #b9ac99; background: #fff; color: var(--ink); font-family: var(--font-sans); font-size: 15px; }
.form-note { flex-basis: 100%; font-size: 14px; color: var(--ink-muted); min-height: 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--surface-sunken); }
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.site-footer .name { font-family: var(--font-display); font-size: 28px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; line-height: 2; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-cols a { color: var(--ink); }
.footer-cols a:hover { color: var(--accent); }
.footer-cols .kicker { color: var(--ink-muted); letter-spacing: .2em; margin-bottom: 6px; }
.fine { border-top: 1px solid var(--hairline); padding-top: 20px; padding-bottom: 28px; font-size: 13px; color: var(--ink-muted); }

/* ---------- Article ---------- */
.article-head { display: flex; flex-direction: column; gap: 24px; padding-top: 72px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 18px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--ink-muted); }
.byline strong { color: var(--ink); font-weight: 500; }
.film { padding-top: var(--space-6); display: flex; flex-direction: column; gap: 14px; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.chapters li { background: var(--surface-raised); }
.chapters a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; color: var(--ink); height: 100%; }
.chapters a:hover { background: #fff; }
.chapters .n { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.chapters .t { font-size: 14px; font-weight: 500; line-height: 1.3; }
.prose { display: flex; flex-direction: column; gap: 28px; padding-top: var(--space-7); }
.prose em { font-style: italic; }
.dropcap::first-letter { float: left; font-family: var(--font-display); font-size: 92px; line-height: .8; padding: 8px 12px 0 0; color: var(--accent-fill); }

.chapter-card { margin-top: var(--space-8); }
.chapter-card .inner { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding-top: var(--space-7); padding-bottom: var(--space-7); }
.chapter-card .num { font-family: var(--font-display); font-size: clamp(110px, 12vw, 160px); line-height: .8; color: var(--on-dark-accent); }
.chapter-card .label { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.chapter-card h2 { font-size: clamp(40px, 4.4vw, 56px); line-height: 1; color: var(--on-dark); }
.chapter-card .hair { height: 1px; background: var(--hairline-dark); }

.chapter-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.chapter-head .num { font-family: var(--font-display); font-size: clamp(88px, 9vw, 120px); line-height: .8; color: var(--accent-fill); }
.chapter-head h2 { font-size: clamp(36px, 3.6vw, 48px); line-height: 1.05; }
.chapter { padding-top: var(--space-8); display: flex; flex-direction: column; gap: 32px; }
.chapter.first { padding-top: var(--space-6); }

.terms { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.55; }
.terms th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.terms td { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.terms td.n { font-family: var(--font-display); font-size: 28px; line-height: 1; width: 64px; }
.terms td.term { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.2; width: 24%; }
.terms td.term a { color: var(--ink); border-bottom: 1px dotted var(--accent); }
.terms td.hook { color: var(--ink-muted); width: 30%; }
.terms tr:target td { background: var(--surface-raised); }

.figure { background: var(--surface-raised); border: 1px solid var(--hairline); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.mnemonic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.mnemonic div { background: var(--surface); padding: 24px 18px; display: flex; flex-direction: column; gap: 10px; }
.mnemonic .L { font-family: var(--font-display); font-size: 64px; line-height: .9; color: var(--ink); transition: color .6s var(--ease); }
.mnemonic .w { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.mnemonic.lit .L { color: var(--accent-fill); }
.formula { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; }
.formula .op { color: var(--accent-fill); padding: 0 .2em; }

.callout { background: var(--surface-raised); border: 1px solid var(--hairline); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cta-box { background: var(--surface-sunken); padding: 48px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-box h3 { font-size: 32px; line-height: 1.1; }

.quiz { display: flex; flex-direction: column; gap: 48px; }
.q { display: flex; flex-direction: column; gap: 16px; }
.q .prompt { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; }
.q .opts { display: flex; flex-direction: column; gap: 10px; }
.q button.opt { min-height: 52px; padding: 12px 18px; text-align: left; border-radius: 2px; border: 1px solid var(--hairline); background: var(--surface-raised); color: var(--ink); font-family: var(--font-sans); font-size: 15px; cursor: pointer; }
.q button.opt:hover { border-color: var(--ink-muted); }
.q button.opt.right { background: var(--highlight); border-color: var(--highlight); color: var(--on-dark); }
.q button.opt.wrong { border-color: var(--accent); }
.q .why { font-size: 15px; line-height: 1.7; color: var(--ink-muted); }

.next-card { display: flex; flex-wrap: wrap; border: 1px solid var(--hairline); background: var(--surface-raised); color: var(--ink); }
.next-card .thumb { flex: 1 1 360px; min-height: 240px; background: var(--highlight); display: flex; align-items: flex-end; padding: 20px; }
.next-card .copy { flex: 999 1 380px; padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.next-card h3 { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }

/* ---------- Watch ---------- */
.watch-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: var(--space-7); }
.watch-hero .cinema { flex: 999 1 640px; min-width: 0; }
.watch-hero .copy { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; }
.grid-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px; padding-top: 28px; }
.film-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.film-card .cinema { aspect-ratio: 16 / 9; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 14px; }
.film-card .time { position: relative; padding: 3px 8px; background: var(--surface); font-size: 12px; color: var(--ink); }
.film-card .soon { position: relative; font-size: 11px; letter-spacing: .08em; color: var(--on-dark-muted); }
.film-card h3 { font-weight: 500; font-size: 24px; line-height: 1.2; }
a.film-card:hover h3 { color: var(--accent); }

/* ---------- Glossary ---------- */
.search { display: flex; flex-direction: column; gap: 8px; max-width: 520px; font-size: 13px; color: var(--ink-muted); }
.search input { min-height: 52px; padding: 0 16px; border-radius: 2px; border: 1px solid #b9ac99; background: #fff; font-family: var(--font-sans); font-size: 16px; color: var(--ink); }
.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 40px; }
.gloss article { background: var(--surface-raised); padding: 28px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 110px; }
.gloss article:target { background: #fff; outline: 2px solid var(--accent-fill); outline-offset: -2px; }
.gloss h2 { font-size: 30px; line-height: 1.1; }
.gloss .def { font-size: 16px; line-height: 1.6; }
.gloss .hook { font-size: 14px; color: var(--ink-muted); }
.gloss .from { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.empty { padding: 40px 0; color: var(--ink-muted); }

/* ---------- About ---------- */
.masthead { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
.masthead div { background: var(--surface-raised); padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.masthead h3 { font-size: 28px; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mnemonic .L { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  body { font-size: 17px; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 8px; }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 2px; background: transparent; cursor: pointer; }
  .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mnemonic { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mnemonic div { padding: 16px 8px; }
  .mnemonic .L { font-size: 40px; }
  .mnemonic .w { font-size: 10px; letter-spacing: .06em; }
  .terms thead { display: none; }
  .terms, .terms tbody, .terms tr, .terms td { display: block; width: 100% !important; }
  .terms tr { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
  .terms td { border: 0; padding: 2px 0; }
  .terms td.n { font-size: 20px; }
  .story-num { flex-basis: 100%; font-size: 64px; }
  .subscribe, .figure, .cta-box { padding: 32px 24px; }
}
