/* Goodman's Law Unfiltered: one-screen book page.
   Two layouts: "wide" (landscape screens 900px and up, any screen 1100px and up) puts the cover panel
   beside the text; "stacked" (phones and portrait tablets) runs title, cover with byline, blurb and
   the countdown/signup box down one centred column, sized to fill the screen. */

@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url(/fonts/jost-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* Midnight ink, bone and brass */
:root {
  --night: #0e1626;
  --night-2: #16223a;
  --bone: #f3ede2;
  --mist: #cbd3de;
  --read: #d8dee8;
  --brass: #d6b273;
  --brass-hi: #e6c78f;
  --field: #f8f4ec;
  --field-ink: #0e1626;
  --placeholder: #4b5466;
  --line: rgba(243, 237, 226, .22);
  --frame: rgba(214, 178, 115, .45);
  --sans: "Jost", "Futura", system-ui, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background-color: var(--night); color: var(--bone); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
/* Fine deco lattice in brass, plus film grain, so the midnight field never reads as a flat slab */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23d6b273' stroke-opacity='.075' stroke-width='1'%3E%3Cpath d='M24 0 48 24 24 48 0 24Z'/%3E%3Cpath d='M24 10 38 24 24 38 10 24Z'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 80% at 70% 45%, #15203a 0%, var(--night) 70%); }
::selection { background: var(--brass); color: var(--night); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 3px; }
h1, h2, p { margin: 0; font-weight: inherit; }
button { font: inherit; }
cite, em { font-style: italic; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--bone); color: var(--night); padding: 10px 14px; font: 600 14px var(--sans); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- components (both layouts) ---------- */
.screen { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto; }

.panel { position: relative; overflow: hidden; display: grid; place-items: center; align-self: stretch; min-height: 0; background: var(--night-2); }
.panel::after { content: ""; position: absolute; inset: 12px; border: 1px solid var(--frame); pointer-events: none; }
.panel-photo, .panel-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel-photo img { object-fit: cover; object-position: 58% 50%; }
.cover { position: relative; width: auto; object-fit: contain; box-shadow: 0 20px 44px rgba(3, 7, 15, .6); }
.credit { position: absolute; left: 20px; bottom: 20px; z-index: 1; padding: 3px 8px; background: var(--night); color: var(--bone); font: 400 13px/1.4 var(--sans); }

/* The title lockup is the hero. Pulled left by the PNG's side bearing so the caps align with the text below. */
.title img { width: 100%; }

.meta-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; color: var(--bone); }
.date { color: var(--brass); font-weight: 600; }

.lead { color: var(--bone); text-wrap: pretty; }
.lead strong { font-weight: 500; color: var(--bone); }
.caps { text-transform: uppercase; }
.readfull { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--brass); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; cursor: pointer; }
.readfull::after { content: " \2192"; display: inline-block; margin-left: 4px; text-decoration: none; }
.readfull:hover { color: var(--brass-hi); }

/* Countdown and signup share one framed box */
.act { border: 1px solid var(--frame); background: rgba(22, 34, 58, .72); }
.label, .stay-h, .cd .lbl { font-weight: 600; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.stay-h { color: var(--bone); text-wrap: balance; }
.countdown { display: grid; grid-template-columns: repeat(4, auto); width: max-content; }
.cd { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--cd-pad, 20px); }
.cd + .cd { border-left: 1px solid var(--line); }
.cd:first-child { padding-left: 0; }
.cd:last-child { padding-right: 0; }
.cd .num { font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--bone); }
.cd .lbl { margin-top: 8px; padding-left: .12em; }

.field { display: flex; gap: 10px; }
.field input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 2px solid var(--bone); border-radius: 0; background: var(--field); color: var(--field-ink); font: 400 17px var(--sans); }
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.field input[aria-invalid=true] { border-color: #ff9f90; }
.field button { flex: none; height: 52px; padding: 0 26px; border: 2px solid var(--brass); border-radius: 0; background: var(--brass); color: var(--night); font: 600 17px/1 var(--sans); cursor: pointer; transition: background-color .15s, transform .08s; }
.field button:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.field button:active { transform: translateY(1px); }
.field button:disabled { opacity: .75; cursor: progress; }
.err { margin-top: 8px; font: 600 15px var(--sans); color: #ffb3a7; }
.consent { line-height: 1.45; color: var(--mist); }
.consent a { color: var(--bone); text-underline-offset: 2px; }
.consent a:hover { color: var(--brass-hi); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks:not([hidden]) { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 4px 0; }
.tick { grid-row: 1 / span 2; width: clamp(34px, 4vh, 44px); height: clamp(34px, 4vh, 44px); color: var(--brass-hi); }
.thanks-h { font: 600 clamp(22px, 2.6vh, 30px)/1.2 var(--sans); color: var(--brass-hi); }
.thanks-sub { margin-top: 4px; font: 400 clamp(15px, 1.7vh, 18px)/1.45 var(--sans); color: var(--bone); }
.thanks:focus { outline: none; }

/* Slim footer */
.site-footer { display: flex; align-items: center; gap: 4px 28px; flex-wrap: wrap; border-top: 1px solid var(--line); background: rgba(9, 14, 25, .7); }
.copy { color: var(--mist); }
.legal { margin-left: auto; }
.legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.legal a, .linkish { font: 400 1em/1.4 var(--sans); color: var(--bone); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.legal a:hover, .linkish:hover { color: var(--brass-hi); text-decoration: underline; }

/* Dialogs */
.close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: none; color: var(--bone); cursor: pointer; }
.close svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 1.6; }
.close:hover { color: var(--brass-hi); }
.close--text { display: inline-flex; gap: 10px; width: auto; height: 40px; padding: 0 12px; border: 1px solid var(--line); font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.close--text:hover { border-color: var(--brass); color: var(--bone); }

.credits { width: min(620px, calc(100% - 32px)); max-height: 80vh; padding: 0; border: 0; border-top: 3px solid var(--brass); background: var(--night-2); color: var(--bone); }
.credits::backdrop { background: rgba(6, 10, 18, .75); }
.credits-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 12px 24px; border-bottom: 1px solid var(--line); }
.credits h2 { font: 600 22px/1 var(--sans); }
#credits-list { list-style: none; margin: 0; padding: 6px 24px 22px; font-size: 15px; line-height: 1.5; color: var(--mist); }
#credits-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
#credits-list a { color: var(--bone); }

/* Full description: a sidebar from the right, ending with a way to sign up */
.desc { position: fixed; inset: 0 0 0 auto; width: min(780px, 94vw); height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-left: 3px solid var(--brass); background: var(--night-2); color: var(--bone); display: none; flex-direction: column; }
.desc[open] { display: flex; animation: desc-in .28s ease-out; }
@keyframes desc-in { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .desc[open] { animation: none; } }
.desc::backdrop { background: rgba(6, 10, 18, .72); }
.desc-head { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 16px 44px; border-bottom: 1px solid var(--line); }
.desc-head .label, .desc-foot .label { font-size: 14px; letter-spacing: .14em; color: var(--brass); }
.desc-body { flex: 1; overflow: auto; padding: clamp(24px, 3.4vh, 40px) 44px 56px; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 56px), transparent); }
.desc .lead { max-width: 30em; font: 400 clamp(20px, 2.4vh, 26px)/1.5 var(--sans); }
.desc .body { max-width: 37em; margin-top: 1.2em; font: 400 clamp(17px, 1.95vh, 20px)/1.64 var(--sans); color: var(--read); }
.desc .lead + .body { margin-top: 1.6em; }
.desc .caps { letter-spacing: .04em; }
.desc strong { font-weight: 400; color: var(--brass-hi); }
.desc .lead strong { font-weight: 500; color: var(--brass-hi); }
.desc-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px 16px 44px; border-top: 1px solid var(--line); background: var(--night); }
.desc-cta { height: 52px; padding: 0 24px; border: 0; background: var(--brass); color: var(--night); font: 600 17px/1 var(--sans); cursor: pointer; }
.desc-cta:hover { background: var(--brass-hi); }

/* ---------- wide: cover panel | text ---------- */
@media (min-width: 1100px), (min-width: 900px) and (orientation: landscape) {
  :root {
    --gut: clamp(20px, 3.4vw, 48px);
    --max: min(100vw - 2 * var(--gut), 165vh, 2100px);   /* one centred frame for stage and footer */
    --pad-x: max(var(--gut), (100vw - var(--max)) / 2);
    --logo-w: min(66vh, 920px);
    --lead: clamp(19px, 2.3vh, 32px);
    --body: clamp(17px, 1.75vh, 24px);
    --label: clamp(13px, 1.3vh, 17px);
    --field-h: clamp(52px, 6vh, 68px);
  }
  .screen { height: 100vh; height: 100svh; }
  .stage { display: grid; grid-template-columns: auto minmax(0, max(900px, var(--logo-w) * 1.55)); justify-content: center; column-gap: clamp(48px, 5vw, 110px); align-items: center; min-height: 0; padding: clamp(16px, 3vh, 48px) var(--pad-x); }
  .panel { align-self: center; background: none; overflow: visible; }
  .panel::after, .panel-photo, .credit { display: none; }
  .cover { height: min(76vh, 1100px); max-width: none; box-shadow: 0 26px 60px rgba(3, 7, 15, .7), 0 0 0 1px rgba(216, 182, 120, .25); }
  .content { display: flex; flex-direction: column; justify-content: center; min-height: 0; }

  .title { width: var(--logo-w); max-width: 100%; margin-left: calc(var(--logo-w) * -.028); }
  .meta-line { margin-top: clamp(10px, 1.6vh, 20px); font: 400 var(--body)/1.35 var(--sans); }
  .byline { font-size: clamp(18px, 2.2vh, 26px); }
  .date::before { content: ""; display: inline-block; width: 1px; height: .9em; margin: 0 16px; vertical-align: -.1em; background: var(--line); }
  .blurb { margin-top: clamp(18px, 3vh, 38px); }
  .lead { max-width: 52em; font: 400 var(--lead)/1.42 var(--sans); }
  .readfull { margin-top: 14px; font-size: var(--body); line-height: 1.3; }

  .act { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; row-gap: 12px; align-items: start; margin-top: clamp(20px, 3.4vh, 44px); padding: clamp(18px, 2.6vh, 32px) clamp(18px, 1.8vw, 32px); }
  .act .label { grid-column: 1; grid-row: 2; justify-self: center; padding-right: clamp(20px, 1.8vw, 40px); font-weight: 400; color: rgba(203, 211, 222, .85); }
  .countdown { --cd-pad: clamp(12px, 1.1vw, 22px); grid-column: 1; grid-row: 3; margin-right: clamp(20px, 1.8vw, 40px); }
  .stay { grid-column: 2; grid-row: 1 / span 4; align-self: center; padding-left: clamp(20px, 1.8vw, 40px); border-left: 1px solid var(--line); }
  .label, .stay-h, .cd .lbl { font-size: var(--label); }
  .cd .lbl { font-weight: 400; letter-spacing: .08em; padding-left: .08em; color: rgba(203, 211, 222, .85); }
  .stay-h { font-size: calc(var(--label) * 1.3); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brass-hi); }
  .cd .num { font-size: max(30px, var(--logo-w) * .06); }
  .signup { margin-top: 10px; }
  .field input, .field button { height: var(--field-h); font-size: clamp(17px, 1.9vh, 22px); }
  .field button { padding: 0 clamp(18px, 2vh, 28px); }
  .field input { min-width: 0; padding: 0 14px; }
  .consent { margin-top: 10px; font-size: clamp(13px, 1.3vh, 15px); }

  .legal { margin-left: 0; }
  .site-footer { justify-content: center; padding: clamp(8px, 1.2vh, 16px) var(--pad-x); font-size: clamp(14px, 1.3vh, 17px); }
}

/* Wide but narrow (small landscape tablets): countdown above the signup inside the box */
@media (min-width: 900px) and (max-width: 1279px) and (orientation: landscape) {
  .act { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .act .label, .countdown, .stay { grid-column: 1; grid-row: auto; }
  .countdown { margin: 0 auto; }
  .act .label { padding-right: 0; }
  .stay { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Short laptops: smaller lockup, tighter rhythm */
@media (min-width: 900px) and (orientation: landscape) and (max-height: 920px), (min-width: 1100px) and (max-height: 920px) {
  :root { --logo-w: min(60vh, 680px); }
  .lead { font-size: clamp(18px, 2.3vh, 21px); line-height: 1.38; }
  .blurb { margin-top: 12px; }
  .act { margin-top: 14px; padding-top: 14px; padding-bottom: 14px; }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 800px), (min-width: 1100px) and (max-height: 800px) {
  :root { --body: 17px; --field-h: 52px; }
  .stage { padding-top: 14px; padding-bottom: 14px; }
  .meta-line { margin-top: 8px; }
  .act { row-gap: 10px; }
  .signup, .consent { margin-top: 6px; }
}
@media (min-width: 900px) and (orientation: landscape) and (max-height: 740px), (min-width: 1100px) and (max-height: 740px) {
  :root { --logo-w: min(56vh, 600px); }
  .stage { padding-top: 8px; padding-bottom: 8px; }
  .meta-line { margin-top: 6px; }
  .blurb { margin-top: 10px; }
  .act { margin-top: 12px; padding-top: 12px; padding-bottom: 12px; }
}

/* ---------- stacked: phones and portrait tablets ----------
   One centred column: title, the cover as a hero panel, byline, opening line, countdown, signup. */
@media (max-width: 899px), (max-width: 1099px) and (orientation: portrait) {
  :root {
    --col: min(100vw - 40px, 640px);
    --gap: clamp(8px, 1.5svh, 28px);
    --t-lead: clamp(16px, 2.6vw, 21px);
    --t-meta: clamp(15px, 2.5vw, 20px);
    --hero-h: clamp(140px, 21.2svh, 520px);
  }
  .stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "hero" "meta" "blurb" "act"; grid-template-rows: auto minmax(var(--hero-h), 1fr) auto auto auto; align-content: stretch; justify-items: center; text-align: center; width: var(--col); margin: 0 auto; padding: var(--gap) 0; }
  .content { display: contents; }

  .title { grid-area: title; width: min(86%, 560px); }
  /* the cover takes whatever height is left over, never less than --hero-h */
  .panel { grid-area: hero; position: relative; width: 100%; height: auto; min-height: var(--hero-h); margin-top: var(--gap); background: none; overflow: visible; }
  .panel::after, .panel-photo, .credit { display: none; }
  .cover { position: absolute; top: 0; left: 50%; transform: translateX(-50%); height: 100%; width: auto; max-width: none; box-shadow: 0 18px 40px rgba(3, 7, 15, .7), 0 0 0 1px rgba(216, 182, 120, .25); }

  .meta-line { grid-area: meta; flex-direction: column; align-items: center; gap: 2px; margin-top: var(--gap); font: 400 var(--t-meta)/1.4 var(--sans); }
  .blurb { grid-area: blurb; display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: 34em; margin-top: calc(var(--gap) * 1.5); text-align: left; }
  .lead { font: 400 var(--t-lead)/1.5 var(--sans); }
  .readfull { align-self: flex-start; margin-top: 6px; font-size: var(--t-lead); line-height: 1.3; }

  /* countdown and signup: one framed unit, set apart from the text above */
  .act { grid-area: act; width: 100%; margin-top: calc(var(--gap) * 1.2); padding: calc(var(--gap) - 2px) 12px calc(var(--gap) - 3px); border: 1px solid var(--frame); background: rgba(22, 34, 58, .72); }
  .act .label { display: none; }
  .countdown { --cd-pad: clamp(10px, 3.6vw, 30px); margin: 0 auto; }
  .cd .num { font-size: clamp(26px, 7.2vw, 38px); font-weight: 600; }
  .cd .lbl { margin-top: 2px; font-size: 13px; font-weight: 400; letter-spacing: .06em; padding-left: .06em; color: rgba(203, 211, 222, .85); }
  .stay { margin-top: calc(var(--gap) - 2px); padding-top: calc(var(--gap) - 2px); border-top: 1px solid var(--line); }
  .stay-h { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--brass-hi); }
  .signup { margin-top: 5px; }
  .field { max-width: 520px; margin: 0 auto; gap: 8px; }
  .field input { height: 52px; font-size: 16px; padding: 0 12px; }
  .field button { height: 52px; padding: 0 14px; font-size: 16px; }
  .consent { max-width: 520px; margin: 5px auto 0; font-size: 13px; line-height: 1.25; text-align: center; }
  .err { text-align: center; }
  .thanks:not([hidden]) { grid-template-columns: auto auto; justify-content: center; column-gap: 12px; text-align: left; padding: 2px 0; }
  .tick { width: 32px; height: 32px; }
  .thanks-h { font-size: 20px; }
  .thanks-sub { margin-top: 2px; font-size: 15px; text-wrap: balance; }

  /* footer: centred, links then copyright, no bar */
  .site-footer { flex-direction: column-reverse; justify-content: center; gap: 4px; padding: 12px 20px 14px; background: none; text-align: center; font-size: 13px; }
  .legal { margin: 0; }
  .legal ul { justify-content: center; gap: 0 18px; }
  .copy, .legal a, .linkish { font-size: 13px; }
  .copy { color: rgba(203, 211, 222, .8); }

  .desc { width: 100%; border-left: 0; text-align: left; }
  .desc-head { padding: 12px 12px 12px 20px; }
  .desc-body { padding: 24px 20px 48px; }
  .desc .lead { font-size: 20px; }
  .desc .body { font-size: 18px; line-height: 1.65; }
  .desc-foot { padding: 12px 20px; }
  .desc-foot .label { display: none; }
  .desc-cta { width: 100%; }
}
@media (min-width: 600px) and (max-width: 1099px) and (orientation: portrait) {
  .desc { width: min(640px, 100%); border-left: 3px solid var(--brass); }
  .desc-foot .label { display: block; }
  .desc-cta { width: auto; }
}

@media (max-width: 899px) and (max-height: 760px) {
  :root { --gap: 7px; --hero-h: clamp(110px, 20svh, 200px); }
}
@media (max-width: 899px) and (max-height: 700px) {
  :root { --gap: 6px; --hero-h: clamp(90px, 14svh, 160px); }
  .lead { line-height: 1.4; }
  .cd .num { font-size: 26px; }
  .cd .lbl { margin-top: 2px; }
  .cd .num { font-size: 26px; }
  .stay-h { font-size: 16px; }
  .title { width: min(76%, 560px); }
  .site-footer { padding: 8px 20px 10px; }
}

@media (max-width: 359px) { .consent { font-size: 12px; } .countdown { --cd-pad: 8px; } }

/* Portrait tablets: wider column, larger type */
@media (min-width: 700px) and (max-width: 1099px) and (orientation: portrait) {
  :root { --col: min(100vw - 96px, 760px); --t-lead: clamp(19px, 2.3vw, 23px); --t-meta: clamp(18px, 2.2vw, 22px); --hero-h: clamp(200px, 21.4svh, 520px); --gap: clamp(12px, 1.7svh, 32px); }
  .cd .num { font-size: clamp(34px, 4.8vw, 50px); }
  .cd .lbl { font-size: 13px; }
  .stay-h { font-size: 16px; }
  .field { max-width: 600px; }
  .field input, .field button { height: 52px; font-size: 17px; }
  .consent { max-width: 600px; font-size: 13px; }
  .site-footer, .copy, .legal a, .linkish { font-size: 14px; }
}
@media (min-width: 700px) and (max-width: 1099px) and (orientation: portrait) and (min-height: 1100px) {
  :root { --hero-h: clamp(200px, 25.5svh, 520px); }
}
