/* The ThinKing Queen — site styles */
@font-face { font-family: "TTQ Garamond"; src: url("../fonts/TTQGaramond-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TTQ Garamond"; src: url("../fonts/TTQGaramond-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "TTQ Garamond"; src: url("../fonts/TTQGaramond-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "TTQ Garamond"; src: url("../fonts/TTQGaramond-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "TTQ Cinzel"; src: url("../fonts/TTQCinzel-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TTQ Cinzel"; src: url("../fonts/TTQCinzel-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/Lato-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #FBF8F1; --parch: #F3EBDA; --parch-2: #E9DEC5; --white: #FFFFFF;
  --ink: #132347; --ink-2: #2A3350; --muted: #6B7080; --gold: #8A671F; --gold-2: #C9A45C;
  --rule: #DCD3BF; --ok: #2F6B4F; --bad: #8C3B2E;
  --serif: "TTQ Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --display: "TTQ Cinzel", "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Lato", "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 46rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink-2); font-family: var(--serif); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.eyebrow { font-family: var(--sans); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 .8rem; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(var(--measure), 100% - 2.5rem); margin-inline: auto; }
.gold { color: var(--gold); }
.two-tone .a { color: var(--ink); } .two-tone .b { color: var(--gold); }

/* ornament: line – diamond – line */
.orn { display: flex; align-items: center; gap: .6rem; color: var(--gold-2); margin: 1.2rem 0; }
.orn::before, .orn::after { content: ""; flex: 1; height: 1px; background: currentColor; max-width: 7rem; }
.orn i { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); display: block; }
.orn.center { justify-content: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, white); border-bottom: 1px solid var(--rule); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.2rem; }
.brand { font-family: var(--display); font-size: 1.15rem; letter-spacing: .02em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .b { color: var(--gold); }
.nav { display: flex; gap: 1.6rem; font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.nav a { color: var(--ink-2); text-decoration: none; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule); font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; padding: .45rem .7rem; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 1.25rem 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
}

/* hero */
.hero { background: linear-gradient(180deg, var(--parch) 0%, var(--paper) 100%); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: .3rem 0 1rem; }
.hero .tag { font-size: 1.25rem; color: var(--ink-2); max-width: 34ch; margin-bottom: 1.6rem; }
.hero .cover { justify-self: center; width: min(100%, 22rem); box-shadow: 0 30px 60px -30px rgba(19,35,71,.55), 0 8px 24px -12px rgba(19,35,71,.35); border: 1px solid var(--rule); }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero .cover { order: -1; width: min(70%, 18rem); } }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.btn { font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; text-decoration: none; padding: .8rem 1.25rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); display: inline-block; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.gold:hover { background: var(--ink); border-color: var(--ink); }
.actions .note { font-family: var(--sans); font-size: .78rem; color: var(--muted); }

/* sections */
section.band { padding: clamp(2.5rem, 6vw, 5rem) 0; }
section.band.parch { background: var(--parch); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
section.band.ink { background: var(--ink); color: #E9E2D2; }
section.band.ink h2, section.band.ink h3 { color: #F3EBDA; }
section.band.ink .eyebrow { color: var(--gold-2); }
section.band.ink a { color: var(--gold-2); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { font-size: 1.1rem; }
.lede { font-size: 1.22rem; line-height: 1.55; }

/* journey */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.journey > div { background: var(--paper); padding: 1.2rem 1.1rem 1.4rem; }
.journey .num { font-family: var(--display); color: var(--gold); font-size: 1.6rem; }
.journey h3 { margin: .2rem 0 .1rem; font-size: 1.15rem; }
.journey .ch { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.journey p { font-size: .98rem; margin: 0; }
@media (max-width: 900px) { .journey { grid-template-columns: repeat(2, 1fr); } .journey > div:last-child { grid-column: span 2; } }
@media (max-width: 520px) { .journey { grid-template-columns: 1fr; } .journey > div:last-child { grid-column: auto; } }

/* voices */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.voice { border-top: 3px solid var(--gold); padding-top: 1rem; }
.voice h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.voice p { font-size: 1.02rem; }
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } }

/* companion teaser */
.companion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; margin-top: 1.5rem; }
.chip { display: flex; gap: .8rem; align-items: baseline; border: 1px solid var(--rule); background: var(--white); padding: .8rem 1rem; text-decoration: none; color: var(--ink-2); transition: border-color .15s, transform .15s; }
.chip:hover { border-color: var(--gold-2); transform: translateY(-1px); color: var(--ink); }
.chip .n { font-family: var(--display); color: var(--gold); font-size: 1.2rem; min-width: 2rem; }
.chip .t { font-size: 1rem; line-height: 1.3; }
.chip .lock { margin-inline-start: auto; white-space: nowrap; font-family: var(--sans); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.5rem; }
.howto > div { border-left: 2px solid var(--gold-2); padding-left: 1rem; }
.howto .step { font-family: var(--display); color: var(--gold); }
@media (max-width: 720px) { .howto { grid-template-columns: 1fr; } }

/* authors */
.authors { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.author { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.3rem; align-items: start; }
.author img { width: 8.5rem; height: 8.5rem; object-fit: cover; border: 1px solid var(--rule); filter: saturate(.92); }
.author .ph { width: 8.5rem; height: 8.5rem; border: 1px solid var(--rule); background: var(--parch-2); display: grid; place-items: center; font-family: var(--display); color: var(--gold); font-size: 2rem; }
.author h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.author p { font-size: 1.02rem; }
@media (max-width: 860px) { .authors { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .author { grid-template-columns: 1fr; } }

/* authors page */
.bio { display: grid; grid-template-columns: 14rem 1fr; gap: 2.5rem; align-items: start; margin: 2.5rem 0 3.5rem; }
.bio img, .bio .ph { width: 14rem; height: 14rem; object-fit: cover; border: 1px solid var(--rule); }
.bio .ph { background: var(--parch-2); display: grid; place-items: center; font-family: var(--display); color: var(--gold); font-size: 3rem; }
.bio h2 { margin-bottom: .2rem; }
.bio .role { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } .bio img, .bio .ph { width: 11rem; height: 11rem; } }
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.book { background: var(--white); border: 1px solid var(--rule); padding: 1.1rem; display: grid; grid-template-rows: auto 1fr auto; gap: .8rem; }
.book img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border: 1px solid var(--rule); }
.book h3 { font-size: 1.1rem; }
.book .yr { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.book p { font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .books { grid-template-columns: 1fr; } }

/* editions */
.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.edition { border: 1px solid var(--rule); background: var(--white); padding: 1.3rem; text-align: center; display: grid; gap: .5rem; justify-items: center; }
.edition h3 { font-size: 1.1rem; }
.edition .isbn { font-family: var(--sans); font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
@media (max-width: 720px) { .editions { grid-template-columns: 1fr; } }

/* contents list */
.toc { columns: 2; column-gap: 2.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.toc li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--rule); display: flex; gap: .8rem; }
.toc .n { font-family: var(--display); color: var(--gold); min-width: 1.8rem; }
.toc .part { column-span: all; font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: none; padding: 1.2rem 0 .3rem; }
@media (max-width: 640px) { .toc { columns: 1; } }

/* chapter page */
.chapter-hero { background: var(--parch); border-bottom: 1px solid var(--rule); padding: clamp(2rem, 5vw, 3.5rem) 0; }
.chapter-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.chapter-hero .stand { font-size: 1.15rem; font-style: italic; color: var(--ink-2); max-width: 44rem; margin-top: 1rem; }
.gate { max-width: 34rem; margin: 3rem auto; background: var(--white); border: 1px solid var(--rule); padding: 2rem; }
.gate h2 { font-size: 1.4rem; margin-bottom: .6rem; }
.gate p { font-size: 1.02rem; }
.gate form { display: flex; gap: .6rem; margin: 1.2rem 0 .6rem; flex-wrap: wrap; }
.gate input { flex: 1 1 14rem; font-family: var(--sans); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; padding: .75rem .9rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.gate input:focus { border-color: var(--gold); }
.gate .msg { font-family: var(--sans); font-size: .85rem; min-height: 1.4em; }
.gate .msg.bad { color: var(--bad); } .gate .msg.ok { color: var(--ok); }
.gate .fine { font-size: .9rem; color: var(--muted); margin: .6rem 0 0; }
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 3rem; padding: 2.5rem 0 4rem; }
.reader article { max-width: var(--measure); }
.reader aside { position: sticky; top: 5.2rem; align-self: start; font-family: var(--sans); font-size: .82rem; }
.reader aside .eyebrow { margin-bottom: .5rem; }
.reader aside ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.reader aside li a { display: block; padding: .3rem .8rem; color: var(--ink-2); text-decoration: none; border-left: 2px solid transparent; margin-left: -1px; line-height: 1.3; }
.reader aside li a:hover { color: var(--ink); border-left-color: var(--gold); }
@media (max-width: 900px) { .reader { grid-template-columns: 1fr; } .reader aside { position: static; order: -1; } .reader aside ol { columns: 2; } }
article h2 { font-family: var(--serif); font-weight: 700; font-size: 1.55rem; margin: 2.4rem 0 .8rem; }
article h2 .num, article h3 .num { color: var(--gold); margin-right: .15rem; }
article h3 { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
article p { margin: 0 0 1.05rem; }
article ul, article ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
article li { margin-bottom: .4rem; }
article li::marker { color: var(--gold); }
article blockquote { margin: 1.4rem 0; padding: 1rem 1.2rem; background: var(--parch); border-left: 3px solid var(--gold); font-size: 1.02rem; }
article blockquote p { margin: 0; }
article blockquote p + p { margin-top: .6rem; }
article table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.2rem 0 1.6rem; }
article th, article td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
article th { font-family: var(--sans); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); border-bottom: 2px solid var(--gold-2); }
.tbl { overflow-x: auto; }
article .short { background: var(--white); border: 1px solid var(--rule); padding: 1.2rem 1.4rem 1rem; margin: 2rem 0; }
article .short h2 { margin-top: 0; font-size: 1.3rem; }
article .sources { font-size: .92rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 1.2rem; margin-top: 2.5rem; }
article .sources h2 { font-size: 1.2rem; margin-top: 0; }
article .sources ol { padding-left: 1.3rem; }
article .sources a { word-break: break-all; }
.chapter-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2.5rem; font-family: var(--sans); font-size: .85rem; }
.chapter-nav a { text-decoration: none; color: var(--ink); }
.chapter-nav a:hover { color: var(--gold); }
.locked-note { text-align: center; color: var(--muted); font-family: var(--sans); font-size: .82rem; margin-top: 1rem; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact form { display: grid; gap: .8rem; }
.contact label { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: grid; gap: .35rem; }
.contact input, .contact textarea { font-family: var(--serif); font-size: 1rem; padding: .7rem .8rem; border: 1px solid var(--rule); background: var(--white); color: var(--ink); width: 100%; }
.contact textarea { min-height: 9rem; resize: vertical; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--ink); color: #C9C3B4; padding: 2.5rem 0 2rem; margin-top: 3rem; font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #F3EBDA; font-size: 1.25rem; }
.site-footer a { color: var(--gold-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.site-footer .fine { font-size: .8rem; color: #9AA0B2; margin-top: 1.4rem; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.page-title { padding: clamp(2rem, 5vw, 3.5rem) 0 1rem; }
.page-title p { font-size: 1.15rem; max-width: 44rem; }
