/* Heritage & Fig — site styles. Colors and fonts are set once here. */
:root {
  color-scheme: light;
  --cream: #FDF9EE;      /* page ground, matches the logo artwork */
  --linen: #F5EDDC;      /* quiet band behind sections */
  --card: #FFFCF4;       /* recipe-card paper */
  --green: #243D2A;      /* logo lettering green */
  --leaf: #4F6B45;       /* botanical green */
  --fig: #5B2E45;        /* muted plum */
  --rose: #B97F80;       /* dusty rose accent */
  --rose-soft: #EBD6CF;
  --ink: #2C2B24;
  --ink-soft: #57554A;
  --rule: #DCCFB6;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fig); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--fig); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--green); text-wrap: balance; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.eyebrow {
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rose);
}

/* ---------- Preview ribbon & notes (turned off in content.js) ---------- */
.preview-ribbon {
  background: var(--fig); color: #F8EDEF; text-align: center;
  font: 500 0.8125rem/1.4 var(--sans); padding: 8px 16px;
}
.preview-note {
  border: 1.5px dashed var(--rose); background: #FBF0EC; color: var(--fig);
  border-radius: 6px; padding: 14px 16px; font-size: 0.9375rem;
}
.preview-note strong { display: block; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
.brand-name { font: 400 1.25rem/1 var(--serif); color: var(--green); text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.site-nav a:hover { color: var(--fig); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 40px 64px; text-align: center; }
.hero .sprig { position: absolute; top: 0; width: min(24vw, 330px); pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.hero .sprig-left { left: 0; }
.hero .sprig-right { right: 0; }
.hero-inner { position: relative; display: grid; justify-items: center; gap: 22px; max-width: 640px; margin-inline: auto; }
.hero-logo { width: min(100%, 360px); aspect-ratio: 1 / 1; }
.tagline { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); line-height: 1.2; color: var(--green); }
.tagline span:nth-child(2) { color: var(--fig); }
.tagline span:nth-child(3) { color: var(--rose); font-style: italic; }
.hero-intro { color: var(--ink-soft); max-width: 34em; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; align-items: center; }
.btn {
  display: inline-block; background: var(--green); color: var(--cream); text-decoration: none;
  font: 600 0.9375rem/1 var(--sans); letter-spacing: 0.02em; padding: 15px 26px; border-radius: 999px;
  transition: background .2s ease;
}
.btn:hover { background: var(--fig); }
.link-quiet { color: var(--green); font-weight: 500; }

@media (max-width: 760px) {
  .hero .sprig { display: none; }
  .hero { padding-block: 24px 48px; }
  .hero-logo { width: min(100%, 280px); }
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 16px; }
.section { padding-block: 72px; }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 40em; }

/* Story */
.story { background: var(--linen); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: start; }
.story-body { display: grid; gap: 18px; max-width: 36em; color: var(--ink); }
.story-body p:first-child { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--green); }
@media (max-width: 760px) { .story .wrap { grid-template-columns: 1fr; } }

/* Collections */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.collection { border-top: 2px solid var(--green); padding-top: 22px; display: grid; gap: 12px; align-content: start; }
.collection .label { justify-self: start; }
.collection p { color: var(--ink-soft); max-width: 32em; }
.room-to-grow { margin-top: 36px; color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }

.label {
  display: inline-block; font: 600 0.6875rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fig); background: var(--rose-soft); padding: 6px 10px; border-radius: 3px;
}

/* Coming soon: recipe cards */
.coming { background: var(--linen); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.recipe-card {
  background: var(--card);
  border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 0 rgba(60, 40, 20, .06), 0 10px 24px -18px rgba(60, 40, 20, .35);
  padding: 20px 22px 24px; display: grid; gap: 12px; align-content: start;
}
.recipe-card .from { font: italic 400 0.875rem/1.2 var(--serif); color: var(--ink-soft); display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 26px; }
.recipe-card h3 { padding-bottom: 12px; border-bottom: 1.5px solid var(--rose); }
.recipe-card p {
  color: var(--ink); line-height: 2rem; min-height: 8rem;
  background-image: repeating-linear-gradient(to bottom, transparent 0 calc(2rem - 1px), #E4D8C0 calc(2rem - 1px) 2rem);
}
.recipe-card.more { background-color: transparent; border-style: dashed; box-shadow: none; }

/* Connect */
.connect { background: var(--green); color: #E9E6D6; }
.connect .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.connect h2 { color: var(--cream); }
.connect p { max-width: 34em; margin-top: 12px; }
.connect .btn { background: var(--cream); color: var(--green); }
.connect .btn:hover { background: var(--rose-soft); }
@media (max-width: 760px) { .connect .wrap { grid-template-columns: 1fr; } .connect .btn { justify-self: start; } }

/* Footer */
.site-footer { padding-block: 40px 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand .name { font: 400 1.2rem/1.2 var(--serif); color: var(--green); }
.footer-brand .tag { font-size: 0.875rem; color: var(--ink-soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9375rem; }
.footer-links a { color: var(--ink-soft); }
.copyright { width: 100%; font-size: 0.8125rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: 18px; }

/* Trademark mark: small and raised so it doesn't crowd the name */
.tm { font-family: var(--sans); font-size: 0.5em; vertical-align: super; line-height: 0; margin-left: 1px; }

/* Our Stories (upcoming series) */
.stories-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 20px 64px; align-items: start; }
.stories-head { display: grid; gap: 14px; justify-items: start; padding-top: 10px; }
.stories-body { display: grid; gap: 16px; max-width: 38em; border-left: 2px solid var(--fig); padding-left: 28px; }
.stories-body h2 { color: var(--fig); }
.stories-lede { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.4; color: var(--green); }
.stories-note { color: var(--ink-soft); font-size: 0.975rem; }
@media (max-width: 760px) {
  .stories-inner { grid-template-columns: 1fr; }
  .stories-body { padding-left: 18px; }
}

/* Connect: two buttons + email */
.connect-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.connect .btn-outline { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(253, 249, 238, .7); }
.connect .btn-outline:hover { background: rgba(253, 249, 238, .12); }
.connect .contact-line { margin-top: 14px; }
.connect .contact-line a { color: var(--cream); font-weight: 500; }
.connect a:focus-visible { outline-color: var(--cream); }
@media (max-width: 760px) { .connect-actions { justify-self: start; } }

/* Personal ordering */
.order {background:var(--card)}
.order form {max-width:800px}.order fieldset{border:1px solid var(--rule);padding:24px;margin:0 0 24px}.order legend{font-family:var(--serif);color:var(--green);padding:0 10px}.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.order-grid label{display:flex;align-items:start;gap:10px}.order input{width:20px;height:20px;accent-color:var(--green);flex-shrink:0}.order textarea{display:block;width:100%;padding:14px;border:1px solid var(--rule);background:var(--cream);font:inherit;margin:8px 0 24px}.order .actions{justify-content:start}.order button{cursor:pointer;border:0}.order .btn-outline{background:transparent;color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.order-help{font-size:.9rem;color:var(--ink-soft);margin-top:20px;max-width:650px}#order-feedback{white-space:pre-line;margin-top:14px}.recipe-card .from{flex-wrap:wrap}.recipe-card p{background:none;min-height:0;line-height:1.65}.hero-logo{object-fit:contain}.eyebrow{color:var(--fig)}@media(max-width:600px){.order-grid{grid-template-columns:1fr}.order .btn{width:100%;text-align:center}.site-nav ul{gap:10px 18px}}

.hero .sprig {width:min(21vw,280px);opacity:.25;top:60px}.hero .sprig-left{left:-55px;transform:rotate(-22deg)}.hero .sprig-right{right:-55px;transform:rotate(22deg)}
