/* Fern Table Press — plain CSS, no build step */
:root {
  --cream: #f7f1e5;
  --beige: #ede3d1;
  --paper: #fbf8f2;
  --fern: #4f6f52;
  --fern-dark: #3a5440;
  --fern-deep: #2c4032;
  --sage: #8aa384;
  --sage-soft: #c5d4c0;
  --leaf: #dce6d8;
  --clay: #b85c38;
  --clay-dark: #9a4a2c;
  --charcoal: #2c2a26;
  --ink: #3a3834;
  --muted: #6b675f;
  --line: #d9d0bf;
  --white: #fffdf8;
  --shadow: 0 12px 32px rgba(44, 42, 38, 0.08);
  --radius: 16px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --max: 1120px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fern-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--clay); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--charcoal);
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.7em;
}
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(var(--narrow), calc(100% - 2rem)); margin-inline: auto; }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--fern);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--charcoal);
  min-width: 0;
}
.logo:hover { color: var(--fern-dark); }
.logo img { width: 34px; height: 34px; flex-shrink: 0; }
.logo-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.logo-sub {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.12rem;
}
.nav-toggle { position: absolute; left: -999px; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  position: relative;
  border-radius: 2px;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fern-dark); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--fern); }

@media (max-width: 800px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-nav a { display: block; padding: 0.7rem 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary {
  background: var(--fern);
  color: var(--white);
}
.btn-primary:hover { background: var(--fern-dark); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--fern-deep);
  border-color: var(--fern);
}
.btn-ghost:hover { background: var(--leaf); color: var(--fern-deep); }
.btn-soon,
a.btn-soon[aria-disabled="true"] {
  background: var(--beige);
  color: var(--muted);
  border-color: var(--line);
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

/* Hero */
.hero {
  position: relative;
  padding: 3.2rem 0 3.4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(138, 163, 132, 0.22), transparent 50%),
    radial-gradient(ellipse at 0% 90%, rgba(184, 92, 56, 0.08), transparent 45%),
    var(--cream);
}
.hero-grid {
  display: grid;
  gap: 2.2rem;
  align-items: center;
}
@media (min-width: 840px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; }
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--fern-dark);
}
.hero-lead { font-size: 1.15rem; color: var(--ink); max-width: 36em; }
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-art img {
  width: min(100%, 380px);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.hero-fern {
  position: absolute;
  width: 180px;
  opacity: 0.18;
  pointer-events: none;
  right: -20px;
  bottom: -30px;
}

/* Sections */
.section { padding: 3.4rem 0; }
.section-head { max-width: 38em; margin-bottom: 2rem; }
.band-beige { background: var(--beige); }
.band-fern { background: var(--fern-deep); color: var(--cream); }
.band-fern h2, .band-fern h3 { color: var(--paper); }
.band-paper { background: var(--paper); }
.band-leaf { background: linear-gradient(180deg, var(--leaf), var(--cream)); }

/* Product cards */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card-image {
  background: var(--beige);
  padding: 1.1rem 1.1rem 0;
}
.card-image img {
  margin-inline: auto;
  width: min(100%, 280px);
  border-radius: 4px;
}
.card-body { padding: 1.15rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.3em; }
.card-body h3 a { text-decoration: none; color: inherit; }
.card-body h3 a:hover { color: var(--fern-dark); }
.price {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--fern-dark);
  margin: 0.2em 0 0.8em;
}
.card-body .btn, .card-body .btn-row { margin-top: auto; }

/* Editions */
.edition-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .edition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .edition-grid { grid-template-columns: repeat(3, 1fr); }
}
.edition {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.2rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.edition.first {
  border-color: var(--fern);
  box-shadow: inset 0 0 0 1px var(--fern);
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--fern);
  color: var(--white);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  width: max-content;
}
.badge-soon {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

/* Lead magnet */
.magnet {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 840px) {
  .magnet { grid-template-columns: 1fr 1.1fr; }
}
.magnet-visual img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.signup input[type="email"] {
  flex: 1 1 220px;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
}
.signup input[type="email"]:disabled {
  background: var(--beige);
  color: var(--muted);
}

/* Product page */
.product-hero {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 2.4rem 0 2rem;
}
@media (min-width: 840px) {
  .product-hero { grid-template-columns: 0.9fr 1.1fr; gap: 3rem; }
}
.product-cover {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--line);
}
.product-cover img { margin-inline: auto; width: min(100%, 420px); }
.notice {
  background: var(--leaf);
  border-left: 3px solid var(--fern);
  padding: 0.9rem 1rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
  margin: 1.2rem 0;
}
.preview-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .preview-grid { grid-template-columns: 1fr 1fr; }
}
.preview-grid figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.preview-grid figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tools */
.tool-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 0.6rem;
}
.tool-card .tool-icon { color: var(--fern); }
.amazon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d8b56a;
  color: var(--charcoal);
  font-weight: 700;
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #c4a056;
  pointer-events: none;
  opacity: 0.7;
}
.amazon-btn[href="#"] { cursor: not-allowed; }

/* Footer */
.site-footer {
  background: var(--fern-deep);
  color: var(--beige);
  padding: 2.6rem 0 1.6rem;
  margin-top: 0;
  font-size: 0.95rem;
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.6rem;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand { font-family: var(--serif); font-size: 1.25rem; color: var(--paper); margin-bottom: 0.4rem; }
.footer-col h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-bottom: 0.6rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0.3rem 0; }
.footer-legal {
  border-top: 1px solid rgba(245, 241, 229, 0.15);
  margin-top: 2rem;
  padding-top: 1.1rem;
  color: var(--sage-soft);
  font-size: 0.85rem;
}
.footer-legal p { margin: 0 0 0.45em; }

/* Article / legal pages */
.page-title { padding: 2.4rem 0 0.4rem; }
.prose { padding-bottom: 3.5rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.2em; }

/* Misc */
.hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
address { font-style: normal; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0 0 0.8rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Hero cover cluster */
.hero-covers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.6rem;
}
.hero-covers img {
  width: 32%;
  max-width: 200px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
@media (min-width: 840px) {
  .hero-covers { min-height: 360px; gap: 0.8rem; }
  .hero-covers img { max-width: 240px; }
  .hero-covers img:nth-child(2) { width: 36%; max-width: 270px; }
}

/* Tool detail */
.tool-hero { padding: 2.4rem 0 3rem; display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) {
  .tool-hero { grid-template-columns: 200px 1fr; gap: 2.5rem; }
}
.tool-mark {
  width: 160px;
  height: 160px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fern);
}
.tool-mark svg { width: 88px; height: 88px; }
.used-for { font-size: 1.05rem; }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumb a { color: var(--fern-dark); }

/* 404 */
.empty-state { text-align: center; padding: 4.5rem 1rem 5rem; }
.empty-state h1 { margin-bottom: 0.4em; }
