/* finestcup.coffee — draft v2 (phase 0, docs/WEBSITE_PLAN.md): clean and modern (Dereje, 2026-11-18: "lose the coffee bag theme").
   Layout idea: white ground, generous space, one quiet sans, photographs and hairlines do the work; a coffee's colour is only a dot.
   One look, light only, by choice. The label drawn on the bag picture keeps the label's own type: it is a picture of the product. */
:root {
  --bg: #FFFFFF;
  --soft: #F6F4F1;         /* quiet section ground */
  --ink: #1A1410;          /* the logo's ink */
  --muted: #6B625C;        /* secondary text, 5.9:1 on white */
  --line: #E7E2DC;
  --accent: #3E2A22;       /* espresso: buttons */
  --tile: #EDEDED;         /* the bag photo's backdrop */
  --c: var(--accent);      /* a coffee's colour, where a block has one */
  --text: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --r: 16px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wide: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-family: var(--head, var(--text)); font-weight: var(--head-weight, 700); letter-spacing: var(--head-space, -.03em); line-height: 1.08; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wide); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--c); margin-right: .5em; }

.season { font-size: .86rem; font-weight: 700; text-align: center; padding: 8px var(--gutter-r) 8px var(--gutter-l); background: var(--ink); color: #fff; }
.season a { color: inherit; margin-left: .6em; }
.caption { color: var(--muted); font-size: .86rem; font-weight: 600; margin-top: 10px; }
.draft { background: var(--soft); color: var(--muted); font-size: .78rem; font-weight: 600; text-align: center; padding: 6px var(--gutter-r) 6px var(--gutter-l); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--top-bg, rgba(255,255,255,.94)); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { margin-right: auto; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { font-size: .92rem; font-weight: 600; text-decoration: none; padding: 10px 0; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.cart-btn, .menu-btn { font: 700 .88rem/1 var(--text); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; }
.cart-btn:hover, .menu-btn:hover { border-color: var(--ink); }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 4px var(--gutter-r) 12px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .top .wrap { gap: 10px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font: 700 .95rem/1.2 var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(32px, 6vw, 80px); }
.hero .copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
.hero .lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .photo { border-radius: calc(var(--r) * 1.5); overflow: hidden; aspect-ratio: 5 / 4; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.proof div { padding: 18px 20px; font-weight: 600; font-size: .95rem; }
.proof div + div { border-left: 1px solid var(--line); }
.proof b { display: block; font-weight: 700; }
.proof span { color: var(--muted); font-size: .88rem; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .proof { grid-template-columns: 1fr; }
  .proof div + div { border-left: 0; border-top: 1px solid var(--line); }
  .proof div { padding-inline: 0; }
}

/* sections */
.section { padding-block: clamp(52px, 8vw, 104px); }
.soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 14px 40px; flex-wrap: wrap; margin-bottom: 30px; }
.section-head h2, .h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
.section-head p { max-width: 32em; color: var(--muted); }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter button { font: 600 .88rem/1 var(--text); min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* coffee cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 32px 24px; }
.card { display: flex; flex-direction: column; gap: 14px; text-decoration: none; min-width: 0; }
.card .info { display: grid; gap: 4px; }
.card .series { font-size: .8rem; font-weight: 600; color: var(--muted); }
.card h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.card .sub, .card .notes { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.card .price { font-weight: 700; font-size: .95rem; margin-top: 4px; }
.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card:hover .zoom { transform: scale(1.03); }
/* Reserve: a gold edge, the series in gold capitals and the farmer's face (cardHtml) */
:root { --gold: #B8892E; --gold-ink: #7A5714; --gold-soft: #F7ECD3; }
.card.reserve { margin: -12px; padding: 12px; border-radius: calc(var(--r) + 8px); background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold), 0 6px 22px -12px rgba(122, 87, 20, .45); }
.card.reserve .series { color: var(--gold-ink); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.card.reserve .dot { background: var(--gold); }
.card .grower { display: flex; align-items: center; gap: 10px; font-size: .88rem; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.card .grower img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold-soft), 0 0 0 3.5px var(--gold); flex: none; }
.card .grower b { color: var(--ink); font-weight: 700; }

.bagshot { position: relative; aspect-ratio: 1; background: var(--tile); overflow: hidden; container-type: inline-size; border-radius: var(--r); }
.bagshot .zoom { position: absolute; inset: calc(var(--zoom, 11) * -1%); transition: transform .4s ease; }
.bagshot img { width: 100%; height: 100%; object-fit: cover; }
/* While a coffee's picture is being drawn its tile is empty: the stand-in (the HTML label on the blank bag) shows only when no picture can be
   made (no published label, an error), so a visitor never sees one bag turn into another (Dereje, 2026-11-20). */
.bagshot[data-code] .zoom { opacity: 0; transition: opacity .3s ease, transform .4s ease; }
.bagshot[data-code].templated .zoom, .bagshot[data-code][data-drawn="none"] .zoom, .bagshot[data-code][data-drawn="failed"] .zoom { opacity: 1; }
/* a bag picture drawn from the label template (labelbags.js): the whole bag, standing in its tile */
.bagshot.templated .zoom { inset: 0; }
.bagshot.templated img.bagpic { object-fit: contain; padding: 2% 4%; box-sizing: border-box; }
/* the 12 oz cut-out has room around its bag (the three are to scale with each other): shown alone it fills its tile like the others */
.bagshot.templated[data-bag="12oz"] img.bagpic { transform: scale(1.3); }
/* the label lies on the bag's face: at the place and the tilt bags.js gives for this bag (its sides stay upright, like the bag's) */
.bagshot .label { position: absolute; left: var(--l); top: var(--t); width: var(--w); transform: skewY(var(--tilt, 0deg)); box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .bagshot .zoom { transition: none; } html { scroll-behavior: auto; } }

/* the bag's label, as printed (shared/baglabel.js): only ever shown on the bag picture */
.label { --cream: #F6EFE0; --c-ink: #FFF6E4; container-type: inline-size; aspect-ratio: 1259 / 600; background: var(--cream); display: flex; overflow: hidden; color: var(--l-ink, var(--c)); font-family: 'Montserrat', sans-serif; }
.label .l-stub { width: 26.2%; background: var(--c); color: var(--c-ink); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 3.5cqw 1.6cqw 3.5cqw 4.4cqw; }
.label .l-mark { width: 18cqw; aspect-ratio: 708 / 526; background: var(--c-ink); -webkit-mask: url(img/logo.svg) center / contain no-repeat; mask: url(img/logo.svg) center / contain no-repeat; }
.label .l-series { align-self: stretch; border-block: .2cqw solid var(--c-ink); text-align: center; font-weight: 800; font-size: 1.65cqw; letter-spacing: .32cqw; text-transform: uppercase; line-height: 1.5; }
.label .l-profile { font-weight: 800; font-size: 1.55cqw; text-transform: uppercase; text-align: center; line-height: 1.2; }
.label .l-strip { width: 3.8%; background-color: var(--c); background-size: 100% auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='50' viewBox='0 0 28 50' fill='none' stroke='%23FFF6E4' stroke-width='1.6'%3E%3Cpath d='M3 0V50M25 0V50'/%3E%3Cpath d='M14 4L20 25L14 46L8 25Z'/%3E%3Cpath d='M14 15L18.5 25L14 35L9.5 25Z'/%3E%3C/svg%3E"); }
.label .l-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 2.9cqw 5.4cqw 2.1cqw 3.2cqw; }
.label .l-top { display: flex; justify-content: space-between; align-items: center; }
.label .l-top .amharic { font-family: 'Noto Serif Ethiopic', serif; font-weight: 700; font-size: 2.4cqw; white-space: nowrap; }
.label .l-top .en { font-size: 1.6cqw; font-weight: 800; letter-spacing: .32cqw; text-transform: uppercase; white-space: nowrap; }
.label .l-name { font-family: 'Anton', sans-serif; font-size: 6.6cqw; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.label .l-sub { font-size: 2.05cqw; font-weight: 700; line-height: 1.3; white-space: pre-line; margin-top: 1cqw; }
.label .l-notes { display: flex; gap: .95cqw; }
.label .l-notes span { background: var(--l-ink, var(--c)); color: var(--cream); border-radius: 99cqw; padding: .7cqw 1.6cqw; font-size: 1.9cqw; font-weight: 800; text-transform: uppercase; white-space: nowrap; line-height: 1.2; }
.label .l-foot { text-align: center; font-size: 1.9cqw; font-weight: 800; letter-spacing: .24cqw; text-transform: uppercase; }

/* the three lines */
.series-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 56px; }
.series-row div { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 6px; }
.series-row h3 { font-size: 1.1rem; }
.series-row p { color: var(--muted); font-size: .95rem; }
@media (max-width: 720px) { .series-row { grid-template-columns: 1fr; gap: 20px; } }

/* photo beside text */
.duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.duo.flip .photo { order: 2; }
.duo .photo { border-radius: calc(var(--r) * 1.25); overflow: hidden; aspect-ratio: 4 / 3; }
.duo .photo img { width: 100%; height: 100%; object-fit: cover; }
.duo .panel { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.duo .panel p { color: var(--muted); max-width: 34em; }
@media (max-width: 820px) { .duo { grid-template-columns: 1fr; } .duo.flip .photo { order: 0; } }
.stack { display: grid; gap: clamp(48px, 7vw, 96px); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0 24px; margin: 0; width: 100%; max-width: 30em; }
.facts dt, .facts dd { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; font-size: .95rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { font-weight: 600; }
.todo { background: #FFF1C2; color: #5A4300; border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .86em; }

/* subscriptions */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; }
.plans div { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sub { background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.25); padding: clamp(18px, 3vw, 28px); display: grid; gap: 10px; align-content: start; }
.sub img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; background: var(--tile); border-radius: var(--r); margin-bottom: 6px; }
.sub h3 { font-size: 1.35rem; } .sub > p { color: var(--muted); }
.sub .plans { margin-top: 6px; } .sub .plans > div { padding: 14px 16px; grid-column: 1 / -1; }
@media (max-width: 760px) { .subs { grid-template-columns: 1fr; } .sub .plans { grid-template-columns: 1fr; } }
.plans button { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; text-align: left; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 4px; }
.plans button:hover { border-color: var(--ink); } .plans button[disabled] { opacity: .55; cursor: default; }
.plans em { font-style: normal; font-weight: 700; font-size: .9rem; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.qty.sm { margin: 8px 10px 0 0; } .qty.sm button { width: 34px; height: 34px; font-size: 1rem; }
.plans b { display: block; font-size: 1.8rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.plans span { color: var(--muted); font-size: .9rem; font-weight: 600; }
@media (max-width: 520px) { .plans { grid-template-columns: 1fr; } }

/* more than coffee */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-height: 150px; background: var(--bg); }
.tile:hover { border-color: var(--ink); }
.tile h3 { font-size: 1.15rem; }
.tile p { font-size: .93rem; color: var(--muted); }
.tile .go { margin-top: auto; font-size: .9rem; font-weight: 700; }

/* wholesale */
.cta { background: var(--accent); color: #fff; border-radius: calc(var(--r) * 1.5); padding: clamp(28px, 6vw, 72px); display: grid; gap: 18px; justify-items: start; }
.cta .eyebrow { color: rgba(255,255,255,.72); }
.cta p { color: rgba(255,255,255,.84); max-width: 36em; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: clamp(52px, 8vw, 104px); }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 32px; padding-block: 52px 36px; }
.foot h3 { font-size: .92rem; letter-spacing: 0; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; color: var(--muted); }
.foot p { color: var(--muted); font-size: .92rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot .logo { height: 54px; width: auto; margin-bottom: 14px; }
.foot form { display: flex; gap: 8px; flex-wrap: wrap; }
.foot input { flex: 1; min-width: 160px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 .95rem var(--text); }
.foot .legal { border-top: 1px solid var(--line); padding-block: 18px 26px; font-size: .84rem; color: var(--muted); display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* the coffee page */
.crumbs { font-size: .88rem; font-weight: 600; color: var(--muted); padding-block: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.product .shots { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.product .bagshot { border-radius: calc(var(--r) * 1.25); }
.buy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.buy .series { font-size: .92rem; font-weight: 600; color: var(--muted); }
.buy h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
.buy .sub { font-size: 1.05rem; color: var(--muted); white-space: pre-line; line-height: 1.45; margin-top: -12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: .88rem; font-weight: 600; }
.buy .facts { max-width: none; grid-template-columns: 9em 1fr; }
.roast { display: grid; gap: 8px; }
/* the roast: an indicator of how we roast the coffee (five steps, the ones up to ours filled), not a slider */
.roast-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.roast-head b { font-size: .95rem; }
.roast-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.roast-scale i { height: 6px; border-radius: 2px; background: var(--line); }
.roast-scale i.on.r0 { background: #D9B98A; } .roast-scale i.on.r1 { background: #B88B52; } .roast-scale i.on.r2 { background: #8A5C2E; }
.roast-scale i.on.r3 { background: #5E3A1C; } .roast-scale i.on.r4 { background: #2A160B; }
.roast .ends { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend, .legend { font-size: .88rem; font-weight: 700; padding: 0; margin-bottom: 10px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; }
.opts span { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .93rem; cursor: pointer; line-height: 1.25; }
.opts span small { font-weight: 500; font-size: .82rem; color: var(--muted); }
.opts span:hover { border-color: var(--ink); }
.opts input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opts input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.buyrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 46px; height: 50px; border: 0; background: transparent; font: 600 1.2rem var(--text); color: var(--ink); cursor: pointer; border-radius: 999px; }
.qty output { min-width: 26px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.buyrow .btn { flex: 1; min-width: 200px; }
.small { font-size: .88rem; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.story img { border-radius: calc(var(--r) * 1.25); width: 100%; }
.story h2 { margin: 8px 0 16px; }
.story p + p { margin-top: 1em; }
.story .text { max-width: 60ch; }
.story .text p { color: var(--muted); }
@media (max-width: 860px) { .product, .story { grid-template-columns: 1fr; } .product .shots { position: static; } }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(26,20,16,.4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: -12px 0 40px rgba(26,20,16,.12); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.3rem; }
.drawer .x { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font: 600 1rem var(--text); color: var(--ink); cursor: pointer; }
.drawer .lines { flex: 1; overflow: auto; padding: 4px 22px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line b { font-weight: 700; display: block; }
.line small { display: block; color: var(--muted); font-size: .88rem; }
.line .amt { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.line button { background: none; border: 0; padding: 4px 0; font: 600 .84rem var(--text); text-decoration: underline; color: var(--muted); cursor: pointer; }
.drawer footer { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer .total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.empty { padding: 28px 0; color: var(--muted); }

/* content pages (phase 1) */
.page-head { padding-block: clamp(36px, 6vw, 80px) clamp(20px, 3vw, 36px); display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); max-width: 16em; }
.section.after-photo { padding-top: clamp(28px, 4vw, 48px); }
.page-head p { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 38em; }
.prose { max-width: 66ch; display: grid; gap: 1.1em; font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: .8em; }
.prose p, .prose li { color: var(--copy, #3D3530); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: .4em; }
.kaldi .prose { margin-inline: auto; }
.kaldi .prose h2 { margin-top: 0; }
.kaldi-end { font-weight: 700; font-size: 1.15rem; }
.note { border: 1px dashed #D9B84A; background: #FFFBEA; color: #5A4300; border-radius: 12px; padding: 12px 16px; font-size: .92rem; font-weight: 600; }
.wide-photo { border-radius: calc(var(--r) * 1.5); overflow: hidden; aspect-ratio: 21 / 9; }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo video, .wide-photo video { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--tile); }
@media (max-width: 720px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* the café's menu, read from the menu the café keeps */
.menu { columns: 3 260px; column-gap: 40px; }
.menu section { break-inside: avoid; margin-bottom: 34px; }
.menu h3 { font-size: 1.1rem; padding-bottom: 10px; border-bottom: 1px solid var(--ink); margin-bottom: 4px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.menu li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.menu-note { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.menu li .pts { margin-left: .4em; font-size: .78em; font-weight: 700; letter-spacing: .03em; color: var(--accent, var(--muted)); white-space: nowrap; }
/* the rewards app: "Get the app", and on a computer a code to scan with a phone (a phone opens the app straight away) */
.rewards-get { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.rewards-qr { display: none; margin: 0; align-items: center; gap: 14px; }
.rewards-qr svg { width: 104px; height: 104px; flex: none; border-radius: 10px; border: 1px solid var(--line); }
.rewards-qr figcaption { color: var(--muted); font-size: .88rem; max-width: 17em; }
@media (min-width: 821px) and (hover: hover) and (pointer: fine) { .rewards-qr { display: flex; } }

/* people */
.people { display: grid; gap: clamp(36px, 5vw, 64px); }
.person { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr); gap: 16px 48px; border-top: 1px solid var(--ink); padding-top: 22px; }
.person h2 { font-size: 1.5rem; }
.person .where { color: var(--muted); font-weight: 600; font-size: .95rem; margin-top: 6px; }
.person .text { display: grid; gap: 1em; max-width: 62ch; }
.person .text p { color: var(--copy, #3D3530); }
@media (max-width: 720px) { .person { grid-template-columns: 1fr; } }
.person .face { display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; max-width: 14em; }
.person .face img { width: 100%; height: 100%; object-fit: cover; }
/* a farmer's page: the portrait and the facts beside the story (farmerphotos.js) */
.farmer-body { display: grid; grid-template-columns: minmax(0, 22em) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.farmer-side { display: grid; gap: 24px; position: sticky; top: 96px; }
.farmer-portrait { border-radius: calc(var(--r) * 1.5); overflow: hidden; aspect-ratio: 1; }
.farmer-portrait img, .farmer-portrait video { width: 100%; height: 100%; object-fit: cover; display: block; }
.glance { margin: 0; display: grid; border-top: 1px solid var(--ink); }
.glance h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 14px 0 6px; }
.glance div { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.glance dt { color: var(--muted); font-weight: 600; }
.glance dd { margin: 0; color: var(--copy, #3D3530); }
.farmer-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.farmer-more figure { margin: 0; display: grid; gap: 8px; }
.farmer-more img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }
.farmer-more figcaption { color: var(--muted); font-size: .9rem; }
@media (max-width: 820px) { .farmer-body { grid-template-columns: 1fr; } .farmer-side { position: static; } .farmer-portrait { max-width: 26em; } }

/* contact */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 700; }
.form input, .form select, .form textarea { font: 500 1rem var(--text); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 50px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.copy-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.copy-line button { font: 600 .82rem var(--text); border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--ink); min-height: 36px; }

/* questions */
.faq { max-width: 46em; }
.faq h2 { font-size: 1.4rem; margin: 40px 0 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 1.3rem; font-weight: 500; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 18px; color: var(--copy, #3D3530); max-width: 60ch; }

/* forms that send (forms.js): the field a person never sees, and what the form says back */
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .sent { color: #1F6B3A; font-weight: 700; } .form .problem { color: #9A1822; font-weight: 700; }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.offer > div { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--bg); display: grid; gap: 8px; align-content: start; }
.offer h3 { font-size: 1.12rem; } .offer p { color: var(--muted); font-size: .95rem; }
/* the home page's offers (promos.js): the sale stands out in the look's accent */
.offers .offer { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }   /* two by two on a phone */
.offers .offer > div { border-top: 3px solid var(--accent); padding: 18px; }
@media (max-width: 520px) { .offers .offer h3 { font-size: 1rem; } .offers .offer p { font-size: .86rem; } }
.offers .offer > [data-offer="christmas"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.offers .offer > [data-offer="christmas"] p { color: rgba(255, 255, 255, .9); }
