:root {
  --navy: #1a2744;
  --navy-soft: #2a3a5c;
  --cream: #f6f1e8;
  --cream-dark: #ece4d4;
  --gold: #c4a35a;
  --gold-dark: #8f7040;
  --teal: #2c5f5d;
  --teal-soft: #3d7a77;
  --rule: #c9bfae;
  --paper: #fffdf8;
  --text: #1a2744;
  --muted: #5c5a54;
  --max: 72rem;
  --article: 44rem;
  --space: 1.25rem;
  --focus: #2c5f5d;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

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

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

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.wordmark {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.wordmark .kicker {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
}
.wordmark strong {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

nav.main {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
nav.main a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
}
nav.main a:hover, nav.main a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.8rem 1.2rem;
  min-height: 44px;
  border: 2px solid var(--navy);
  border-radius: 0;
}
.btn:hover { background: var(--navy-soft); color: var(--cream); }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: #d4b56a; color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--navy);
}
.btn-ghost:hover { background: var(--cream-dark); color: var(--navy); }

.hero {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.hero .kicker {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.85rem;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero .lede {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.4;
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: var(--navy-soft);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--rule); }

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.5rem;
}
.subhead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.75rem;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.product {
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product a.cover { display: block; background: var(--cream-dark); }
.product img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product .body { padding: 1.15rem 1.15rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.product h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.product .price {
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}
.product p { margin: 0 0 1rem; color: var(--muted); font-size: 0.98rem; flex: 1; }
.product .row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { border-top: 1px solid var(--rule); }
.guide-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: var(--navy);
  align-items: baseline;
}
.guide-list a:hover h3 { color: var(--teal); }
.guide-list h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.guide-list p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.guide-list .meta { color: var(--gold-dark); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }

.prose { padding: 2.5rem 0 3.5rem; }
.prose h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0 0 0.8rem;
}
.prose .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}
.prose p, .prose li { max-width: 42rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0 1.75rem;
  background: var(--paper);
}
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  padding: 0.65rem 0.7rem;
}
.prose th { background: var(--cream-dark); font-weight: 600; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1.1rem;
  border-left: 3px solid var(--gold);
  color: var(--navy-soft);
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
}
.prose .note {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
  font-size: 0.98rem;
}
.prose .cta-box {
  background: var(--navy);
  color: var(--cream);
  padding: 1.5rem 1.4rem;
  margin: 2.25rem 0 0;
}
.prose .cta-box h2 { color: var(--cream); margin-bottom: 0.4rem; }
.prose .cta-box p { color: #d9d3c6; }
.prose .cta-box .btn { margin-top: 0.4rem; }
.crumb { font-size: 0.85rem; color: var(--muted); margin: 0 0 1.1rem; }
.crumb a { color: var(--muted); }

.sample {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.75rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  white-space: pre-wrap;
  overflow-x: auto;
}
.prompt {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1rem 1.15rem 1.15rem;
  margin: 1rem 0 1.25rem;
}
.prompt h3 { margin-top: 0; }
.prompt pre {
  white-space: pre-wrap;
  font-family: "DM Sans", ui-monospace, monospace;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
  background: var(--cream);
  padding: 0.85rem;
  overflow-x: auto;
}

.buy-card {
  display: grid;
  grid-template-columns: minmax(0, 12rem) 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.2rem;
  margin: 2rem 0;
}
@media (max-width: 640px) {
  .buy-card { grid-template-columns: 1fr; }
  .buy-card img { max-width: 16rem; }
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer.site .grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
footer.site a { color: var(--navy-soft); }
footer.site strong { color: var(--navy); font-family: "Fraunces", Georgia, serif; }
@media (max-width: 720px) {
  footer.site .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  header.site nav, footer.site, .btn, .skip { display: none !important; }
  body, .prose { background: white; }
  a { color: inherit; text-decoration: none; }
}

.promo-banner {
  background: var(--navy);
  color: var(--cream);
  font-size: 0.95rem;
  line-height: 1.45;
}
.promo-banner .wrap {
  padding: 0.7rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}
.promo-banner p { margin: 0; max-width: 52rem; }
.promo-banner strong {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.promo-banner a { color: var(--cream); }
.promo-banner a:hover { color: var(--gold); }

.bundles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.bundle {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 1.35rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.bundle .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 0.5rem;
}
.bundle h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}
.bundle .price {
  font-weight: 700;
  margin: 0 0 0.7rem;
}
.bundle p { margin: 0 0 1rem; color: var(--muted); flex: 1; }
