/* Unraveling the Truth — Joseph Hill
   Standalone stylesheet. No build step. No third-party UI kit. */

:root {
  --ink: #08090d;
  --night: #0c0e14;
  --surface: #12151c;
  --raised: #1a1e28;
  --cream: #f3ead8;
  --parchment: #e8dcc4;
  --muted: #b8ae9a;
  --subtle: #7d7568;
  --gold: #c9a45c;
  --gold-bright: #e8d09a;
  --gold-dim: #8a7040;
  --ray: #f6e7b4;
  --danger: #c45c4a;
  --line: rgba(232, 214, 170, 0.14);
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Times New Roman", serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --shadow-soft: 0 0 0 1px rgba(232, 214, 170, 0.1), 0 24px 60px -28px rgba(0, 0, 0, 0.7);
  --text-display: clamp(2.6rem, 1.1rem + 6vw, 5.6rem);
  --text-headline: clamp(1.8rem, 1.05rem + 2.4vw, 3.15rem);
  --text-lede: clamp(1.05rem, 0.96rem + 0.4vw, 1.28rem);
  --tracking-kicker: 0.18em;
  --frame: 72rem;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: var(--ink);
  color: var(--cream);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-serif);
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, [role="button"] { cursor: pointer; font: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.55; }

::selection {
  background: color-mix(in oklab, var(--gold) 55%, transparent);
  color: var(--ink);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-wrap: balance;
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 80;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 0.5rem 0.75rem;
  background: var(--gold);
  color: var(--ink);
  border-radius: var(--radius-md);
}

.frame {
  margin-inline: auto;
  width: 100%;
  max-width: var(--frame);
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .frame { padding-inline: 1.75rem; }
}

.kicker {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.gold-rule {
  width: 4rem;
  height: 1px;
  background: color-mix(in oklab, var(--gold) 70%, transparent);
  border: 0;
}
.gold-rule.center { margin-inline: auto; }

.page-head {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}
.page-head h1 {
  margin-top: 1rem;
  font-size: var(--text-headline);
  color: var(--cream);
}
.page-head .lede {
  margin-top: 1.5rem;
  font-size: var(--text-lede);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: color-mix(in oklab, var(--gold) 50%, transparent);
}
.btn-outline:hover { background: color-mix(in oklab, var(--gold) 10%, transparent); }
.btn-ghost {
  background: var(--raised);
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: color-mix(in oklab, var(--gold) 40%, transparent); }
.btn-link {
  background: none;
  border: 0;
  color: var(--gold);
  min-height: auto;
  padding: 0;
}
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.site {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--cream);
}
.site main { flex: 1; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--gold) 10%, transparent);
  background: color-mix(in oklab, var(--ink) 85%, transparent);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}
.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 4px;
  background: color-mix(in oklab, var(--gold) 15%, transparent);
}
.brand-mark span {
  display: block;
  width: 1px;
  height: 1rem;
  background: var(--gold-bright);
}
.brand-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--gold);
}
@media (min-width: 640px) {
  .brand-sub { display: block; }
}
.nav-desk {
  display: none;
  align-items: center;
  gap: 1.5rem;
}
.nav-desk a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 150ms ease;
}
.nav-desk a:hover { color: var(--cream); }
.nav-desk a[aria-current="page"] { color: var(--gold); }
@media (min-width: 1100px) {
  .nav-desk { display: flex; }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.menu-btn {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  border-radius: var(--radius-md);
}
@media (min-width: 1100px) {
  .menu-btn { display: none; }
}
.amazon-btn { display: none; }
@media (min-width: 768px) {
  .amazon-btn { display: inline-flex; }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 4rem 0 0 0;
  z-index: 39;
  background: color-mix(in oklab, var(--ink) 96%, transparent);
  overflow: auto;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cream);
  border-radius: var(--radius-md);
}
.nav-mobile a[aria-current="page"] { color: var(--gold); }

.footer {
  margin-top: 6rem;
  border-top: 1px solid color-mix(in oklab, var(--gold) 15%, transparent);
  background: var(--night);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer h2 {
  font-size: 1.5rem;
  color: var(--cream);
}
.footer p.muted, .footer li { color: var(--muted); font-size: 0.9rem; }
.footer ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.footer li + li { margin-top: 0.5rem; }
.footer a:hover { color: var(--cream); }
.footer-bottom {
  border-top: 1px solid color-mix(in oklab, var(--gold) 10%, transparent);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--subtle);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92dvh;
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(8,9,13,0.55), rgba(8,9,13,0.45) 50%, #08090d);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 92dvh;
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 640px) {
  .hero-inner {
    justify-content: center;
    padding-bottom: 6rem;
  }
}
.hero h1 {
  margin-top: 1.25rem;
  max-width: 56rem;
  font-size: var(--text-display);
  line-height: 0.95;
  color: var(--cream);
}
.hero .subtitle {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.4vw, 1.875rem);
  font-style: italic;
  color: var(--gold-bright);
}
.hero blockquote {
  margin: 2rem 0 0;
  max-width: 36rem;
}
.hero blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 1.875rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--parchment);
}
.hero .lede {
  margin-top: 2rem;
  max-width: 32rem;
  font-size: var(--text-lede);
  color: color-mix(in oklab, var(--cream) 90%, transparent);
}

.stats {
  border-block: 1px solid color-mix(in oklab, var(--gold) 15%, transparent);
  background: var(--night);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-block: 2.5rem;
}
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.section { padding-block: 5rem; }
.band { background: var(--night); }
.band-border {
  border-block: 1px solid color-mix(in oklab, var(--gold) 15%, transparent);
  background: var(--night);
}

.section-head { max-width: 42rem; }
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin-top: 0.75rem;
  font-size: var(--text-headline);
  color: var(--cream);
}
.section-head .lede {
  margin-top: 1rem;
  color: var(--muted);
}

.card {
  border: 1px solid color-mix(in oklab, var(--gold) 15%, transparent);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.card-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.card h3 { margin-top: 0.75rem; font-size: 1.5rem; color: var(--cream); }
.card p { margin-top: 0.75rem; color: var(--muted); }

.grid-2 { display: grid; gap: 2.5rem; }
.grid-3 { display: grid; gap: 1.25rem; }
@media (min-width: 768px) {
  .grid-2.cols { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .split { display: grid; gap: 3rem; align-items: center; }
  .split-book { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .split-media { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); }
  .split-author { grid-template-columns: 1fr 1fr; }
  .split-contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
}

.cover {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.photo {
  width: 100%;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subtle);
}

.prose { max-width: 48rem; }
.prose p + p { margin-top: 1.25rem; }
.prose .lede { font-size: var(--text-lede); color: var(--parchment); line-height: 1.7; }
.muted { color: var(--muted); }
.cream { color: var(--cream); }
.gold { color: var(--gold); }
.parchment { color: var(--parchment); }

.list-plain { list-style: none; margin: 0; padding: 0; }
.divide > * {
  border-top: 1px solid color-mix(in oklab, var(--gold) 10%, transparent);
  padding-block: 1.25rem;
}
.divide { border-block: 1px solid color-mix(in oklab, var(--gold) 10%, transparent); }

.panel {
  border: 1px solid color-mix(in oklab, var(--gold) 20%, transparent);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .panel { padding: 2rem; }
}

.form-grid { display: grid; gap: 1.25rem; }
label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--parchment);
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1rem;
}
textarea { min-height: 10rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in oklab, var(--gold) 55%, transparent);
  outline-offset: 1px;
}
input::placeholder, textarea::placeholder { color: var(--subtle); }
.form-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin-top: 0.75rem;
}
.form-note.ok { color: var(--gold-bright); }
.form-note.err { color: var(--danger); }

.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.chip {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}
.chip[aria-pressed="true"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.search {
  margin-top: 1.5rem;
}

.prophecy {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid color-mix(in oklab, var(--gold) 10%, transparent);
}
@media (min-width: 640px) {
  .prophecy { grid-template-columns: 3.5rem 8rem 1fr; gap: 1rem; }
}
.prophecy .n {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.player {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border: 1px solid color-mix(in oklab, var(--gold) 20%, transparent);
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.player-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.player-title { font-family: var(--font-display); font-size: 1.25rem; }
.player-time {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}
.player-bar {
  height: 4px;
  background: var(--raised);
  border-radius: 999px;
  overflow: hidden;
}
.player-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
}
.play-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--gold) 40%, transparent);
  background: color-mix(in oklab, var(--gold) 12%, transparent);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
}

.idaho {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-block: 1px solid color-mix(in oklab, var(--gold) 15%, transparent);
}
.idaho img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.idaho-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #08090d, rgba(8,9,13,0.3), rgba(8,9,13,0.2));
}
.idaho-copy {
  position: relative;
  display: flex;
  min-height: 22rem;
  align-items: flex-end;
  padding-bottom: 2.5rem;
}
.video-frame {
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  border: 1px solid color-mix(in oklab, var(--gold) 20%, transparent);
  background: var(--ink);
  box-shadow: var(--shadow-soft);
}

.center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.pb-20 { padding-bottom: 5rem; }
.max-sm { max-width: 22rem; margin-inline: auto; }
.max-xl { max-width: 36rem; }
.max-3xl { max-width: 48rem; margin-inline: auto; }

.seed-n {
  font-family: var(--font-display);
  font-size: 1.875rem;
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
