/* James Stuart author site. Concept: the page descends, from a dusk sky down to a cave-dark footer.
   No external fonts, scripts or trackers are loaded anywhere on this site. */

:root {
  --navy: #0b1018;
  --dusk: #111c2b;
  --deep: #06090e;
  --panel: #101826;
  --line: #1f2a3a;
  --ink: #f5f5f0;
  --soft: #c9cdd6;
  --muted: #9aa3b3;
  --red: #c41230;
  --red-text: #ee4a67;
  --display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--dusk) 0, var(--navy) 38%, var(--deep) 100%);
  color: var(--ink);
  font: 18px/1.7 var(--serif);
}
main { flex: 1; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--navy); font: 700 14px var(--sans); }
.skip:focus { left: 12px; top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 24, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; padding: 12px 0; }
.brand { font: 900 17px/1 var(--display); letter-spacing: 0.06em; text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 24px; margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 8px 0; border-bottom: 2px solid transparent; font: 700 15px/1 var(--sans); color: var(--soft); text-decoration: none; }
.nav a:hover { color: var(--ink); border-color: var(--muted); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 7vw, 88px); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr minmax(200px, 300px); gap: clamp(24px, 6vw, 80px); align-items: start; padding-bottom: clamp(190px, 27vw, 330px); }
.series { margin: 0 0 14px; font: 600 16px/1.3 var(--sans); letter-spacing: 0.03em; color: var(--muted); }
.title { margin: 0; font: 900 clamp(52px, 11vw, 132px)/0.92 var(--display); letter-spacing: 0.015em; text-transform: uppercase; }
.title span { display: block; }
.rule { width: 112px; height: 5px; margin: 26px 0; background: var(--red); }
.lede { max-width: 30ch; margin: 0 0 28px; font: 400 clamp(20px, 2.4vw, 26px)/1.45 var(--serif); color: var(--soft); }
.byline { margin: 22px 0 0; font: 400 15px/1.5 var(--sans); color: var(--muted); }
.cover { justify-self: end; width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)); }
.cover img { display: block; width: 100%; height: auto; }

.scene { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: block; width: 100%; height: clamp(230px, 34vw, 390px); }
.kayak { animation: glide 90s linear infinite; }
@keyframes glide { from { transform: translateX(-80px); } to { transform: translateX(1290px); } }
@media (prefers-reduced-motion: reduce) { .kayak { animation: none; transform: translateX(800px); } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 15px 24px; border: 2px solid transparent; border-radius: 2px; font: 700 15px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #dc1536; color: #fff; }
.btn-line { border-color: var(--muted); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-navy { background: var(--navy); color: var(--ink); }
.btn-navy:hover { background: #000; color: #fff; }
.btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }

/* ---------- general sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(20px, 3vw, 40px); }
.page-title { margin: 0 0 18px; font: 900 clamp(38px, 7vw, 80px)/1 var(--display); }
.page-intro { max-width: 40ch; margin: 0; font: 400 clamp(20px, 2.2vw, 24px)/1.5 var(--serif); color: var(--soft); }
.statement { max-width: 20ch; margin: 0 0 32px; font: 800 clamp(30px, 5.4vw, 60px)/1.08 var(--sans); letter-spacing: -0.01em; }
.h2 { margin: 0 0 20px; font: 800 clamp(26px, 3.6vw, 38px)/1.15 var(--sans); }
h3 { margin: 0 0 8px; font: 700 20px/1.3 var(--sans); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--ink); }
.wrap.prose { max-width: none; }
.wrap.prose > * { max-width: 66ch; }
.band { border-block: 1px solid var(--line); background: rgba(6, 9, 14, 0.4); }

/* index list on the home page */
.index { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.index a { display: grid; grid-template-columns: minmax(180px, 0.8fr) 2fr; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index strong { font: 900 clamp(22px, 3vw, 32px)/1.1 var(--display); letter-spacing: 0.01em; }
.index span { font: 400 18px/1.55 var(--serif); color: var(--soft); }
.index a:hover strong { color: var(--red-text); }

/* trailer */
.trailer { position: relative; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); background: #000; overflow: hidden; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* sign-up */
.signup { background: var(--red); color: #fff; }
.signup .wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.signup .h2, .signup p { margin-top: 0; color: #fff; }
.signup p { margin-bottom: 0; }
.signup a, .signup a:hover { color: #fff; }
.signup a:hover { text-decoration-thickness: 3px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 15px 16px; border: 2px solid #fff; border-radius: 2px; background: #fff; color: var(--navy); font: 400 17px/1 var(--sans); }
.signup-form input::placeholder { color: #5b6472; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font: 400 14px/1.5 var(--sans); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); }
.form-msg { min-height: 1.5em; margin: 10px 0 0; font: 700 14px/1.4 var(--sans); }

/* book page */
.book { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.book .cover { position: sticky; top: 96px; justify-self: start; }
.book-title { margin: 0 0 6px; font: 900 clamp(40px, 7vw, 76px)/0.98 var(--display); text-transform: uppercase; }
.blurb p { margin: 0 0 1.1em; max-width: 60ch; }
.blurb .hook { font: 800 clamp(22px, 2.6vw, 28px)/1.3 var(--sans); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 36px 0 0; font: 400 16px/1.5 var(--sans); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.cast { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.cast li { display: grid; grid-template-columns: minmax(130px, 0.5fr) 2fr; gap: 8px 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.cast strong { font: 900 24px/1.1 var(--display); }
.cast span { color: var(--soft); max-width: 58ch; }

/* about */
.about { display: grid; grid-template-columns: minmax(240px, 440px) 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about figure { margin: 0; }
.about img { display: block; width: 100%; border-radius: 2px; }
.about figcaption { margin-top: 10px; font: 400 14px/1.5 var(--sans); color: var(--muted); }

/* settings: details */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 44px 22px 0; font: 700 20px/1.35 var(--sans); list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 400 28px/1 var(--sans); color: var(--red-text); }
details[open] summary::after { content: "\2212"; }
details p { max-width: 62ch; margin: 0 0 22px; color: var(--soft); }
.note { max-width: 66ch; margin: 36px 0 0; padding: 18px 22px; border-left: 4px solid var(--red); background: var(--panel); font: 400 16px/1.6 var(--sans); }

.legal-text h2 { margin: 2em 0 0.5em; font: 800 22px/1.3 var(--sans); }
.legal-text p, .legal-text li { max-width: 66ch; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); background: var(--deep); font: 400 15px/1.6 var(--sans); color: var(--muted); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { margin: 0 0 10px; font: 900 18px/1 var(--display); color: var(--ink); }
.site-footer p { margin: 0; max-width: 36ch; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.foot h2 { margin: 0 0 12px; font: 700 15px/1.3 var(--sans); color: var(--ink); }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero .wrap, .two, .signup .wrap, .book, .about, .foot { grid-template-columns: 1fr; }
  .hero .cover { justify-self: start; width: 210px; }
  .book .cover { position: static; width: min(70%, 280px); }
  .index a, .cast li { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dd { margin-bottom: 12px; }
}
