/* ARARATA homepage — measured from the 1440px design export. */

:root {
    --lime: #c5dc43;
    --green: #547d20;
    --cream: #fff7e6;
    --sun: #f2c94c;
    --apricot: #e9a36a;
    --white: #fff;
    --ink: #343b20;
    --ink-muted: #5e654f;
    --line: rgb(52 59 32 / 0.18);

    --serif: 'Cormorant Garamond', 'Noto Serif Armenian', Georgia, serif;
    --sans: 'Inter', 'Noto Serif Armenian', system-ui, sans-serif;
    --armenian: 'Noto Serif Armenian', serif;

    --gutter: 64px;
    --max: 1440px;
}

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

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

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word; /* long Armenian words on narrow phones */
}

/* Armenian copy uses one family; the body text is set condensed, as in the design. */
:lang(hy) { font-family: var(--armenian); font-stretch: 75%; }
:lang(hy) .display { font-stretch: 100%; font-weight: 300; }

h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.newsletter :focus-visible, .split-roots :focus-visible, .promises :focus-visible { outline-color: var(--lime); }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 16px; top: -48px; z-index: 10;
    background: var(--ink); color: var(--white); padding: 8px 14px;
}
.skip-link:focus { top: 8px; }

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

/* ---------- type primitives ---------- */

.display {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.12;
    font-size: clamp(36px, 3.6vw, 52px);
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
:lang(hy) .eyebrow { font-size: 15px; letter-spacing: 0.04em; }
.eyebrow-green { color: var(--green); }
.eyebrow-lime { color: var(--lime); }

.micro-label { font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; }

.arrow { display: inline-block; vertical-align: 0.05em; margin-left: 2px; }

.text-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.btn {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
    min-height: 52px; padding: 0 26px;
    font-size: 13px; font-weight: 500;
    border: 1px solid transparent;
    transition: background-color 0.2s, color 0.2s;
}
.btn .arrow { width: 11px; height: 11px; }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #456a17; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { background: #d3e65f; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.tag {
    display: inline-block;
    background: var(--cream);
    padding: 4px 10px;
    font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
    line-height: 1.6;
}
:lang(hy) .tag { font-size: 14px; letter-spacing: 0.02em; }

/* ---------- header ---------- */

.announcement {
    background: var(--lime);
    text-align: center;
    font-size: 11px;
    padding: 7px 16px;
}
:lang(hy) .announcement { font-size: 15px; padding-block: 5px; }

.site-header {
    position: sticky; top: 0; z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 97px;
    padding-inline: var(--gutter);
    background: var(--cream);
}
.logo {
    font-size: 11px; color: var(--ink-muted);
    padding-left: 44px; /* room for the mark, as in the design */
    font-family: 'Inter', sans-serif; font-stretch: 100%;
}
/* Desktop: the drawer wrapper disappears and its children sit in the header grid. */
.header-drawer { display: contents; }
.main-nav { display: flex; gap: 32px; font-size: 13px; }
:lang(hy) .main-nav { font-size: 19px; }
.main-nav a { padding-block: 8px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

.header-prefs { display: flex; align-items: center; gap: 16px; justify-self: end; margin-right: 120px; }
.lang-switch { font-family: var(--armenian); font-stretch: 75%; font-size: 15px; display: flex; gap: 5px; }
.lang-switch a[aria-current] { text-decoration: underline; text-underline-offset: 3px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; background: none; border: 0; padding: 0; }
.menu-toggle { display: none; }
.menu-icon-close { display: none; }
.is-open .menu-icon-open { display: none; }
.is-open .menu-icon-close { display: inline; }

/* ---------- hero ---------- */

.hero {
    display: grid;
    grid-template-columns: 640fr 800fr;
    background: var(--lime);
    min-height: 668px;
}
.hero-copy { padding: 92px var(--gutter) 64px; align-self: center; max-width: 640px; }
.hero h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.04; margin-bottom: 28px; }
:lang(hy) .hero h1 { font-size: clamp(38px, 4.3vw, 62px); line-height: 1.14; }
.hero .lead { font-size: 14px; max-width: 500px; margin-bottom: 30px; }
:lang(hy) .hero .lead { font-size: 18px; max-width: 520px; }
.hero .btn { min-width: 226px; }

.hero-media { position: relative; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media .tag { position: absolute; left: 32px; bottom: 32px; }

.promises {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0;
    background: var(--green); color: var(--white);
    font-size: 11px; letter-spacing: 0.06em;
    padding: 19px 16px;
}
.promises li + li::before { content: '/'; margin-inline: 21px; }
:lang(hy) .promises { font-size: 19px; letter-spacing: 0; padding-block: 12px; }

/* ---------- collection ---------- */

.collection { padding-top: 80px; }
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 552px);
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}
.section-head .display { max-width: 620px; }
.section-aside { padding-bottom: 6px; }
.section-aside p { font-size: 12px; color: var(--ink-muted); margin-bottom: 14px; }
:lang(hy) .section-aside p { font-size: 17px; }
.section-head-bottom { grid-template-columns: 1fr auto; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-media { position: relative; aspect-ratio: 310 / 340; overflow: hidden; margin-bottom: 14px; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .product-card:hover .product-media img { transform: none; } }
.product-media .tag { position: absolute; left: 16px; top: 16px; }
.product-name { font-size: 15px; font-weight: 400; margin-bottom: 2px; }
:lang(hy) .product-name { font-size: 20px; }
.product-notes, .product-meta { font-size: 12px; color: var(--ink-muted); }
:lang(hy) .product-notes { font-size: 17px; }
:lang(hy) .product-meta { font-size: 15px; }

.brand-strip {
    display: flex; align-items: center; gap: 44px;
    border-top: 1px solid var(--line);
    margin-top: 38px;
    padding: 36px 18px 108px;
}
.brand-strip .logo { padding-left: 0; }
.brand-strip p { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
:lang(hy) .brand-strip p { font-size: 20px; letter-spacing: 0.02em; }

/* ---------- split sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 610px; }
.split-media { width: 100%; height: 100%; object-fit: cover; }
.split-copy { align-self: center; padding: 72px; }
.split-copy .display { margin-bottom: 30px; }

.split-roots .split-copy { background: var(--green); color: var(--white); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.split-roots .display { font-size: clamp(38px, 4vw, 58px); line-height: 1.08; }
.split-roots .split-copy p:not(.eyebrow) { font-size: 14px; line-height: 1.8; max-width: 580px; margin-bottom: 28px; }
.split-roots .btn { align-self: flex-start; }

.split-ritual { grid-template-columns: 640fr 800fr; background: var(--sun); min-height: 650px; }
.split-ritual .split-copy { padding: 100px var(--gutter) 72px; max-width: 576px; box-sizing: content-box; }
.split-ritual .display { font-size: clamp(38px, 3.8vw, 54px); }
.steps { border-top: 1px solid var(--line); margin-bottom: 28px; }
.steps li { display: flex; gap: 22px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.step-num { font-size: 9px; padding-top: 3px; }
.steps h3 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.steps p { font-size: 12px; }

/* ---------- herbs ---------- */

.herbs { background: var(--lime); padding: 72px 0 72px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.herb-card img { width: 100%; aspect-ratio: 421 / 235; object-fit: cover; margin-bottom: 12px; }
.herb-name { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.herb-name h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.latin { font-size: 9px; font-style: italic; }
.herb-card > p { font-size: 12px; line-height: 1.7; }

/* ---------- values ---------- */

.values {
    display: grid;
    grid-template-columns: 420fr 321fr 321fr 251fr;
    gap: 40px;
    padding-block: 52px;
}
.values .display { font-size: clamp(32px, 2.8vw, 40px); line-height: 1.12; }
.value h3 { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.value p { font-size: 12px; color: var(--ink-muted); line-height: 1.7; max-width: 250px; }

/* ---------- moment ---------- */

.moment { background: var(--cream); text-align: center; padding: 74px 16px 72px; }
.moment .display { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 30px; }
.moment p:not(.eyebrow) { font-size: 12px; color: var(--ink-muted); max-width: 620px; margin: 0 auto 28px; line-height: 1.85; }
.moment .btn { min-width: 270px; }

/* ---------- journal ---------- */

.journal { padding-top: 82px; padding-bottom: 80px; }
.journal .section-head { margin-bottom: 36px; }
.journal .display { font-size: clamp(38px, 4vw, 56px); }
.post-card a { display: block; }
.post-card img { width: 100%; aspect-ratio: 421 / 300; object-fit: cover; margin-bottom: 18px; }
.post-meta { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 1.1; margin-bottom: 18px; }
.post-card a:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.post-excerpt { font-size: 12px; color: var(--ink-muted); }

/* ---------- gift ---------- */

.gift { background: var(--apricot); padding: 50px 0 48px; }
.gift-inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.gift .display { font-size: clamp(34px, 3.4vw, 50px); margin-bottom: 12px; }
.gift p:not(.eyebrow) { font-size: 12px; }
.gift .btn { min-width: 215px; flex-shrink: 0; }

/* ---------- newsletter ---------- */

.newsletter { background: var(--green); color: var(--white); padding: 66px 0 64px; }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 612px); gap: 40px; align-items: start; }
.newsletter .display { font-size: clamp(38px, 3.6vw, 52px); line-height: 1.12; margin-bottom: 20px; max-width: 520px; }
.newsletter p:not(.eyebrow) { font-size: 11px; }
.newsletter-form { padding-top: 40px; }
.subscribe { display: flex; background: var(--cream); color: var(--ink); height: 56px; margin-bottom: 18px; }
.subscribe input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font-size: 12px; }
.subscribe input::placeholder { color: var(--ink-muted); }
.subscribe input:focus-visible { outline-offset: -3px; }
.subscribe button { border: 0; background: transparent; padding: 0 22px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.subscribe button:hover { text-decoration: underline; }
.newsletter .legal { font-size: 9px; }

/* ---------- footer ---------- */

.site-footer { background: var(--cream); padding-top: 62px; }
.footer-grid { display: grid; grid-template-columns: 480fr 280fr 280fr 272fr; gap: 0; padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.footer-brand .logo { display: inline-block; margin: 14px 0 44px; }
.footer-brand .eyebrow { margin-bottom: 18px; }
.footer-about { font-size: 12px; color: var(--ink-muted); max-width: 400px; margin-bottom: 18px; }
.social { display: flex; gap: 16px; font-size: 11px; }
.social a:hover, .site-footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer h2 { font-size: 11px; font-weight: 500; margin-bottom: 14px; font-family: var(--sans); }
.site-footer nav li { font-size: 12px; margin-bottom: 11px; }
.footer-welcome .display { font-size: 26px; line-height: 1.25; margin-bottom: 14px; }
.footer-welcome .lang-switch { font-size: 15px; display: block; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 38px; padding-bottom: 54px; font-size: 9px; color: var(--ink-muted); }
.inline-list { display: flex; gap: 12px; }


/* Anchors land below the sticky header. */
[id] { scroll-margin-top: 112px; }

/* ---------- inner pages ---------- */

.page-hero { background: var(--lime); padding: 88px 0 72px; }
.page-hero-sun { background: var(--sun); }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.06; max-width: 900px; margin-bottom: 22px; }
.page-lead { font-size: 15px; max-width: 560px; }

.catalog { padding-top: 48px; padding-bottom: 96px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter-tabs a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
    border: 1px solid var(--ink); font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
}
.filter-tabs a:hover, .filter-tabs a[aria-current] { background: var(--ink); color: var(--cream); }
.catalog-count { font-size: 12px; color: var(--ink-muted); margin-bottom: 24px; }
.catalog-empty { grid-column: 1 / -1; padding: 48px 0; color: var(--ink-muted); }

.story {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px;
    padding-top: 96px; padding-bottom: 96px;
}
.story .eyebrow { grid-column: 1; }
.story .display { grid-column: 1; }
.story-body { grid-column: 2; grid-row: 1 / 3; align-self: end; }
.story-body p { font-size: 15px; line-height: 1.8; color: var(--ink-muted); max-width: 560px; }
.story-body p + p { margin-top: 1em; }

.brewing { padding-top: 82px; padding-bottom: 96px; }
.brew-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.brew-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--cream); padding: 16px; }
.brew-card img { width: 100%; aspect-ratio: 310 / 340; object-fit: cover; }
.brew-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 14px; }
.brew-card dl { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin: 0 0 14px; }
.brew-card dt { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.brew-card dd { margin: 2px 0 0; font-size: 14px; }
.brew-card p { font-size: 13px; color: var(--ink-muted); }

/* ---------- Armenian sizing ----------
   The condensed Armenian face reads ~30% smaller than Inter at the same size,
   so Armenian copy uses the larger scale from the Armenian Figma export
   (eyebrows 15px, body 17px, leads 18–19px). */

:lang(hy) .section-aside p,
:lang(hy) .split-roots .split-copy p:not(.eyebrow),
:lang(hy) .herb-card > p,
:lang(hy) .value p,
:lang(hy) .steps p,
:lang(hy) .moment p:not(.eyebrow),
:lang(hy) .post-excerpt,
:lang(hy) .gift p:not(.eyebrow),
:lang(hy) .newsletter p:not(.eyebrow),
:lang(hy) .footer-about,
:lang(hy) .story-body p,
:lang(hy) .brew-card p { font-size: 17px; line-height: 1.6; }
:lang(hy) .page-lead { font-size: 19px; }
:lang(hy) .value h3,
:lang(hy) .steps h3,
:lang(hy) .site-footer h2 { font-size: 18px; font-weight: 500; }
:lang(hy) .site-footer nav li,
:lang(hy) .social,
:lang(hy) .text-link,
:lang(hy) .subscribe input,
:lang(hy) .subscribe button,
:lang(hy) .footer-bottom,
:lang(hy) .brew-card dd,
:lang(hy) .filter-tabs a,
:lang(hy) .catalog-count { font-size: 16px; }
:lang(hy) .btn { font-size: 17px; font-weight: 400; }
:lang(hy) .newsletter .legal { font-size: 14px; }
:lang(hy) .post-meta,
:lang(hy) .micro-label,
:lang(hy) .step-num,
:lang(hy) .brew-card dt { font-size: 13px; letter-spacing: 0.04em; }
:lang(hy) [lang="la"] { font-family: var(--sans); font-stretch: 100%; }
:lang(hy) .value p { max-width: 280px; }

/* ======================================================================
   Responsive
   1180  small desktop  — tighter gutters, values on two rows
   900   tablet         — menu drawer, stacked splits, swipeable card rails
   560   phone          — single column, full-width buttons
   ====================================================================== */

@media (max-width: 1180px) {
    :root { --gutter: 40px; }
    .header-prefs { margin-right: 0; }
    .main-nav { gap: 24px; }
    .values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
    .values .display { grid-column: 1 / -1; }
    .newsletter-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split-copy { padding: 56px var(--gutter); }
    .brew-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1023px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    :root { --gutter: 24px; }
    [id] { scroll-margin-top: 80px; }

    /* Readable sizes once the layout is no longer the 1440 artboard. */
    body { font-size: 15px; }
    .eyebrow { font-size: 11px; }
    .announcement { font-size: 12px; }
    .section-aside p, .moment p:not(.eyebrow), .gift p:not(.eyebrow), .newsletter p:not(.eyebrow),
    .herb-card > p, .value p, .post-excerpt, .steps p, .footer-about { font-size: 14px; }
    .product-notes, .product-meta, .site-footer nav li, .social, .text-link { font-size: 13px; }
    .product-name, .steps h3, .value h3 { font-size: 16px; }
    .latin, .post-meta, .step-num, .micro-label, .newsletter .legal, .footer-bottom { font-size: 11px; }
    .subscribe input, .subscribe button { font-size: 15px; } /* ≥15px avoids iOS zoom-on-focus feel */
    .value p { max-width: none; }

    /* Header → logo + actions; nav and language move into a drawer. */
    .site-header { grid-template-columns: 1fr auto; min-height: 64px; gap: 12px; }
    .menu-toggle { display: inline-grid; }
    .header-drawer {
        display: block;
        grid-column: 1 / -1;
        padding-bottom: 20px;
    }
    .js .header-drawer {
        display: none;
        grid-column: auto; /* an abspos grid item would otherwise be boxed by its grid area */
        position: absolute; top: 100%; left: 0; right: 0;
        max-height: calc(100dvh - 64px); overflow-y: auto;
        background: var(--cream);
        border-top: 1px solid var(--line);
        box-shadow: 0 18px 30px -18px rgb(52 59 32 / 0.35);
        padding: 8px var(--gutter) 28px;
    }
    .js .is-open .header-drawer { display: block; }
    body.menu-open { overflow: hidden; }
    .main-nav { flex-direction: column; gap: 0; font-size: 20px; font-family: var(--serif); }
    :lang(hy) .main-nav { font-size: 22px; font-family: var(--armenian); }
    .main-nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); }
    .header-prefs { justify-self: start; margin: 20px 0 0; }
    .lang-switch { font-size: 17px; gap: 10px; align-items: center; }
    .lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; }

    /* Stack the half/half sections. */
    .hero, .split, .split-ritual { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .hero-copy { padding: 48px var(--gutter) 56px; max-width: none; }
    .hero-media { aspect-ratio: 16 / 10; }
    .hero-media .tag { left: var(--gutter); bottom: var(--gutter); right: var(--gutter); width: fit-content; }
    .split-copy, .split-ritual .split-copy { padding: 56px var(--gutter); max-width: none; box-sizing: border-box; }
    .split-media { aspect-ratio: 16 / 10; height: auto; }
    .split-ritual .split-media { order: -1; }

    .section-head, .section-head-bottom { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .collection { padding-top: 56px; }
    .brand-strip { padding-bottom: 64px; }
    .herbs, .journal { padding-block: 56px; }
    .values { grid-template-columns: minmax(0, 1fr); padding-block: 48px; }
    .moment { padding: 64px var(--gutter); }
    .gift-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .newsletter-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .newsletter-form { padding-top: 0; }
    .story { grid-template-columns: minmax(0, 1fr); padding-block: 64px; }
    .story-body { grid-column: 1; grid-row: auto; margin-top: 24px; }
    .page-hero { padding: 56px 0 48px; }

    /* Three-card rows become swipeable rails that peek the next card. */
    .card-grid-3.rail {
        display: grid; grid-auto-flow: column; grid-template-columns: none;
        grid-auto-columns: min(46%, 340px);
        gap: 16px;
        overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px;
        scrollbar-width: thin;
    }
    .rail > li { scroll-snap-align: start; }
    .herb-name { flex-direction: column; gap: 2px; }
    .herb-name h3 { font-size: 30px; }
    .post-card h3 { font-size: 28px; }

    .footer-bottom { flex-direction: column; align-items: flex-start; padding-bottom: 40px; }
    .site-footer { padding-top: 48px; }
}

@media (max-width: 560px) {
    :root { --gutter: 20px; }
    .hero-media { aspect-ratio: 4 / 3; }
    .split-media { aspect-ratio: 4 / 3; }

    .card-grid-3.rail { grid-auto-columns: 82%; }
    /* Homepage product row becomes a rail too; the catalogue page stays a grid. */
    .product-grid.rail {
        display: grid; grid-auto-flow: column; grid-template-columns: none;
        grid-auto-columns: 72%; gap: 16px;
        overflow-x: auto; overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 8px;
        scrollbar-width: thin;
    }
    .product-grid:not(.rail) { gap: 28px 12px; }
    .product-grid:not(.rail) .tag { left: 8px; top: 8px; font-size: 9px; padding: 3px 6px; }

    .brand-strip { flex-direction: column; align-items: flex-start; gap: 10px; padding-inline: 0; }
    .promises { flex-direction: column; align-items: center; gap: 6px; padding-block: 16px; }
    .promises li + li::before { content: none; }
    .btn { width: 100%; min-width: 0; }
    .hero .btn, .moment .btn, .gift .btn { min-width: 0; }
    .filter-tabs a { flex: 1 1 auto; justify-content: center; padding-inline: 12px; }
    .brew-card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
    .brew-card h3 { font-size: 24px; }
    .brew-card dl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .brew-card dl div { display: flex; justify-content: space-between; gap: 12px; }

    .subscribe { height: auto; flex-wrap: wrap; }
    .subscribe input { flex-basis: 100%; height: 52px; }
    .subscribe button { height: 48px; width: 100%; border-top: 1px solid var(--line); text-align: left; padding-inline: 18px; }

    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-welcome { grid-column: 1 / -1; }
}

/* Touch screens: every link and control gets a ~44px hit area. */
@media (pointer: coarse) {
    .text-link, .social a, .inline-list a { display: inline-flex; align-items: center; min-height: 44px; }
    .site-footer nav li { margin-bottom: 0; }
    .site-footer nav li a { display: flex; align-items: center; min-height: 44px; }
    .icon-btn { min-width: 44px; min-height: 44px; }
    .site-header .logo, .footer-brand .logo { display: inline-flex; align-items: center; min-height: 44px; }
    .product-card:hover .product-media img { transform: none; }
}

@media (min-width: 1800px) {
    /* Very wide screens: keep the text columns from drifting too far apart. */
    .hero-copy { margin-left: auto; }
    .hero h1 { font-size: 80px; }
}
