/* Cup Section. Paper, espresso ink, one terracotta accent, pistachio as the second note.
   Motif: the "|" from their bio, a hairline that pairs English with Arabic. */

:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Readex Pro", system-ui, sans-serif;

  --paper: #F6F1E7;
  --ink: #2B1D14;
  --muted: #6B5646;
  --accent: #D9532B;          /* terracotta: CTA fill, the pipe, never small text */
  --accent-text: #A8432A;     /* terracotta dark enough for small text */
  --on-accent: #1A110B;
  --line: #D9CDB8;

  /* surfaces, one per section */
  --hero-bg: #F6F1E7;  --hero-ink: #2B1D14;  --hero-muted: #6B5646;
  --des-bg: #2B1D14;   --des-ink: #F6F1E7;   --des-muted: #CDBFAA;  --des-accent: #F08560;
  --ord-bg: #E3E9D3;   --ord-ink: #2B1D14;   --ord-muted: #55603F;
  --bub-you: #FFFDF8;  --bub-them: #A8B88A;  --bub-ink: #2B1D14;
  --ide-bg: #EFE3CF;   --ide-ink: #2B1D14;   --ide-muted: #6A5240;
  --feed-bg: #FFFDF8;  --feed-ink: #2B1D14;  --feed-muted: #6B5646;
  --clo-bg: #D9532B;   --clo-ink: #1A110B;   --clo-btn: #2B1D14;  --clo-btn-ink: #F6F1E7;
  --foot-bg: #F6F1E7;  --foot-ink: #2B1D14;  --foot-muted: #6B5646;
}

:root[data-theme="dark"] {
  --paper: #1C1410;
  --ink: #F3EADB;
  --muted: #BFAE98;
  --accent: #E8714A;
  --accent-text: #EE7A52;
  --on-accent: #1C1410;
  --line: #3A2C22;

  --hero-bg: #1C1410;  --hero-ink: #F3EADB;  --hero-muted: #BFAE98;
  --des-bg: #120D0A;   --des-ink: #F3EADB;   --des-muted: #BFAE98;  --des-accent: #F08560;
  --ord-bg: #1D2318;   --ord-ink: #EEF0E2;   --ord-muted: #B8C29F;
  --bub-you: #2A3222;  --bub-them: #B8C79A;  --bub-ink: #1C1410;
  --ide-bg: #2E2119;   --ide-ink: #F3EADB;   --ide-muted: #C4B29C;
  --feed-bg: #261C16;  --feed-ink: #F3EADB;  --feed-muted: #BFAE98;
  --clo-bg: #E8714A;   --clo-ink: #1C1410;   --clo-btn: #1C1410;  --clo-btn-ink: #F3EADB;
  --foot-bg: #1C1410;  --foot-ink: #F3EADB;  --foot-muted: #BFAE98;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
[lang="ar"] { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; line-height: 1.5; }

.wrap { width: min(100% - 2rem, 1240px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(100% - 4rem, 1240px); } }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; background: var(--ink); color: var(--paper); padding: .75rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* the motif: a terracotta hairline between English and Arabic */
.pipe { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.15em; flex: none; }

/* buttons: pill only for actions, so they never look like content */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.5rem;
  border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-weight: 650; font-size: 1.0625rem;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper); color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; text-decoration: none; }
.brand-en { font-family: var(--font-display); font-weight: 750; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-ar { font-size: 1rem; font-weight: 500; }
.nav-wide { display: none; gap: .25rem; }
.nav-wide a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; text-decoration: none; font-weight: 400; border-radius: 6px; }
.nav-wide a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.head-actions { display: flex; align-items: center; gap: .5rem; }
.head-actions .btn-small { display: none; }
.theme-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-btn:hover { border-color: var(--ink); }
.i-sun { display: none; }
[data-theme="dark"] .i-sun { display: block; }
[data-theme="dark"] .i-moon { display: none; }

.nav-menu { position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 .9rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 400;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { border-color: var(--ink); }
.nav-menu nav {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 12rem;
  display: grid; padding: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgb(43 29 20 / .14); /* lifts the open menu above the page */
}
.nav-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; text-decoration: none; border-radius: 6px; }
.nav-menu nav a:hover { background: var(--line); }

@media (min-width: 760px) {
  .nav-wide { display: flex; }
  .nav-menu { display: none; }
  .head-actions .btn-small { display: inline-flex; }
}

/* ---------- shared section bits ---------- */
section { background: var(--s-bg); color: var(--s-ink); }
.ar-line { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.9rem); font-weight: 500; color: var(--s-muted); margin-top: .5rem; }
.ar-display { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.8rem); color: var(--s-ink); }
.pair-head { display: grid; gap: .25rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.pair-head h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
.pair-head .ar-line { justify-self: start; }

/* ---------- hero: a shelf of real cups ---------- */
.s-hero { --s-bg: var(--hero-bg); --s-ink: var(--hero-ink); --s-muted: var(--hero-muted); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); }
.hero-copy h1 { font-size: clamp(2.7rem, 1.5rem + 5vw, 6rem); max-width: 13ch; }
.hero-copy .ar-display { margin-top: .75rem; }
.lede { margin-top: 1.25rem; max-width: 42ch; color: var(--s-muted); font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.cta-pair { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.1rem; margin-top: 1.75rem; }
.cta-ar { font-size: 1.05rem; color: var(--s-muted); }

.shelf {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .75rem;
}
.shelf li { border-bottom: 2px solid var(--s-ink); padding-bottom: 0; overflow: hidden; border-radius: 6px 6px 0 0; }
.shelf img {
  width: 100%; max-width: 640px; aspect-ratio: 640 / 330;
  object-fit: cover; object-position: 50% 100%;
  transition: transform .35s ease;
}
.shelf li:hover img { transform: translateY(-4px); }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: end; }
  .hero-copy h1 { grid-column: 1; grid-row: 1 / span 2; }
  .hero-copy .ar-display { grid-column: 2; grid-row: 1; margin: 0; align-self: end; justify-self: end; }
  .hero-copy .lede { grid-column: 2; grid-row: 2; }
  .hero-copy .cta-pair { grid-column: 2; grid-row: 3; }
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
}

/* ---------- designs: the artwork laid flat, on espresso ---------- */
.s-designs { --s-bg: var(--des-bg); --s-ink: var(--des-ink); --s-muted: var(--des-muted); padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.s-designs .pair-head .ar-line { color: var(--des-accent); }
.strips { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.strip { display: grid; gap: .9rem; }
.strip img {
  width: 100%; max-width: 640px; aspect-ratio: 640 / 134;
  object-fit: cover; object-position: 50% 100%;
  border-radius: 6px;
}
.strip-cap { display: grid; gap: .1rem; max-width: 640px; }
.strip-cap p:first-child { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); }
.strip-cap p[lang="ar"] { color: var(--s-muted); }
@media (min-width: 900px) {
  .strip { grid-template-columns: minmax(0, 640px) minmax(0, 1fr); align-items: center; gap: 2.5rem; }
  .strip:nth-child(even) { margin-inline-start: clamp(0px, 10vw, 200px); }
  .strip-cap { border-inline-start: 2px solid var(--des-accent); padding-inline-start: 1.25rem; }
}

/* ---------- order: the DM thread ---------- */
.s-order { --s-bg: var(--ord-bg); --s-ink: var(--ord-ink); --s-muted: var(--ord-muted); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.order-grid { display: grid; gap: 2.5rem; }
.order-copy { max-width: 32rem; }
.order-copy h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 14ch; }
.note { color: var(--s-muted); max-width: 40ch; margin-top: 1.25rem; }
.note + .note { margin-top: .35rem; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.msg { max-width: 30rem; padding: 1rem 1.25rem 1.1rem; border-radius: 18px; color: var(--bub-ink); }
.msg p { font-size: 1.05rem; }
.msg p[lang="ar"] { margin-top: .3rem; }
.msg-you { background: var(--bub-you); color: var(--s-ink); border-bottom-left-radius: 4px; justify-self: start; }
.msg-them { background: var(--bub-them); border-bottom-right-radius: 4px; justify-self: end; }
.who { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .3rem; opacity: 1; }
.msg-you .who { color: var(--s-muted); }
@media (min-width: 900px) {
  .order-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem; align-items: start; }
  .order-copy { position: sticky; top: 7rem; }
}

/* ---------- ideas: English | Arabic rows ---------- */
.s-ideas { --s-bg: var(--ide-bg); --s-ink: var(--ide-ink); --s-muted: var(--ide-muted); padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.ideas li { display: grid; gap: .25rem; }
.ideas .pipe { display: none; }
.idea-en { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1.5vw, 2.4rem); line-height: 1.15; letter-spacing: -0.015em; }
.idea-ar { font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); color: var(--s-muted); }
.ideas-foot { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--s-muted); }
@media (min-width: 820px) {
  .ideas li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 2rem; }
  .ideas .pipe { display: block; height: 2.2em; }
  .idea-ar { text-align: right; }
}

/* ---------- feed ---------- */
.s-feed { --s-bg: var(--feed-bg); --s-ink: var(--feed-ink); --s-muted: var(--feed-muted); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.feed-grid { display: grid; gap: 2rem; align-items: center; }
.feed-shot { margin: 0; max-width: 460px; }
.feed-shot img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.feed-copy h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.feed-copy > p:not(.ar-line) { margin-top: 1.25rem; color: var(--s-muted); max-width: 36ch; }
.link-big {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem;
  font-family: var(--font-display); font-weight: 650; font-size: 1.2rem;
  color: var(--s-ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px;
}
@media (min-width: 820px) { .feed-grid { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); } }

/* ---------- closing DM band ---------- */
.s-close { --s-bg: var(--clo-bg); --s-ink: var(--clo-ink); --s-muted: var(--clo-ink); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.close-grid { display: grid; gap: 2.5rem; align-items: center; }
.close-copy { max-width: 36rem; }
.close-copy h2 { font-size: clamp(2.4rem, 1.5rem + 4vw, 5rem); max-width: 12ch; }
.close-copy .ar-display { margin-top: .75rem; }
.btn-ink { background: var(--clo-btn); color: var(--clo-btn-ink); margin-top: 2rem; }
.close-mark { width: 100%; max-width: 340px; border-radius: 6px; }
@media (min-width: 820px) { .close-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 4rem; } }

/* ---------- footer ---------- */
.site-foot { background: var(--foot-bg); color: var(--foot-ink); padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); }
.foot-row { display: grid; gap: .75rem; }
.foot-row a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.foot-brand [lang="ar"] { font-weight: 500; font-size: 1rem; }
.credit { color: var(--foot-muted); font-size: .95rem; }
@media (min-width: 820px) { .foot-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; } .foot-row > p:nth-child(2) { justify-self: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
