/* ---------------------------------------------------------
   Mother Road Mailroom — site.css
   Single shared stylesheet. Cream + ink, magazine rhythm.
--------------------------------------------------------- */

:root {
  --paper: #F4EBDB;
  --paper-deep: #ECE0C8;
  --ink: #2A1A12;
  --ink-soft: #5a4a3e;
  --rust: #B8543A;
  --rust-deep: #94422D;
  --teal: #8AA9AA;
  --sand: #D8C19A;
  --sand-soft: #E6D4B0;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hand: 'Caveat', 'Bradley Hand', cursive;

  --shadow-soft: 0 1px 2px rgba(80, 50, 30, 0.06), 0 6px 18px rgba(80, 50, 30, 0.08);
  --shadow-card: 0 2px 4px rgba(80, 50, 30, 0.07), 0 12px 28px rgba(80, 50, 30, 0.10);

  --max-wide: 1080px;
  --max-prose: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
}

/* Paper grain overlay — very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.10  0 0 0 0 0.07  0 0 0 0.9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

body > * { position: relative; z-index: 2; }

/* --- Typography --- */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-variation-settings: "opsz" 144;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.3em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--rust-deep); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--rust); color: var(--paper); }

.hand {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 1.45em;
  line-height: 1.2;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rust);
  font-weight: 600;
  margin: 0 0 0.9em;
}

.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* --- Skip link --- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* --- Layout containers --- */
.wrap {
  width: 100%;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-prose {
  width: 100%;
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Site header / nav --- */
.site-header {
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(42, 26, 18, 0.12);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.brand small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--rust); }
.nav a[aria-current="page"] {
  color: var(--rust);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}
.nav .cta-pill {
  background: var(--rust);
  color: var(--paper);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav .cta-pill:hover {
  background: var(--rust-deep);
  color: var(--paper);
  transform: translateY(-1px);
}
.nav .cta-pill[aria-current="page"] {
  background: var(--rust-deep);
  text-decoration: none;
}

.letterhead-rule {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.letterhead-rule::after {
  content: "";
  display: block;
  height: 1px;
  background: repeating-linear-gradient(to right,
    var(--ink) 0 6px,
    transparent 6px 12px);
  opacity: 0.25;
  margin-top: -1px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  line-height: 1.2;
}
.btn:hover { background: var(--rust-deep); color: var(--paper); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* Postmark / stamp button — for the big Stripe CTA */
.btn-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.15rem;
  background: var(--rust);
  color: var(--paper);
  padding: 22px 44px;
  text-decoration: none;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: background 0.15s ease, transform 0.1s ease;
  /* Perforated stamp edge */
  -webkit-mask:
    radial-gradient(circle 5px at 5px 5px, transparent 98%, #000 100%) -5px -5px / 14px 14px;
          mask:
    radial-gradient(circle 5px at 5px 5px, transparent 98%, #000 100%) -5px -5px / 14px 14px;
}
.btn-stamp:hover { background: var(--rust-deep); color: var(--paper); transform: translateY(-2px); }
.btn-stamp small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

/* --- Sections --- */
section { padding: 70px 0; }
section.tight { padding: 50px 0; }
section.loose { padding: 100px 0; }

.section-head {
  margin-bottom: 40px;
  max-width: 640px;
}

/* --- Hero --- */
.hero {
  padding: 90px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem);
  margin-bottom: 0.5em;
}
.hero .lede { margin-bottom: 1.5em; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.hero-actions .meta { color: var(--ink-soft); font-size: 0.9rem; }

/* The envelope illustration block in hero */
.envelope {
  background: var(--paper-deep);
  border: 1px solid rgba(42, 26, 18, 0.14);
  padding: 36px 32px;
  position: relative;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 49.5%, rgba(42,26,18,0.05) 50%, transparent 50.5%);
  pointer-events: none;
}
.envelope .stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 78px;
  height: 96px;
  background: var(--rust);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px;
  line-height: 1.2;
  -webkit-mask:
    radial-gradient(circle 4px at 4px 4px, transparent 98%, #000 100%) -4px -4px / 11px 11px;
          mask:
    radial-gradient(circle 4px at 4px 4px, transparent 98%, #000 100%) -4px -4px / 11px 11px;
}
.envelope .postmark {
  position: absolute;
  top: 60px;
  right: 110px;
  width: 110px;
  height: 110px;
  border: 2px solid var(--rust);
  border-radius: 50%;
  color: var(--rust);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  line-height: 1.3;
  opacity: 0.7;
  transform: rotate(-9deg);
}
.envelope .addr-block {
  margin-top: auto;
  max-width: 60%;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
}
.envelope .return-addr {
  position: absolute;
  top: 26px;
  left: 28px;
  font-family: var(--font-hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.25;
}

/* --- "What's in the box" --- */
.box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 700px) {
  .box-grid { grid-template-columns: 1fr; }
}
.box-item {
  background: var(--paper-deep);
  border: 1px solid rgba(42, 26, 18, 0.10);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
}
.box-item .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--rust);
  line-height: 1;
  display: block;
  margin-bottom: 14px;
}
.box-item h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.box-item p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --- Beth voice teaser block --- */
.voice-block {
  background: var(--sand-soft);
  padding: 60px 44px;
  border: 1px solid rgba(42, 26, 18, 0.10);
  position: relative;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 600px) { .voice-block { padding: 40px 28px; } }
.voice-block .eyebrow { color: var(--rust-deep); }
.voice-block h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}
.voice-block p {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
}
.voice-block .signature {
  margin-top: 28px;
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1;
}
.voice-block .signature small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* --- Sample letter peek --- */
.letter-peek {
  background: #FBF4E2;
  padding: 56px 52px;
  border: 1px solid rgba(42, 26, 18, 0.10);
  box-shadow: var(--shadow-card);
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
}
@media (max-width: 600px) { .letter-peek { padding: 36px 28px; } }
.letter-peek::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--rust) 0 12px,
    var(--paper) 12px 24px,
    var(--ink) 24px 36px,
    var(--paper) 36px 48px
  );
  opacity: 0.5;
}
.letter-peek .date {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 500;
}
.letter-peek .greeting {
  font-family: var(--font-hand);
  font-size: 1.7rem;
  margin-bottom: 12px;
}
.letter-peek .sign-off {
  margin-top: 28px;
  font-family: var(--font-hand);
  font-size: 1.7rem;
  line-height: 1.2;
}
.letter-peek .fade {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* --- CTA band --- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  color: var(--paper);
  margin: 0 0 16px;
}
.cta-band p {
  color: rgba(244, 235, 219, 0.85);
  max-width: 520px;
  margin: 0 auto 28px;
}
.cta-band .btn { background: var(--rust); }
.cta-band .btn:hover { background: var(--paper); color: var(--ink); }
.cta-band .meta { font-size: 0.85rem; color: rgba(244, 235, 219, 0.6); margin-top: 16px; }

/* --- Pricing card --- */
.price-card {
  background: var(--paper-deep);
  border: 1px solid rgba(42, 26, 18, 0.14);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.price-card .price {
  font-family: var(--font-serif);
  font-size: 3.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 12px 0 4px;
}
.price-card .price sup {
  font-size: 1.4rem;
  font-weight: 600;
  vertical-align: top;
  margin-right: 2px;
  color: var(--rust);
}
.price-card .price-cycle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 24px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}
.price-card li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.97rem;
  color: var(--ink);
  border-bottom: 1px solid rgba(42, 26, 18, 0.08);
}
.price-card li:last-child { border-bottom: none; }
.price-card li::before {
  content: "✦";
  color: var(--rust);
  position: absolute;
  left: 0;
  font-size: 0.9rem;
  top: 9px;
}
.price-card .btn { margin-top: 8px; width: 100%; }

/* --- FAQ --- */
.faq {
  border-top: 1px solid rgba(42, 26, 18, 0.15);
}
.faq details {
  border-bottom: 1px solid rgba(42, 26, 18, 0.15);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.15rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--rust);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 640px;
}

/* --- Field Notes (journal) --- */
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) {
  .notes-grid { grid-template-columns: 1fr; gap: 32px; }
}
.note-card {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.note-card .date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.note-card h3 {
  font-size: 1.6rem;
  margin: 0 0 12px;
}
.note-card h3 a { color: var(--ink); text-decoration: none; }
.note-card h3 a:hover { color: var(--rust); }
.note-card p {
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.note-card .read-more {
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* --- Long-form (Field Notes post + About) --- */
article.prose {
  max-width: var(--max-prose);
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
}
article.prose .post-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 14px;
}
article.prose h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5em;
}
article.prose p { margin-bottom: 1.3em; }
article.prose blockquote {
  border-left: 3px solid var(--rust);
  padding-left: 22px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  margin: 2em 0;
}

/* --- Photo placeholders --- */
.photo {
  background: var(--paper-deep);
  border: 1px solid rgba(42, 26, 18, 0.14);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.photo::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(42, 26, 18, 0.18);
  pointer-events: none;
}
.photo.tall { aspect-ratio: 3 / 4; }
.photo.wide { aspect-ratio: 16 / 9; }
.photo svg {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 10px;
  opacity: 0.55;
}

.photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}
@media (max-width: 600px) { .photo-row { grid-template-columns: 1fr; } }

/* --- Subscribe page bits --- */
.gift-callout {
  background: var(--teal);
  color: var(--paper);
  padding: 36px 32px;
  border: 1px solid rgba(42, 26, 18, 0.10);
  box-shadow: var(--shadow-soft);
}
.gift-callout h3 {
  margin-top: 0;
  color: var(--paper);
}
.gift-callout p {
  color: rgba(244, 235, 219, 0.95);
  margin: 0;
}

.form-block {
  background: var(--paper-deep);
  padding: 40px 36px;
  border: 1px solid rgba(42, 26, 18, 0.10);
  box-shadow: var(--shadow-soft);
}
.form-block h3 { margin-top: 0; }
.form-block .form-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
@media (max-width: 540px) {
  .form-block .form-row { grid-template-columns: 1fr; }
}
.form-block label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 6px;
}
.form-block input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(42, 26, 18, 0.25);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 3px;
}
.form-block input[type="email"]:focus { border-color: var(--rust); }
.form-block button {
  white-space: nowrap;
}
.form-block .form-success {
  display: none;
  padding: 20px;
  background: var(--sand-soft);
  border: 1px solid rgba(42, 26, 18, 0.10);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.form-block.is-success .form-row,
.form-block.is-success label { display: none; }
.form-block.is-success .form-success { display: block; }

/* --- Subscribe page hero stamp area --- */
.subscribe-hero {
  text-align: center;
  padding: 80px 0 50px;
}
.subscribe-hero h1 { margin-bottom: 0.3em; }
.subscribe-hero .lede { max-width: 520px; margin: 0 auto 36px; }
.subscribe-stamp-wrap { display: flex; justify-content: center; margin-bottom: 24px; }

/* --- 2-col layout (subscribe page) --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* --- Letter Club item cards --- */
.item-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .item-cards { grid-template-columns: 1fr; gap: 28px; } }
.item-card {
  background: var(--paper);
  padding: 0;
  border: 1px solid rgba(42, 26, 18, 0.10);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.item-card .photo {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid rgba(42, 26, 18, 0.10);
  box-shadow: none;
}
.item-card .item-body { padding: 26px 28px 28px; }
.item-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.item-card .label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.item-card p { color: var(--ink-soft); font-size: 0.97rem; }

/* --- Footer --- */
.site-footer {
  background: var(--ink);
  color: rgba(244, 235, 219, 0.85);
  padding: 64px 0 36px;
  margin-top: 80px;
  font-size: 0.95rem;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
.site-footer .brand {
  color: var(--paper);
  font-size: 1.5rem;
}
.site-footer .brand small { color: rgba(244, 235, 219, 0.6); }
.site-footer .footer-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(244, 235, 219, 0.75);
  margin-top: 14px;
  max-width: 320px;
}
.site-footer h4 {
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a {
  color: rgba(244, 235, 219, 0.85);
  text-decoration: none;
}
.site-footer a:hover { color: var(--rust); text-decoration: underline; }
.site-footer .coming {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: rgba(244, 235, 219, 0.6);
  margin-top: 6px;
  display: block;
}
.site-footer .bottom {
  border-top: 1px solid rgba(244, 235, 219, 0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(244, 235, 219, 0.55);
}

/* --- 404 --- */
.lost-hero { padding: 120px 0 60px; text-align: center; max-width: 600px; margin: 0 auto; }
.lost-hero h1 { font-size: clamp(3rem, 7vw, 5rem); }
.lost-hero .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* --- Misc helpers --- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.divider {
  height: 1px;
  background: repeating-linear-gradient(to right,
    var(--ink) 0 6px,
    transparent 6px 12px);
  opacity: 0.25;
  margin: 60px 0;
}

/* Decorative section header rule */
.head-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}
.head-rule::before, .head-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(42, 26, 18, 0.18);
}
.head-rule span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

/* =================================================================
   V1.1 — DEEPER, TEXTURED BACKGROUND
   Overrides at the bottom of the file so cascade wins without
   touching the original palette block.
   ================================================================= */

:root {
  /* Deeper kraft/parchment background — the "desk" */
  --paper: #C9AC7A;
  /* Cream card surfaces — "letters on the desk" */
  --paper-card: #F0E1C2;
  /* Deeper accent — used in envelope mock, accent fills */
  --paper-deep: #B59465;
  /* Soft sand for hover states + secondary cards */
  --sand-soft: #DEC394;
  /* Slightly warmer soft ink for body on the kraft */
  --ink-soft: #4a3829;
}

body {
  /* Multi-layered background:
     1) Soft vignette gradient (atmosphere)
     2) Faint horizon stripe near the bottom for depth
     3) Base kraft color */
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%,
      rgba(255, 245, 220, 0.32) 0%,
      transparent 60%),
    radial-gradient(ellipse 110% 70% at 50% 100%,
      rgba(70, 40, 20, 0.18) 0%,
      transparent 65%),
    var(--paper);
  background-attachment: fixed;
}

/* Grain — bumped from 0.045 → 0.10 so it actually reads */
body::before {
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.11  0 0 0 0 0.07  0 0 0 0.85 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Decorative postmark + route-shield watermarks scattered as a fixed bg layer.
   Very low opacity — sits behind everything but adds atmosphere. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'><g fill='none' stroke='%232a1a12' stroke-width='2.4'><circle cx='140' cy='200' r='62'/><circle cx='140' cy='200' r='52' stroke-dasharray='3 5'/><text x='140' y='205' text-anchor='middle' font-family='Georgia,serif' font-size='14' fill='%232a1a12' stroke='none' font-weight='700'>ROUTE 66</text><circle cx='720' cy='620' r='74'/><circle cx='720' cy='620' r='62' stroke-dasharray='3 6'/><text x='720' y='616' text-anchor='middle' font-family='Georgia,serif' font-size='12' fill='%232a1a12' stroke='none' font-weight='700'>MOTHER</text><text x='720' y='633' text-anchor='middle' font-family='Georgia,serif' font-size='12' fill='%232a1a12' stroke='none' font-weight='700'>ROAD</text><path d='M 380 460 L 380 540 L 430 580 L 480 540 L 480 460 Z'/><path d='M 388 472 L 388 530 L 430 562 L 472 530 L 472 472 Z' stroke-width='1.5'/><text x='430' y='510' text-anchor='middle' font-family='Georgia,serif' font-size='22' fill='%232a1a12' stroke='none' font-weight='700'>66</text><circle cx='820' cy='140' r='42'/><text x='820' y='146' text-anchor='middle' font-family='Georgia,serif' font-size='11' fill='%232a1a12' stroke='none' font-weight='600'>POSTMARK</text></g></svg>");
  background-repeat: repeat;
  background-size: 900px 900px;
  background-position: 50% 0;
}

body > * { position: relative; z-index: 2; }

/* === re-tune content surfaces so things read clearly on the new kraft === */

/* Hero / first sections sit directly on kraft — make sure text contrast still passes */
h1, h2, h3, h4 { color: #1d1109; }
p, li { color: var(--ink); }

/* Sections that benefit from a cream "card on the desk" look — let me select by common patterns */

/* Envelope illustration: lift to cream */
.envelope {
  background:
    linear-gradient(135deg, var(--paper-card) 0%, #E8D5AE 100%);
  border: 1px solid rgba(42, 26, 18, 0.18);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 4px 8px rgba(60, 35, 15, 0.18),
    0 24px 40px rgba(60, 35, 15, 0.22);
}

/* Sample letter peek / what's-in-the-box cards: cream + warm shadow */
.peek, .package-item, .card, .item-card, .sample-letter, .what-card, .feature-card {
  background: var(--paper-card);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5) inset,
    0 4px 10px rgba(60, 35, 15, 0.16),
    0 20px 36px rgba(60, 35, 15, 0.18);
}

/* Generic darker section bands — give them the deeper kraft tone for rhythm */
.section-alt, .band-alt, section.alt {
  background:
    linear-gradient(180deg, transparent 0%, rgba(70, 40, 18, 0.12) 50%, transparent 100%);
}

/* FAQ <details> on letter-club — needs cream surface */
details {
  background: var(--paper-card);
  border-radius: 4px;
  padding: 14px 18px;
  border: 1px solid rgba(42,26,18,0.10);
  box-shadow: 0 2px 6px rgba(60, 35, 15, 0.10);
  margin-bottom: 10px;
}
details summary { cursor: pointer; }

/* Footer: deepen */
footer, .site-footer {
  background:
    linear-gradient(180deg, transparent 0%, rgba(40, 20, 10, 0.18) 100%);
}

/* Nav: subtle backdrop so it floats above the texture */
header.site-header, nav.site-nav, .nav, .site-nav {
  background: rgba(241, 225, 194, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(42, 26, 18, 0.10);
}

/* The "from Beth" voice block (handwritten signatures) deserve a postcard surface */
.from-beth, .voice-block, blockquote.beth {
  background: var(--paper-card);
  border: 1px solid rgba(42,26,18,0.10);
  box-shadow: 0 6px 18px rgba(60, 35, 15, 0.18);
  padding: 28px 32px;
  border-radius: 2px;
  position: relative;
}

/* Subtle perforated edge accent under big section divisions */
.section + .section,
section + section { position: relative; }
.section + .section::before,
section + section::before {
  content: "";
  position: absolute;
  top: -1px; left: 8%; right: 8%; height: 1px;
  background-image: repeating-linear-gradient(to right,
    rgba(42, 26, 18, 0.18) 0 4px,
    transparent 4px 10px);
}
