:root {
  --ink: #241c16;
  --ink-soft: #5c5146;
  --cream: #fbf6ee;
  --parchment: #f3eadc;
  --parchment-deep: #e7dcc8;
  --line: rgba(36, 28, 22, 0.14);
  --navy: #1a2744;
  --navy-deep: #10182b;
  --gold: #c6a15a;
  --gold-deep: #8a5e2b;
  --gold-soft: #f3e6c8;
  --shadow: 0 24px 50px rgba(16, 24, 43, 0.28);
  --serif: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --measure: 68ch;
  --header: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--gold-soft);
  color: var(--navy);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 24, 43, 0.94);
  color: var(--gold-soft);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(198, 161, 90, 0.28);
}

.header-inner,
.hero-inner,
.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.wordmark-sub {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav {
  display: flex;
  gap: 1.35rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f7f1e6;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(243, 230, 200, 0.4);
  background: transparent;
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.hero {
  background:
    radial-gradient(ellipse at 78% 18%, rgba(198, 161, 90, 0.28), transparent 36%),
    radial-gradient(ellipse at 8% 90%, rgba(140, 74, 50, 0.22), transparent 42%),
    linear-gradient(165deg, #243656 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: #f8f3ea;
  padding: 4.5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.eyebrow,
.theme-kicker,
.panel-kicker,
.author-card-label {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.hero .eyebrow {
  color: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 640;
  color: #fffaf3;
}

.subtitle {
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 520;
  color: var(--gold-soft);
}

.byline {
  margin: 0.85rem 0 0;
  color: #e7d7b8;
  font-weight: 600;
}

.lede {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  font-size: 1.14rem;
  color: #f4efe6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.button-gold {
  background: var(--gold);
  color: #1d160f;
}

.button-gold:hover,
.button-gold:focus-visible {
  background: #ddc07a;
}

.button-ghost {
  border-color: rgba(248, 243, 234, 0.45);
  color: #f8f3ea;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
}

.hero-facts div {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(243, 230, 200, 0.28);
}

.hero-facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-facts dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.cover-wrap {
  margin: 0;
  justify-self: end;
}

.cover-frame {
  padding: 0.7rem;
  background: linear-gradient(180deg, #f8efdc, #d7b56a 45%, #7a5428);
  box-shadow: var(--shadow);
}

.cover-frame img {
  display: block;
  width: min(100%, 420px);
  height: auto;
}

.cover-wrap figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-soft);
}

.theme-band {
  background: var(--navy);
  color: #f8f3ea;
  text-align: center;
  padding: 2.4rem 1.25rem 2.7rem;
  border-top: 1px solid rgba(198, 161, 90, 0.25);
}

.theme-kicker {
  color: var(--gold);
}

.theme-line {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.25;
}

.section {
  padding: 5rem 0;
}

.section-tint {
  background:
    linear-gradient(180deg, rgba(231, 220, 200, 0.55), rgba(243, 234, 220, 0.2)),
    var(--parchment);
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-heading h1,
.author-banner h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.section-heading h1 {
  color: var(--ink);
}

.section-lead,
.author-lead {
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.prose-grid,
.author-grid,
.book-layout,
.schedule {
  display: grid;
  gap: 2rem;
}

.prose-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
  align-items: start;
}

.prose p,
.day-note,
.book-aside p {
  max-width: var(--measure);
}

.prose p + p,
.book-aside p + p {
  margin-top: 1rem;
}

.callout,
.author-card,
.book-aside,
.week-panel {
  background: #fffaf4;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(36, 28, 22, 0.05);
}

.callout,
.author-card,
.book-aside {
  padding: 1.4rem 1.4rem 1.2rem;
}

.callout h3,
.week-panel h3,
.steps h3 {
  margin-bottom: 0.55rem;
}

.callout ul {
  margin: 0 0 0.8rem;
  padding-left: 1.15rem;
}

.callout li + li {
  margin-top: 0.25rem;
}

.count-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.count-row article {
  padding: 1.3rem 1.2rem 1.15rem;
  background: var(--navy);
  color: #f7f1e6;
}

.count-row h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.45rem;
  color: #fffaf3;
}

.count-row p {
  margin: 0;
  color: #e6dccb;
}

.count {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}

.schedule {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: start;
}

.week-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-label {
  margin: 0.85rem 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-label:first-child {
  margin-top: 0;
}

.week-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.week-tab:hover,
.week-tab:focus-visible {
  background: rgba(255, 250, 244, 0.7);
}

.week-tab[aria-selected="true"] {
  background: var(--navy);
  color: #f8f3ea;
}

.week-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold-deep);
  min-width: 1.6rem;
}

.week-tab[aria-selected="true"] .week-num {
  color: var(--gold);
}

.week-name {
  font-weight: 650;
}

.week-panel {
  padding: 1.6rem 1.5rem 1.3rem;
  min-height: 100%;
}

.week-panel h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  max-width: 22ch;
}

.day-list {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
}

.day-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.day-list span {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.steps li {
  margin: 0;
  padding: 1.1rem 1rem 1rem;
  background: #fffaf4;
  border-top: 3px solid var(--gold-deep);
}

.steps h3 {
  font-size: 1.3rem;
}

.steps p,
.day-note {
  margin: 0;
  color: var(--ink-soft);
}

.day-note {
  margin-top: 1.5rem;
  max-width: 72ch;
}

.section-author {
  padding: 0 0 5rem;
  background: var(--cream);
}

.author-banner {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(198, 161, 90, 0.2), transparent 42%),
    var(--navy);
  color: #f8f3ea;
  padding: 4.4rem 0 3.2rem;
  margin-bottom: 2.5rem;
}

.author-banner h1 {
  color: #fffaf3;
}

.section-author .eyebrow,
.section-author h2 {
  color: #f8f3ea;
}

.section-author .eyebrow {
  color: var(--gold);
}

.author-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.75fr);
  align-items: start;
}

.author-lead {
  color: #e7dccb;
  max-width: 46rem;
}

.section-author .prose {
  margin-top: 0;
  color: var(--ink);
}

.author-card blockquote {
  margin: 0;
}

.author-card p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.35;
}

.author-card-sign {
  margin-top: 1rem !important;
  font-family: var(--sans) !important;
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
}

.book-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  align-items: start;
}

.specs {
  margin: 0;
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.15rem 1rem;
}

.specs div {
  display: contents;
}

.specs dt,
.specs dd {
  margin: 0;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.specs dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.specs dd {
  font-weight: 600;
}

.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--navy);
}

.price-note {
  margin: 0.35rem 0 1rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-deep);
}

.site-footer {
  background: var(--navy-deep);
  color: #e7dccb;
  padding: 2.5rem 0 2.8rem;
  text-align: center;
}

.footer-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fffaf3;
}

.site-footer p {
  margin: 0.3rem 0 0;
}

.footer-isbn {
  margin-top: 0.8rem !important;
  color: var(--gold);
  font-weight: 650;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-inner,
  .prose-grid,
  .schedule,
  .author-grid,
  .book-layout,
  .steps,
  .count-row,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .cover-wrap {
    justify-self: center;
    order: -1;
  }

  .cover-frame img {
    width: min(72%, 260px);
  }

  .hero {
    padding: 1.75rem 0 2.4rem;
  }

  .hero-inner {
    gap: 1.35rem;
  }

}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(198, 161, 90, 0.28);
    padding: 0.4rem 1.25rem 0.9rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(243, 230, 200, 0.12);
  }

  .header-inner {
    position: relative;
  }

  .wordmark-title {
    font-size: 1.02rem;
  }

  .section:not(.section-author) {
    padding: 3.4rem 0;
  }

  .day-list li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.author-photo { max-width: 18rem; margin: 0 0 1.5rem; }
.author-photo img { display: block; border-radius: 0.75rem; }
