/* Lou Skrivara — Night Shift. Complementary palette: sodium orange vs. steel blue on night. */
@font-face {
  font-family: 'Big Shoulders Display';
  src: url('fonts/big-shoulders-display.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --night: #0b111a;      /* background */
  --surface: #141c28;    /* alternate bands */
  --line: #1f2a38;       /* rules */
  --line-strong: #3a4758;
  --text: #eef0f2;       /* 16.6:1 on night */
  --text-soft: #c9cfd6;  /* 12.1:1 on night */
  --muted: #9aa4b1;      /* 7.5:1 on night, 6.8:1 on surface */
  --sodium: #f0952e;     /* 8.2:1 on night, 7.4:1 on surface */
  --sodium-hot: #ffb666;
  --steel: #6f8fb3;      /* 5.6:1 on night */
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; z-index: 10;
  height: env(safe-area-inset-top, 0px); background: var(--night);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sodium); }
a:hover { color: var(--sodium-hot); }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 30;
  background: var(--sodium); color: var(--night); padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: max(16px, env(safe-area-inset-left, 0px)); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(11, 17, 26, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-block: 14px;
}
.wordmark {
  font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1;
  letter-spacing: 0.06em; color: var(--text); text-decoration: none;
}
.wordmark:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--sodium); }
.nav a[aria-current="page"] { border-bottom-color: var(--sodium); }
.nav a.nav-cta { color: var(--sodium); }

/* Type */
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow.hot { color: var(--sodium); }
.display {
  margin: 0; font-family: var(--display); font-weight: 900; line-height: 0.92;
  text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance;
  overflow-wrap: break-word; hyphens: manual;
}
.display .hot { color: var(--sodium); }
.h1 { font-size: clamp(56px, 8.5vw, 116px); }
.h2 { font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.h3 { font-size: clamp(48px, 6vw, 68px); line-height: 0.95; }
.lede { margin: 0; max-width: 34em; font-size: clamp(18px, 2vw, 20px); color: var(--text-soft); }
.pitch { margin: 0; max-width: 36em; font-size: clamp(19px, 2.1vw, 21px); line-height: 1.5; color: var(--text); }
.prose { margin: 0; max-width: 38em; color: var(--text-soft); }
.subtitle { margin: 0; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tagline {
  margin: 0; padding-left: 16px; border-left: 2px solid var(--line-strong);
  font-style: italic; color: var(--muted);
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 26px; font-family: var(--body); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--sodium); color: var(--night); }
.btn-primary:hover { background: var(--sodium-hot); color: var(--night); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--sodium); color: var(--sodium); }

/* Sections */
.band { border-top: 1px solid var(--line); }
.band.alt { background: var(--surface); }
.band > .wrap { padding-block: clamp(64px, 9vw, 96px); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #2a3646;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 60% 70% at 78% 40%, rgba(240, 149, 46, 0.2), rgba(11, 17, 26, 0) 70%),
    var(--night);
  overflow: hidden;
}
.hero .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-block: clamp(56px, 9vw, 104px);
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-art { flex: 0 1 360px; min-width: 0; margin: 0 auto; }
.cover {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line);
}
.cover-link { display: block; transition: transform .25s ease; }
.cover-link:hover { transform: translateY(-4px); }

/* Book rows */
.books { display: flex; flex-direction: column; gap: 80px; padding-top: 56px; }
.book {
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start;
}
.book .cover-link { flex: 0 1 280px; width: 280px; max-width: 100%; }
.book-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.book-copy .actions { padding-top: 8px; }
.book-copy h3 a { color: inherit; text-decoration: none; }
.book-copy h3 a:hover { color: var(--sodium); }

/* Book page */
.book-hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-block: clamp(48px, 7vw, 88px); }
.book-hero .cover-wrap { flex: 0 1 400px; width: 400px; max-width: 100%; }
.book-hero .book-copy { gap: 18px; }
.details {
  margin: 8px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 24px; font-size: 15px; max-width: 30em;
}
.details dt { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.details dd { margin: 0; }
.series-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.series-nav a {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; text-decoration: none; color: var(--text);
}
.series-nav a span { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.series-nav a strong { font-family: var(--display); font-weight: 900; font-size: 32px; text-transform: uppercase; line-height: 1.1; }
.series-nav a:hover strong { color: var(--sodium); }

/* Split blocks (about, ARC) */
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > :first-child { flex: 1 1 320px; min-width: 0; }
.split > :last-child { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.big-prose { margin: 0; max-width: 36em; font-size: clamp(18px, 2vw, 20px); line-height: 1.6; color: var(--text-soft); }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 38em; }
.facts li { padding-left: 22px; position: relative; color: var(--text-soft); }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 10px; height: 2px; background: var(--sodium); }

/* CTA band */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cta-band .cta-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-block: 32px; font-size: 14px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--sodium); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* 404 */
.lost { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wordmark { font-size: 26px; }
  .nav { gap: 0 18px; }
  .nav a { font-size: 12px; letter-spacing: 0.12em; }
  .hero-art { flex-basis: 260px; max-width: 260px; }
  .book .cover-link { width: 220px; }
  .book-hero .cover-wrap { width: 240px; flex-basis: 240px; }
  .book-hero .wrap { gap: 32px; }
  .btn { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
