/* ===== Amamable site chrome (X 2026) — shared by the landing and every subpage =====
   Tokens, base, type, buttons, nav (pill + burger sheet + language menu), photo footer, cookie banner.
   Page-specific styles live next to their page: home.css (landing), blog/recipes/blog.css, … .
   Markup of nav/footer/cookie comes from tools/website/site-chrome.mjs — keep class names in sync.
   Spec: docs/design/redesign-2026-10/README.md */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #FBF5EE;
    --bg-alt: #F5E9DC;
    --surface: #FFFFFF;
    --ink: #2B211B;
    --ink-2: #5E544D;
    --ink-3: #978C83;
    --line: #E9E1D7;
    --brand: #C67C4E;
    --brand-dark: #A85D35;
    --brand-soft: #F6E6DA;
    --brand-tint: #FBF4EE;
    --cta: #2E2019;
    --cta-hover: #4A3226;
    --herb: #5F6F4E;
    --herb-soft: #E7ECDF;
    --danger: #B5483F;
    --danger-soft: #F7E4E0;
    --glass: rgba(255, 255, 255, .62);
    --r-xl: 32px;
    --r-lg: 22px;
    --r: 16px;
    --r-sm: 12px;
    --sh-1: 0 1px 2px rgba(43, 33, 27, .06), 0 8px 24px rgba(43, 33, 27, .06);
    --sh-2: 0 2px 6px rgba(43, 33, 27, .06), 0 30px 70px -18px rgba(43, 33, 27, .28);
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.2, .8, .2, 1);
    /* Old style.css names, still used by inline styles of the legal pages and the blog. */
    --white: #fff;
    --background: var(--bg);
    --border: var(--line);
    --shadow: rgba(43, 33, 27, .08);
    --primary-color: var(--brand);
    --primary-dark: var(--brand-dark);
    --secondary-color: var(--ink);
    --text-color: var(--ink);
    --text-secondary: var(--ink-2);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- type ---------- */
.h2 {
    font-family: var(--serif);
    font-variation-settings: 'opsz' 144;
    font-weight: 400;
    font-size: clamp(2.1rem, 1.1rem + 3.4vw, 3.6rem);
    line-height: 1.04;
    letter-spacing: -.035em;
}
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 34rem; margin-top: 1.1rem; }
.lead--center { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: .9rem; }
.muted { color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; font-weight: 600; text-decoration: none; padding: .8rem 1.4rem; font-size: .95rem; transition: background .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--cta); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -6px rgba(46, 32, 25, .55); }
.btn-dark:hover { background: var(--cta-hover); }
.btn-copper { background: var(--brand); color: #fff; }
.btn-copper:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-full { width: 100%; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }

.tag-new { display: inline-block; font-size: .58rem; font-weight: 800; letter-spacing: .06em; padding: .18rem .42rem; border-radius: 999px; background: var(--brand); color: #fff; vertical-align: 2px; margin-left: .25rem; }
.tag-new--copper { font-size: .66rem; vertical-align: 3px; }

/* ---------- nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 14px 24px; transition: background .3s, box-shadow .3s, padding .3s;
}
.nav.is-scrolled { background: rgba(251, 245, 238, .84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); padding-top: 10px; padding-bottom: 10px; }
/* Wordmark = the app's own: Plus Jakarta Sans 800, copper on light, white on photos (as on the login screens). */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--sans); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: var(--brand); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-pill {
    display: flex; gap: 2px; padding: 4px; border-radius: 999px;
    background: rgba(43, 33, 27, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 8px 24px -10px rgba(43,33,27,.5);
}
.nav-pill a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .82rem; font-weight: 600; padding: .5rem .95rem; border-radius: 999px; transition: background .2s, color .2s; white-space: nowrap; }
.nav-pill a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-pill a.is-active { background: #fff; color: var(--ink); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: .9rem; }
.nav-login { font-size: .88rem; font-weight: 600; text-decoration: none; }
.nav-login:hover { color: var(--brand-dark); }
.nav-lang { position: relative; }
.lang-toggle { font-size: .8rem; font-weight: 700; color: var(--ink-2); padding: .4rem .55rem; border-radius: 8px; }
.lang-toggle:hover { background: rgba(43,33,27,.06); }
.lang-caret { font-size: .7em; }
.lang-dropdown { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; display: none; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 2px; padding: 8px; background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-2); border: 1px solid var(--line); z-index: 60; }
.nav-lang.open .lang-dropdown { display: grid; }
.lang-dropdown a { display: block; padding: .45rem .7rem; border-radius: 10px; text-decoration: none; font-size: .85rem; font-weight: 500; white-space: nowrap; }
.lang-dropdown a:hover { background: var(--bg-alt); }
.lang-dropdown a.lang-link--active { color: var(--brand-dark); font-weight: 700; }
.burger { display: none; width: 40px; height: 40px; border-radius: 12px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), top .25s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.sheet { position: fixed; inset: 64px 12px auto 12px; z-index: 49; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 12px; display: grid; gap: 2px; }
.sheet[hidden] { display: none; }
.sheet > a { padding: .85rem 1rem; border-radius: 12px; text-decoration: none; font-weight: 600; }
.sheet > a:hover { background: var(--bg-alt); }
.sheet__cta { display: grid; gap: .5rem; padding: .5rem .25rem .25rem; }

/* ---------- footer ---------- */
.store { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1rem .5rem .8rem; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; line-height: 1.1; }
.store svg { width: 22px; height: 22px; }
.store small { display: block; font-size: .62rem; font-weight: 500; opacity: .75; }
.footer { position: relative; overflow: hidden; color: #fff; padding: 200px 0 26px; background: #2B211B url('/images/home/bg-warm.jpg') center / cover no-repeat; isolation: isolate; }
.footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(30,22,17,.55), rgba(30,22,17,.82)); }
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; justify-content: end; }
.footer__cols a { display: block; text-decoration: none; font-weight: 600; font-size: .95rem; padding: .28rem 0; color: rgba(255,255,255,.92); }
.footer__cols a:hover { color: #E7A678; }
.footer__h { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: .6rem; font-weight: 700; }
.footer__langs { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.16); font-size: .8rem; }
.footer__langs a { text-decoration: none; color: rgba(255,255,255,.65); }
.footer__langs a:hover, .footer__langs a.is-current { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 60px; flex-wrap: wrap; }
.wordmark { font-family: var(--sans); font-weight: 800; color: #fff; font-size: clamp(3.4rem, 1.5rem + 10vw, 10rem); line-height: .85; letter-spacing: -.04em; }
.footer__legal { font-size: .8rem; color: rgba(255,255,255,.65); }

/* ---------- cookie ---------- */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 60; width: min(340px, calc(100% - 32px)); background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--sh-2); border: 1px solid var(--line); font-size: .82rem; color: var(--ink-2); }
.cookie.cookie-consent-hidden { display: none; }
.cookie a { color: var(--ink); }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }


/* ---------- subpages: page head + prose ---------- */
.page-main { padding: 120px 0 90px; }
.page-head { max-width: 860px; margin: 0 auto 2.4rem; padding: 0 16px; text-align: center; }
.page-head .eyebrow { margin-bottom: .7rem; }
.page-title { font-family: var(--serif); font-variation-settings: 'opsz' 144; font-weight: 400; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 3.8rem); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.page-lead { color: var(--ink-2); font-size: 1.08rem; margin-top: 1rem; }
.prose { max-width: 760px; margin: 0 auto; padding: 32px clamp(20px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.prose h1, .prose h2 { font-family: var(--serif); font-variation-settings: 'opsz' 60; font-weight: 500; color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin: 2.2rem 0 .8rem; }
.prose h1 { font-size: 2rem; margin-top: 0; }
.prose h2 { font-size: 1.45rem; }
.prose h3, .prose h4 { color: var(--ink); font-size: 1.05rem; margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol, .prose table { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .3rem 0; }
.prose a { color: var(--brand-dark); text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose input, .prose textarea, .prose select { font: inherit; width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.prose label { display: block; font-weight: 600; color: var(--ink); margin: 1rem 0 .4rem; }
.prose button, .prose .btn-primary { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: .8rem 1.4rem; font-weight: 600; background: var(--cta); color: #fff; border: 0; cursor: pointer; margin-top: 1rem; }
.footer--plain { padding-top: 90px; margin-top: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* Legal pages (privacy, terms, delete account): their inline <style> predates the redesign;
   site.css is loaded after it, so these rules restyle them without touching the documents. */
.privacy-policy { background: var(--bg); padding: 120px 0 90px; }
.privacy-content { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); color: var(--ink-2); line-height: 1.7; }
.privacy-content h1 { font-family: var(--serif); font-variation-settings: 'opsz' 144; font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.privacy-content h2 { font-family: var(--serif); font-variation-settings: 'opsz' 60; font-weight: 500; font-size: 1.4rem; letter-spacing: -.015em; color: var(--ink); }
.privacy-content h3 { color: var(--ink); }
.privacy-content a { color: var(--brand-dark); text-underline-offset: 3px; }
.privacy-content strong { color: var(--ink); }
.section-number { color: var(--brand); }

/* ---------- responsive (chrome) ---------- */
.nav-login, .lang-toggle { white-space: nowrap; }
/* Seven pills (languages with both blogs) do not fit next to the actions below ~1200px; "Start"
   goes first, the logo links home too. Shorter navs keep it. */
@media (max-width: 1200px) {
    .nav-pill:has(> a:nth-child(7)) > a:first-child { display: none; }
}
@media (max-width: 1080px) {
    .nav-pill a { padding: .5rem .7rem; }
    .nav-pill a:last-child:not(.is-active) { display: none; }
}
@media (max-width: 920px) {
    .nav { grid-template-columns: 1fr auto; padding: 12px 16px; }
    .nav-pill, .nav-login, .nav-lang { display: none; }
    .burger { display: block; }
    .footer__cols { grid-template-columns: repeat(2, 1fr); justify-content: start; }
}
@media (max-width: 640px) {
    .nav .btn-sm { padding: .5rem .85rem; font-size: .8rem; }
    .footer__cols { grid-template-columns: 1fr 1fr; }
    .page-main { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
