/* =========================================================
   Roxy's Cottage — vintage almanac / farmhouse marketing site
   ========================================================= */

:root {
  /* Paper & ink */
  --paper:      #F5F1E6;
  --paper-2:    #EFE8D6;
  --paper-3:    #EAE1CB;
  --ink:        #2E2A1E;
  --ink-soft:   #5C5640;
  --ink-faint:  #8A8266;

  /* Accents (palette 3 — warm farmhouse) */
  --gold:       #D9A441;
  --gold-deep:  #B9842B;
  --terra:      #C2703D;
  --terra-deep: #A4582C;
  --olive:      #6B7B52;
  --olive-deep: #4F5C3C;

  --line:       rgba(46, 42, 30, 0.20);
  --line-soft:  rgba(46, 42, 30, 0.10);

  --font-display: "DM Serif Display", Georgia, serif;
  --font-body:    "EB Garamond", Georgia, serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(217,164,65,0.06), transparent 42%),
    radial-gradient(circle at 84% 78%, rgba(107,123,82,0.07), transparent 46%),
    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' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terra-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.solo::after { display: none; }

.script { font-style: italic; color: var(--terra-deep); }

/* Ornamental divider */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; color: var(--gold-deep);
  font-size: 1.1rem; margin: 0;
}
.ornament::before, .ornament::after {
  content: ""; height: 1px; flex: 0 1 120px;
  background: linear-gradient(to var(--dir, right), transparent, var(--line));
}
.ornament::after { --dir: left; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section-head { max-width: 640px; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0.35em 0 0.45em; }
.section-head .lede { font-size: 1.18rem; color: var(--ink-soft); margin: 0; }

.tint   { background: var(--paper-2); }
.tint-3 { background: var(--paper-3); }
.rule-top { border-top: 1px solid var(--line); }
.dbl-top { box-shadow: inset 0 1px 0 var(--ink), inset 0 4px 0 var(--paper), inset 0 5px 0 var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  padding: 0.85em 1.6em; border-radius: 2px; border: 1.5px solid var(--ink);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--terra-deep); border-color: var(--terra-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(46,42,30,0.18); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-arrow { transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Images ---------- */
img.ph {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background-color: var(--paper-3);
}
img.ph.framed {
  padding: 12px;
  position: relative;
}
img.ph.small {
  position: absolute; width: 42%; right: -18px; bottom: -26px;
  background-color: var(--paper);
  box-shadow: 0 14px 34px rgba(46,42,30,0.16);
}

/* =========================================================
   NAV
   ========================================================= */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,241,230,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .25s ease, background .25s ease;
}
.topbar.scrolled { box-shadow: 0 2px 16px rgba(46,42,30,0.08); background: rgba(245,241,230,0.96); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: 0.5ch; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .mark { font-family: var(--font-display); font-size: 1.55rem; line-height: 1; white-space: nowrap; }
.brand .mark .amp { color: var(--terra); }
.brand .sub {
  font-size: 0.6rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: 0.92rem; letter-spacing: 0.04em; white-space: nowrap;
  color: var(--ink-soft); position: relative; padding-block: 4px;
  transition: color .18s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: var(--terra); transition: right .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }

.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 2px;
  width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: .2s; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero-copy h1 { font-size: clamp(3rem, 7.2vw, 5.6rem); margin: 0.18em 0 0.3em; }
.hero-copy h1 em { font-style: italic; color: var(--terra-deep); }
.hero-copy .lede { font-size: 1.28rem; color: var(--ink-soft); max-width: 30ch; margin-bottom: 1.8em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-top: 28px; }
.tag {
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
  color: var(--olive-deep); border: 1px solid var(--line); border-radius: 100px;
  padding: 0.4em 0.95em; background: var(--paper);
}
.tag .flower { color: var(--gold-deep); }

.hero-art { position: relative; }
.hero-art .ph { aspect-ratio: 4 / 5; border-radius: 3px; }
.hero-art .ph.small {
  aspect-ratio: 1;
}
.seal {
  position: absolute; left: -34px; top: -34px; width: 132px; height: 132px; z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(46,42,30,0.18));
}
.seal .ring { animation: spin 38s linear infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .seal .ring { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.seal .seal-disc { fill: var(--terra-deep); }
.seal text { fill: var(--paper); font-family: var(--font-body); font-size: 9.2px; letter-spacing: 2.6px; font-weight: 600; text-transform: uppercase; }
.seal .core { fill: var(--paper); }
.seal .core-glyph { fill: var(--terra-deep); font-family: var(--font-display); font-size: 34px; }

/* =========================================================
   MARQUEE strip
   ========================================================= */
.strip { background: var(--ink); color: var(--paper); overflow: hidden; padding-block: 14px; }
.strip-track { display: flex; gap: 0; white-space: nowrap; animation: marquee 34s linear infinite; }
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }
.strip-track span { font-family: var(--font-display); font-size: 1.15rem; padding-inline: 26px; opacity: 0.92; }
.strip-track .sep { color: var(--gold); opacity: 0.9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   WHY / BENEFITS
   ========================================================= */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.benefit { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line-soft); }
.benefit .num {
  font-family: var(--font-display); font-size: 2.6rem; line-height: 1;
  color: var(--gold-deep); width: 1.4em; text-align: right;
}
.benefit h3 { font-size: 1.5rem; margin-bottom: 0.3em; }
.benefit p { font-size: 1.04rem; color: var(--ink-soft); margin: 0; }

.why-aside {
  margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px,5vw,64px);
  align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: clamp(28px, 4vw, 52px); position: relative; overflow: hidden;
}
.why-aside::before { content: "\2740"; position: absolute; right: -10px; top: -24px; font-size: 9rem; color: var(--gold); opacity: 0.12; }
.why-aside h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 0.4em; }
.why-aside p { color: var(--ink-soft); margin: 0; }
.why-aside .ph { aspect-ratio: 5/4; border-radius: 3px; border: 1px solid var(--line); }

/* =========================================================
   PRODUCTS
   ========================================================= */
.format-toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 3px; padding: 4px; gap: 4px; margin-top: 32px; background: var(--paper); }
.format-toggle button {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; border: none; background: none; cursor: pointer; color: var(--ink-soft);
  padding: 0.6em 1.3em; border-radius: 2px; transition: .2s; white-space: nowrap;
}
.format-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.format-panels { margin-top: 26px; min-height: 1px; }
.format-panel { display: none; gap: 18px; align-items: center; max-width: 760px; }
.format-panel.active { display: flex; }
.format-panel .pico {
  flex: 0 0 auto; width: 58px; height: 58px; border: 1.5px solid var(--ink); border-radius: 3px;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.5rem; color: var(--terra-deep);
  background: var(--paper);
}
.format-panel p { margin: 0; color: var(--ink-soft); font-size: 1.06rem; }
.format-panel strong { color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 34px); margin-top: 48px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(46,42,30,0.12); }
.card .ph { aspect-ratio: 1; border: none; border-bottom: 1px solid var(--line-soft); border-radius: 4px 4px 0 0; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .kicker { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive-deep); font-weight: 600; }
.card-body h3 { font-size: 1.7rem; }
.card-body .note { color: var(--ink-soft); font-size: 1.02rem; margin: 2px 0 0; flex: 1; }
.card-meta {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 0.86rem; color: var(--ink-soft);
}
.card-meta .fmt { font-weight: 600; color: var(--terra-deep); letter-spacing: 0.04em; }
.card.seasonal { background: var(--olive-deep); color: var(--paper); border-color: var(--olive-deep); justify-content: center; }
.card.seasonal .card-body { padding: 34px 28px; }
.card.seasonal .kicker { color: var(--gold); }
.card.seasonal h3 { color: var(--paper); }
.card.seasonal .note { color: rgba(245,241,230,0.82); }
.card.seasonal .card-meta { border-top-color: rgba(245,241,230,0.3); color: rgba(245,241,230,0.8); }

.product-note { margin-top: 40px; font-size: 0.98rem; color: var(--ink-faint); text-align: center; font-style: italic; }

/* =========================================================
   HOW TO USE
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 56px; }
.step { text-align: center; }
.step .ring {
  width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--ink);
  display: grid; place-items: center; margin: 0 auto 18px;
  font-family: var(--font-display); font-size: 1.6rem; color: var(--terra-deep);
}
.step h3 { font-size: 1.4rem; margin-bottom: 0.35em; }
.step p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

.recipes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; }
.recipe {
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--paper);
  display: flex; flex-direction: column;
}
.recipe .ph { aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--line-soft); border-radius: 4px 4px 0 0; }
.recipe-body { padding: 18px 20px 22px; }
.recipe-body h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; margin: 0 0 0.25em; }
.recipe-body p { font-size: 0.96rem; color: var(--ink-soft); margin: 0; }
.recipe-body .ratio { display: inline-block; margin-top: 12px; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }


/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--ink); color: var(--paper); padding-block: 56px 36px; }
.footer .wrap { display: grid; gap: 32px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer .brand .mark { color: var(--paper); }
.footer .brand .sub { color: rgba(245,241,230,0.55); }
.footer-note { max-width: 34ch; color: rgba(245,241,230,0.7); font-size: 1rem; margin-top: 12px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; font-weight: 600; }
.footer-col a, .footer-col span { display: block; text-decoration: none; color: rgba(245,241,230,0.82); font-size: 0.98rem; margin-bottom: 9px; transition: color .18s ease; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(245,241,230,0.16); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: rgba(245,241,230,0.6); }

/* =========================================================
   Reveal animation
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1000px) {
  body { font-size: 19px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-top: 8px; }
  .benefit-grid { grid-template-columns: 1fr; gap: 0; }
  .benefit { padding-block: 22px; }
  .why-aside { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .recipes { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; z-index: 59;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
  }
  .nav-links.open li { border-bottom: 1px solid var(--line-soft); }
  .nav-links.open a { display: block; padding: 16px 0; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .recipes { grid-template-columns: 1fr; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .seal { width: 104px; height: 104px; left: -14px; top: -22px; }
}
