/* Nicholas Kiley Studios — site styles
   Night lot (dark) for the studio, warm paper (light) for reading. */

:root {
  --night: #0B0B0D;
  --night-2: #121114;
  --night-3: #151417;
  --ivory: #F2EEE4;
  --muted: #A8A49A;
  --muted-2: #C9C4B8;
  --gold: #E3B45A;
  --gold-ink: #7A5A1E;
  --paper: #F6F2EA;
  --paper-2: #EDE6D6;
  --ink: #1A1814;
  --ink-2: #3A3630;
  --ink-3: #5A554C;
  --rule: #CFC6B4;
  --display: 'Bodoni Moda', Georgia, serif;
  --label: 'Josefin Sans', system-ui, sans-serif;
  --read: 'Newsreader', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ivory); font-family: var(--label); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; }
.gold { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Nav ---------- */
.site-header { position: relative; z-index: 3; background: var(--night); border-bottom: 1px solid rgba(242,238,228,.12); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.brand img { height: 40px; width: auto; }
.brand span { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
.nav-links a { text-decoration: none; padding: 12px 0; color: var(--ivory); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold); }
.nav-links .btn-outline { padding: 12px 18px; border: 1px solid var(--gold); color: var(--gold); }

.bulbs { height: 14px; background: radial-gradient(circle, var(--gold) 0 2.4px, rgba(227,180,90,.25) 3px, transparent 4.5px) 0 50% / 20px 14px repeat-x; }
.bulbs.on-night { background-color: var(--night); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; font-family: var(--label); cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--night); font-weight: 600; border: 0; }
.btn-ghost { border: 1px solid rgba(242,238,228,.45); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 24px 96px; text-align: center; }
.beams { position: absolute; left: 0; right: 0; top: 0; height: 330px; pointer-events: none; }
.beam { position: absolute; left: 50%; bottom: 0; width: 260px; height: 900px; margin-left: -130px; transform-origin: 50% 100%; clip-path: polygon(46% 100%, 54% 100%, 100% 0, 0 0); background: linear-gradient(to top, rgba(242,238,228,.16), rgba(242,238,228,0) 85%); }
.beam-a { animation: sweepA 14s ease-in-out infinite alternate; }
.beam-b { animation: sweepB 17s ease-in-out infinite alternate; }
@keyframes sweepA { from { transform: rotate(-38deg); } to { transform: rotate(12deg); } }
@keyframes sweepB { from { transform: rotate(36deg); } to { transform: rotate(-10deg); } }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .07; pointer-events: none; }
.hero-inner { position: relative; max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.hero-logo { width: 100%; max-width: 780px; height: auto; align-self: center; }
.hero-line { margin: 0 auto; max-width: 640px; font-family: var(--display); font-style: italic; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding-top: 80px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.h-display { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4vw, 52px); }
.h-display.xl { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.lede { margin: 0; max-width: 620px; font-family: var(--read); font-size: 20px; line-height: 1.5; color: var(--muted-2); }

.door { min-width: 0; text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.door:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--gold), 0 18px 40px rgba(0,0,0,.55); }

/* Now showing */
.now { display: flex; flex-wrap: wrap; gap: 28px; }
.feature { flex: 2 1 560px; display: grid; grid-template-columns: minmax(0, 1fr); color: var(--ink); background: var(--paper-2); }
.feature-art { aspect-ratio: 16 / 7; background: var(--ink) center / cover no-repeat; }
.feature-body { padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 16px; }
.feature .eyebrow { color: var(--gold-ink); font-size: 12px; letter-spacing: .32em; }
.feature h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 54px); line-height: 1.04; }
.feature p { margin: 0; max-width: 600px; font-family: var(--read); font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.listen-pill { display: inline-flex; align-items: center; gap: 10px; background: #141312; color: var(--ivory); padding: 10px 18px 10px 10px; }
.podcast-card { flex: 1 1 320px; color: var(--ivory); background: var(--night-3); border: 1px solid rgba(227,180,90,.35); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 360px; }
.podcast-card h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 38px; line-height: 1.08; }
.podcast-card p { margin: 0; font-family: var(--read); font-size: 19px; line-height: 1.5; color: var(--muted-2); }
.dial { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.dial::after { content: ""; width: 6px; height: 20px; background: var(--gold); transform: rotate(35deg); transform-origin: 50% 100%; margin-top: -18px; }

/* The lot */
.lot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.lot .door { min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; position: relative; overflow: hidden; }
.lot h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; }
.lot p { margin: 0; font-family: var(--read); font-size: 18px; line-height: 1.5; }
.lot .cta { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.door-paper { color: var(--ink); background: var(--paper-2); border-top: 6px double var(--ink); }
.door-paper .masthead { margin: 0; font-family: var(--read); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.door-paper h3 { font-weight: 700; margin-top: 8px; }
.door-paper p { color: var(--ink-2); }
.door-air { color: var(--ivory); background: #17130E; border: 1px solid rgba(227,180,90,.3); }
.door-air p, .door-worlds p, .door-store p { color: var(--muted-2); }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 48px; }
.eq span { width: 6px; background: var(--gold); animation: eq 1.6s ease-in-out infinite alternate; }
.eq span:nth-child(2n) { animation-duration: 1.1s; } .eq span:nth-child(3n) { animation-duration: 1.9s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.eq span { transform-origin: bottom; }
.door-photo { padding: 0 !important; justify-content: flex-end !important; }
.door-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.door-photo .plate { position: relative; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.door-h84 { background: #D9CDB3; color: #1A1712; }
.door-h84 img { object-position: 50% 30%; }
.door-h84 .plate { background: #ECE3CF; border-top: 2px solid #1A1712; flex-direction: column; align-items: flex-start; gap: 6px; font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.redact { background: #1A1712; color: #1A1712; padding: 0 4px; }
.door-h84:hover .redact { color: #ECE3CF; }
.door-kk { background: #120A1A; color: #EDE7F3; }
.door-kk .plate { background: rgba(18,10,26,.9); border-top: 1px solid #8E5BB5; }
.door-kk .plate span:first-child { font-family: var(--display); font-size: 22px; }
.door-worlds { color: var(--ivory); background: #0F1416; border: 1px solid rgba(242,238,228,.18); }
.door-worlds .eyebrow { color: #9FB7BD; font-size: 12px; letter-spacing: .32em; }
.world-row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(242,238,228,.2); padding-top: 12px; margin-top: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.door-store { color: var(--ivory); background: var(--night); border: 1px dashed rgba(242,238,228,.35); align-items: center; justify-content: center !important; text-align: center; gap: 18px; }

/* Manifesto */
.manifesto { padding: 120px 24px; text-align: center; }
.manifesto-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.manifesto img { height: 140px; width: auto; align-self: center; opacity: .9; }
.manifesto p.big { margin: 0; font-family: var(--display); font-size: clamp(30px, 4vw, 52px); line-height: 1.18; }

/* Guest list */
.guest { padding: 96px 24px; background: var(--night-2); }
.guest-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; text-align: center; }
.guest p { margin: 0; font-family: var(--read); font-size: 20px; line-height: 1.5; color: var(--muted-2); }
.guest form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.guest input { flex: 1 1 280px; max-width: 420px; min-height: 52px; padding: 0 18px; background: var(--night); color: var(--ivory); border: 1px solid rgba(242,238,228,.4); font-family: var(--label); font-size: 16px; }
.guest .note { font-size: 14px; color: var(--muted); font-family: var(--label); }

/* Footer */
.site-footer { border-top: 1px solid rgba(242,238,228,.12); background: var(--night); color: var(--ivory); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.footer-cols div { display: flex; flex-direction: column; gap: 2px; }
.footer-cols a { text-decoration: none; padding: 10px 0; }
.footer-cols a:hover { color: var(--gold); }
.footer-cols .head { color: var(--muted); padding: 10px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 32px; font-size: 12px; letter-spacing: .18em; color: var(--muted); }

/* ---------- Article (paper) ---------- */
body.paper { background: var(--paper); color: var(--ink); }
.article { padding: 64px 24px 40px; }
.article-head { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; text-align: center; }
.article-head .eyebrow { color: var(--gold-ink); font-size: 12px; letter-spacing: .34em; }
.article-head h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6.4vw, 86px); line-height: 1.02; letter-spacing: -.01em; }
.article-head .dek { margin: 0 auto; max-width: 680px; font-family: var(--read); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 20px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 8px; }
.byline .who { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Player */
.player { max-width: 760px; margin: 36px auto 0; background: #141312; color: var(--ivory); border-radius: 999px; padding: 12px 24px 12px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.player[hidden] { display: none; }
.play-btn { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; border: 2px solid var(--gold); background: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.play-btn .i-pause { display: none; }
.player.is-playing .play-btn .i-play { display: none; }
.player.is-playing .play-btn .i-pause { display: block; }
.player-main { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.player-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.player-status { letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.player-credit { letter-spacing: .12em; color: var(--muted-2); }
.player input[type=range] { width: 100%; accent-color: var(--gold); margin: 4px 0; min-height: 24px; }
.player-times { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.speed-btn { min-width: 56px; min-height: 44px; border: 1px solid rgba(242,238,228,.4); background: transparent; color: var(--ivory); font-family: var(--label); font-size: 14px; letter-spacing: .1em; cursor: pointer; }
@media (max-width: 560px) { .player { border-radius: 28px; padding: 14px; } }

.cover { max-width: 1100px; margin: 48px auto 0; }
.cover img { width: 100%; height: auto; }
.prose .dc { float: left; font-family: var(--display); font-size: 92px; line-height: .8; padding: 8px 12px 0 0; color: var(--ink); }
.cover figcaption { margin-top: 12px; font-family: var(--read); font-style: italic; font-size: 15px; color: var(--ink-3); text-align: center; }

.prose { max-width: 680px; margin: 48px auto 0; font-family: var(--read); font-size: 21px; line-height: 1.7; color: #24211C; }
.prose p { margin: 0 0 24px; }
.prose h2 { margin: 56px 0 18px; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 36px); line-height: 1.15; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose .dropcap::first-letter { float: left; font-family: var(--display); font-size: 92px; line-height: .8; padding: 8px 12px 0 0; color: var(--ink); }
.prose blockquote { margin: 40px 0; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-align: center; font-family: var(--display); font-style: italic; font-size: clamp(25px, 3vw, 33px); line-height: 1.3; color: var(--ink); }
.prose .kicker { font-family: var(--display); font-size: 25px; line-height: 1.4; color: var(--ink); }
.prose a { color: var(--gold-ink); }
.endmark { display: flex; justify-content: center; margin: 40px 0 0; }
.endmark img { height: 44px; filter: invert(1) brightness(.2); opacity: .8; }

.signoff { max-width: 680px; margin: 48px auto 0; display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--rule); padding-top: 28px; }
.signoff img { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; }
.signoff .name { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.signoff .role { font-family: var(--read); font-size: 17px; color: var(--ink-3); }

.sources { max-width: 680px; margin: 40px auto 0; font-family: var(--read); font-size: 16px; color: var(--ink-3); }
.sources summary { cursor: pointer; font-family: var(--label); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; min-height: 44px; display: flex; align-items: center; }
.sources ul { padding-left: 20px; line-height: 1.6; }
.sources a { color: var(--gold-ink); }

.more { background: var(--night); color: var(--ivory); padding: 72px 24px 80px; margin-top: 72px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.more a { text-decoration: none; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.more .t { font-family: var(--display); font-size: 26px; }

/* Dispatch index */
.index-list { display: grid; gap: 28px; padding-bottom: 80px; }

@media (prefers-reduced-motion: reduce) {
  .beam-a, .beam-b, .eq span { animation: none; }
  .door { transition: none; }
}

@media (max-width: 600px) {
  .nav-links { gap: 0 16px; font-size: 11px; letter-spacing: .16em; }
  .nav-links .btn-outline { padding: 10px 12px; }
  .brand span { font-size: 11px; letter-spacing: .24em; }
  .feature-body, .podcast-card { padding: 28px 24px; }
}

/* ---------- Off the Lot (video + socials) ---------- */
.feed { padding-top: 72px; padding-bottom: 40px; }
.feed-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.phone { flex: 0 1 340px; margin: 0 auto; padding: 10px; border-radius: 36px; background: #1B1A1D; box-shadow: 0 0 0 1px rgba(227,180,90,.35), 0 30px 60px rgba(0,0,0,.6); }
.phone video { width: 100%; height: auto; aspect-ratio: 9 / 16; display: block; border-radius: 28px; background: #000; object-fit: cover; }
.feed-copy { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.social-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 22px 0 16px; border: 1px solid rgba(242,238,228,.35); color: var(--ivory); text-decoration: none; font-size: 13px; letter-spacing: .14em; }
.social-btn:hover { border-color: var(--gold); color: var(--gold); }
.social-btn svg { width: 22px; height: 22px; flex: 0 0 22px; }
.social-btn small { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.footer-social { display: flex; gap: 6px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ivory); }
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; }
.signoff .handles { margin-top: 6px; font-family: var(--label); font-size: 12px; letter-spacing: .16em; }
.signoff .handles a { color: var(--gold-ink); text-decoration: none; margin-right: 14px; }
.signoff .handles a:hover { text-decoration: underline; }
.social-patreon { border-color: var(--gold); }
.social-patreon small { color: var(--gold); }

/* ---------- Guest List form ---------- */
.guest form, .gl-article form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.guest input, .gl-article input { flex: 1 1 260px; max-width: 420px; min-height: 52px; padding: 0 18px; font-family: var(--label); font-size: 16px; }
.guest input { background: var(--night); color: var(--ivory); border: 1px solid rgba(242,238,228,.4); }
.guest .btn, .gl-article .btn { min-height: 52px; }
.guest .btn[disabled], .gl-article .btn[disabled] { opacity: .6; cursor: progress; }
.gl-msg { margin: 6px 0 0; font-family: var(--display) !important; font-style: italic; font-size: 24px !important; color: var(--gold) !important; }
.gl-article { max-width: 680px; margin: 48px auto 0; padding: 36px 32px; background: var(--night); color: var(--ivory); text-align: center; display: flex; flex-direction: column; gap: 12px; }
.gl-article .eyebrow { color: var(--gold); font-size: 12px; letter-spacing: .36em; }
.gl-article h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 38px); }
.gl-article p { margin: 0; font-family: var(--read); font-size: 18px; line-height: 1.5; color: var(--muted-2); }
.gl-article input { background: #141312; color: var(--ivory); border: 1px solid rgba(242,238,228,.35); }
.gl-article .gl-fine { font-family: var(--label); font-size: 13px; color: var(--muted); }

[hidden] { display: none !important; }
