/* Hilal. Plum night, milk, one saffron accent (the moon), cardamom green as a minor note.
   Motif: the crescent from the logo, used as the brand tile, the moon tilting across the night, the closing mark. */

:root {
  --font-display: "Young Serif", Georgia, serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;

  --milk: #F8F1E4;
  --plum: #3A1F4D;
  --saffron: #E9A93B;
  --ink: #2A1638;
  --muted: #6A5577;
  --line: #E2D6C6;
  --tile-bg: #3A1F4D;            /* logo tile is always saffron on plum */

  --hero-bg: #3A1F4D;  --hero-ink: #F8F1E4;  --hero-muted: #CDBBD8;
  --drk-bg: #F8F1E4;   --drk-ink: #2A1638;   --drk-muted: #6A5577;  --drk-accent: #8A5A0B;  --drk-line: #E2D6C6;
  --late-bg: #24122F;  --late-ink: #F8F1E4;  --late-muted: #BDA9C9;
  --hrs-bg: #E3E8D3;   --hrs-ink: #22301C;   --hrs-muted: #4F6340;  --hrs-line: #B9C4A3;
  --clo-bg: #E9A93B;   --clo-ink: #2A1638;   --clo-btn: #3A1F4D;    --clo-btn-ink: #F8F1E4;
  --foot-bg: #F8F1E4;  --foot-ink: #2A1638;  --foot-muted: #6A5577; --foot-mark: #3A1F4D;
}

:root[data-theme="dark"] {
  --milk: #160B1E;
  --ink: #F3EADB;
  --muted: #BCA8C8;
  --line: #2E1C3B;
  --tile-bg: #3A1F4D;

  --hero-bg: #2A1638;  --hero-ink: #F3EADB;  --hero-muted: #C6B3D2;
  --drk-bg: #1B0F24;   --drk-ink: #F3EADB;   --drk-muted: #BCA8C8;  --drk-accent: #E9A93B;  --drk-line: #34203F;
  --late-bg: #0F0815;  --late-ink: #F3EADB;  --late-muted: #B39FC0;
  --hrs-bg: #16201A;   --hrs-ink: #E8EEDC;   --hrs-muted: #A9BC95;  --hrs-line: #2E3D2A;
  --clo-bg: #E9A93B;   --clo-ink: #2A1638;   --clo-btn: #2A1638;    --clo-btn-ink: #F3EADB;
  --foot-bg: #160B1E;  --foot-ink: #F3EADB;  --foot-muted: #BCA8C8; --foot-mark: #E9A93B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.08; text-wrap: balance; }
p, dl, dd { margin: 0; }
a { color: inherit; }
svg { display: block; }

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

: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(--milk); padding: .75rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }

/* buttons: soft 10px corners, echoing the logo tile; the only rounded rectangles on the page */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.5rem; border-radius: 10px;
  background: var(--saffron); color: #2A1638;
  font-weight: 650; font-size: 1.0625rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--milk); 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: .7rem; min-height: 44px; text-decoration: none; }
.brand-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--tile-bg); color: var(--saffron); }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; }
.nav-wide { display: none; gap: .25rem; }
.nav-wide a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; text-decoration: none; font-weight: 500; }
.nav-wide a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--saffron); }
.head-actions { display: flex; align-items: center; gap: .5rem; }
.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 1rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.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(--milk); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px rgb(36 18 47 / .2); /* the open menu floats above content */
}
.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; } }

section { background: var(--s-bg); color: var(--s-ink); }

/* ---------- hero: the mark, large, with its steam drawn once ---------- */
.s-hero { --s-bg: var(--hero-bg); --s-ink: var(--hero-ink); --s-muted: var(--hero-muted); padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.9rem, 1.6rem + 4.6vw, 5.6rem); max-width: 14ch; letter-spacing: -0.01em; }
.lede { margin-top: 1.5rem; max-width: 34ch; color: var(--s-muted); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.hero-copy .btn { margin-top: 2rem; }
.hero-mark { order: -1; width: clamp(150px, 40vw, 220px); color: var(--saffron); }
.hero-mark svg { width: 100%; height: auto; overflow: visible; }
.crescent { fill: currentColor; }
.steam { fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; }
@media (min-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; }
  .hero-mark { order: 0; width: min(100%, 440px); justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) {
  /* one signature motion: the steam rises once when the page opens */
  .steam { stroke-dasharray: 1; stroke-dashoffset: 1; animation: rise 1.4s cubic-bezier(.3, .7, .2, 1) .35s forwards; }
  .steam-2 { animation-delay: .6s; }
  @keyframes rise {
    from { stroke-dashoffset: 1; transform: translateY(3px); opacity: .2; }
    to { stroke-dashoffset: 0; transform: translateY(0); opacity: 1; }
  }
}

/* ---------- drinks: a menu board, karak first and largest ---------- */
.s-drinks { --s-bg: var(--drk-bg); --s-ink: var(--drk-ink); --s-muted: var(--drk-muted); padding: clamp(4rem, 3rem + 4vw, 7rem) 0; }
.s-drinks h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.menu { display: grid; gap: 2.5rem; }
.feature { display: grid; gap: 1rem; align-content: start; }
.feature-tile { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 14px; background: var(--tile-bg); color: var(--saffron); }
.feature h3 { font-size: clamp(3rem, 2rem + 4vw, 5.5rem); }
.feature p { max-width: 30ch; color: var(--s-muted); font-size: 1.15rem; }
.list { display: grid; gap: 1.75rem 2.5rem; border-top: 1px solid var(--drk-line); padding-top: 2rem; }
.list dt { font-family: var(--font-display); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; }
.list dd { margin-top: .35rem; color: var(--s-muted); max-width: 34ch; }
.price-note { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 600; color: var(--drk-accent); }
@media (min-width: 640px) { .list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .menu { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; }
  .list { border-top: 0; padding-top: .5rem; border-left: 1px solid var(--drk-line); padding-left: 3rem; }
}

/* ---------- late: the moon tilting across the night ---------- */
.s-late { --s-bg: var(--late-bg); --s-ink: var(--late-ink); --s-muted: var(--late-muted); padding: clamp(4.5rem, 3rem + 5vw, 8rem) 0; }
.s-late h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.8rem); max-width: 16ch; }
.late-lede { margin-top: 1.25rem; max-width: 46ch; color: var(--s-muted); font-size: 1.125rem; }
.moments { list-style: none; margin: clamp(3rem, 2rem + 3vw, 5rem) 0 0; padding: 0; display: grid; gap: 2.25rem; }
.moments li { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 1.25rem; align-items: start; align-content: start; }
.moments svg { color: var(--saffron); transform: rotate(var(--tilt)); grid-row: span 2; }
.moments h3 { font-size: 1.45rem; line-height: 1.25; }
.moments p { color: var(--s-muted); margin-top: .35rem; }
@media (min-width: 640px) { .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 2.5rem; } }
@media (min-width: 1000px) {
  .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .moments li { grid-template-columns: 1fr; grid-template-rows: 5rem auto auto; }
  .moments svg { grid-row: auto; }
  /* the moons sit on a shallow arc, like one moon crossing the sky; the text stays on one line */
  .moments li:nth-child(1) svg { margin-top: 2.75rem; }
  .moments li:nth-child(2) svg { margin-top: .75rem; }
  .moments li:nth-child(4) svg { margin-top: 1.5rem; }
}

/* ---------- hours: cardamom green, honest placeholders ---------- */
.s-hours { --s-bg: var(--hrs-bg); --s-ink: var(--hrs-ink); --s-muted: var(--hrs-muted); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.hours-grid { display: grid; gap: 2.5rem; }
.s-hours h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem); max-width: 12ch; }
.facts { display: grid; gap: 1.5rem; border-top: 2px solid var(--s-ink); padding-top: 1.75rem; }
.facts dt { font-size: .95rem; font-weight: 600; color: var(--s-muted); }
.facts dd { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); line-height: 1.25; }
@media (min-width: 820px) { .hours-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }

/* ---------- close: saffron band, plum mark ---------- */
.s-close { --s-bg: var(--clo-bg); --s-ink: var(--clo-ink); padding: clamp(4rem, 3rem + 4vw, 6.5rem) 0; }
.close-row { display: grid; gap: 2rem; align-items: center; }
.close-mark { width: clamp(96px, 20vw, 200px); height: auto; aspect-ratio: 1; color: var(--clo-ink); }
.s-close h2 { font-size: clamp(2.4rem, 1.5rem + 4vw, 5rem); max-width: 12ch; }
.btn-plum { background: var(--clo-btn); color: var(--clo-btn-ink); margin-top: 2rem; }
@media (min-width: 820px) { .close-row { grid-template-columns: auto minmax(0, 1fr); 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-size: 1.4rem; }
.foot-brand svg { color: var(--foot-mark); }
.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; }
}
