/*
Theme Name: Clear Head Clear Life
Theme URI: https://clearheadclearlife.com
Author: Rama Nand Arya
Author URI: https://clearheadclearlife.com
Description: Landing-page theme for Clear Head Clear Life — Alchemizing Mental Clutter in 28 Seconds. Includes the interactive 28 Sec Alchemy practice timer, light/dark mode, Experience sharing, and all landing sections.
Version: 1.0.9
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clear-head-clear-life
Tags: one-column, custom-menu, custom-colors
*/

:root {
    --paper: #f6f1e4;
    --paper-raised: #efe8d6;
    --paper-line: #ddd2b4;
    --ink: #1c1c1e;
    --ink-soft: #565246;
    --ink-faint: #8c8574;
    --gold: #a9762c;
    --gold-deep: #8a5e21;
    --gold-tint: #f0dfb8;
    --sage: #5f7160;
    --sage-tint: #dde5d4;
    --focus: #1c1c1e;
    --band-ink: #14151f;
    --band-ink-raised: #1e2030;
    --band-paper: #f3ead3;
    --band-gold: #e0b45c;
    --band-line: #34364a;
    --shadow-sm: 0 1px 2px rgba(28,28,30,.06), 0 4px 14px rgba(28,28,30,.05);
    --shadow-md: 0 2px 4px rgba(28,28,30,.07), 0 14px 34px rgba(28,28,30,.10);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1120px;
    color-scheme: light;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #16171b;
      --paper-raised: #1e1f24;
      --paper-line: #34353c;
      --ink: #eee9de;
      --ink-soft: #b8b2a3;
      --ink-faint: #7d786c;
      --gold: #d9a94e;
      --gold-deep: #eec377;
      --gold-tint: #322a17;
      --sage: #9ab29a;
      --sage-tint: #212a20;
      --focus: #eee9de;
      --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
      --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.35);
      color-scheme: dark;
    }
  }

  :root[data-theme="dark"] {
    --paper: #16171b;
    --paper-raised: #1e1f24;
    --paper-line: #34353c;
    --ink: #eee9de;
    --ink-soft: #b8b2a3;
    --ink-faint: #7d786c;
    --gold: #d9a94e;
    --gold-deep: #eec377;
    --gold-tint: #322a17;
    --sage: #9ab29a;
    --sage-tint: #212a20;
    --focus: #eee9de;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.25);
    --shadow-md: 0 2px 4px rgba(0,0,0,.35), 0 14px 34px rgba(0,0,0,.35);
    color-scheme: dark;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @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 {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  img, svg { max-width: 100%; display: block; }
  a { color: inherit; }
  ::selection { background: var(--gold-tint); }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

  h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    text-wrap: balance;
    margin: 0;
    line-height: 1.12;
  }

  .eyebrow {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 .7rem;
  }
  .eyebrow::before { content: "— "; opacity: .6; }
  .section-head .eyebrow, .gems-band .eyebrow, .hero-eyebrow {
    display: inline-block;
    background: var(--gold-tint);
    border: 1px solid var(--paper-line);
    border-radius: 999px;
    padding: .42rem .95rem;
    margin-bottom: .9rem;
  }
  .gems-band .eyebrow {
    background: var(--band-ink-raised);
    border-color: var(--band-line);
  }

  .btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
    text-decoration: none; white-space: nowrap;
    padding: .85rem 1.5rem; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-gold { background: var(--gold); color: #fff; box-shadow: 0 2px 8px rgba(169,118,44,.25); }
  .btn-gold:hover { background: var(--gold-deep); }
  .btn-line { background: transparent; border-color: var(--paper-line); color: var(--ink); }
  .btn-line:hover { border-color: var(--gold); color: var(--gold-deep); }
  .btn-band { background: var(--band-gold); color: #14151f; box-shadow: 0 2px 10px rgba(224,180,92,.25); }
  .btn-band:hover { filter: brightness(1.05); }
  .btn-band:disabled { opacity: .55; cursor: default; filter: none; }

  /* ---------- Header ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--paper-line);
  }
  .header-row { display: flex; align-items: center; gap: 1.25rem; padding: .85rem 0; }
  .wordmark {
    font-family: 'Fraunces', serif; font-size: 1.18rem; text-decoration: none; letter-spacing: .01em;
    margin-right: auto;
  }
  .wordmark strong { color: var(--gold-deep); font-weight: 600; }
  .primary-nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; }
  .primary-nav a {
    text-decoration: none; font-size: .9rem; color: var(--ink-soft);
    padding: .3rem .4rem; border-radius: 6px; transition: color .15s ease;
  }
  .primary-nav a:hover { color: var(--gold-deep); }
  .header-cta { margin-left: .5rem; }
  .theme-toggle {
    font-family: 'IBM Plex Mono', monospace; font-size: .78rem;
    background: transparent; border: 1px solid var(--paper-line); color: var(--ink-soft);
    border-radius: 999px; padding: .45rem .8rem; cursor: pointer; transition: all .15s ease;
  }
  .theme-toggle:hover { border-color: var(--gold); color: var(--gold-deep); }

  /* ---------- Hero ---------- */
  .hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
  .hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(60% 90% at 85% 10%, var(--gold-tint) 0%, transparent 60%),
      radial-gradient(50% 70% at 0% 90%, var(--sage-tint) 0%, transparent 55%);
    opacity: .55;
  }
  .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; position: relative; }
  .hero-copy h1 { font-size: clamp(2.9rem, 7vw, 4.6rem); letter-spacing: -.02em; margin: .2rem 0 .6rem; }
  .hero-copy h1 em { font-style: italic; color: var(--gold-deep); }
  .subtitle { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink-soft); margin: 0 0 1.4rem; }
  .tagline { font-family: 'IBM Plex Mono', monospace; font-size: .9rem; color: var(--gold-deep); margin: 0 0 1.4rem; }
  .dek { margin: 0 0 1rem; max-width: 56ch; }
  .dek strong { font-weight: 600; }
  .helper-note { font-size: .82rem; color: var(--ink-faint); margin: 0; }
  .cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
  .hero-cover { position: relative; }
  .hero-cover img {
    width: min(380px, 100%); height: auto; aspect-ratio: 5 / 8;
    margin: 0 auto; border-radius: 10px;
    box-shadow: var(--shadow-md); transform: rotate(1.5deg);
    transition: transform .4s ease;
  }
  .hero-cover img:hover { transform: rotate(0deg) translateY(-4px); }
  .cover-halo { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, var(--gold-tint), transparent 70%); z-index: -1; }

  /* ---------- Sections ---------- */
  section { padding: clamp(3rem, 7vw, 5rem) 0; scroll-margin-top: 84px; }
  .section-head { max-width: 62ch; margin-bottom: 2.2rem; }
  .section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.01em; margin-bottom: .8rem; }
  .section-head p { color: var(--ink-soft); margin: 0; }
  .pullquote {
    font-family: 'Fraunces', serif; font-style: italic; font-size: 1.3rem;
    color: var(--gold-deep); margin: 1.2rem 0;
  }
  .rule { border: none; border-top: 1px solid var(--paper-line); margin: 0; }

  .read-panel {
    background: var(--paper-raised); border: 1px solid var(--paper-line);
    border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-sm);
  }
  .read-panel .prose { max-width: 62ch; }
  .read-panel .prose p { margin: 0 0 1rem; }
  .read-source { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--paper-line); }

  /* ---------- Practice band ---------- */
  .band {
    background: var(--band-ink); color: var(--band-paper);
    padding: clamp(3rem, 7vw, 5rem) 0; scroll-margin-top: 84px;
  }
  .band .eyebrow { color: var(--band-gold); }
  .band .section-head h2 { color: var(--band-paper); }
  .band .section-head p { color: #b9bccf; }
  .quote-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.2rem; }
  .mini-quote {
    font-family: 'Fraunces', serif; font-style: italic; font-size: 1.05rem; margin: 0;
    background: var(--band-ink-raised); border: 1px solid var(--band-line);
    padding: .8rem 1.1rem; border-radius: var(--radius-sm); color: var(--band-paper);
  }
  .mini-quote cite { display: block; font-family: 'IBM Plex Mono', monospace; font-style: normal; font-size: .72rem; letter-spacing: .08em; color: var(--band-gold); margin-top: .35rem; }
  .try-note { color: #b9bccf; max-width: 60ch; margin: 0 0 1.6rem; }

  .mode-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
  .mode-tab {
    font-family: 'IBM Plex Mono', monospace; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
    background: transparent; color: #b9bccf; border: 1px solid var(--band-line);
    border-radius: 999px; padding: .5rem 1rem; cursor: pointer; transition: all .15s ease;
  }
  .mode-tab:hover { border-color: var(--band-gold); color: var(--band-paper); }
  .mode-tab.active { background: var(--band-gold); color: #14151f; border-color: var(--band-gold); font-weight: 500; }

  .practice { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
  .intent-line { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.1rem; color: var(--band-gold); margin: 0 0 1.2rem; }
  .steps .s-body { flex: 1; font-size: .95rem; }
  .steps .s-body b { color: var(--band-paper); }
  .s-list { margin: .5rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .5rem; }
  .s-list li { padding-left: 1.1rem; position: relative; }
  .s-list li::before { content: "→"; position: absolute; left: 0; color: var(--band-gold); font-size: .8em; }
  .s-quote { margin: .5rem 0 0; font-style: italic; color: #aeb2c4; background: var(--band-ink); border-left: 2px solid var(--band-gold); border-radius: 0 6px 6px 0; padding: .6rem .8rem; }
  .run-cta {
    margin-top: 2.2rem; padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, #2a2410, var(--band-ink-raised));
    border: 1px solid var(--band-gold); border-radius: var(--radius-sm);
    display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
  }
  .run-cta[hidden] { display: none !important; }
  .run-cta-title { font-family: 'Fraunces', serif; font-size: 1.3rem; color: var(--band-gold); margin: 0 0 .3rem; }
  .run-cta-text { color: #c9ccdc; margin: 0; max-width: 52ch; font-size: .95rem; }
  .steps { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.4rem; }
  .steps > div {
    display: flex; gap: .9rem; align-items: flex-start;
    background: var(--band-ink-raised); border: 1px solid var(--band-line);
    border-radius: var(--radius-sm); padding: .95rem 1.1rem;
    color: #c9ccdc; opacity: .72; transition: all .25s ease;
  }
  .steps > div.active { opacity: 1; border-color: var(--band-gold); box-shadow: 0 0 0 1px var(--band-gold) inset; }
  .steps .n { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--band-gold); padding-top: .2rem; }
  .transcript { min-height: 4.5rem; }
  .t-hint { color: #b9bccf; margin: 0; font-size: .95rem; }
  .t-line { margin: 0 0 .6rem; color: #d6d9e8; font-size: .98rem; }
  .t-line .who { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--band-gold); display: block; margin-bottom: .1rem; }
  .gems { margin-top: 1.4rem; display: grid; gap: .7rem; }
  .gems > div { background: var(--band-ink-raised); border: 1px solid var(--band-line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; }
  .gem-name { font-family: 'Fraunces', serif; font-size: 1.02rem; color: var(--band-gold); }
  .gem-quote { margin: .3rem 0 0; color: #c9ccdc; font-size: .95rem; }
  .gems-source { font-size: .8rem; color: #8b8fa6; margin: .4rem 0 0; }
  .gems-intro { font-family: 'Fraunces', serif; font-style: italic; color: var(--band-gold); margin: 0 0 .8rem; }
  .gems-band { margin-top: 3rem; padding-top: 2.4rem; border-top: 1px solid var(--band-line); }
  .gems-band h3 { color: var(--band-paper); font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .6rem; }
  .gems-band-note { color: #b9bccf; max-width: 62ch; margin: 0 0 1.6rem; }
  .gems-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
  .gem-chip {
    background: var(--band-ink-raised); border: 1px solid var(--band-line); border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem;
  }
  .gem-chip-num { font-family: 'IBM Plex Mono', monospace; font-size: .72rem; letter-spacing: .12em; color: var(--band-gold); }
  .gem-chip-name { font-family: 'Fraunces', serif; font-size: 1.05rem; color: var(--band-paper); line-height: 1.25; }
  .gem-chip-name em { font-style: italic; color: var(--band-gold); font-size: .85em; }

  .dial-wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
  .dial { position: relative; width: min(230px, 100%); aspect-ratio: 1; }
  .dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .dial-ring-bg { fill: none; stroke: var(--band-line); stroke-width: 4; }
  .dial-ring { fill: none; stroke: var(--band-gold); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .9s linear; }
  .dial-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .dial-time { font-family: 'Fraunces', serif; font-size: 3.4rem; line-height: 1; color: var(--band-paper); }
  .dial-phase { font-family: 'IBM Plex Mono', monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--band-gold); margin-top: .3rem; }
  .dial-instruction { color: #b9bccf; max-width: 30ch; margin: 0; font-size: .95rem; min-height: 2.6rem; }

  /* ---------- Share ---------- */
  .comment-form { display: flex; flex-direction: column; gap: .8rem; max-width: 640px; }
  .comment-form input, .comment-form textarea {
    font: inherit; color: var(--ink); background: var(--paper-raised);
    border: 1px solid var(--paper-line); border-radius: var(--radius-sm);
    padding: .9rem 1.1rem; width: 100%;
  }
  .comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
  .form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .comment-status { font-size: .85rem; color: var(--ink-faint); margin: 0; }
  .comment-status.is-error { color: #b4442c; }
  .comments-list { margin-top: 2rem; display: grid; gap: .8rem; max-width: 640px; }
  .comment-empty { color: var(--ink-faint); font-style: italic; }
  .comment-card { background: var(--paper-raised); border: 1px solid var(--paper-line); border-radius: var(--radius-sm); padding: 1rem 1.2rem; }
  .comment-name { font-family: 'IBM Plex Mono', monospace; font-size: .78rem; letter-spacing: .08em; color: var(--gold-deep); text-transform: uppercase; }
  .comment-date { font-size: .78rem; color: var(--ink-faint); margin-left: .6rem; }
  .comment-text { margin: .5rem 0 0; }

  /* ---------- Teaser cards ---------- */
  .teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .teaser-card {
    background: var(--paper-raised); border: 1px solid var(--paper-line);
    border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .9rem;
  }
  .teaser-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
  .teaser-label { font-family: 'Fraunces', serif; font-size: 1.15rem; }
  .teaser-badge {
    font-family: 'IBM Plex Mono', monospace; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
    background: var(--gold-tint); color: var(--gold-deep); border-radius: 999px; padding: .28rem .7rem;
  }
  .teaser-play {
    font: inherit; text-align: left; cursor: pointer;
    background: transparent; border: 1px dashed var(--paper-line); border-radius: var(--radius-sm);
    padding: .85rem 1rem; color: var(--ink-soft); display: flex; gap: .7rem; align-items: center;
    transition: all .15s ease;
  }
  .teaser-play:disabled { cursor: default; opacity: .8; }
  .teaser-play .glyph {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--gold); display: inline-flex; align-items: center; justify-content: center;
  }
  .teaser-play .glyph::after { content: ""; border-left: 8px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
  .teaser-note { font-size: .92rem; color: var(--ink-soft); margin: 0; }
  .voices { margin: 1.6rem 0 0; color: var(--ink-soft); }
  .voices a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

  /* ---------- Gift ---------- */
  .gift-card {
    background: linear-gradient(135deg, var(--gold-tint), var(--paper-raised));
    border: 1px solid var(--paper-line); border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm);
    display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between;
  }
  .gift-card h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .5rem; }
  .gift-card p { color: var(--ink-soft); margin: 0; max-width: 52ch; }

  /* ---------- TOC ---------- */
  .toc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 2rem; }
  .toc-item {
    display: flex; gap: 1rem; align-items: baseline;
    background: var(--paper-raised); border: 1px solid var(--paper-line);
    border-radius: var(--radius-sm); padding: .85rem 1.1rem;
  }
  .toc-num { font-family: 'IBM Plex Mono', monospace; font-size: .74rem; color: var(--gold-deep); flex: none; min-width: 3.4em; }
  .toc-title { font-family: 'Fraunces', serif; font-size: 1.05rem; }
  .lineage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .lineage-item { background: var(--paper-raised); border: 1px solid var(--paper-line); border-radius: var(--radius-sm); padding: 1.2rem 1.3rem; }
  .lineage-item p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

  /* ---------- Tiers ---------- */
  .tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .tier-card {
    background: var(--paper-raised); border: 1px solid var(--paper-line);
    border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .6rem;
  }
  .tier-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-md); }
  .tier-name { font-family: 'Fraunces', serif; font-size: 1.2rem; }
  .tier-price { font-family: 'IBM Plex Mono', monospace; font-size: .8rem; letter-spacing: .06em; color: var(--gold-deep); }
  .tier-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
  .tier-card a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
  .community-note { max-width: 64ch; color: var(--ink-soft); margin: 1.8rem 0 0; }
  .helper-note { font-size: .82rem; color: var(--ink-faint); }

  /* ---------- Author ---------- */
  .author-row { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: start; }
  .author-mark {
    width: 92px; height: 92px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sage), var(--gold));
    color: #fff; font-family: 'Fraunces', serif; font-size: 1.9rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
  }
  .author-row .name { font-family: 'Fraunces', serif; font-size: 1.25rem; margin: 0 0 .6rem; }
  .author-row p { color: var(--ink-soft); margin: 0 0 .8rem; max-width: 64ch; }

  /* ---------- Footer ---------- */
  .site-footer { border-top: 1px solid var(--paper-line); padding: 2.4rem 0 3rem; }
  .footer-row { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 1.3rem; }
  .footer-links a { text-decoration: none; color: var(--ink-soft); font-size: .92rem; }
  .footer-links a:hover { color: var(--gold-deep); }
  .footer-fine { color: var(--ink-faint); font-size: .85rem; margin: 0; }

  /* ---------- Reveal ---------- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

  /* ---------- Responsive ---------- */
  @media (max-width: 900px) {
    .hero-grid, .practice { grid-template-columns: 1fr; }
    .hero-cover { order: -1; }
    .hero-cover img { width: min(240px, 70%); }
    .teaser-grid, .tier-grid, .lineage { grid-template-columns: 1fr; }
    .gems-grid { grid-template-columns: repeat(2, 1fr); }
    .toc-list { grid-template-columns: 1fr; }
    .author-row { grid-template-columns: 1fr; }
    .primary-nav { display: none; }
    .header-cta { margin-left: auto; }
  }
