/* ==========================================================================
   First Pull — design system (Child A)
   Trust-first, warm, editorial. A real coffee obsessive's workshop,
   not a funnel. Craft premium, message honest.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --noir: #120b07;        /* depth / dark surfaces */
  --espresso: #1d130c;    /* footer, dark bands */
  --amber: #d9a441;       /* highlights, accents */
  --caramel: #b45f22;     /* links, primary buttons */
  --caramel-deep: #93491a;/* button hover */
  --cream: #f5ead6;       /* alt section wash */
  --paper: #fffdf8;       /* page background */
  --card: #ffffff;        /* cards on paper */
  --muted: #6f5f4c;       /* secondary text */
  --line: rgba(18, 11, 7, 0.14);
  --line-soft: rgba(18, 11, 7, 0.08);
  --shadow-warm: 0 10px 30px -12px rgba(120, 70, 20, 0.25);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 0.9rem;
  --wrap: 72rem;
  --measure: 46rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--noir);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* faint warm grain over everything — barely there */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1.1em; }

a { color: var(--caramel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--caramel-deep); }

::selection { background: var(--amber); color: var(--noir); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

[id] { scroll-margin-top: 5.5rem; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--caramel);
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  flex: none;
}
.eyebrow.center { justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 0.65rem;
  background: var(--caramel);
  color: #fffdf8;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--caramel);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  background: var(--caramel-deep);
  border-color: var(--caramel-deep);
  color: #fffdf8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-warm);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--noir);
  border: 1.5px solid var(--noir);
}
.btn-ghost:hover {
  background: var(--noir);
  border-color: var(--noir);
  color: var(--cream);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--noir);
  margin-right: auto;
}
.logo-mark { width: 38px; height: 38px; flex: none; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-text em { font-style: italic; color: var(--caramel); }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  color: var(--noir);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { background: var(--cream); color: var(--caramel-deep); }
.main-nav .nav-cta {
  background: var(--caramel);
  color: #fffdf8;
  margin-left: 0.4rem;
}
.main-nav .nav-cta:hover { background: var(--caramel-deep); color: #fffdf8; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--noir);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(18, 11, 7, 0.3);
    padding: 0.5rem 1.25rem 1rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line-soft); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav .nav-cta { margin: 0.6rem 0 0; text-align: center; }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(217, 164, 65, 0.16), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 78%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}

.hero h1 { margin-bottom: 0.7rem; }
.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: #3d2c1c;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Honest facts strip — real, verifiable, nothing inflated */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.trust-strip li { display: flex; align-items: center; gap: 0.5rem; }
.trust-strip li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* Image placeholder slots — Higgsfield photos drop straight in later */
[data-placeholder] {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  border-radius: var(--radius);
  border: 2px dashed rgba(180, 95, 34, 0.45);
  background:
    radial-gradient(30rem 16rem at 50% 20%, rgba(217, 164, 65, 0.22), transparent 70%),
    linear-gradient(160deg, #f7ecd9, #efdfc2);
  color: var(--muted);
  overflow: hidden;
}
[data-placeholder]::after {
  content: "photo slot · " attr(data-placeholder);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  background: rgba(255, 253, 248, 0.75);
  border-radius: 999px;
  border: 1px solid var(--line);
  text-align: center;
}
.hero-media { aspect-ratio: 16 / 10.5; margin: 0; }
.hero-media[data-placeholder]::after { max-width: 80%; }

/* ==========================================================================
   Live tool teaser (homepage) — the tools are the proof
   ========================================================================== */
.tool-teaser {
  margin-top: 2.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-warm);
  max-width: 44rem;
}
.tool-teaser h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.tool-teaser > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.2rem; }

.ratio-form { display: grid; gap: 1rem; }
@media (min-width: 560px) {
  .ratio-form { grid-template-columns: 1fr 1.4fr; align-items: end; }
}
.ratio-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.ratio-field input {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--noir);
}
.ratio-field input:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--caramel);
}
.ratio-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ratio-outputs li {
  background: var(--cream);
  border-radius: 0.6rem;
  padding: 0.7rem 0.5rem;
  text-align: center;
}
.ratio-outputs .ro-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.ratio-outputs .ro-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--noir);
}
.tool-teaser .teaser-more { margin: 1.1rem 0 0; font-size: 0.95rem; }

/* ==========================================================================
   Sections, cards, steps
   ========================================================================== */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--cream); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--muted); margin-bottom: 0; font-size: 1.08rem; }

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  margin: 0;
  padding: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-warm);
  border-color: rgba(180, 95, 34, 0.35);
}
.card-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  background: rgba(217, 164, 65, 0.22);
  border: 1px solid rgba(180, 95, 34, 0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.card h3 { font-size: 1.22rem; margin: 0; }
.card h3 a { color: var(--noir); text-decoration: none; }
.card h3 a:hover { color: var(--caramel-deep); text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.99rem; margin: 0; flex: 1; }
.card-cta {
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  margin-top: 0.4rem;
}
.card-cta:hover { text-decoration: underline; }

.steps-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step-card h3 { font-size: 1.25rem; }
.step-card p { color: var(--muted); margin: 0; }

/* ==========================================================================
   Guide promo band (homepage)
   ========================================================================== */
.guide-promo {
  background:
    radial-gradient(50rem 26rem at 15% 110%, rgba(217, 164, 65, 0.14), transparent 60%),
    var(--espresso);
  color: var(--cream);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.guide-promo-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) { .guide-promo-inner { grid-template-columns: 0.85fr 1.15fr; } }
.guide-promo .eyebrow { color: var(--amber); }
.guide-promo h2 { color: var(--paper); }
.guide-promo p { color: rgba(245, 234, 214, 0.82); max-width: 34rem; }
.guide-promo img {
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(245, 234, 214, 0.16);
}
.guide-promo-price {
  display: inline-block;
  margin-left: 1rem;
  font-weight: 600;
  color: var(--amber);
}
.guide-facts {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: rgba(245, 234, 214, 0.82);
}
.guide-facts li { display: flex; gap: 0.6rem; align-items: baseline; }
.guide-facts li::before { content: "—"; color: var(--amber); flex: none; }

/* ==========================================================================
   FAQ (details)
   ========================================================================== */
.faq-narrow { max-width: 44rem; margin-inline: auto; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--noir);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--caramel);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--cream); }
.faq-item summary:hover { color: var(--caramel-deep); }
.faq-answer { padding: 0 0.25rem 1.35rem; color: #3d2c1c; }
.faq-answer p { margin: 0; }

/* Legacy .faq sections inside articles (converted to details by build) */
section.faq h2 { margin-bottom: 1rem; }

/* ==========================================================================
   Article / editorial pages
   ========================================================================== */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 90%);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero .hero-inner-narrow { max-width: var(--measure); }
.breadcrumb {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--caramel-deep); text-decoration: underline; }

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

.lede {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  line-height: 1.55;
  color: #3d2c1c;
  margin: 1.25rem 0 0;
  max-width: 40rem;
}

.article-body { padding: clamp(2rem, 5vw, 3.25rem) 0 clamp(3rem, 6vw, 4.5rem); }
.prose { max-width: var(--measure); }
.prose > *:first-child { margin-top: 0; }

.prose h2 {
  margin-top: 2.75rem;
  padding-top: 0.25rem;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 2rem; font-size: 1.2rem; }

.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--caramel); }

.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.4rem;
  border-left: 3px solid var(--amber);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.5;
  color: #3d2c1c;
}
.prose blockquote p { margin: 0; }

/* Pull-quote treatment for standout lines */
.prose .pull {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-style: italic;
  color: var(--noir);
  border-top: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
  padding: 1.25rem 0;
  margin: 2.25rem 0;
  line-height: 1.45;
}

/* Tables (buying guides) */
.prose .table-scroll { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line-soft); border-radius: 0.7rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--card); }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { background: var(--cream); font-weight: 700; white-space: nowrap; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }

/* Table of contents */
.toc {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caramel-deep);
  margin: 0 0 0.8rem;
}
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.toc li { margin: 0; }
.toc a { color: var(--noir); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.toc a:hover { color: var(--caramel-deep); text-decoration: underline; }

/* Affiliate disclosure box (buying guides) — keep it visible, keep it plain */
.disclosure-box {
  background: rgba(217, 164, 65, 0.12);
  border: 1px solid rgba(180, 95, 34, 0.3);
  border-radius: 0.7rem;
  padding: 1rem 1.2rem;
  margin: 0 0 1.75rem;
  font-size: 0.94rem;
  color: #4a3826;
}
.disclosure-box p { margin: 0; }

/* Honest CTA band inside guides */
.cta-band {
  background: linear-gradient(160deg, var(--cream), #f0e2c8);
  border: 1px solid rgba(180, 95, 34, 0.28);
  border-radius: 1.1rem;
  padding: 2rem;
  margin: 2.75rem 0;
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 640px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.cta-band p { color: #4a3826; margin: 0; font-size: 1rem; max-width: 32rem; }
.cta-band .btn { justify-self: start; white-space: nowrap; }

/* Ad reservation slots (future inventory — clearly labeled) */
.ad-slot {
  border: 1.5px dashed var(--line);
  border-radius: 0.6rem;
  padding: 0.85rem;
  text-align: center;
  margin: 2rem 0;
  background: rgba(245, 234, 214, 0.4);
}
.ad-slot span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Author / related / newsletter / share */
.author-box {
  background: var(--cream);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 2.5rem 0;
}
.author-box h2 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.author-box p { margin: 0; color: #4a3826; font-size: 0.99rem; }

.related { margin: 2.5rem 0; }
.related h2 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.related a { font-weight: 600; text-decoration: none; }
.related a:hover { text-decoration: underline; }

.newsletter {
  background: var(--espresso);
  color: var(--cream);
  border-radius: 1.1rem;
  padding: 2rem;
  margin: 2.5rem 0;
}
.newsletter h2 { color: var(--paper); font-size: 1.35rem; margin-bottom: 0.35rem; }
.newsletter p { color: rgba(245, 234, 214, 0.8); margin-bottom: 1.1rem; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.newsletter-form input {
  flex: 1 1 14rem;
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1.5px solid rgba(245, 234, 214, 0.3);
  background: rgba(255, 253, 248, 0.08);
  color: var(--paper);
}
.newsletter-form input::placeholder { color: rgba(245, 234, 214, 0.5); }
.newsletter-form input:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.9rem; }
.newsletter .form-note { color: rgba(245, 234, 214, 0.6); }
.form-success {
  background: rgba(217, 164, 65, 0.18);
  border: 1px solid var(--amber);
  border-radius: 0.6rem;
  padding: 0.9rem 1.1rem;
  font-weight: 600;
}

.share { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; margin: 2rem 0 0; }
.share span { font-weight: 700; font-size: 0.9rem; color: var(--muted); margin-right: 0.3rem; }
.share button {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--noir);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.share button:hover { background: var(--cream); border-color: var(--caramel); }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.75rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-warm);
}
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: 0.93rem; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--line);
  border-radius: 0.6rem;
  background: var(--paper);
  color: var(--noir);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--caramel);
}

/* ==========================================================================
   Search page
   ========================================================================== */
.search-box { margin: 1.75rem 0 1rem; max-width: 38rem; }
.search-box input {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  padding: 0.9rem 1.15rem;
  border: 1.5px solid var(--line);
  border-radius: 0.8rem;
  background: var(--card);
  color: var(--noir);
}
.search-box input:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--caramel); }

.search-results { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.8rem; max-width: 44rem; }
.search-results li { margin: 0; }
.search-results a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 0.8rem;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.search-results a:hover { transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.sr-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--noir); }
.sr-desc { font-size: 0.94rem; color: var(--muted); margin-top: 0.25rem; }
.sr-url { font-size: 0.8rem; color: var(--caramel-deep); margin-top: 0.35rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--espresso);
  color: rgba(245, 234, 214, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand .logo-text { color: var(--paper); font-size: 1.5rem; }
.footer-brand p { font-size: 0.95rem; margin-top: 0.7rem; max-width: 20rem; }
.site-footer nav h2, .site-footer nav h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.site-footer nav { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.site-footer nav a {
  color: rgba(245, 234, 214, 0.78);
  text-decoration: none;
  font-size: 0.96rem;
}
.site-footer nav a:hover { color: var(--amber); text-decoration: underline; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 234, 214, 0.16);
  display: grid;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(245, 234, 214, 0.6);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(245, 234, 214, 0.75); }

/* ==========================================================================
   Scroll reveal (JS adds .reveal; IO adds .in)
   ========================================================================== */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* Small screens polish */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .guide-promo-price { display: block; margin: 0.75rem 0 0; }
  .cta-band { padding: 1.5rem; }
  .newsletter { padding: 1.5rem; }
  .ratio-outputs { grid-template-columns: repeat(3, 1fr); }
}
