@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-standard-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-latin-standard-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Naskh"; src: url("../fonts/noto-naskh-arabic-arabic-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+060C, U+061B, U+061F, U+066A-066D; }
@font-face { font-family: "Naskh"; src: url("../fonts/noto-naskh-arabic-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
@font-face { font-family: "Plex Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
/* Metric-matched stand-ins while the web fonts load: Georgia on Windows and macOS, Noto/Droid Serif on Android, DejaVu or Liberation on Linux. */
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 94%; ascent-override: 78%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback Noto"; src: local("Noto Serif"), local("NotoSerif-Regular"), local("Droid Serif"); size-adjust: 84%; ascent-override: 87.5%; descent-override: 31.5%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback DejaVu"; src: local("DejaVu Serif"); size-adjust: 78.7%; ascent-override: 93.4%; descent-override: 33.7%; line-gap-override: 0%; }
@font-face { font-family: "Newsreader Fallback Liberation"; src: local("Liberation Serif"), local("Times New Roman"); size-adjust: 100.7%; ascent-override: 73%; descent-override: 26.3%; line-gap-override: 0%; }
@font-face { font-family: "Plex Mono Fallback"; src: local("Courier New"), local("Roboto Mono"), local("Noto Sans Mono"), local("Droid Sans Mono"), local("DejaVu Sans Mono"), local("Liberation Mono"); size-adjust: 100%; ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; }
@font-face { font-family: "Arabic Fallback"; src: local("Tahoma"); size-adjust: 104%; }
@font-face { font-family: "Arabic Fallback Noto"; src: local("Noto Naskh Arabic"), local("Noto Naskh Arabic UI"), local("NotoNaskhArabic-Regular"); size-adjust: 100%; }

:root {
  --roast: #0E0E0C;
  --char: #1A1A17;
  --limestone: #E4E1D8;
  --ash: #8C8A82;
  --ash-deep: #5E5C56;
  --cherry: #C8243A;
  --cherry-light: #E5566A;
  --cardamom: #B4BE8E;
  --hair-dark: rgba(228, 225, 216, .12);
  --hair-light: rgba(14, 14, 12, .14);

  --serif: "Newsreader", "Newsreader Fallback", "Newsreader Fallback Noto", "Newsreader Fallback DejaVu", "Newsreader Fallback Liberation", Georgia, serif;
  --mono: "Plex Mono", "Plex Mono Fallback", "Courier New", monospace;
  /* Readings that carry an Arabic unit: the digits in Plex Mono, the letters in Plex Arabic, never a system mono. */
  --mono-ar: "Plex Mono", "Plex Arabic", "Arabic Fallback", "Arabic Fallback Noto", monospace;
  --naskh: "Naskh", "Arabic Fallback", "Arabic Fallback Noto", Tahoma, sans-serif;
  --ui-ar: "Plex Arabic", "Arabic Fallback", "Arabic Fallback Noto", Tahoma, sans-serif;

  --ease-pour: cubic-bezier(.2, .9, .1, 1);
  --ease-tick: cubic-bezier(.6, 0, .4, 1);

  --margin: clamp(16px, 3.6vw, 56px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --max: 1600px;
  --cols: 12;
  --header-h: 72px;

  --bg: var(--roast);
  --fg: var(--limestone);
  --fg-2: var(--ash);
  --hair: var(--hair-dark);
  --accent-text: var(--cherry-light);
  --focus: var(--cherry-light);
  --thumb: #3A3934;
  color-scheme: dark;
}
.ground-light {
  --bg: var(--limestone);
  --fg: var(--roast);
  --fg-2: var(--ash-deep);
  --hair: var(--hair-light);
  --accent-text: var(--cherry);
  --focus: var(--cherry);
  --thumb: #BDB9AE;
  color-scheme: light;
}
.on-dark {
  --bg: var(--roast);
  --fg: var(--limestone);
  --fg-2: var(--ash);
  --hair: var(--hair-dark);
  --accent-text: var(--cherry-light);
  --focus: var(--cherry-light);
}
@media (max-width: 1023px) { :root { --cols: 8; --header-h: 64px; } }
@media (max-width: 767px) { :root { --cols: 4; --header-h: 58px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--thumb) transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[lang="ar"] body { font-family: var(--naskh); font-size: 19px; line-height: 1.85; }
::selection { background: var(--cherry); color: var(--limestone); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--thumb); }
::-webkit-scrollbar-track { background: transparent; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.skip {
  position: fixed; inset-block-start: 12px; inset-inline-start: 12px; z-index: 200;
  padding: 10px 14px; background: var(--cherry); color: var(--limestone);
  font: 500 16px/1 var(--serif); transform: translateY(-200%); transition: transform .2s var(--ease-tick);
}
[lang="ar"] .skip { font: 600 16px/1.4 var(--naskh); }
.skip:focus { transform: none; }

/* type */
.display, .h2, .h3 { font-weight: 330; }
.display {
  font-size: clamp(56px, 10.5vw, 196px); line-height: .92; letter-spacing: -.035em;
  font-variation-settings: "opsz" 72; font-weight: 330;
}
.display em, .h2 em { font-style: italic; font-weight: 300; }
.h2 { font-size: clamp(40px, 6.2vw, 112px); line-height: .98; letter-spacing: -.025em; font-variation-settings: "opsz" 60; font-weight: 380; }
.h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; font-variation-settings: "opsz" 36; font-weight: 460; }
.lede { font-size: clamp(19px, 1.45vw, 23px); line-height: 1.42; font-variation-settings: "opsz" 20; font-weight: 380; max-width: 30em; }
.body { max-width: 62ch; }
.body p + p { margin-block-start: 1em; }
[lang="ar"] .display { font-family: var(--naskh); font-weight: 600; font-size: clamp(44px, 8.2vw, 152px); line-height: 1.28; letter-spacing: 0; }
[lang="ar"] .h2 { font-weight: 600; font-size: clamp(32px, 4.96vw, 90px); line-height: 1.3; letter-spacing: 0; }
[lang="ar"] .h3 { font-weight: 600; line-height: 1.4; }
[lang="ar"] .lede { font-size: clamp(19px, 1.4vw, 22px); line-height: 1.8; font-weight: 400; }
[lang="ar"] .body { max-width: 56ch; }
[lang="ar"] em { font-style: normal; color: var(--cherry); }
/* The text face does the talking; mono is kept for the instruments (clock, probe, log, recipes). */
.label { font: 400 15px/1.4 var(--serif); font-variation-settings: "opsz" 14; }
[lang="ar"] .label { font: 400 16px/1.6 var(--naskh); }
.data { font-variant-numeric: tabular-nums lining-nums; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 400; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
[lang="ar"] .num, [lang="ar"] .bag-count { font-family: "Plex Mono", "Plex Arabic", "Plex Mono Fallback", monospace; }
.fg-2 { color: var(--fg-2); }
.caption {
  display: flex; align-items: baseline; gap: 10px; margin-block-start: 12px;
  font: 400 15px/1.4 var(--serif); font-variation-settings: "opsz" 14; color: var(--fg-2);
}
.caption::before { content: ""; flex: 0 0 24px; height: 1px; background: currentColor; transform: translateY(-4px); }
[lang="ar"] .caption { font: 400 15px/1.7 var(--naskh); }

.link {
  position: relative; display: inline-flex; gap: .4em; align-items: baseline;
  background: linear-gradient(currentColor, currentColor) no-repeat;
  background-size: 0% 1px; background-position: 0 100%;
  transition: background-size .24s var(--ease-tick), color .24s var(--ease-tick);
  padding-block-end: 2px;
}
[dir="rtl"] .link { background-position: 100% 100%; }
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--accent-text); }
.prose-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--fg-2); }
.prose-link:hover { color: var(--accent-text); text-decoration-color: currentColor; }

.btn {
  --btn-fg: var(--fg);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 12px 22px; border: 1px solid var(--fg); border-radius: 0;
  font: 450 17px/1.2 var(--serif); font-variation-settings: "opsz" 16; color: var(--btn-fg);
}
[lang="ar"] .btn { font: 600 16px/1.4 var(--naskh); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cherry);
  clip-path: inset(100% 0 0 0); transition: clip-path .24s var(--ease-tick);
}
.btn:focus-visible::before { clip-path: inset(0 0 0 0); }
.btn:focus-visible { color: var(--limestone); border-color: var(--cherry); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { clip-path: inset(0 0 0 0); }
  .btn:hover { color: var(--limestone); border-color: var(--cherry); }
  .btn-primary:hover { border-color: var(--cherry); }
}
.btn-primary { background: var(--cherry); border-color: var(--cherry); color: var(--limestone); font: 500 15px/1.2 var(--serif); letter-spacing: 0; text-transform: none; font-variation-settings: "opsz" 16; }
.btn-primary::before { background: var(--roast); }
.ground-light .btn-primary::before { background: var(--roast); }
.btn-primary:focus-visible { border-color: var(--cherry); }
[dir="rtl"] .btn-primary { font-family: var(--naskh); font-weight: 600; }

/* grid */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }

/* header */
.hd {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 60;
  height: var(--header-h); color: var(--fg);
  transition: background-color .3s var(--ease-tick), border-color .3s var(--ease-tick), transform .4s var(--ease-pour);
  border-block-end: 1px solid transparent;
}
.hd.is-solid { background: var(--roast); border-block-end-color: var(--hair-dark); }
.ground-light .hd.is-solid { background: var(--limestone); border-block-end-color: var(--hair-light); }
.hd-in { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.brand-word { font: 520 26px/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.02em; transform: translateY(-1px); }
[lang="ar"] .brand-word { font-family: var(--naskh); font-weight: 700; font-size: 25px; letter-spacing: 0; transform: translateY(-3px); }
[dir="rtl"] .brand-mark { transform: scaleX(-1); }
.mark-pan { fill: var(--cherry); }
.mark-handle { stroke: var(--fg); stroke-width: 1.5; stroke-linecap: round; fill: none; }
.nav { position: relative; display: flex; gap: clamp(14px, 2vw, 32px); margin-inline-start: clamp(8px, 4vw, 72px); }
.nav a { position: relative; padding-block: 8px; font: 420 18px/1 var(--serif); font-variation-settings: "opsz" 18; }
[lang="ar"] .nav a { font: 500 17px/1 var(--naskh); }
.nav a:hover, .nav a:focus-visible { color: var(--accent-text); }
.nav-disc { position: absolute; inset-block-end: -6px; width: 6px; height: 6px; border-radius: 50%; background: var(--cherry); pointer-events: none; }
.hd-end { margin-inline-start: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 400 16px/1 var(--serif); font-variation-settings: "opsz" 16; color: var(--fg-2); white-space: nowrap; }
[lang="ar"] .status { font: 400 15px/1.2 var(--naskh); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ash); flex: none; }
.status.is-open .status-dot { background: var(--cardamom); }
.lang { font: 500 14px/1 var(--naskh); }
.lang[lang="en"] { font: 420 18px/1 var(--serif); font-variation-settings: "opsz" 18; }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; font: 420 18px/1 var(--serif); font-variation-settings: "opsz" 18; padding-block: 8px; }
[lang="ar"] .bag-btn { font: 500 17px/1 var(--naskh); }
.bag-count { display: inline-flex; min-width: 22px; height: 22px; padding-inline: 6px; align-items: center; justify-content: center; background: var(--cherry); color: var(--limestone); font: 500 11px/1 var(--mono); overflow: hidden; }
.bag-count .odo { display: inline-block; height: 22px; line-height: 22px; }
.menu-btn { display: none; font: 420 18px/1 var(--serif); font-variation-settings: "opsz" 18; padding-block: 10px; }
[lang="ar"] .menu-btn { font: 500 17px/1 var(--naskh); }
@media (max-width: 1180px) { .hd .status { display: none; } }
@media (max-width: 900px) {
  .nav, .hd .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-word { font-size: 23px; }
}

.sheet {
  position: fixed; inset: 0; z-index: 55; background: var(--roast); color: var(--limestone);
  --fg: var(--limestone); --fg-2: var(--ash); --hair: var(--hair-dark); --focus: var(--cherry-light); --accent-text: var(--cherry-light);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 32px) var(--margin) 32px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .55s var(--ease-pour), visibility 0s .55s;
}
.sheet.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .55s var(--ease-pour), visibility 0s; }
.sheet-nav a { display: block; padding-block: 6px; font: 330 56px/1.05 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; border-block-end: 1px solid var(--hair-dark); }
[lang="ar"] .sheet-nav a { font: 600 44px/1.5 var(--naskh); letter-spacing: 0; }
.sheet-nav a[aria-current="page"] { color: var(--cherry-light); }
.sheet-foot { display: grid; gap: 14px; font: 400 17px/1.5 var(--serif); color: var(--ash); }
[lang="ar"] .sheet-foot { font: 400 17px/1.7 var(--naskh); }
.sheet-foot .lang { color: var(--limestone); }
body.menu-open .hd { background: transparent; border-color: transparent; color: var(--limestone); --fg: var(--limestone); --accent-text: var(--cherry-light); }

/* footer */
.ft { position: relative; z-index: 2; background: var(--roast); color: var(--limestone); padding-block: clamp(64px, 9vw, 144px) 32px;
  --fg: var(--limestone); --fg-2: var(--ash); --hair: var(--hair-dark); --focus: var(--cherry-light); --accent-text: var(--cherry-light); }
.ft-end { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); margin-block-end: clamp(40px, 6vw, 96px); }
.ft-line { max-width: 22em; font: 330 clamp(30px, 3.6vw, 60px)/1.04 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.02em; text-wrap: balance; }
[lang="ar"] .ft-line { font: 600 clamp(26px, 3vw, 48px)/1.5 var(--naskh); letter-spacing: 0; }
/* Each page closes on its own curve: the house roast, the last batch, a brew, the climb, the reader's own pace. */
.ft-graph { position: relative; height: 176px; margin-block-start: clamp(16px, 2vw, 28px); }
.ft-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .ft-graph svg { transform: scaleX(-1); }
.fg-line { fill: none; stroke: var(--cherry); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fg-base { stroke: var(--hair-dark); stroke-width: 1; }
.fg-ref { fill: none; stroke: var(--ash); stroke-width: 1; stroke-dasharray: 2 5; opacity: .6; }
.fg-dot { fill: var(--cherry); }
.fg-pan circle { fill: var(--cherry); }
.fg-pan path { stroke: var(--limestone); stroke-width: 2.5; stroke-linecap: round; }
.fg-lead { stroke: var(--ash); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }
.fg-label { position: absolute; display: flex; flex-wrap: wrap; gap: 0 .7em; max-width: min(40em, 78%); font: 500 11.5px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.fg-label .num { color: var(--limestone); letter-spacing: .04em; }
.fg-label.is-end { text-align: end; justify-content: flex-end; }
[lang="ar"] .fg-label { font: 500 13.5px/1.6 var(--ui-ar); letter-spacing: 0; text-transform: none; }
[lang="ar"] .fg-label .num { font: 400 12px/1.8 var(--mono-ar); }
@media (max-width: 767px) { .ft-graph { height: 150px; } .fg-label { white-space: normal; } }
.nb { white-space: nowrap; }
.ft-body { row-gap: 20px; align-items: start; }
.ft-note { grid-column: 1 / span 6; grid-row: 1 / span 2; font: 380 clamp(19px, 1.5vw, 23px)/1.45 var(--serif); font-variation-settings: "opsz" 20; color: color-mix(in srgb, var(--limestone) 82%, transparent); text-wrap: pretty; }
.ft-roast { display: block; margin-block-end: 6px; color: var(--limestone); }
.ft-roast::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 12px; border-radius: 50%; background: var(--cherry); transform: translateY(-3px); }
[lang="ar"] .ft-note { font: 400 clamp(18px, 1.4vw, 21px)/1.85 var(--naskh); }
.ft-nav { grid-column: 9 / -1; grid-row: 1; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 400 clamp(19px, 1.5vw, 23px)/1.45 var(--serif); }
[lang="ar"] .ft-nav { font: 500 clamp(18px, 1.4vw, 21px)/1.85 var(--naskh); }
.ft-write { grid-column: 9 / -1; grid-row: 2; font-size: 16px; color: var(--ash); }
[lang="ar"] .ft-write { font-size: 16px; }
.ft-bottom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; margin-block-start: clamp(40px, 6vw, 88px); padding-block-start: 16px; border-block-start: 1px solid var(--hair-dark); font: 400 15px/1.5 var(--serif); color: var(--ash); }
[lang="ar"] .ft-bottom { font: 400 15px/1.7 var(--naskh); }
.ft-bottom button { color: var(--limestone); }
.ft-top { margin-inline-start: auto; color: var(--limestone); }
.credits { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-pour); }
.credits > div { overflow: hidden; }
.credits.is-open { grid-template-rows: 1fr; }
.credits p { max-width: 80ch; padding-block: 24px 0; font: 400 15px/1.6 var(--serif); color: var(--ash); }
[lang="ar"] .credits p { font: 400 15px/1.9 var(--naskh); }
@media (max-width: 1023px) { .ft-note { grid-column: 1 / span 5; } .ft-nav, .ft-write { grid-column: 6 / -1; } }
@media (max-width: 767px) { .ft-note, .ft-nav, .ft-write { grid-column: 1 / -1; grid-row: auto; } .ft-top { margin-inline-start: 0; } }

/* grain + transition veil */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url("../img/grain.png") repeat; background-size: 256px; opacity: .035; }
.ground-light .grain { opacity: .045; }
.veil { position: fixed; inset: 0; z-index: 150; background: var(--roast); display: grid; place-items: center; pointer-events: none; clip-path: circle(0 at 50% 50%); }
.veil svg { width: 54px; height: 54px; overflow: visible; }
.veil .mark-handle { stroke: var(--limestone); }
html.is-arriving .veil { clip-path: circle(150% at 50% 50%); }
html.is-arriving body { overflow: hidden; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 160; background: var(--roast); color: var(--limestone); display: flex; align-items: flex-end; padding: var(--margin); clip-path: inset(0 0 0 0); }
.loader-read { width: min(420px, 100%); }
.loader-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-block-end: 12px; }
[lang="ar"] .loader-row { font-family: var(--ui-ar), var(--mono); font-size: 13.5px; letter-spacing: 0; }
.loader-row .num { font-size: 13px; color: var(--limestone); }
.loader-bar { height: 1px; background: var(--hair-dark); position: relative; }
.loader-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%; background: var(--cherry); transform-origin: left; transform: scaleX(0); }
[dir="rtl"] .loader-bar i { transform-origin: right; }
.loader-skip { position: absolute; inset-block-start: var(--margin); inset-inline-end: var(--margin); font: 400 17px/1 var(--serif); color: var(--ash); padding: 8px 0; }
[lang="ar"] .loader-skip { font: 400 16px/1.4 var(--naskh); }
html.no-loader .loader { display: none; }

/* bag drawer */
.drawer { position: fixed; inset: 0; z-index: 120; margin: 0; padding: 0; border: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--limestone); overflow: hidden;
  --fg: var(--limestone); --fg-2: var(--ash); --hair: var(--hair-dark); --focus: var(--cherry-light); --accent-text: var(--cherry-light); }
.drawer::backdrop { background: transparent; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(14, 14, 12, .55); opacity: 0; transition: opacity .35s var(--ease-tick); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(520px, 100%); background: var(--char); border-inline-start: 1px solid var(--hair-dark); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease-pour); }
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.is-in .drawer-scrim { opacity: 1; }
.drawer.is-in .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 28px; border-block-end: 1px solid var(--hair-dark); }
.drawer-title { font: 380 34px/1 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.02em; }
[lang="ar"] .drawer-title { font: 600 28px/1.4 var(--naskh); letter-spacing: 0; }
.drawer-close { font: 420 17px/1 var(--serif); color: var(--ash); padding: 8px 0; }
[lang="ar"] .drawer-close { font: 500 16px/1.4 var(--naskh); }
.drawer-close:hover { color: var(--limestone); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 28px 28px; }
.drawer-foot { padding: 20px 28px 28px; border-block-start: 1px solid var(--hair-dark); display: grid; gap: 14px; }
.link-back { margin-block: 18px 26px; }
.drawer-empty { padding-block: 40px; display: grid; gap: 22px; justify-items: start; }
.drawer-empty p { font-size: 22px; line-height: 1.35; font-variation-settings: "opsz" 24; max-width: 18em; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding-block: 18px; border-block-end: 1px solid var(--hair-dark); }
.line-name { font: 420 22px/1.15 var(--serif); font-variation-settings: "opsz" 30; }
[lang="ar"] .line-name { font: 600 20px/1.5 var(--naskh); }
.line-meta { grid-column: 1 / -1; font: 400 15px/1.5 var(--serif); color: var(--ash); }
[lang="ar"] .line-meta { font: 400 15px/1.7 var(--naskh); }
.line-price { font: 400 18px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; align-self: baseline; }
[lang="ar"] .line-price { font: 400 17px/1.4 var(--naskh); }
.line-ctrl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-block-start: 6px; }
.line-remove { font: 400 15px/1 var(--serif); color: var(--ash); padding: 8px 0; }
[lang="ar"] .line-remove { font: 400 15px/1.4 var(--naskh); }
.line-remove:hover { color: var(--cherry-light); }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; }
.subtotal .num { font: 400 22px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
[lang="ar"] .subtotal .num { font: 500 20px/1.4 var(--naskh); }
.drawer-note { font: 400 15px/1.5 var(--serif); color: var(--ash); }
[lang="ar"] .drawer-note { font: 400 15px/1.8 var(--naskh); }

.stepper { display: inline-flex; justify-self: start; align-items: stretch; border: 1px solid var(--hair); height: 40px; }
.stepper button { width: 40px; font: 400 20px/1 var(--serif); }
.stepper button:hover { color: var(--accent-text); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output, .stepper .val { min-width: 34px; display: grid; place-items: center; font: 400 17px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; border-inline: 1px solid var(--hair); }
[lang="ar"] .stepper output, [lang="ar"] .stepper .val { font: 500 18px/1 var(--naskh); }

/* forms */
.field { display: grid; gap: 8px; margin-block-end: 22px; border: 0; padding: 0; min-width: 0; }
.field > legend, .field > label, .field-label { padding: 0; margin-block-end: 6px; font: italic 400 16px/1.3 var(--serif); font-variation-settings: "opsz" 16; color: var(--fg-2); }
[lang="ar"] .field > legend, [lang="ar"] .field > label, [lang="ar"] .field-label { font: 400 16px/1.6 var(--naskh); }
.input { width: 100%; min-height: 48px; padding: 12px 0; background: transparent; border: 0; border-block-end: 1px solid var(--hair); border-radius: 0; font-size: 18px; color: var(--fg); transition: border-color .2s var(--ease-tick); }
.input:hover { border-block-end-color: var(--fg-2); }
.input:focus { outline: none; border-block-end-color: var(--fg); }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.input::placeholder { color: var(--fg-2); opacity: .8; }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(-45deg, transparent 50%, currentColor 50%); background-size: 5px 5px; background-position: calc(100% - 10px) 50%, calc(100% - 5px) 50%; background-repeat: no-repeat; padding-inline-end: 24px; cursor: pointer; }
[dir="rtl"] select.input { background-position: 10px 50%, 5px 50%; padding-inline: 24px 0; }
select.input option { background: var(--char); color: var(--limestone); }
.input[aria-invalid="true"] { border-block-end-color: var(--accent-text); }
.err { font: 400 15px/1.4 var(--serif); color: var(--accent-text); min-height: 0; }
[lang="ar"] .err { font: 400 15px/1.6 var(--naskh); }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-grid; gap: 2px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--hair); font: 400 17px/1.25 var(--serif); font-variation-settings: "opsz" 16; transition: border-color .18s var(--ease-tick), background-color .18s var(--ease-tick), color .18s; }
[lang="ar"] .chip > span { font: 400 16px/1.5 var(--naskh); }
.chip > span small { font-size: 14px; font-style: italic; color: var(--fg-2); }
[lang="ar"] .chip > span small { font-style: normal; }
.chip input:hover + span { border-color: var(--fg-2); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:checked + span small { color: inherit; opacity: .75; }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { color: var(--fg-2); border-style: dashed; }
.chip input:disabled + span .chip-date { text-decoration: line-through; text-decoration-thickness: 1px; }
.chip input:disabled + span small { color: var(--fg-2); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1px solid var(--fg-2); display: grid; place-items: center; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 10px; background: var(--cherry); transform: scale(0); transition: transform .18s var(--ease-tick); }
.check input:checked::after { transform: scale(1); }
.confirm { display: grid; gap: 18px; }
.confirm .ref { font: 420 20px/1.2 var(--serif); color: var(--accent-text); }
[lang="ar"] .confirm .ref { font: 600 19px/1.5 var(--naskh); }
.confirm p { font-size: 20px; line-height: 1.45; font-variation-settings: "opsz" 24; }
[lang="ar"] .confirm p { font-size: 19px; line-height: 1.85; }

/* cursor spout */
.spout { position: fixed; inset-block-start: 0; inset-inline-start: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .2s var(--ease-tick); }
[dir="rtl"] .spout { inset-inline-start: auto; left: 0; }
.spout.is-on { opacity: 1; }
.spout-ring { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 1px solid var(--limestone); border-radius: 50%; transition: transform .2s var(--ease-tick); }
.spout-dot { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--cherry); }
.spout-read { position: absolute; left: 22px; top: -6px; font: 400 11px/1 var(--mono); color: var(--limestone); letter-spacing: .04em; white-space: nowrap; }
.spout.is-press .spout-ring { transform: scale(.643); }
[dir="rtl"] .spout-read { left: auto; right: 22px; }

/* reveal primitives */
/* while split, the heading is a column so the masks' negative margins add up instead of collapsing */
.is-split { display: flex; flex-direction: column; }
.sline-mask { padding-block: .2em .12em; margin-block: -.2em -.12em; padding-inline-end: .16em; margin-inline-end: -.16em; }
[lang="ar"] .sline-mask { padding-block: .3em .2em; margin-block: -.3em -.2em; }
.js [data-reveal="fade"] { opacity: 0; }
.js [data-split]:not(.is-set) { opacity: 0; }
/* Photographs develop like a print in the tray: a flat cardamom sheet, then the shadows, and the cherry red last. */
.media { position: relative; overflow: hidden; background: var(--char); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.ground-light .media { background: #D6D2C7; }
.js [data-reveal="img"] { --dev: 1; }
.js [data-reveal="img"] img { filter: grayscale(var(--dev)) brightness(calc(1 + var(--dev) * .7)) contrast(calc(1 - var(--dev) * .72)); }
.js [data-reveal="img"]::after { content: ""; position: absolute; inset: 0; background: var(--cardamom); mix-blend-mode: multiply; opacity: calc(var(--dev) * .62); pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal="fade"], .js [data-split]:not(.is-set) { opacity: 1; }
  .js [data-reveal="img"] { --dev: 0 !important; }
}
.arw { display: inline-block; width: 1.05em; height: .7em; flex: none; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: .05em; }
[dir="rtl"] .arw { transform: scaleX(-1); }
