/* Qahwetna · qahwetna.cafe, October 2026. Colours by the brand guidelines, edition 2, section 03:
   white pages (white and paper 55%), tawous 30% (buttons, the peacock chapter, the alcove's niche, the
   footer), ink 8% for text; saffron, cherry and rose stay small (cherry for prices, one red touch);
   cobalt, leaf, lemon and café only in the paintings and the zellige. Each coffee keeps its colour:
   the light one fills its tile. Zellige is drawn in the peacock roundel's own enamel colours.
   Type: Gloock and Hanken Grotesk (Amiri and IBM Plex Sans Arabic in Arabic), six sizes. */
:root {
  color-scheme: light;
  --white: #FFFFFF;
  --paper: #FFFFFF;   /* fix 4 (4 Nov 2026): no beige grounds; boxes are white with a thin line (Jev G2 0.59) */
  --surface: #FFFFFF;
  --edge: #C9DCDF;
  --ink: #0D2A30;
  --ink-2: #445C61;
  --tawous: #0B5563;
  --tawous-dk: #084550;
  --on-t: #CFE3E5;
  --on-t-accent: #F3CF7A;
  --cherry: #C1272D;
  --saffron: #E3A72F;
  --rose: #E5708F;
  --cobalt: #2446A6;
  --leaf: #3F7F4A;
  --ok: #1F6B4F;
  --line: #DCE6E7;
  --f-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --f-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-ar: "Amiri", "Geeza Pro", "Times New Roman", serif;
  --wrap: 1360px;
  --gut: clamp(16px, 3.4vw, 48px);
  --t-s: 14px;
  --t-ui: 15px;
  --t-b: 17px;
  --t-name: 24px;
  --s-state: clamp(21px, 2.05vw, 31px);
  --s-head: clamp(28px, 3vw, 43px);
  --s-hero: clamp(30px, 4.1vw, 59px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 76px;
  /* zellige: stars cobalt and tawous, small stars saffron, cherry hearts, white glaze, ink joints */
  --z-a: var(--cobalt); --z-b: var(--tawous); --z-c: var(--saffron); --z-d: var(--cherry); --z-g: var(--white); --z-line: var(--ink);
}
html[lang="ar"] {
  --f-display: "Amiri", "Gloock", "Geeza Pro", serif;
  --f-text: "IBM Plex Sans Arabic", "Hanken Grotesk", "Geeza Pro", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 var(--t-b)/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
html[lang="ar"] :is(h1, h2, h3, h4) { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
p { margin: 0; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tawous); outline-offset: 3px; }
::selection { background: var(--tawous); color: var(--white); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.ar { font-family: var(--f-ar); font-weight: 700; }
.muted { color: var(--ink-2); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--tawous); color: var(--white); border-radius: 8px; }
.skip:focus { top: 8px; }
.sec { padding-block: clamp(64px, 8vw, 128px); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 3vw, 44px); }
.sec-head h2 { font-size: var(--s-head); line-height: 1.04; }
.sec-head p { color: var(--ink-2); max-width: 34rem; }
.label { font-size: var(--t-s); font-weight: 600; color: var(--tawous); }

/* zellige parts, used inside inline SVG */
.z-g { fill: var(--z-g); }
.z-a { fill: var(--z-a); stroke: var(--z-line); stroke-width: 4; stroke-linejoin: round; transition: fill .7s var(--ease); }
.z-b { fill: var(--z-b); stroke: var(--z-line); stroke-width: 4; stroke-linejoin: round; }
.z-c { fill: var(--z-c); }
.z-d { fill: var(--z-d); }
.frieze { height: clamp(28px, 3.2vw, 44px); background: var(--white) url("../img/zellige-frieze.svg") repeat-x 0 0 / auto 100%; }

/* ── buttons and links: tawous, as the guidelines ask ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--tawous); color: var(--white); font-weight: 600; font-size: var(--t-ui); text-decoration: none; cursor: pointer; transition: background-color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { background: var(--tawous-dk); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }
#rAdd[disabled], [data-recipe-add][disabled] { opacity: 1; cursor: default; background: var(--surface); color: var(--ink-2); }
.btn.done { background: var(--ok); }
.btn--quiet { min-height: 40px; padding: 0 16px; font-size: var(--t-s); background: var(--surface); color: var(--ink); }
.btn--quiet:hover { background: var(--tawous); color: var(--white); }
.btn--light { background: var(--white); color: var(--tawous); }
.btn--light:hover { background: var(--paper); }
.btn--ghost { background: transparent; color: var(--tawous); box-shadow: inset 0 0 0 1.5px var(--tawous); }
.btn--ghost:hover { background: var(--tawous); color: var(--white); }
.link { color: var(--tawous); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: color .2s; }
.link:hover { color: var(--tawous-dk); }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: var(--t-s); cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s; }
.pill:hover { background: #E9E2D7; }
.pill[aria-pressed="true"], .pill[aria-selected="true"], .pill[aria-current="page"] { background: var(--tawous); color: var(--white); }
.price { color: var(--cherry); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── announcement, header ── */
.note { background: var(--tawous); color: var(--white); font-size: var(--t-s); }
.note .wrap { display: flex; justify-content: center; gap: 6px 26px; flex-wrap: wrap; padding-block: 8px; text-align: center; }
.note span + span::before { content: "·"; margin-inline-end: 26px; color: var(--on-t-accent); }
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--white); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--hdr-h); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; color: var(--tawous); text-decoration: none; --wm-dots: var(--cherry); }
.logo img { width: 52px; height: 52px; }
.wm { display: block; }
.logo .wm--lockup { height: 42px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: var(--t-ui); white-space: nowrap; padding-block: 6px; color: var(--ink); }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--tawous); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--tawous); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; font-size: var(--t-s); font-weight: 600; }
.lang a { padding: 5px 8px; border-radius: 6px; color: var(--ink-2); text-decoration: none; }
.lang a[aria-current="true"] { color: var(--tawous); background: #EAF1F1; }
.lang a:hover { color: var(--tawous); }
.lang [lang="ar"] { font-family: "IBM Plex Sans Arabic", sans-serif; }
.bagbtn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--tawous); color: var(--white); cursor: pointer; font-weight: 600; font-size: var(--t-ui); white-space: nowrap; transition: background-color .2s; }
.bagbtn:hover { background: var(--tawous-dk); }
.bagbtn .n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--cherry); color: var(--white); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.bagbtn.bump .n { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu { display: none; }

/* ── home: the film. Our farm, full screen and silent, the name over it (v6, approved 4 Nov 2026). The
   header floats on a dark band at the top of the film and turns white once the film has scrolled away;
   without script it stays white. Type sizes as in the approved preview. ── */
.js .home .hdr { background: transparent; transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.js .home .hdr.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.js .home .hdr:not(.is-solid) .logo { color: var(--white); --wm-dots: var(--white); }
.js .home .hdr:not(.is-solid) .nav a, .js .home .hdr:not(.is-solid) .menu summary { color: var(--white); }
.js .home .hdr:not(.is-solid) .nav a::after { background: var(--white); }
.js .home .hdr:not(.is-solid) .tools .lang a { color: rgba(255, 255, 255, .84); }
.js .home .hdr:not(.is-solid) .tools .lang a[aria-current="true"] { color: var(--white); background: rgba(255, 255, 255, .16); }
.home .note { position: relative; z-index: 31; }
.film { position: relative; height: 100svh; min-height: 600px; margin-top: calc((var(--note-h, 37px) + var(--hdr-h)) * -1); overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.film__still img, .film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__video { opacity: 0; transition: opacity .6s var(--ease); }
.film__video.is-on { opacity: 1; }
/* the dark band behind the menu, and the shade under the name, so white type reads on every shot */
.film::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  linear-gradient(to bottom, rgba(13, 42, 48, .74) var(--note-h, 37px), rgba(13, 42, 48, .56) calc(var(--note-h, 37px) + var(--hdr-h)), rgba(13, 42, 48, 0) calc(var(--note-h, 37px) + var(--hdr-h) + 140px)),
  linear-gradient(to bottom, rgba(13, 42, 48, 0) 40%, rgba(13, 42, 48, .5) 68%, rgba(13, 42, 48, .78) 100%); }
.film__copy { position: absolute; z-index: 2; inset-inline: 0; bottom: clamp(28px, 6vh, 64px); }
.film__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(14px, 2vw, 32px); letter-spacing: 0; }
.film__big { font-family: "Gloock", var(--f-display); font-weight: 400; font-size: clamp(64px, 15.5vw, 250px); line-height: .86; letter-spacing: -0.02em; }
html[lang="ar"] .film__name { line-height: 1; }
.film__side { font-family: var(--f-ar); font-weight: 700; font-size: clamp(34px, 5.4vw, 88px); line-height: 1; }
.film__side small { display: block; margin-top: 6px; font-family: var(--f-text); font-weight: 400; font-size: 15px; }
.film__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(18px, 3vh, 30px); }
.film__line { font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; max-width: 44ch; text-wrap: balance; }
.film__btn { min-height: 54px; padding: 0 30px; font-size: 16px; }
.film__pause { position: absolute; z-index: 3; inset-inline-end: var(--gut); top: 50%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(13, 42, 48, .45); color: var(--white); cursor: pointer; transition: background-color .2s, transform .2s var(--ease); }
.film__pause[hidden] { display: none; }
.film__pause:hover { background: rgba(13, 42, 48, .72); }
.film__pause:active { transform: scale(.94); }
.film__pause span { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.film__pause.is-paused span { width: 0; height: 0; margin-left: 4px; border-right: 0; border-left: 13px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }

/* ── home: heritage, on the paper our labels are painted on ── */
.statement { font-family: var(--f-display); font-size: var(--s-state); line-height: 1.3; letter-spacing: -0.01em; }
html[lang="ar"] .statement { font-weight: 400; line-height: 1.75; }
.statement--soft { color: var(--ink-2); }
.heritage { background: var(--paper); padding-block: clamp(80px, 9vw, 150px) clamp(72px, 8vw, 132px); }
.heritage__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); align-items: start; }
.heritage__text { grid-column: 6 / 13; grid-row: 1; }
.heritage__line { display: block; margin-top: .6em; color: var(--tawous); }
.heritage__art { grid-column: 1 / 5; grid-row: 1 / 3; margin: 0; }
.heritage__art img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 28%; }
.heritage__note { grid-column: 6 / 10; grid-row: 2; margin-top: 40px; font-size: var(--t-ui); color: var(--ink-2); max-width: 28rem; }

/* ── home: the next chapter, on tawous ── */
.next { background: var(--tawous); color: var(--white); padding-block: clamp(80px, 9vw, 150px); }
.next__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.next__facts { grid-column: 1 / 3; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; align-content: start; padding-top: 10px; font-size: var(--t-ui); color: var(--on-t); }
.next__text { grid-column: 3 / 13; display: grid; gap: 1.2em; }
.dropcap { float: left; width: 4.1em; height: 4.1em; margin: 0.16em 0.5em 0 0; }
html[dir="rtl"] .dropcap { float: right; margin: 0.16em 0 0 0.5em; }
.next .statement--soft { color: var(--on-t); }

/* ── home: we go ourselves ── */
.go { background: var(--tawous); color: var(--white); padding-block: clamp(64px, 7vw, 112px); }
.go h2 { font-size: var(--s-head); line-height: 1.05; margin-bottom: clamp(28px, 3vw, 44px); padding-inline-start: calc(100% / 12 * 2); }
.band4 { display: flex; height: 68svh; min-height: 420px; max-height: 760px; }
.band4__p { position: relative; flex: var(--g) 1 0; min-width: 0; margin: 0; overflow: hidden; transition: flex-grow .5s var(--ease); }
.band4__p img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.band4__p figcaption { position: absolute; inset-inline-start: 0; top: 0; max-width: 18rem; padding: 22px 24px 40px; font-family: var(--f-display); font-size: var(--t-name); line-height: 1.15; color: #fff; background: radial-gradient(130% 110% at 0 0, rgba(0,0,0,.68), rgba(0,0,0,0) 72%); text-shadow: 0 1px 14px rgba(0,0,0,.5); opacity: 0; transition: opacity .4s; }
.band4__p:first-child figcaption { opacity: 1; }
[dir=rtl] .band4__p figcaption { background: radial-gradient(130% 110% at 100% 0, rgba(0,0,0,.68), rgba(0,0,0,0) 72%); }
@media (hover: hover) {
  .band4:hover .band4__p:hover { flex-grow: 6; }
  .band4:hover .band4__p figcaption { opacity: 0; }
  .band4:hover .band4__p:hover figcaption { opacity: 1; }
  .band4__p:hover img { transform: scale(1.03); }
}
.go__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px 40px; margin-top: 22px; }
.go__foot p { max-width: 46rem; color: var(--on-t); }
.go .link { color: var(--on-t-accent); }

/* ── home: the coffees. All eight on their own colours, each with one line from Riadh's shop text, the price and
   Add to bag (Jev, 4 Nov 2026, after he rejected the cup chooser; outline buttons, Jev 0.92 vs 0.88 solid). ── */
.coffees { padding-block: clamp(80px, 9vw, 140px) clamp(72px, 8vw, 128px); }
.coffees__h { font-size: var(--s-head); line-height: 1.04; margin-bottom: clamp(26px, 3vw, 44px); }
.shelf__grid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: clamp(44px, 4.4vw, 64px) clamp(14px, 1.6vw, 24px); margin: 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; gap: 6px; }
.tile__img { display: block; margin-bottom: 12px; background: var(--tile); aspect-ratio: 4 / 5; overflow: hidden; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile__name { font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); line-height: 1.15; }
html[lang="ar"] .tile__name { font-weight: 700; }
.tile__name a { color: var(--ink); text-decoration: none; }
.tile__own { color: var(--ink); }
.coffees__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: clamp(44px, 4.4vw, 64px) 0 0; padding: 0; list-style: none; font-size: var(--t-ui); color: var(--ink); }
.coffees__facts li { display: flex; align-items: center; gap: 10px; }
.coffees__facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tawous); flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tale { padding-block: clamp(32px, 4vw, 64px) clamp(80px, 9vw, 140px); }
.tale__ch h3 { font-size: clamp(22px, 2.75vw, 40px); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: clamp(12px, 1.3vw, 18px); }
.tale__ch p { max-width: 34rem; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.6; color: var(--ink-2); }
.tale__pair { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); row-gap: clamp(40px, 5vw, 72px); align-items: center; }
.tale__c1 { grid-column: 1; grid-row: 1; align-self: end; }
.tale__c2 { grid-column: 1; grid-row: 2; align-self: start; }
.tale__art { grid-column: 2; grid-row: 1 / 3; }
.tale__img { margin: 0; }
.tale__img img { display: block; width: 100%; height: auto; }
.tale__bag { background: var(--tile); }
.tale__bag img { aspect-ratio: 4 / 5; object-fit: cover; }
.tale--t { padding-block: 0 clamp(80px, 9vw, 140px); }
.tale--t .tale__ch p { color: rgba(255, 255, 255, .86); }
.tale__c3 { padding-block: clamp(36px, 4vw, 64px) clamp(56px, 7vw, 112px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); align-items: start; }
.tale__c3 p { padding-top: .5em; }
.tale__pair--name { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.tale__pair--name .tale__bag { grid-column: 1; grid-row: 2 / 4; align-self: center; }
.tale__c4 { grid-column: 1 / -1; grid-row: 1; }
.tale__c5 { grid-column: 2; grid-row: 2; align-self: end; }
.tale__c6 { grid-column: 2; grid-row: 3; align-self: start; }
.tale__btn { margin-top: clamp(24px, 2.4vw, 36px); }
.tile__price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-size: var(--t-ui); font-variant-numeric: tabular-nums; }
.tile__price b { color: var(--cherry); }
.tile__price span { color: var(--ink-2); }
.tile__buy { display: grid; gap: 8px; margin-top: auto; padding-top: 12px; }
.tile__buy .btn { width: 100%; padding: 0 12px; }
.tile__buy [hidden] { display: none !important; }
.tile__grind { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tile__grind p { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px; font-size: var(--t-ui); font-weight: 600; color: var(--ink); }
.tile__grind .chip { min-height: 44px; padding: 0 8px; border: 1.5px solid var(--tawous); border-radius: 999px; background: var(--white); color: var(--tawous); font: 600 var(--t-s)/1.1 var(--f-text); cursor: pointer; transition: background-color .15s, color .15s; }
.tile__grind .chip:first-of-type { grid-column: 1 / -1; }
.tile__grind .chip:hover, .tile__grind .chip:focus-visible { background: var(--tawous); color: var(--white); }
.tile__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.tile__x:hover { background: var(--line); }
.line small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 4px; }
.line__grind { width: auto; min-height: 30px; padding: 0 26px 0 10px; font-size: var(--t-s); }
.tile__soon { margin-top: auto; padding-top: 12px; font-size: var(--t-ui); }
.sold { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--t-ui); font-weight: 600; letter-spacing: .02em; }
.pp__info .sold { max-width: 22rem; margin: 22px 0; }
.p .sold { margin-top: auto; }
@media (hover: hover) {
  .tile__img:hover img { transform: scale(1.04); }
  .tile__name a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
}
.tile__name a:focus-visible { outline: 2px solid var(--tawous); outline-offset: 4px; }

/* ── home: every cup ── */
.cups { background: var(--paper); padding-block: clamp(80px, 9vw, 140px); }
.cups__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(28px, 3vw, 44px); }
.cups__head h2 { font-size: var(--s-head); line-height: 1.04; }
.cups__head p { color: var(--ink-2); }
.cups .tabs { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: 36px; }
.cups .tabs .pill { min-height: 0; padding: 4px 0; border-radius: 0; background: none; color: var(--ink-2); font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); transition: color .2s; }
html[lang="ar"] .cups .tabs .pill { font-weight: 700; }
.cups .tabs .pill:hover { color: var(--ink); }
.cups .tabs .pill[aria-selected="true"] { color: var(--tawous); }
.rpanel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.rpanel__head { display: grid; gap: 18px; }
.rpanel__head h3 { font-size: var(--s-head); line-height: 1.05; }
.rhow { color: var(--ink-2); }
.rpanel__body { display: grid; gap: 18px; }
.rwith { font-size: var(--t-ui); color: var(--ink-2); }
.rwith b { color: var(--ink); }
.rpick { display: flex; flex-wrap: wrap; gap: 6px; }
.cups .rpick .pill { background: var(--white); }
.cups .rpick .pill[aria-pressed="true"] { background: var(--tawous); }
.rpick .pill { min-height: 36px; padding: 0 14px; }
.rpick .pill.is-pick::before { content: ""; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: var(--cherry); }
.rpick .pill.is-pick[aria-pressed="true"]::before { background: var(--white); }
.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rlist li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 16px; align-items: baseline; padding: 12px 16px; background: var(--surface); font-size: var(--t-ui); }
.cups .rlist li { background: var(--white); }
.rlist li span:first-child { font-weight: 700; font-size: var(--t-b); font-variant-numeric: tabular-nums; color: var(--tawous); }
.rcta { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; }
.cups__all { margin-top: 40px; }

/* ── wholesale ── */
.ws { padding-block: clamp(80px, 9vw, 140px); }
.ws__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.ws__grid--top { align-items: start; }
.ws__media { display: grid; gap: 32px; }
.ws__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; gap: 2px; }
.points b { font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); }
html[lang="ar"] .points b { font-weight: 700; }
.points span { color: var(--ink-2); }
.ws__copy { display: grid; gap: 20px; align-content: start; }
.ws__copy h2, .ws__copy h1 { font-size: var(--s-head); line-height: 1.04; }
.ws__copy > p { color: var(--ink-2); }

/* ── home: the bag returns, from behind, on paper ── */
.end { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); min-height: 86svh; overflow: hidden; background: var(--tile, var(--paper)) url("../img/zellige-soft.svg") 0 0 / 120px; color: var(--ink); }
.end__bag { grid-column: 1 / 9; grid-row: 1; position: relative; margin: 4% 0 0; min-height: 560px; }
.end__bag canvas, .end__bag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.end__text { grid-column: 9 / 13; grid-row: 1; align-self: center; display: grid; gap: 16px; padding: 64px var(--gut) 64px 0; }
html[dir="rtl"] .end__text { padding: 64px 0 64px var(--gut); }
.end h2 { font-size: var(--s-head); line-height: 1.04; }
.end__fact { font-family: var(--f-display); font-size: var(--t-name); line-height: 1.2; color: var(--tawous); }

/* ── product cards (shop): the coffee's light colour fills its tile ── */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 56px 20px; }
.p { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 8px; }
.p__tile { position: relative; display: block; aspect-ratio: 1 / 1.1; margin-bottom: 12px; background: var(--tile) url("../img/zellige-soft.svg") 0 0 / 96px; overflow: hidden; text-decoration: none; }
.p__tile canvas, .p__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.p__tile img.fallback { padding: 14%; }
.p__band { position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: var(--band); }
.p__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.p h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); line-height: 1.1; }
html[lang="ar"] .p h3 { font-weight: 700; }
.p h3 a { text-decoration: none; }
.p h3 a:hover { color: var(--tawous); }
.p__origin { font-size: var(--t-s); color: var(--ink-2); }
.p__notes { font-size: var(--t-ui); }
.p__buy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 10px; }
select, .input { width: 100%; min-height: 46px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--t-ui); }
.input::placeholder { color: var(--ink-2); }
.p__buy .btn { min-height: 46px; padding: 0 20px; }
.notify { display: flex; gap: 8px; margin-top: 10px; }
.notify .input { flex: 1; min-width: 0; }
.notify .btn { min-height: 46px; padding: 0 18px; }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* ── recipe cards (recipes index, shop) ── */
.recipes { background: var(--paper); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.rcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rcard { display: grid; gap: 12px; align-content: start; padding: 26px; background: var(--white); text-decoration: none; transition: background-color .25s; }
.rcard:hover { background: #FCFAF6; }
.rcard h3 { font-size: var(--t-name); line-height: 1.15; }
.rcard p { color: var(--ink-2); font-size: var(--t-ui); }
.rcard b { color: var(--ink); }

/* ── inner page heads, breadcrumbs ── */
.phead { padding-block: clamp(36px, 5vw, 72px) clamp(28px, 3vw, 44px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; font-size: var(--t-s); color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--tawous); }
.phead h1 { font-size: var(--s-hero); line-height: 1.02; max-width: 18ch; }
.phead p { margin-top: 18px; color: var(--ink-2); max-width: 40rem; }

/* ── product page ── */
.pp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 88px); align-items: start; padding-block: clamp(20px, 3vw, 40px) clamp(64px, 7vw, 112px); }
.pp__stage { position: sticky; top: 104px; }
.viewer { position: relative; aspect-ratio: 1 / 1; background: var(--tile) url("../img/zellige-soft.svg") 0 0 / 128px; overflow: hidden; touch-action: pan-y; cursor: grab; }
.viewer:active { cursor: grabbing; }
.viewer canvas, .viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.viewer img.fallback { padding: 12%; }
.viewer--photo { aspect-ratio: 4 / 5; background: var(--tile); cursor: default; }
.viewer--photo img { object-fit: cover; }
.viewer__hint { position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--ink-2); font-size: var(--t-s); pointer-events: none; white-space: nowrap; }
html[dir="rtl"] .viewer__hint { transform: translateX(50%); }
.viewer__turn { position: absolute; top: 14px; inset-inline-end: 14px; min-height: 38px; padding: 0 14px; background: rgba(255, 255, 255, .9); }
.pp__info { display: grid; gap: 20px; }
.pp__info h1 { font-size: var(--s-hero); line-height: 1.02; }
.pp__line { font-family: var(--f-display); font-size: var(--t-name); line-height: 1.25; }
.pp__price { font-size: var(--t-name); }
.notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notes li { padding: 7px 14px; border-radius: 999px; background: var(--tile, var(--surface)); font-size: var(--t-s); }
.pick { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--surface); font-size: var(--t-ui); }
.pick::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--cherry); clip-path: polygon(50% 0, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%); }
.buy { display: grid; grid-template-columns: minmax(0, 1fr) 8rem; gap: 10px; }
.buy .btn { grid-column: 1 / -1; min-height: 54px; font-size: var(--t-b); }
.qtyf { display: flex; align-items: center; justify-content: space-between; min-height: 46px; border-radius: 999px; padding: 0 6px; background: var(--surface); }
.qtyf button { width: 34px; height: 34px; border: 0; background: none; font-size: var(--t-b); cursor: pointer; }
.qtyf output { font-variant-numeric: tabular-nums; font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; font-size: var(--t-ui); }
.specs caption { color: var(--tawous); font-weight: 600; text-align: start; padding-bottom: 8px; }
.specs th, .specs td { padding: 11px 0; border-top: 1px solid var(--line); text-align: start; vertical-align: top; }
.specs th { width: 38%; font-weight: 600; color: var(--ink-2); }
.story { display: grid; gap: 12px; }
.more { padding-block: clamp(56px, 7vw, 104px); background: var(--paper); }
.field { display: grid; gap: 6px; font-size: var(--t-s); font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--white); color: var(--ink); font-weight: 400; font-size: var(--t-b); }
.field textarea { min-height: 104px; padding: 12px 14px; resize: vertical; }
.field small { font-weight: 400; color: var(--ink-2); }

/* ── recipe page ── */
.rp { display: grid; grid-template-columns: minmax(0, 46rem); gap: clamp(28px, 5vw, 80px); align-items: start; padding-block: 0 clamp(64px, 7vw, 112px); }
/* fix 4 (Jev L2 0.60): one centred column, the picture on top, like the articles */
.rp { justify-content: center; }
.phead--rp .wrap { max-width: calc(46rem + 2 * var(--gut)); }
.rp__fig { width: min(100%, 26rem); margin: 0 auto; }
.rp__fig img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.rp__fig--bag { background: var(--tile); }
.rp__fig figcaption { margin-top: 12px; font-size: var(--t-ui); color: var(--ink-2); }
.rp__fig--bag figcaption { margin: 0; padding: 14px 18px 18px; background: var(--white); }
.rp__fig figcaption b { color: var(--ink); }

.rp h2 { font-size: var(--s-state); line-height: 1.15; margin: 36px 0 16px; }
.rp h2:first-of-type { margin-top: 0; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tawous); color: var(--white); font-weight: 700; font-size: var(--t-ui); }
.tip { margin-top: 28px; padding: 20px 22px; background: var(--paper); }
.tip b { display: block; margin-bottom: 4px; color: var(--tawous); }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: var(--t-ui); color: var(--ink-2); }
.aside-card { position: sticky; top: 104px; display: grid; gap: 14px; padding: 20px; background: var(--surface); }
.aside-card .viewer { aspect-ratio: 1 / 1.05; cursor: default; }
.aside-card h3 { font-size: var(--t-name); }

/* ── article (prose) ── */
.article { max-width: 44rem; margin-inline: auto; padding-block: 0 clamp(64px, 7vw, 112px); }
.article__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 40px; }
.article__fig { width: min(100%, 26rem); margin: 0 auto 40px; }
.article__fig img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.article__fig--bag { background: var(--tile); }
.article__fig figcaption { padding: 14px 18px 18px; background: var(--white); font-size: var(--t-ui); color: var(--ink-2); }
.article__fig figcaption b { color: var(--ink); }
.prose { line-height: 1.75; }
html[lang="ar"] .prose { line-height: 1.9; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--s-state); line-height: 1.15; margin-top: 1.8em; }
.prose h3 { font-size: var(--t-name); line-height: 1.25; margin-top: 1.4em; }
.prose a { color: var(--tawous); font-weight: 600; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin-inline: 0; padding: 4px 0; font-family: var(--f-display); font-size: var(--t-name); line-height: 1.35; color: var(--tawous); }
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-ui); }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: start; }
.prose thead th { background: var(--paper); font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: var(--t-ui); color: var(--ink-2); }
.brewed { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; margin-top: 48px; padding: 18px; background: var(--paper); text-decoration: none; }
.brewed .thumb { aspect-ratio: 1; background: var(--tile); position: relative; overflow: hidden; }
.brewed .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.brewed b { font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); }

/* ── blog ── */
.blog { background: var(--paper); }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); background: var(--white); text-decoration: none; margin-bottom: 24px; }
.feature img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.feature__txt { display: grid; gap: 14px; align-content: center; padding: clamp(24px, 4vw, 52px); }
.feature h3 { font-size: var(--s-state); line-height: 1.12; }
.feature p { color: var(--ink-2); }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: grid; grid-template-rows: auto 1fr; background: var(--white); text-decoration: none; }
.post-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover img { transform: scale(1.04); }
.post-card--type { display: flex; background: var(--tawous); }
.post-card__type { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; width: 100%; min-height: 15rem; padding: clamp(20px, 2.2vw, 30px); }
.post-card__type .kick { color: #F3CF7A; }
.post-card__type h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.12; color: var(--white); }
.post-card__txt { display: grid; gap: 8px; align-content: start; padding: 18px 20px 24px; }
.kick { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; color: var(--tawous); font-size: var(--t-s); font-weight: 600; }
.kick em { font-style: normal; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--ink-2); }
.post-card h3 { font-size: var(--t-name); line-height: 1.2; }
.post-card:hover h3, .feature:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* ── about ── */
.about-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.about-lead img { width: 100%; max-width: 440px; margin-inline: auto; }
.farmhead__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(32px, 6vw, 112px); align-items: center; }
.farmhead__txt p { max-width: 32rem; }
.farmhead__btn { margin-top: clamp(20px, 2.4vw, 32px); }
.farmhead__img { margin: 0; }
.farmhead__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dos li { list-style: none; display: grid; gap: 6px; align-content: start; padding: 22px; background: var(--paper); }
.dos b { font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); color: var(--tawous); }
html[lang="ar"] .dos b { font-weight: 700; }
.dos span { color: var(--ink-2); font-size: var(--t-ui); }
.source { background: var(--tawous); color: var(--white); }
.source__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.source h2 { font-size: var(--s-head); line-height: 1.04; }
.source__head p { color: var(--on-t); max-width: 34rem; }
.source__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.source__grid figure { margin: 0; display: grid; gap: 14px; }
.source__grid figure:nth-child(2) { margin-top: 72px; }
.source__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.source__grid figcaption { font-size: var(--t-ui); color: var(--on-t); max-width: 26rem; }
.source__grid figcaption b { display: block; color: var(--white); font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); margin-bottom: 4px; }
html[lang="ar"] .source__grid figcaption b { font-weight: 700; }
.source .link { color: var(--on-t-accent); }
.farms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.farm { display: grid; gap: 14px; }
.farm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.farm h3 { font-size: var(--s-state); }

/* ── forms ── */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(20px, 3vw, 36px); background: var(--paper); }
.form .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--tawous); }
.check a { color: var(--tawous); }
.form .btn { justify-self: start; }
.done-box { padding: 28px; background: var(--paper); }
.done-box b { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--t-name); margin-bottom: 6px; }
.err { color: var(--cherry); font-size: var(--t-s); }

/* ── faq ── */
.faq { max-width: 52rem; }
.faq details { background: var(--paper); margin-bottom: 4px; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--tawous); font-size: var(--t-name); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 22px; color: var(--ink-2); max-width: 44rem; }

/* ── footer: tawous, columns above, the wordmark below ── */
.foot { background: var(--tawous); color: var(--on-t); font-size: var(--t-ui); }
.foot__in { display: grid; grid-template-rows: auto 1fr auto auto; min-height: 78svh; padding-block: clamp(48px, 5vw, 72px) 28px; }
.foot__top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px 32px; }
.foot__line { max-width: 26rem; color: var(--white); font-size: var(--t-b); }
.foot__h { margin: 0 0 12px; color: var(--white); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--on-t); text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot__small { margin-top: 10px; font-size: var(--t-s); }
.news { display: flex; gap: 8px; margin-top: 20px; max-width: 28rem; }
.news .input { flex: 1; min-width: 0; background: var(--white); }
.news .btn { background: var(--on-t-accent); color: var(--ink); }
.news .btn:hover { background: var(--white); }
.foot__wm { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 32px); margin-top: clamp(48px, 8vw, 120px); color: var(--white); --wm-dots: var(--on-t-accent); }
.foot__wm .wm--latin { flex: 1 1 auto; width: 100%; height: auto; min-width: 0; }
.foot__wm .wm--ar { flex: none; width: clamp(64px, 14vw, 210px); height: auto; }
html[dir="rtl"] .foot__wm { flex-direction: row-reverse; }
.foot__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: var(--t-s); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .lang a { color: var(--on-t); }
.foot .lang a[aria-current="true"] { color: var(--tawous); background: var(--white); }

/* ── bag drawer ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(13, 42, 48, .45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.scrim.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s; }
.drawer { position: fixed; top: 0; inset-inline-end: 0; bottom: 0; z-index: 41; display: grid; grid-template-rows: auto 1fr auto; width: min(440px, 100%); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--white); box-shadow: -20px 0 50px rgba(13, 42, 48, .2); transform: translateX(105%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
html[dir="rtl"] .drawer { transform: translateX(-105%); }
.drawer.on, html[dir="rtl"] .drawer.on { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--paper); }
.drawer__head h2 { font-size: var(--t-name); }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; font-size: var(--t-name); line-height: 1; }
.drawer__body { overflow-y: auto; padding: 8px 24px 24px; }
.drawer__foot { padding: 18px 24px 22px; background: var(--paper); display: grid; gap: 12px; }
.drawer__foot .btn { width: 100%; }
.free { display: grid; gap: 8px; padding: 14px 0 6px; font-size: var(--t-s); }
.free i { display: block; height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.free i::after { content: ""; display: block; height: 100%; width: var(--pct, 0%); background: var(--tawous); transition: width .4s; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line__thumb { width: 76px; height: 76px; background: var(--tile) center / contain no-repeat; }
.line b { display: block; font-family: var(--f-display); font-weight: 400; font-size: var(--t-b); line-height: 1.2; }
.line small { color: var(--ink-2); font-size: var(--t-s); }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 8px; border-radius: 999px; background: var(--surface); }
.qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: var(--t-b); }
.qty span { min-width: 20px; text-align: center; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.line__price { align-self: start; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum { display: grid; gap: 6px; font-size: var(--t-ui); }
.sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.sum .tot { font-weight: 700; font-size: var(--t-b); }
.empty { padding: 40px 0; color: var(--ink-2); text-align: center; }
.drawer .field { margin-top: 12px; }
.drawer .field input { background: var(--surface); }
.row2 { display: grid; grid-template-columns: 7rem 1fr; gap: 10px; }
.back { justify-self: start; margin-top: 12px; border: 0; background: none; padding: 0; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.pay h3 { font-size: var(--t-name); margin: 18px 0 6px; }
.pay p { color: var(--ink-2); font-size: var(--t-ui); }
.pay ol { margin: 16px 0; padding-inline-start: 20px; display: grid; gap: 6px; font-size: var(--t-ui); }
.copyrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; background: var(--surface); border-radius: 10px; }
.copyrow small { display: block; color: var(--ink-2); font-size: var(--t-s); font-weight: 600; }
.copyrow output { font-size: var(--t-b); font-weight: 700; font-variant-numeric: tabular-nums; user-select: all; direction: ltr; unicode-bidi: isolate; }
.copyrow button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--white); font-weight: 600; font-size: var(--t-s); cursor: pointer; }
.copyrow button.done { background: var(--ok); color: var(--white); }
.twint { display: inline-grid; place-items: center; width: 56px; height: 36px; margin-top: 16px; border-radius: 8px; background: #000; color: #fff; font-size: var(--t-s); font-weight: 700; }

/* ── 404 ── */
.e404 { display: grid; place-items: center; text-align: center; gap: 20px; padding-block: 96px; }
.e404 img { width: 180px; }
.e404 h1 { font-size: var(--s-head); }

/* ── entrances: the parts of each section rise in turn; without script everything simply shows ── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── narrow ── */
@media (max-width: 1180px) {
  .nav, .hdr .tools .lang { display: none; }
  .menu { display: block; margin-inline-start: auto; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: var(--t-ui); padding: 8px 4px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu__panel { position: absolute; inset-inline-end: 0; top: 46px; display: grid; gap: 2px; min-width: 240px; padding: 10px; background: var(--white); border-radius: 10px; box-shadow: 0 16px 36px rgba(13, 42, 48, .16); }
  .menu__panel a { padding: 10px 12px; text-decoration: none; font-weight: 500; border-radius: 6px; }
  .menu__panel a:hover { background: var(--surface); }
  .menu__panel .lang { padding: 10px 4px 2px; }
  .hdr .wrap { gap: 16px; }
}
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dos { grid-template-columns: 1fr 1fr; }
  .next__facts { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 36px; }
  .next__text { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .ws__grid, .rpanel, .cups__head, .feature, .pp, .rp, .about-lead, .source__head { grid-template-columns: 1fr; }
  .farmhead__grid { grid-template-columns: 1fr; row-gap: 28px; }

  .film__side { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; font-size: 46px; }
  .film__side small { margin: 0; font-size: 17px; }
  .film__row { flex-direction: column; align-items: stretch; }
  .film__btn { width: 100%; }
  .film::after { background:
    linear-gradient(to bottom, rgba(13, 42, 48, .76) var(--note-h, 37px), rgba(13, 42, 48, .58) calc(var(--note-h, 37px) + var(--hdr-h)), rgba(13, 42, 48, 0) calc(var(--note-h, 37px) + var(--hdr-h) + 110px)),
    linear-gradient(to bottom, rgba(13, 42, 48, 0) 34%, rgba(13, 42, 48, .55) 55%, rgba(13, 42, 48, .85) 100%); }
  .heritage__grid { display: block; }
  .heritage__art { width: 62%; margin: 32px 0 0 auto; }
  html[dir="rtl"] .heritage__art { margin: 32px auto 0 0; }
  .heritage__note { margin-top: 20px; max-width: none; }
  .go h2 { padding-inline-start: 0; }
  .band4 { flex-wrap: wrap; height: 84svh; max-height: none; min-height: 0; }
  .band4__p { flex: none; height: 50%; }
  .band4__p:nth-child(1), .band4__p:nth-child(4) { width: 64%; }
  .band4__p:nth-child(2), .band4__p:nth-child(3) { width: 36%; }
  .band4__p:nth-child(3):last-child { width: 100%; }
  .band4__p figcaption { padding: 16px 18px 30px; }
  .shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tale__pair, .tale__pair--name, .tale__c3 { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .tale__c1, .tale__c2, .tale__art, .tale__c4, .tale__c5, .tale__c6, .tale__pair--name .tale__bag { grid-column: 1; grid-row: auto; }
  .tale__art { order: -1; }
  .tale__c4 { order: 1; } .tale__pair--name .tale__bag { order: 2; } .tale__c5 { order: 3; } .tale__c6 { order: 4; }
  .tile__buy select { padding: 0 10px; font-size: var(--t-s); }
  .end { display: block; min-height: 0; }
  .end__text { padding: 64px var(--gut) 8px; }
  html[dir="rtl"] .end__text { padding: 64px var(--gut) 8px; }
  .end__bag { margin: 0; height: 62svh; min-height: 380px; }
  .source__grid { grid-template-columns: 1fr 1fr; }
  .source__grid figure:nth-child(2) { margin-top: 40px; }
  .source__grid figure:nth-child(3) { grid-column: 1 / -1; }
  .source__grid figure:nth-child(3) img { aspect-ratio: 3 / 2; }
  .feature img { min-height: 0; aspect-ratio: 16 / 10; }
  .bgrid, .rcards { grid-template-columns: 1fr 1fr; }
  .pp__stage, .aside-card { position: static; }
  .farms { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  :root { --t-b: 16px; --t-name: 21px; }
  .note span + span { display: none; }
  .logo img { width: 42px; height: 42px; }
  .logo .wm--lockup { height: 34px; }
  .grid { gap: 40px 12px; }
  .p__head { display: grid; gap: 2px; }
  .p__buy { grid-template-columns: 1fr; }
  .p__buy .btn { width: 100%; }
  .notify { flex-direction: column; }
  .cups .tabs { gap: 2px 20px; }
  .rlist li { grid-template-columns: 5.5rem 1fr; padding: 12px; }
  .form { grid-template-columns: 1fr; }
  .bgrid, .rcards, .dos { grid-template-columns: 1fr; }
  .brewed { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── fix 4: white grounds, thin lines instead of beige boxes (Jev G2, 4 Nov 2026) ── */
.tip, .form, .done-box, .faq details, .brewed, .aside-card, .copyrow, .sold, .pill, .qtyf, .qty,
select, .input, .field input, .field textarea, .field select { border: 1px solid var(--edge); }
.pill[aria-pressed="true"] { border-color: var(--tawous); }
.rlist li { border-bottom: 1px solid var(--edge); }
.rlist li:first-child { border-top: 1px solid var(--edge); }
.drawer__head { border-bottom: 1px solid var(--edge); }
.drawer__foot { border-top: 1px solid var(--edge); }
.free i { background: var(--line); }
.prose thead th { background: var(--white); border-bottom: 2px solid var(--tawous); }
.kick em { border: 1px solid var(--edge); }
.menu__panel a:hover { background: var(--line); }
.blog .post-card:not(.post-card--type) { border: 1px solid var(--edge); }

/* ── fix 4: running text in ink at 18 px; grey only for small notes (Jev S1 0.72, 4 Nov 2026) ── */
:root { --t-b: 18px; }
.sec-head p, .tale__ch p, .cups__head p, .rhow, .points span, .ws__copy > p, .phead p, .feature p, .dos span,
.faq details p, .pay p, .rcard p, .statement--soft { color: var(--ink); }
.sec-head p, .phead p, .ws__copy > p, .points span, .faq details p, .feature p { font-size: var(--t-b); }
.rcard p { font-size: 16px; }

/* ── fix 4: on phones the product picture is smaller so Add to bag is on the first screen (Jev P2 0.68) ── */
@media (max-width: 860px) {
  .pp { gap: 18px; padding-top: 4px; }
  .pp__stage { width: 62vw; margin-inline: auto; }
  .pp__stage .viewer--photo { aspect-ratio: 1 / 1; }
  .pp__info { gap: 12px; }
  .pp__info h1 { font-size: 34px; }
  .pp__line { font-size: 19px; }
  .pp__info > * { order: 2; }
  .pp__info > h1, .pp__info > .pp__line, .pp__info > .label, .pp__info > .pp__price, .pp__info > .buy, .pp__info > .sold, .pp__info > .notify { order: 0; }
}

/* wholesale: the coffees on sale instead of a photo of partners (Riadh + Jev C4, 4 Nov 2026) */
.ws__bags { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ws__bags li { background: var(--tile); }
.ws__bags img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ws__media .ws__bags img { aspect-ratio: 4 / 5; }

/* story chapter 3: his picking timelapse, upright at its own size beside the chapter (4 Nov 2026 night) */
.tale__src { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 6vw, 112px); align-items: center; padding-block: clamp(56px, 6vw, 96px) clamp(56px, 7vw, 112px); }
.tale__vid { margin: 0; justify-self: end; width: min(100%, calc(84vh * 4 / 5)); }
.tale__video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: rgba(255, 255, 255, .06); }
.tale__src .tale__c3 { display: block; padding: 0; }
@media (max-width: 860px) {
  .tale__src { grid-template-columns: minmax(0, 1fr); row-gap: 32px; padding-top: 0; }
  .tale__vid { justify-self: stretch; width: auto; margin-inline: calc(-1 * var(--gut)); }
  .tale__video { aspect-ratio: 4 / 5; }
}
