:root {
  --ink: #10100f;
  --coal: #191714;
  --paper: #f4efe3;
  --gold: #f0b936;
  --red: #d84334;
  --muted: #c8bdab;
  --line: rgba(240, 185, 54, .28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--gold);
  color: var(--ink);
}

header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(8, 8, 7, .92);
  border-bottom: 1px solid rgba(240, 185, 54, .18);
  backdrop-filter: blur(12px);
}

nav {
  max-width: 1220px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .09em;
  white-space: nowrap;
}

.brand span { color: var(--gold); }

.desktop-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.desktop-links a,
.mobile-panel a {
  text-decoration: none;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.desktop-links a:hover,
.desktop-links a:focus,
.desktop-links a[aria-current="page"],
.mobile-panel a:hover,
.mobile-panel a:focus,
.mobile-panel a[aria-current="page"] { color: var(--gold); }

.desktop-links .nav-buy {
  padding: .62rem .85rem;
  background: var(--gold);
  color: var(--ink);
}

.desktop-links .nav-buy:hover,
.desktop-links .nav-buy:focus,
.desktop-links .nav-buy[aria-current="page"] {
  background: #ffd15b;
  color: var(--ink);
}

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  cursor: pointer;
  list-style: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::after { content: "▾"; font-size: .9rem; }
.mobile-menu[open] summary::after { content: "▴"; }
.mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + .55rem);
  width: min(78vw, 260px);
  padding: .55rem;
  background: #11100e;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.mobile-panel a { display: block; padding: .85rem .8rem; }
.mobile-panel a + a { border-top: 1px solid rgba(255, 255, 255, .08); }

.hero {
  min-height: 92svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  background: #0b0b0a;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("steven-delorie-hero.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, .97) 0%, rgba(8, 8, 7, .78) 34%, rgba(8, 8, 7, .18) 68%),
    linear-gradient(0deg, rgba(8, 8, 7, .9), transparent 38%);
}

.hero-inner {
  width: min(1220px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 6rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: .82rem;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 3px;
  background: var(--red);
}

h1 {
  max-width: 800px;
  margin: .9rem 0 1rem;
  font-size: clamp(3rem, 7.6vw, 7.3rem);
  line-height: .87;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.hero h1 em { display: block; color: var(--gold); font-style: normal; }

.lead {
  max-width: 625px;
  margin: 1.4rem 0 2rem;
  color: #eee5d7;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.btn {
  min-height: 3.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.35rem;
  border: 2px solid var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
}

.btn.primary { background: var(--gold); color: var(--ink); }
.btn.primary:hover, .btn.primary:focus { background: #ffd15b; border-color: #ffd15b; }
.btn.secondary:hover, .btn.secondary:focus { background: rgba(240, 185, 54, .12); }

section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1rem, 4vw, 4rem); }
.wrap { max-width: 1120px; margin: auto; }
.section-tag {
  color: var(--red);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.section-title {
  max-width: 850px;
  margin: .5rem 0 1.6rem;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.intro { max-width: 760px; color: #d9cfbf; font-size: clamp(1.12rem, 2vw, 1.4rem); }
.challenge-but { color: var(--red); }

.home-intro { background: var(--paper); color: var(--ink); }
.home-intro .intro { color: #29251f; font-weight: 750; }
.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}
.quote-card {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--paper);
  border-left: 8px solid var(--gold);
  box-shadow: 20px 20px 0 var(--red);
}
.quote-card p {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 1.12;
  text-transform: uppercase;
}
.quote-card span { display: block; margin-top: 1.2rem; color: var(--gold); font-weight: 800; }

.home-paths { background: #17140f; }
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.3rem;
}
.path-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #0e0d0b;
  border-top: 5px solid var(--gold);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.path-card:hover, .path-card:focus { transform: translateY(-5px); background: #211d17; }
.path-card .number { color: var(--red); font-size: 2rem; font-weight: 1000; }
.path-card h3 { margin: .8rem 0 .65rem; font-size: 1.45rem; text-transform: uppercase; }
.path-card p { margin: 0 0 1.5rem; color: var(--muted); }
.path-card strong { margin-top: auto; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }

.page-hero {
  min-height: 58svh;
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding-top: 8rem;
  background: #0b0b0a;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("steven-delorie-hero.png") center 30% / cover no-repeat;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(8, 8, 7, .98), rgba(8, 8, 7, .58), rgba(8, 8, 7, .35));
}
.page-hero .wrap { width: 100%; }
.page-hero h1 { max-width: 950px; font-size: clamp(3rem, 7vw, 6.5rem); }

.book-section { background: linear-gradient(135deg, #161411, #090908); }
.book-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}
.cover-link {
  width: min(100%, 420px);
  display: block;
  text-decoration: none;
  filter: drop-shadow(-18px 22px 0 #060605) drop-shadow(0 30px 34px rgba(0, 0, 0, .5));
  transition: transform .2s ease, filter .2s ease;
}
.cover-link:hover, .cover-link:focus {
  transform: translateY(-5px);
  filter: drop-shadow(-18px 27px 0 #060605) drop-shadow(0 34px 38px rgba(0, 0, 0, .55));
}
.cover-art { width: 100%; height: auto; border: 1px solid rgba(240, 185, 54, .34); }
.book-copy ul { list-style: none; padding: 0; margin: 2rem 0; }
.book-copy li { position: relative; padding: .85rem 0 .85rem 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.book-copy li::before { content: "Ⅱ"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }

.manifesto { background: var(--paper); color: var(--ink); }
.manifesto .intro { color: #29251f; font-weight: 750; }
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}

.reader { background: #211d17; }
.reader .section-tag {
  margin-bottom: 1.25rem;
  padding: .15rem 0 .15rem 1rem;
  color: var(--gold);
  border-left: 6px solid var(--red);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: .065em;
}
.reader .section-title { max-width: 980px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.step { padding: 2rem; background: #15130f; border-top: 4px solid var(--gold); }
.num { color: var(--red); font-size: 2.5rem; font-weight: 1000; }
.step h3 { margin: .5rem 0; font-size: 1.35rem; text-transform: uppercase; }
.step p { margin: 0; color: var(--muted); }

.about { background: var(--paper); color: var(--ink); }
.about-grid {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: start;
  gap: clamp(2rem, 8vw, 8rem);
}
.nameplate { padding-top: 1.4rem; border-top: 10px solid var(--red); }
.nameplate strong { display: block; font-size: clamp(2.2rem, 5vw, 4rem); line-height: .9; text-transform: uppercase; }
.nameplate span { display: block; margin-top: .8rem; color: #6d6254; font-weight: 800; }
.bio { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.bio p:first-child { font-size: clamp(1.5rem, 2.6vw, 2.25rem); font-weight: 900; line-height: 1.2; }

.purchase { background: linear-gradient(135deg, #161411, #090908); }
.purchase-grid {
  min-height: calc(100svh - 6rem);
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.purchase .cover-link { margin: auto; }
.purchase-note { max-width: 650px; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1.1rem; }

.closing {
  text-align: center;
  background:
    linear-gradient(rgba(5, 5, 5, .76), rgba(5, 5, 5, .92)),
    url("steven-delorie-hero.png") center / cover;
}
.closing .section-title { margin: .5rem auto 1.4rem; }
.closing p { max-width: 680px; margin: 0 auto 2rem; color: #d9cfbf; font-size: 1.2rem; }

footer {
  padding: 2.5rem 1rem;
  background: #080807;
  border-top: 1px solid var(--line);
  color: #a89e8e;
  text-align: center;
  font-size: .9rem;
}
.footer-name { color: var(--paper); font-weight: 900; letter-spacing: .08em; }

@media (max-width: 820px) {
  .desktop-links { display: none; }
  .mobile-menu { display: block; }
  .home-intro-grid, .manifesto-grid, .book-grid, .about-grid, .purchase-grid { grid-template-columns: 1fr; }
  .path-grid, .steps { grid-template-columns: 1fr; }
  .path-card { min-height: 220px; }
  .cover-link { width: min(88%, 360px); margin: auto; }
  .book-grid { gap: 4rem; }
  .quote-card { box-shadow: 10px 10px 0 var(--red); }
  .purchase-grid { padding-top: 7rem; }
}

@media (max-width: 560px) {
  header { padding: .8rem 1rem; }
  .brand { font-size: .9rem; }
  .hero { min-height: 88svh; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 7, .95), rgba(8, 8, 7, .42)),
      linear-gradient(0deg, rgba(8, 8, 7, .95), transparent 50%);
  }
  .hero-inner { padding: 7.5rem 0 4rem; }
  .page-hero { min-height: 54svh; }
  .page-hero::after { background: linear-gradient(90deg, rgba(8, 8, 7, .96), rgba(8, 8, 7, .48)); }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path-card, .cover-link { transition: none; }
}
