:root {
  --bg: #f3ead9;
  --paper: #fbf6ec;
  --ink: #1c1410;
  --muted: #6b5c4c;
  --line: #e3d4bc;
  --gold: #c9a15b;
  --gold-2: #e4b45a;
  --amber: #b86a2d;
  --soot: #1c1410;
  --cream: #f6eedc;
  --max: 1120px;
  --header: 4.4rem;
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.55rem 0.85rem;
  background: var(--soot);
  color: var(--cream);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
  padding: 0.65rem 5vw;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-mark {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 0.45rem;
  background: var(--soot)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 6c2.2 3.2 4.6 5.4 4.6 8.4A4.6 4.6 0 0 1 16 19a4.6 4.6 0 0 1-4.6-4.6C11.4 11.4 13.8 9.2 16 6Z' fill='%23E4B45A'/%3E%3Crect x='10' y='20' width='12' height='7' rx='1.4' fill='%23F6EEDC'/%3E%3C/svg%3E")
    center / 1.35rem no-repeat;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-text small {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  margin-right: 1rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.4rem 0.7rem;
}

.nav-toggle-bars {
  width: 1rem;
  height: 0.7rem;
  background: linear-gradient(var(--ink) 0 2px, transparent 2px 6px, var(--ink) 6px 8px, transparent 8px 11px, var(--ink) 11px);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: var(--soot);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  background: var(--gold-2);
  color: var(--soot);
  font-size: 0.75rem;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.05rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.btn-gold {
  background: var(--gold-2);
  color: var(--soot);
}

.btn-dark {
  background: var(--soot);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, white 55%, transparent);
  color: white;
}

.btn-sm {
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  background: var(--soot);
  color: var(--cream);
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  color: white;
  display: grid;
  align-items: end;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 72%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(28 20 16 / 18%) 0%, rgb(28 20 16 / 78%) 72%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto 4.2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero .eyebrow {
  color: var(--gold-2);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.lede,
.section-lede {
  max-width: 46ch;
  color: var(--muted);
}

.lede {
  color: rgb(255 255 255 / 86%);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.4rem 0 0.8rem;
}

.hero-note {
  margin: 0;
  font-size: 0.88rem;
  color: rgb(255 255 255 / 70%);
}

.strip {
  background: var(--soot);
  color: var(--cream);
  padding: 1.6rem 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.strip strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.strip span {
  color: rgb(246 238 220 / 72%);
  font-size: 0.95rem;
}

.section {
  padding: 4.4rem 0;
}

.section-alt {
  background: var(--paper);
}

.bundles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}

.bundle-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}

.bundle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.bundle-body {
  padding: 1.15rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bundle-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.bundle-card ul {
  margin: 0.4rem 0 1rem;
  padding: 0 0 0 1.05rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.bundle-card .btn {
  margin-top: auto;
}

.is-featured {
  border-color: var(--gold);
  transform: translateY(-0.55rem);
  box-shadow: 0 18px 40px rgb(28 20 16 / 10%);
}

.bundle-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  margin: 0;
  background: var(--gold-2);
  color: var(--soot);
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.28rem 0.55rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.price strong,
.amount,
.price-inline strong,
.cart-total strong {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
}

.was {
  color: var(--muted);
  text-decoration: line-through;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.product {
  background: var(--bg);
  padding: 0.65rem 0.65rem 0.9rem;
}

.section-alt .product {
  background: var(--bg);
}

.cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}

.cover img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.vol {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  background: rgb(28 20 16 / 82%);
  color: var(--cream);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
}

.product h3 {
  margin: 0.7rem 0.2rem 0.2rem;
  font-size: 1.05rem;
}

.product p {
  margin: 0 0.2rem 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.2rem;
}

.minis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.mini {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.7rem;
}

.mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 7.2rem;
}

.mini p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.together {
  background: var(--soot);
  color: var(--cream);
  padding: 4rem 0;
}

.together-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.together p {
  color: rgb(246 238 220 / 78%);
}

.together-math {
  font-size: 1.05rem;
}

.together img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.program {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.steps {
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  font-family: var(--serif);
  color: var(--amber);
}

.fineprint {
  font-size: 0.88rem;
  color: var(--muted);
}

.program figcaption {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.program img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.post {
  background: var(--paper);
  border: 1px solid var(--line);
}

.post a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.post img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.post-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post time {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 650;
}

.post h3 {
  margin: 0.4rem 0 0.45rem;
  font-size: 1.18rem;
}

.post p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-more {
  margin-top: auto;
  font-weight: 650;
  font-size: 0.92rem;
}

.post a:hover .post-more {
  color: var(--amber);
}

.article-page {
  padding: 3.2rem 0 4.4rem;
}

.article-page h1 {
  max-width: 18ch;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.article-page .wrap {
  max-width: 720px;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 1.1rem 0 1.4rem;
}

.article-page .lede {
  color: var(--ink);
  font-size: 1.15rem;
}

.article-page p {
  color: var(--muted);
}

.article-back {
  display: inline-flex;
  margin-top: 1.6rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.footer {
  background: var(--soot);
  color: var(--cream);
  padding: 2.2rem 0;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer a {
  color: var(--gold-2);
}

.footer p {
  margin: 0.35rem 0 0;
  color: rgb(246 238 220 / 65%);
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgb(28 20 16 / 45%);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.3rem;
}

.cart-head,
.cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.cart-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.cart-lines {
  flex: 1;
  overflow: auto;
  margin: 1rem 0;
}

.cart-empty {
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 0.7rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-line img {
  width: 4.2rem;
  height: 4.2rem;
  object-fit: cover;
}

.cart-line h3 {
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.qty {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.qty button {
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
}

.remove {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-upsell,
.cart-bumps {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
  font-size: 0.92rem;
}

.upsell-box,
.bump {
  background: var(--bg);
  padding: 0.75rem 0.8rem;
  margin-top: 0.45rem;
}

.bump {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.bump label {
  cursor: pointer;
}

.cart-total {
  margin: 0 0 0.7rem;
}

.modal {
  width: min(860px, calc(100% - 1.5rem));
  border: 0;
  padding: 0;
  background: var(--paper);
}

.modal::backdrop {
  background: rgb(28 20 16 / 55%);
}

.modal-close {
  position: absolute;
  right: 0.6rem;
  top: 0.4rem;
  z-index: 2;
}

.modal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.modal-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.modal-copy {
  padding: 1.6rem 1.5rem 1.4rem;
}

.modal-copy ul {
  color: var(--muted);
}

.related {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
}

.related button {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.checkout-modal {
  padding: 1.8rem 1.6rem;
}

.toast {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  margin: 0;
  background: var(--soot);
  color: var(--cream);
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .bundles,
  .catalog,
  .minis,
  .together-grid,
  .program,
  .strip-grid,
  .modal-grid,
  .posts {
    grid-template-columns: 1fr 1fr;
  }

  .catalog {
    grid-template-columns: 1fr 1fr;
  }

  .is-featured {
    transform: none;
  }

  .bundle-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1.1rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav {
    margin: 0;
  }

  .nav a {
    padding: 0.7rem 0;
  }

  .strip-grid,
  .bundles,
  .minis,
  .together-grid,
  .program,
  .footer-grid,
  .modal-grid,
  .mini,
  .posts {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    margin-bottom: 2.2rem;
  }

  .is-featured {
    order: -1;
  }
}

/* --- Hearth storefront extras (forms, checkout, legal, cookies) --- */
.btn-ghost-ink {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-shell > main {
  flex: 1;
}

.subpage-hero {
  padding: 2.4rem 0 0.4rem;
}

.subpage-hero h1 {
  max-width: 18ch;
}

.card-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.4rem 1.35rem 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.95rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  min-height: 2.7rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 0;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.hearth-prose {
  color: var(--muted);
  line-height: 1.7;
}

.hearth-prose h1,
.hearth-prose h2,
.hearth-prose h3 {
  color: var(--ink);
}

.hearth-prose a {
  color: var(--amber);
}

.hearth-prose p { margin: 0 0 1rem; }
.hearth-prose ul,
.hearth-prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: none;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  box-shadow: 0 18px 40px rgb(28 20 16 / 12%);
}

.cookie-banner.is-open { display: flex; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: start;
}

.order-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.pdp-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.6rem;
  align-items: start;
}

.pdp-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.crumbs {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.55rem;
  color: var(--line);
}

.crumbs a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-page .crumbs {
  margin-bottom: 1.2rem;
}

@media (max-width: 760px) {
  .checkout-grid,
  .pdp-grid,
  .cookie-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}
