/* =============================================================================
   C.L. Stegall — site styles (prototype)
   All colors reference the tokens in theme.css. Layout + components only here.
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--color-bg);
  /* Depth glow + fine film grain. Dial the grain by changing the rect opacity
     in the data-URI below (0.06 = whisper, 0.14 = strong). Currently ~0.09. */
  background-image: url("bg_black_5005.png");
  background-repeat: repeat, repeat;
  color: var(--color-text);
  font-family: var(--sans, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
:root {
  --serif: "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
  --gap: clamp(20px, 4vw, 40px);
}
img { max-width: 100%; display: block; }
a { color: var(--color-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-link-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--color-text-muted); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .28em; font-size: 12px;
  color: var(--color-text-muted); margin: 0 0 18px; font-family: var(--sans);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  font-size: 14px; letter-spacing: .03em; padding: 13px 26px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: #fff; }
.btn-gold { background: var(--color-accent-2); color: var(--color-on-accent-2); }
.btn-gold:hover { filter: brightness(1.08); color: var(--color-on-accent-2); }
.btn-outline { background: transparent; color: var(--color-text); border-color: var(--color-text-muted); }
.btn-outline:hover { border-color: var(--teal); color: var(--mint); }
.btn + .btn { margin-left: 10px; }
.btn-sm { padding: 8px 16px; font-size: 12.5px; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 39, 42, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-family: var(--serif); font-size: 20px; letter-spacing: .16em; color: var(--white);
  text-transform: uppercase; font-weight: 500;
}
.brand:hover { color: var(--mint); }
.brand-logo { height: 90px; width: auto; display: block; transition: opacity .15s ease; }
.brand:hover .brand-logo { opacity: .82; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  font-family: var(--sans); font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-text-muted);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a.active { border-bottom: 2px solid var(--teal); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 24px; cursor: pointer; }

/* ---- Hero (home) ---- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(160deg, var(--ink), var(--charcoal)); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .55; }
.hero-overlay { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(35,39,42,.55) 0%, rgba(35,39,42,.72) 55%, rgba(35,39,42,.92) 100%); }
.hero-content { position: relative; z-index: 2; padding: 90px 0; }
.hero h1 { font-size: clamp(34px, 6vw, 68px); margin: 0 0 22px; max-width: 20ch; color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero .lede { font-size: clamp(16px, 2vw, 19px); max-width: 46ch; color: var(--color-text-muted); margin: 0 0 32px; }

/* ---- Page banner (interior) ---- */
.banner { position: relative; padding: 74px 0 44px; border-bottom: 1px solid var(--color-border);
  background: radial-gradient(1000px 380px at 75% -30%, rgba(56,145,166,.22), transparent 62%), var(--color-bg-deep); }
.banner h1 { font-size: clamp(30px, 4.6vw, 50px); margin: 0 0 10px; color: var(--white); }
.banner p { max-width: 60ch; margin: 0; color: var(--color-text-muted); }

/* ---- Sections ---- */
.section { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--color-border); }
.section:last-of-type { border-bottom: 0; }
.section-head { margin: 0 0 8px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 0; }
.section-sub { color: var(--color-text-muted); margin: 0 0 36px; max-width: 62ch; }

/* ---- Spotlight (coming soon) ---- */
.spotlight { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.spotlight .cover-wrap { position: relative; }
.spotlight .cover-wrap img { border-radius: 3px; box-shadow: 0 24px 60px rgba(0,0,0,.55); border: 1px solid var(--color-border); }
.tag { display: inline-block; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); border-radius: 2px; padding: 4px 10px; margin-bottom: 16px; }
.spotlight h2 { font-size: clamp(30px, 4vw, 46px); margin: 0 0 8px; color: var(--white); }
.spotlight .pitch { font-style: italic; color: var(--mint); font-family: var(--serif); font-size: 18px; margin: 0 0 16px; }
.spotlight p { color: var(--color-text-muted); margin: 0 0 24px; max-width: 52ch; }
.meta-line { font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 22px; }
.meta-line strong { color: var(--gold); }

/* ---- Book grids ---- */
.series-head { margin: 0 0 4px; }
.series-head .kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.series-head h2 { font-size: clamp(24px, 3vw, 34px); margin: 4px 0 10px; }
.series-desc { color: var(--color-text-muted); max-width: 68ch; margin: 0 0 34px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.book { display: flex; flex-direction: column; }
.book .cover { border-radius: 3px; overflow: hidden; box-shadow: 0 16px 38px rgba(0,0,0,.5); border: 1px solid var(--color-border);
  transition: transform .2s ease, box-shadow .2s ease; }
.book:hover .cover { transform: translateY(-4px); box-shadow: 0 24px 52px rgba(0,0,0,.62); }
.book .bk-num { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 16px 0 4px; }
.book h3 { margin: 0 0 8px; font-size: 21px; color: var(--white); }
.book p { color: var(--color-text-muted); font-size: 14.5px; margin: 0 0 16px; flex: 1; }
.retailers { display: flex; flex-wrap: wrap; gap: 8px; }

/* preview grid (home) — covers only */
.cover-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cover-row a { border-radius: 3px; overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 12px 28px rgba(0,0,0,.45);
  transition: transform .2s ease; }
.cover-row a:hover { transform: translateY(-4px); }

/* ---- Subscribe / lead magnet ---- */
.subscribe { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px;
  display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: center; padding: 34px; }
.subscribe img { border-radius: 3px; box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.subscribe h2 { margin: 0 0 8px; font-size: 26px; color: var(--white); }
.subscribe p { color: var(--color-text-muted); margin: 0 0 20px; max-width: 52ch; }
.nl-form { display: flex; gap: 10px; max-width: 460px; flex-wrap: wrap; }
.nl-form input[type=email] {
  flex: 1; min-width: 220px; background: var(--color-bg-deep); border: 1px solid var(--color-border);
  color: var(--white); padding: 13px 15px; border-radius: 2px; font-size: 15px; font-family: var(--sans); }
.nl-form input::placeholder { color: var(--color-text-muted); }
.nl-form input:focus { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.form-note { font-size: 12.5px; color: var(--color-text-muted); margin: 12px 0 0; }
.form-ok { color: var(--mint); font-family: var(--serif); font-size: 17px; margin: 10px 0 0; }

/* ---- Journal ---- */
.posts { display: flex; flex-direction: column; gap: 0; }
.post { padding: 28px 0; border-bottom: 1px solid var(--color-border); display: grid; grid-template-columns: 140px 1fr; gap: 28px; }
.post:first-child { padding-top: 0; }
.post .date { font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.post h3 { margin: 0 0 8px; font-size: 23px; color: var(--white); }
.post p { color: var(--color-text-muted); margin: 0 0 12px; }

/* ---- About ---- */
.bio { max-width: 68ch; }
.bio p { margin: 0 0 20px; font-size: 16.5px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.photo-strip img { border-radius: 4px; border: 1px solid var(--color-border); aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.photo-strip figcaption { font-size: 12.5px; color: var(--color-text-muted); margin-top: 8px; }
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cred { background: var(--color-surface); border: 1px solid var(--color-border); border-left: 3px solid var(--teal); border-radius: 4px; padding: 22px 24px; }
.cred .rn { font-family: var(--serif); color: var(--gold); font-size: 18px; }
.cred h3 { margin: 6px 0 8px; font-size: 19px; color: var(--white); }
.cred p { color: var(--color-text-muted); margin: 0; font-size: 14.5px; }
.pullquote { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 34px); line-height: 1.35; color: var(--white);
  max-width: 24ch; margin: 0 auto; text-align: center; }
.pullquote .q { color: var(--gold); }

/* ---- Serial gate ---- */
.gate { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 36px; max-width: 620px; text-align: center; margin: 0 auto; }
.gate .lock { font-size: 30px; margin-bottom: 8px; }
.gate h2 { margin: 0 0 10px; color: var(--white); }
.gate p { color: var(--color-text-muted); margin: 0 0 22px; }
.episodes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.episodes li { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 4px; padding: 16px 20px; }
.episodes .ep-t { font-family: var(--serif); font-size: 18px; color: var(--white); }
.episodes .ep-d { font-size: 12.5px; color: var(--color-text-muted); letter-spacing: .06em; text-transform: uppercase; }
.hidden { display: none !important; }

/* ---- In development ---- */
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dev { border: 1px dashed var(--color-border); border-radius: 4px; padding: 22px; }
.dev h3 { margin: 0 0 6px; color: var(--white); font-size: 19px; }
.dev p { color: var(--color-text-muted); margin: 0; font-size: 14px; }

/* ---- Footer ---- */
.site-footer { background: var(--color-bg-deep); border-top: 1px solid var(--color-border); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { display: inline-block; margin-bottom: 14px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.site-footer a { display: block; color: var(--color-text-muted); font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-mini-form { display: flex; gap: 8px; margin-top: 4px; }
.footer-mini-form input { flex: 1; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--white); padding: 10px 12px; border-radius: 2px; font-size: 14px; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Dossier banner (Serial) ---- */
.banner--dossier { position: relative; padding: 96px 0 66px; border-bottom: 1px solid var(--color-border);
  background: #0b0d12 url('warlocks-header-bg.svg') center / cover no-repeat; }
.banner--dossier::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,13,18,.88) 0%, rgba(11,13,18,.42) 52%, rgba(11,13,18,.74) 100%); }
.banner--dossier .wrap { position: relative; z-index: 2; }
.dossier-label { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-size: 12px; margin: 0 0 16px; }
.banner--dossier h1 { color: var(--white); }
.banner--dossier p { color: var(--color-text-muted); }

/* ---- Photo banner (Journal + others) ---- */
.banner--photo { position: relative; padding: 112px 0 72px; border-bottom: 1px solid var(--color-border);
  background-size: cover; background-position: center; }
.banner--photo::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,39,42,.55) 0%, rgba(35,39,42,.72) 55%, rgba(35,39,42,.9) 100%); }
.banner--photo .wrap { position: relative; z-index: 2; }
.banner--photo h1 { color: var(--white); }

/* ---- Art header (image tied to page content; title left, art right) ---- */
.banner--art { position: relative; padding: 118px 0 74px; border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg-deep); background-size: cover; background-position: center; }
.banner--art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(35,39,42,.74) 0%, rgba(35,39,42,.34) 44%, rgba(35,39,42,0) 70%); }
.banner--art .wrap { position: relative; z-index: 2; }
.banner--art h1 { font-size: clamp(30px, 4.6vw, 52px); margin: 0 0 10px; color: var(--white); }
.banner--art p { max-width: 58ch; margin: 0; color: var(--color-text-muted); }

/* ---- Journal list (square thumbnails) ---- */
.journal-list { display: flex; flex-direction: column; }
.j-item { display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--color-border); }
.j-item:first-child { padding-top: 4px; }
.j-item .thumb { width: 132px; height: 132px; object-fit: cover; border-radius: 5px;
  border: 1px solid var(--color-border); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.j-item .date { font-family: var(--sans); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; }
.j-item h3 { margin: 0 0 8px; font-size: 23px; color: var(--white); }
.j-item p { color: var(--color-text-muted); margin: 0 0 10px; font-size: 15px; }

/* ---- Individual post ---- */
.post-lead { padding-top: 40px; }
.post-lead .post-meta { font-family: var(--sans); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.post-lead h1 { font-size: clamp(30px, 4.6vw, 52px); color: var(--white); margin: 0 0 14px; max-width: 22ch; }
.post-lead .standfirst { font-size: 18px; color: var(--color-text-muted); max-width: 60ch; margin: 0 0 30px; }
.post-hero-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--color-border); box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.post-body { max-width: 68ch; margin: 40px auto 0; font-size: 17px; }
.post-body p { margin: 0 0 22px; }
.post-body h2 { font-size: 26px; color: var(--white); margin: 34px 0 12px; }
.post-body figure { margin: 32px 0; }
.post-body figure img { width: 100%; border-radius: 6px; border: 1px solid var(--color-border); }
.post-body figcaption { font-size: 13px; color: var(--color-text-muted); margin-top: 10px; text-align: center; }
.post-body blockquote { margin: 28px 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--teal);
  font-family: var(--serif); font-size: 20px; color: var(--white); font-style: italic; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: rgba(35,39,42,.98); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--color-border); padding: 8px 0; transform: translateY(-140%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 24px; width: 100%; }
  .nav-toggle { display: block; }
  .spotlight { grid-template-columns: 1fr; text-align: left; }
  .spotlight .cover-wrap { max-width: 240px; }
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .cover-row { grid-template-columns: repeat(4, 1fr); }
  .subscribe { grid-template-columns: 1fr; text-align: center; }
  .subscribe img { max-width: 150px; margin: 0 auto; }
  .nl-form { justify-content: center; }
  .cred-grid, .dev-grid, .photo-strip { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .j-item { grid-template-columns: 92px 1fr; gap: 16px; }
  .j-item .thumb { width: 92px; height: 92px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 480px) {
  .book-grid, .cover-row { grid-template-columns: repeat(2, 1fr); }
}
