/* Ateej brand system (Ateej Brand Design & Colour Guide, 2026).
   Three core colours from the Emirati landscape: sand, coffee and palm.
   ~60% white/cream, ~25% sand, ~12% coffee, ~3% palm (accent only).
   Sand is never used for small text on white (low contrast). */
:root {
  /* core */
  --ateej-sand: #C3A37D;
  --ateej-coffee: #614434;
  --ateej-palm: #457964;
  /* families */
  --ateej-cream: #F8F4EB;
  --ateej-beige: #E2D3C0;
  --ateej-taupe: #918171;
  --ateej-coffee-700: #46382F;
  --ateej-coffee-800: #2F221A;
  --ateej-coffee-900: #1A0F09;
  --ateej-palm-50: #EFF6EF;
  --ateej-palm-200: #B9CAC0;
  /* neutrals */
  --ateej-white: #FFFFFF;
  --ateej-offwhite: #F9F8F6;
  --ateej-stone: #EFEEEC;

  /* working names used by the screens */
  --oud: var(--ateej-coffee);
  --oud-dark: var(--ateej-coffee-800);
  --cream: var(--ateej-cream);
  --surface: var(--ateej-white);
  --sand: var(--ateej-sand);
  --sand-light: var(--ateej-beige);
  --taupe: var(--ateej-taupe);
  --majlis: var(--ateej-palm);
  --tint: rgba(97, 68, 52, 0.06);
  --tint-2: rgba(97, 68, 52, 0.12);
  --line: rgba(97, 68, 52, 0.18);
  --line-strong: rgba(97, 68, 52, 0.45);
  --muted: #7A6050;                 /* coffee-taupe, AA on cream and white */
  --cream-muted: rgba(248, 244, 235, 0.8);
  --scrim: rgba(47, 34, 26, 0.45);
  --radius: 16px;
  --radius-lg: 24px;
  /* type: Arabic leads, English supports */
  --serif: 'Fraunces', 'Georgia', serif;                    /* English display */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;     /* English body */
  /* The brand's Arabic face is TS Zunburk, which may not be used on the web
     under its licence. Amiri is the closest upright calligraphic naskh. */
  --arabic: 'Amiri', 'Noto Naskh Arabic', serif;             /* Arabic display */
  --arabic-body: 'Noto Naskh Arabic', 'Amiri', serif;        /* Arabic labels */
  --script: var(--serif);
  /* Sadu frieze: a thin triangle band, as on the trailer and cup rims */
  --sadu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 8 L8 0 L16 8 Z' fill='%23C3A37D'/%3E%3C/svg%3E");
  --sadu-coffee: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 8 L8 0 L16 8 Z' fill='%23614434'/%3E%3C/svg%3E");
  /* legacy aliases so older rules keep working */
  --burgundy: var(--oud);
  --wine: var(--ateej-coffee-800);
  --oxblood: var(--ateej-coffee-800);
  --ink: var(--oud);
  --paper: var(--cream);
  --cream-2: var(--ateej-beige);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--oud); font-family: var(--sans);
  font-weight: 400; font-size: 16px; line-height: 1.55; -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--oud); outline-offset: 2px; }
.brush, .script, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0; font-optical-sizing: auto; }
.arabic { font-family: var(--arabic); direction: rtl; }
.arabic-body { font-family: var(--arabic-body); direction: rtl; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.caps { font-weight: 500; text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--muted); }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 56px; padding: 14px 20px; border: 0; border-radius: var(--radius);
  background: var(--oud); color: var(--ateej-white); font-weight: 500; font-size: 17px; letter-spacing: .01em;
  transition: transform .08s ease, background .15s ease;
}
.btn:active:not(:disabled) { transform: scale(0.98); background: var(--oud-dark); }
.btn:disabled { background: var(--tint-2); color: var(--muted); }
.btn.secondary { background: transparent; color: var(--oud); box-shadow: inset 0 0 0 2px var(--oud); }
.btn.ghost { background: transparent; color: var(--oud); min-height: 44px; font-size: 15px; }
.btn.big { min-height: 64px; font-size: 19px; }
.btn.sand { background: var(--sand); color: var(--oud-dark); }
.btn.sand:active:not(:disabled) { background: var(--ateej-beige); }
.link { background: none; border: 0; padding: 8px 4px; color: var(--oud); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* tags / chips used across screens */
.tag {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--oud); background: var(--sand-light);
  border-radius: 999px; padding: 4px 10px;
}
.tag.open::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 50%; background: var(--majlis); }
.tag.closed::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: middle; border-radius: 50%; background: var(--sand); }

/* brand pieces shared by every screen */
.logo { display: block; height: auto; }
.logo-h { width: 168px; }
.mark { width: 34px; height: auto; display: block; }
.sadu-band { height: 8px; background: var(--sadu) repeat-x bottom left / 16px 8px; }
.sadu-band.coffee { background-image: var(--sadu-coffee); }
.sadu-band.down { transform: scaleY(-1); }
.days { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.days legend { margin-bottom: 8px; }
.day { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--tint); font-size: 14px; cursor: pointer; }
.day input { accent-color: var(--oud); }

/* Menu icon colours (public/illus.js) */
.ill-sand { fill: var(--sand); }
.ill-coffee { fill: var(--oud); }
