:root {
    --navy-950: #07111f;
    --navy-900: #0d1b2a;
    --navy-800: #13263e;
    --navy-700: #1d3858;
    --ink: #172235;
    --muted: #5d6673;
    --cream: #f4efe4;
    --cream-deep: #e9dfca;
    --paper: #fffdf8;
    --white: #ffffff;
    --gold: #c79a42;
    --gold-light: #e2be73;
    --gold-dark: #855c18;
    --line: #d9cfbc;
    --success: #256946;
    --danger: #9e372a;
    --shadow: 0 24px 70px rgba(6, 17, 31, .16);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
::selection { background: var(--gold-light); color: var(--navy-950); }

.container, .container-wide { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.container-wide { width: min(1360px, calc(100% - 40px)); }
.narrow { max-width: 800px; }
.centered { text-align: center; }
.muted { color: var(--muted); }
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy-900); color: var(--paper); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -80px; background: var(--paper); color: var(--navy-950); padding: 10px 16px; border-radius: 0 0 8px 8px; font-weight: 800; }
.skip-link:focus { top: 0; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.08; letter-spacing: -.026em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.14; overflow-wrap: anywhere; margin: 0 0 24px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); margin: 0 0 22px; }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin: 0 0 14px; }
p { margin: 0 0 1.15em; }
.lede { font-family: var(--serif); font-size: clamp(1.18rem, 2.1vw, 1.5rem); line-height: 1.55; color: var(--muted); }
.eyebrow { margin: 0 0 16px; color: var(--gold-dark); font-size: .74rem; line-height: 1.35; letter-spacing: .16em; text-transform: uppercase; font-weight: 900; }
.eyebrow.light { color: var(--gold-light); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 6px; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 900; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--navy-950); }
.button-gold:hover { background: var(--gold-light); }
.button-dark { background: var(--navy-900); color: var(--paper); }
.button-dark:hover { background: var(--navy-700); }
.button-ghost { border-color: rgba(255, 255, 255, .45); color: var(--paper); background: rgba(255, 255, 255, .04); }
.button-ghost:hover { border-color: var(--gold-light); }
.button-muted { background: rgba(255, 255, 255, .1); color: var(--paper); cursor: default; }
.button-muted:hover { transform: none; }
.text-link, .card-link { color: var(--gold-dark); font-weight: 850; text-decoration: none; }
.text-link:hover, .card-link:hover { text-decoration: underline; }
.light-link { color: var(--gold-light); }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(7, 17, 31, .97); color: var(--paper); box-shadow: 0 1px 0 rgba(255, 255, 255, .09); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { position: relative; width: 39px; height: 39px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 10px 6px 6px; border-bottom: 3px solid var(--gold); }
.brand-mark::before { content: ""; position: absolute; left: 2px; right: 2px; top: 4px; border-left: 17px solid transparent; border-right: 17px solid transparent; border-bottom: 7px solid var(--cream); }
.brand-mark span { position: absolute; left: 4px; right: 4px; top: 13px; height: 3px; background: var(--gold); }
.brand-mark i { height: 18px; background: var(--cream); display: block; }
.brand-words { display: grid; line-height: 1; }
.brand-words strong { color: var(--paper); font-family: var(--serif); font-size: 1rem; letter-spacing: .02em; }
.brand-words small { margin-top: 4px; color: var(--gold-light); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
.primary-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.primary-nav a { position: relative; font-size: .77rem; letter-spacing: .055em; text-transform: uppercase; font-weight: 750; text-decoration: none; color: #e7e7e4; }
.primary-nav a:not(.nav-account)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--gold); transition: right .18s ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.primary-nav .nav-community { color: var(--gold-light); }
.primary-nav .nav-account { padding: 9px 14px; border: 1px solid rgba(255,255,255,.26); border-radius: 4px; }
.primary-nav .nav-account:hover { border-color: var(--gold); }
.menu-toggle { display: none; width: 45px; height: 42px; padding: 9px; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; }
.menu-toggle i { display: block; height: 2px; margin: 4px 0; background: var(--paper); }
.admin-bar { background: var(--gold); color: var(--navy-950); }
.admin-bar .container-wide { min-height: 38px; display: flex; align-items: center; gap: 22px; overflow-x: auto; }
.admin-bar strong, .admin-bar a { white-space: nowrap; font-size: .75rem; font-weight: 850; text-decoration: none; }
.admin-bar a:hover { text-decoration: underline; }

.flash-stack { position: relative; z-index: 5; padding-top: 16px; }
.flash { border-left: 5px solid var(--navy-700); background: var(--paper); box-shadow: 0 8px 30px rgba(7,17,31,.12); padding: 13px 16px; margin-bottom: 8px; font-weight: 700; }
.flash-success { border-color: var(--success); }
.flash-warning { border-color: var(--gold-dark); }
.flash-danger { border-color: var(--danger); }

.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(850px, calc(100vh - 82px)); background: radial-gradient(circle at 75% 35%, #25486e 0, var(--navy-900) 36%, var(--navy-950) 78%); color: var(--paper); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(112deg, rgba(7,17,31,.22) 42%, rgba(7,17,31,.85)), repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.025) 80px); }
.hero-texture { position: absolute; right: -8%; top: -16%; width: 58vw; aspect-ratio: 1; opacity: .085; border: 2px solid var(--gold-light); border-radius: 50%; box-shadow: 0 0 0 70px var(--gold-light), 0 0 0 140px transparent, 0 0 0 142px var(--gold-light); }
.hero-grid { min-height: min(850px, calc(100vh - 82px)); display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(280px, .7fr); align-items: center; gap: clamp(55px, 8vw, 120px); padding-block: clamp(70px, 9vw, 120px); }
.hero-copy { position: relative; z-index: 2; max-width: 750px; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.25rem); line-height: .96; letter-spacing: -.05em; text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.hero h1 span { display: inline-block; margin-left: .7em; color: var(--gold-light); font-style: italic; font-size: .57em; letter-spacing: -.035em; white-space: nowrap; }
.hero-subtitle { max-width: 660px; color: #d6dce3; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.48rem); line-height: 1.45; }
.hero-author { color: var(--gold-light); letter-spacing: .13em; text-transform: uppercase; font-size: .78rem; font-weight: 850; }
.hero-quote { max-width: 620px; margin: 42px 0 0; padding: 18px 0 18px 22px; border-left: 2px solid var(--gold); color: #cad3dd; font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.hero-book { position: relative; justify-self: center; width: min(390px, 100%); perspective: 1400px; }
.hero-book img { position: relative; border-radius: 2px 7px 7px 2px; box-shadow: -22px 28px 70px rgba(0,0,0,.52), -6px 6px 0 #06101d; transform: rotateY(-8deg) rotateZ(1deg); }
.hero-book::after { content: ""; position: absolute; left: 9%; right: -4%; bottom: -34px; height: 35px; background: rgba(0,0,0,.38); filter: blur(18px); border-radius: 50%; }
.book-glow { position: absolute; inset: 8% -12% 0; background: var(--gold); opacity: .16; filter: blur(80px); }

.manifesto { position: relative; background: var(--paper); }
.manifesto::before { content: "“"; position: absolute; left: 6vw; top: 20px; color: var(--cream-deep); font-family: var(--serif); font-size: 16rem; line-height: 1; }
.manifesto h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.manifesto .lede { max-width: 730px; margin-inline: auto; }
.section-heading { margin-bottom: 44px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .72fr); align-items: end; gap: 70px; }
.split-heading p:last-child { color: var(--muted); font-size: 1.08rem; }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { min-height: 330px; padding: 30px; background: var(--paper); border-top: 4px solid var(--navy-900); box-shadow: 0 10px 32px rgba(18,30,44,.07); transition: transform .2s ease, box-shadow .2s ease; }
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.topic-card > span { display: block; color: var(--gold-dark); font-family: var(--serif); font-size: 2.8rem; line-height: 1; margin-bottom: 55px; }
.topic-card p { color: var(--muted); }

.method-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(400px,1.1fr); gap: clamp(60px,9vw,130px); align-items: center; }
.method-list { list-style: none; padding: 0; margin: 0; }
.method-list li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.method-list li:first-child { border-top: 1px solid var(--line); }
.method-list li > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-dark); font-family: var(--serif); font-size: 1.25rem; }
.method-list strong { font-family: var(--serif); font-size: 1.35rem; }
.method-list p { margin: 3px 0 0; color: var(--muted); }
.light-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card { position: relative; display: flex; flex-direction: column; min-height: 355px; padding: 32px; background: #15283e; border: 1px solid rgba(255,255,255,.1); }
.article-card::before { content: ""; position: absolute; top: -1px; left: 32px; width: 58px; height: 3px; background: var(--gold); }
.article-card h2, .article-card h3 { font-size: 1.72rem; }
.article-card h2 a, .article-card h3 a { text-decoration: none; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--gold-light); }
.article-card > p:not(.card-topic) { color: #bdc8d3; }
.card-topic { color: var(--gold-light); font-size: .71rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.article-card .card-link { margin-top: auto; color: var(--gold-light); }
.article-grid-light .article-card { background: var(--paper); color: var(--ink); border-color: var(--line); }
.article-grid-light .article-card > p:not(.card-topic) { color: var(--muted); }
.article-grid-light .card-topic { color: var(--gold-dark); }
.article-grid-light .article-card .card-link { color: var(--gold-dark); }
.article-grid-light .article-card h2 a:hover { color: var(--gold-dark); }
.card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .82rem; }

.community-bridge { background: var(--gold); color: var(--navy-950); }
.community-bridge .eyebrow { color: var(--navy-950); }
.bridge-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(55px,9vw,130px); align-items: center; }
.bridge-grid p { font-size: 1.08rem; }
.reader-cta { background: var(--paper); }
.reader-cta .narrow { max-width: 780px; }

.page-hero { padding: clamp(48px,6vw,80px) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { color: var(--navy-900); }
.page-hero-dark { color: var(--paper); background: radial-gradient(circle at 82% 20%, #23466b 0, var(--navy-900) 39%, var(--navy-950) 90%); border: 0; }
.page-hero-dark h1 { color: var(--paper); }
.page-hero-dark .lede { color: #c9d2dc; }
.series-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; margin-bottom: 80px; }
.series-intro > p { color: var(--muted); font-size: 1.1rem; }
.series-number { display: block; color: var(--gold-dark); font-weight: 850; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; margin-bottom: 12px; }
.book-list { display: grid; gap: 72px; }
.book-row { display: grid; grid-template-columns: minmax(220px, 330px) minmax(0,1fr); gap: clamp(45px,8vw,110px); align-items: center; padding-top: 72px; border-top: 1px solid var(--line); }
.book-row-cover img { box-shadow: var(--shadow); }
.book-row h2 a, .book-card h2 a { text-decoration: none; }
.book-row h2 a:hover, .book-card h2 a:hover { color: var(--gold-dark); }
.book-subtitle { max-width: 720px; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--muted); }
.books-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; }
.book-card { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start; background: var(--paper); padding: 28px; border: 1px solid var(--line); }
.book-card-cover img { box-shadow: 0 15px 35px rgba(6,17,31,.22); }
.book-card h2 { font-size: 1.9rem; }
.book-card p { color: var(--muted); }

.book-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 23% 42%, #284d73 0, var(--navy-900) 35%, var(--navy-950) 84%); color: var(--paper); padding: clamp(48px,6vw,88px) 0; }
.book-hero::before { content:""; position:absolute; inset:0; background: repeating-linear-gradient(90deg, transparent 0 94px, rgba(255,255,255,.025) 95px); }
.book-hero-grid { position: relative; display: grid; grid-template-columns: minmax(260px, 390px) minmax(0,1fr); gap: clamp(55px,8vw,110px); align-items: center; }
.book-detail-cover img { box-shadow: -18px 25px 65px rgba(0,0,0,.48), -5px 5px 0 #06101d; }
.book-detail-copy h1 { font-size: clamp(2.2rem,4.5vw,3.75rem); }
.book-detail-subtitle { max-width: 720px; color: #d1dae3; font-family: var(--serif); font-size: clamp(1.25rem,2.4vw,1.75rem); line-height: 1.45; }
.book-detail-author { color: var(--gold-light); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; }
.book-status { display: inline-block; margin: 8px 0; padding: 5px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 99px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 900; }
.status-available { color: #bce8ce; border-color: #66b98a; }
.save-form { margin: 15px 0; }
.save-button { padding: 0; border: 0; background: transparent; color: var(--gold-light); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.reading-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 310px); justify-content: space-between; gap: 75px; align-items: start; }
.prose { font-family: var(--serif); font-size: clamp(1.08rem,1.6vw,1.22rem); line-height: 1.78; }
.prose h2 { margin-top: 1.65em; font-size: clamp(1.75rem,3vw,2.55rem); }
.prose h3 { margin-top: 1.6em; }
.prose a { color: var(--gold-dark); }
.prose blockquote { margin: 2em 0; padding: 15px 0 15px 25px; border-left: 3px solid var(--gold); font-size: 1.15em; font-style: italic; }
.prose li { margin-bottom: .55em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.book-facts, .article-aside { position: sticky; top: 120px; }
.book-facts { padding: 28px; background: var(--cream); border-top: 4px solid var(--gold); }
.book-facts h2 { font-size: 1.45rem; }
.book-facts dl { margin: 0 0 24px; }
.book-facts dl > div { padding: 13px 0; border-bottom: 1px solid var(--line); }
.book-facts dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.book-facts dd { margin: 3px 0 0; font-family: var(--serif); }

.article-hero { padding: clamp(48px,6vw,80px) 0; background: radial-gradient(circle at 80% 30%, #234568, var(--navy-900) 42%, var(--navy-950)); color: var(--paper); }
.article-title { max-width: 920px; }
.article-title h1 { font-size: clamp(2rem,4vw,3.25rem); }
.article-title .lede { color: #ced7df; max-width: 800px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--gold-light); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; }
.article-prose > p:first-child::first-letter { float: left; padding: .11em .11em 0 0; color: var(--gold-dark); font-size: 4em; line-height: .72; }
.article-note { padding: 22px; background: var(--cream); font-family: var(--sans); font-size: .88rem; line-height: 1.55; }
.aside-card { margin-bottom: 18px; padding: 24px; background: var(--cream); border-top: 3px solid var(--gold); }
.aside-card p { margin-bottom: 12px; }
.aside-card a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 750; }
.aside-card a:hover { color: var(--gold-dark); }
.dark-save { color: var(--gold-dark); }
.resource-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.resource-card { padding: 30px; background: var(--paper); border: 1px solid var(--line); }
.resource-card h2 { font-size: 1.7rem; }
.resource-card h2 a { text-decoration: none; }
.resource-card h2 a:hover { color: var(--gold-dark); }
.resource-card p { color: var(--muted); }
.resource-card .card-topic { color: var(--gold-dark); }
.resource-source { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.source-caution { max-width: 780px; margin: 60px 0 0; padding: 28px 30px; border-left: 4px solid var(--gold); background: rgba(255,255,255,.55); }
.source-caution h2 { font-size: 1.5rem; }
.error-code { color: var(--gold-light); font: 6rem/1 var(--serif); margin: 0; }

.site-footer { padding: 75px 0 28px; background: var(--navy-950); color: #c9d0d7; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 60px; }
.footer-grid h2 { color: var(--paper); font: 800 .72rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div > a { display: block; padding: 6px 0; color: #c9d0d7; text-decoration: none; font-size: .9rem; }
.footer-grid > div > a:hover { color: var(--gold-light); }
.brand-footer { margin-bottom: 18px; }
.footer-identity p { max-width: 340px; font-family: var(--serif); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 55px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); font-size: .72rem; }
.footer-bottom p { margin: 0; }

/* Forms and account areas */
.form-shell { min-height: 70vh; padding: clamp(60px,8vw,105px) 0; background: var(--cream); }
.form-card { width: min(620px, 100%); margin-inline: auto; padding: clamp(26px,5vw,48px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(7,17,31,.08); }
.form-card-wide { width: min(920px,100%); }
.form-card h1 { font-size: clamp(1.9rem,4vw,2.5rem); }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 6px; color: var(--navy-900); font-size: .78rem; letter-spacing: .04em; font-weight: 850; }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 46px; padding: 11px 12px; color: var(--ink); background: var(--white); border: 1px solid #a79c89; border-radius: 5px; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(199,154,66,.2); outline: 0; }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.check-field input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold-dark); }
.check-field label { font-size: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; }
.form-actions button { cursor: pointer; }
.form-link { color: var(--gold-dark); font-weight: 750; }
.form-error { margin-bottom: 20px; padding: 13px 15px; border-left: 4px solid var(--danger); background: #fff0ed; color: #71261d; font-weight: 700; }
.form-success { margin-bottom: 20px; padding: 13px 15px; border-left: 4px solid var(--success); background: #e9f7ef; color: #184b32; font-weight: 700; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.code-input { font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; font-weight: 800; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.account-shell, .admin-shell { padding: clamp(55px,7vw,90px) 0; background: var(--cream); min-height: 70vh; }
.account-header, .admin-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.account-header h1, .admin-header h1 { font-size: clamp(1.9rem,4vw,2.5rem); margin: 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: start; }
.panel { padding: 28px; background: var(--paper); border: 1px solid var(--line); }
.panel h2 { font-size: 1.55rem; }
.saved-list { list-style: none; padding: 0; margin: 0; }
.saved-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.saved-list a { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; text-decoration: none; }
.saved-list a:hover { color: var(--gold-dark); }
.saved-list small { display: block; margin-top: 3px; color: var(--muted); }
.security-key { display: block; padding: 13px; background: var(--navy-950); color: var(--gold-light); border-radius: 4px; font: 700 1rem/1.5 ui-monospace,monospace; overflow-wrap: anywhere; }
.uri-box { padding: 12px; background: var(--cream); overflow-wrap: anywhere; font-size: .75rem; }
.totp-setup-grid { display: grid; grid-template-columns: 256px minmax(0,1fr); align-items: center; gap: 28px; margin: 24px 0; }
.totp-qr { width: 256px; max-width: 100%; background: #ffffff; color: var(--ink); }
.totp-qr svg { display: block; width: 100%; height: auto; }
.totp-instructions { min-width: 0; overflow-wrap: anywhere; }
.totp-instructions ol { margin: 0 0 20px; padding-left: 22px; }
.totp-instructions li { margin-bottom: 10px; }
.totp-instructions p { margin: 0; font-size: .9rem; }
.totp-manual { margin-top: 24px; }
.totp-manual summary { color: var(--navy-900); font-weight: 800; cursor: pointer; }
.totp-manual > p { margin-top: 12px; font-size: .9rem; }
.totp-manual .security-key { min-height: 78px; resize: none; font: 700 1rem/1.5 ui-monospace,monospace; letter-spacing: .025em; overflow-wrap: anywhere; }
.totp-confirm { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.totp-confirm .field { max-width: 250px; }
.totp-restart { margin-top: 24px; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--gold-dark); font-weight: 800; text-align: left; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.panel + .panel { margin-top: 24px; }
.recovery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px 18px; padding: 20px; background: var(--navy-950); color: var(--paper); font-family: ui-monospace,monospace; }

/* Administration */
.admin-context .site-header { position: relative; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.admin-nav a { padding: 8px 12px; background: var(--navy-900); color: var(--paper); border-radius: 4px; text-decoration: none; font-size: .78rem; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.stat { padding: 25px; background: var(--paper); border-top: 4px solid var(--gold); }
.stat strong { display: block; font: 2.4rem/1 var(--serif); }
.stat span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.admin-table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.admin-table th, .admin-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: var(--navy-900); color: var(--paper); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-table a { color: var(--gold-dark); font-weight: 800; }
.inline-form { display: inline; }
.danger-link { padding: 0; border: 0; background: transparent; color: var(--danger); font-weight: 800; text-decoration: underline; cursor: pointer; }
.admin-form { padding: clamp(24px,4vw,42px); background: var(--paper); border: 1px solid var(--line); }
.admin-form .field textarea.editor { min-height: 420px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; }
.admin-form .field textarea.short-editor { min-height: 180px; }
.status-pill { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 850; }
.upload-result { padding: 20px; background: #e9f7ef; border-left: 4px solid var(--success); }
.copy-row { display: flex; gap: 8px; align-items: stretch; }
.copy-row input { flex: 1; min-width: 0; }
.copy-button { min-height: 44px; border: 0; background: var(--navy-900); color: var(--paper); padding: 8px 16px; border-radius: 5px; cursor: pointer; font-weight: 800; }

@media (max-width: 1050px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .topic-card { min-height: 280px; }
    .topic-card > span { margin-bottom: 28px; }
    .article-grid { grid-template-columns: 1fr 1fr; }
    .article-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }
    .footer-grid > div:last-child { grid-column: 2; }
    .books-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 82px; left: 0; right: 0; padding: 18px 20px 25px; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 35px rgba(0,0,0,.25); }
    .primary-nav.is-open { display: grid; }
    .primary-nav a { padding: 10px 0; }
    .primary-nav a:not(.nav-account)::after { display: none; }
    .primary-nav .nav-account { text-align: center; margin-top: 5px; }
    .hero-grid { grid-template-columns: 1fr .55fr; gap: 40px; }
    .hero h1 { font-size: clamp(2.75rem,6.5vw,4rem); }
    .hero h1 span { margin-left: .2em; }
    .method-grid { grid-template-columns: 1fr; }
    .bridge-grid, .split-heading, .series-intro { grid-template-columns: 1fr; gap: 35px; }
    .reading-grid { grid-template-columns: 1fr; }
    .book-facts, .article-aside { position: static; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .container, .container-wide { width: min(100% - 28px, 1180px); }
    .section { padding: 66px 0; }
    .hero { min-height: auto; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-block: 62px 82px; }
    .hero-copy { text-align: center; }
    .hero h1 span { display: block; margin: .22em 0 0; }
    .hero-subtitle, .hero-quote { margin-inline: auto; }
    .hero .button-row { justify-content: center; }
    .hero-book { width: min(300px, 72vw); order: -1; }
    .hero-book img { transform: rotateY(-5deg) rotateZ(1deg); }
    .manifesto::before { display: none; }
    .topic-grid, .article-grid, .resource-grid, .books-grid { grid-template-columns: 1fr; }
    .article-card:last-child:nth-child(odd) { grid-column: auto; }
    .light-heading { display: block; }
    .light-heading .text-link { display: inline-block; margin-bottom: 28px; }
    .book-row { grid-template-columns: 1fr; }
    .book-row-cover { width: min(300px, 75vw); }
    .book-card { grid-template-columns: 130px 1fr; padding: 20px; }
    .book-card h2 { font-size: 1.5rem; }
    .book-card p:not(.eyebrow):not(.book-subtitle) { display: none; }
    .book-hero-grid { grid-template-columns: 1fr; }
    .book-detail-cover { width: min(310px, 72vw); margin-inline: auto; }
    .book-detail-copy { text-align: center; }
    .book-detail-copy .button-row { justify-content: center; }
    .article-byline { display: grid; gap: 7px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
    .footer-identity { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { display: grid; }
    .field-grid, .account-grid { grid-template-columns: 1fr; }
    .account-header, .admin-header { align-items: start; flex-direction: column; gap: 14px; }
    .totp-setup-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .totp-qr { margin-inline: auto; }
    .totp-panel { padding: 22px; }
}

@media (max-width: 470px) {
    body { font-size: 15px; }
    .brand-words strong { font-size: .9rem; }
    .brand-words small { font-size: .61rem; }
    .topic-card { min-height: auto; }
    .button { width: 100%; }
    .button-row { display: grid; }
    .book-card { grid-template-columns: 95px 1fr; gap: 18px; }
    .book-card .book-subtitle { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-identity, .footer-grid > div:last-child { grid-column: auto; }
    .stat-grid { grid-template-columns: 1fr; }
    .recovery-grid { grid-template-columns: 1fr; }
}

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

@media print {
    .site-header, .site-footer, .button, .save-form, .article-aside { display: none !important; }
    body { background: white; color: black; font-size: 12pt; }
    .section, .article-hero, .page-hero { padding: 20px 0; background: white; color: black; }
    .article-title h1, .page-hero h1 { color: black; }
    a { color: black; text-decoration: none; }
    .reading-grid { display: block; }
}
