/* Around the Clock — CONCEPT A: "The Sign"
   Everything comes from the roadside sign on Northwest Hwy: the red bar with cream channel
   letters is the header, the green panel with its cream outline frames every section, the
   clock on top is a live clock (Crystal Lake time) with an open/closed line, and the WELCOME
   letter board under the sign shows the soups of the day. Oswald for the sign letters,
   Yellowtail for the "Restaurant & Bakery" script, Figtree for reading.
   Light = the sign by day (cream and sky). Dark = the sign at night (lit letters, deep green). */

:root {
  --red: #c8321e;            /* sign bar */
  --red-ink: #a8271a;        /* red text on cream (AA) */
  --green: #2f6b52;          /* sign panel */
  --green-deep: #1f4a39;
  --cream: #f6efdc;          /* channel letters, outlines */
  --bezel: #5b4a3a;
  --bg: #f7f2e6;
  --paper: #fffdf7;
  --ink: #1f2a25;
  --muted: #56625b;
  --line: #dcd3bd;
  --sky: #cfe3f1;
  --head: #1f2a25;           /* headings on page bg */
  --glow: none;
  --sign: "Oswald", "Arial Narrow", Impact, sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --font: "Figtree", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1511;
    --paper: #122019;
    --ink: #ece5d2;
    --muted: #a9b5ac;
    --line: #26392f;
    --sky: #0e1c2a;
    --head: #fff4dc;
    --red-ink: #ff7a63;
    --glow: 0 0 6px rgb(255 214 170 / 0.55), 0 0 22px rgb(255 90 60 / 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1511;
  --paper: #122019;
  --ink: #ece5d2;
  --muted: #a9b5ac;
  --line: #26392f;
  --sky: #0e1c2a;
  --head: #fff4dc;
  --red-ink: #ff7a63;
  --glow: 0 0 6px rgb(255 214 170 / 0.55), 0 0 22px rgb(255 90 60 / 0.45);
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6rem; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-ink); text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0 0 0.4em; line-height: 1.05; text-wrap: balance; }
h3 { font: 600 1.4rem/1.1 var(--sign); text-transform: uppercase; letter-spacing: 0.04em; }
p { margin: 0 0 1em; max-width: 62ch; }
address { font-style: normal; margin-block-end: 1em; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.center { text-align: center; }
.center .btn { margin-inline: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--cream); color: #1f2a25; }
.skip-link:focus { inset-block-start: 1rem; }

/* Sign lettering: cream channel letters with a raised edge (and a glow at night) */
.sign-letters { font-family: var(--sign); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--head); font-size: clamp(2.1rem, 5.5vw, 3.4rem); text-shadow: var(--glow); }
.sign-letters span { display: block; }
.label { margin: 0 0 0.6rem; font: 600 0.8rem var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-ink); }
.script { font-family: var(--script); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; margin-block: -0.1em 0.5em; }
.script.small { font-size: 1.8rem; margin: 0; }
.section-head { margin-block-end: 2rem; }
.section-head p:not(.label) { color: var(--muted); }

/* The sign panel: green with a cream outline, rounded like the sign */
.panel { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--green); color: var(--cream); border-radius: 22px; box-shadow: inset 0 0 0 5px var(--green), inset 0 0 0 8px var(--cream), 0 12px 30px rgb(0 0 0 / 0.18); }
.panel .label { color: #f3c7b8; }
.panel .sign-letters { color: var(--cream); text-shadow: 0 2px 0 rgb(0 0 0 / 0.35), var(--glow); }
.panel a:not(.btn) { color: #fff; }
.panel p { color: #e9e3cf; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 3rem; padding: 0.6rem 1.4rem; border: 2px solid transparent; border-radius: 999px; font: 600 1rem/1 var(--sign); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff7ea; box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 4px rgb(246 239 220 / 0.75); }
.btn-red:hover { background: #b02a17; }
.btn-cream { background: var(--cream); color: #8f2314; }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.panel .btn-outline { color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.25rem; }

/* Header: the red bar of the sign, cream rules top and bottom */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--red); color: var(--cream); box-shadow: inset 0 3px 0 #e45a42, inset 0 -3px 0 #8f2314, 0 3px 0 var(--cream), 0 6px 14px rgb(0 0 0 / 0.2); }
.header-inner { display: flex; align-items: center; gap: 0.75rem; width: min(100% - 1.5rem, 72rem); margin-inline: auto; padding: 0.45rem 4px; overflow: hidden; }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.site-logo { margin-inline-end: auto; }
.site-logo { display: block; padding: 4px 8px; background: var(--cream); border-radius: 12px; box-shadow: inset 0 0 0 2px #8f2314; }
.site-logo img { width: 84px; }
@media (min-width: 48rem) { .site-logo img { width: 100px; } }
.menu-button { display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 3rem; padding: 0.5rem 0.9rem; border: 2px solid rgb(246 239 220 / 0.6); border-radius: 999px; background: transparent; color: var(--cream); font: 600 1rem var(--sign); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.menu-button svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 30rem) {
  .header-inner { gap: 0.45rem; }
  .site-logo img { width: 76px; }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-inner .btn { padding-inline: 0.7rem; letter-spacing: 0.02em; font-size: 0.92rem; }
  .menu-button { padding-inline: 0.65rem; }
}
.site-menu { list-style: none; margin: 0; padding: 0.5rem; }
.site-menu a { display: block; padding: 0.7rem 1rem; color: inherit; font: 600 1.05rem var(--sign); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.site-menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.35em; }
.site-header .menu-button { anchor-name: --menu-button; }
.site-header .site-menu { position: fixed; inset: auto; inset-block-start: 5rem; inset-block-start: anchor(--menu-button bottom); inset-inline-end: 1rem; inline-size: min(80dvw, 20rem); margin: 0.6rem 0 0; background: var(--green); color: var(--cream); border: 0; border-radius: 18px; box-shadow: inset 0 0 0 4px var(--green), inset 0 0 0 6px var(--cream), 0 12px 30px rgb(0 0 0 / 0.3); }
.site-header.is-wide .menu-button { display: none; }
.site-header.is-wide .site-menu { position: static; display: flex; align-items: center; gap: 0.1rem; inline-size: auto; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.site-header.is-wide .site-menu a { padding-inline: 0.7rem; text-shadow: 0 1px 0 rgb(0 0 0 / 0.3); }
.site-header.is-wide .site-menu a:hover { color: #fff; }
.is-measuring * { transition: none !important; }
.theme-toggle { display: flex; align-items: center; gap: 0.75rem; inline-size: 100%; min-block-size: 3rem; padding: 0.7rem 1rem; border: 0; background: transparent; color: inherit; font: 600 1.05rem var(--sign); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.theme-toggle svg { flex: none; width: 1.2rem; height: 1.2rem; }
.theme-toggle .icon-sun, .theme-toggle[aria-pressed="true"] .icon-moon { display: none; }
.theme-toggle[aria-pressed="true"] .icon-sun { display: block; }
.site-header.is-wide .theme-toggle { inline-size: 3rem; justify-content: center; padding: 0; border: 2px solid rgb(246 239 220 / 0.6); border-radius: 999px; }
.site-header.is-wide .theme-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@supports not selector(:popover-open) { [popover]:not(.\:popover-open) { display: none; } }

/* Hero: photo, a sign panel, and the clock on top like on the sign */
.hero { position: relative; isolation: isolate; background: var(--sky); }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.35), rgb(0 0 0 / 0) 70%); }
.hero-grid { display: grid; gap: 1.5rem; align-items: end; padding-block: clamp(1.5rem, 8vw, 7rem) clamp(2.5rem, 6vw, 5rem); }
.hero-panel { max-width: 36rem; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); }
.hero .lede { font-size: 1.15rem; }
.clock-badge { order: -1; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 0.35rem 0.9rem; }
.clock-badge .clock { grid-row: span 2; }
.clock-badge .status { align-self: end; justify-self: start; }
.clock-badge .status-hours { align-self: start; justify-self: start; }
.clock { width: clamp(96px, 22vw, 190px); height: auto; filter: drop-shadow(0 8px 14px rgb(0 0 0 / 0.35)); }
.c-bezel { fill: var(--bezel); stroke: var(--cream); stroke-width: 1.5; }
.c-ring { fill: var(--green); }
.c-face { fill: #fbf8f0; }
.c-ticks path { stroke: #1d1d1b; stroke-width: 1.3; stroke-linecap: round; }
.c-nums text { font: 600 8px var(--font); fill: #1d1d1b; text-anchor: middle; }
.hand-h, .hand-m { stroke: #1d1d1b; stroke-linecap: round; }
.hand-h { stroke-width: 3.6; }
.hand-m { stroke-width: 2.4; }
.hand-s { stroke: var(--red); stroke-width: 1; }
.c-pin { fill: var(--red); }
.status { margin: 0; padding: 0.25rem 0.85rem; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 0.9rem var(--font); box-shadow: 0 4px 12px rgb(0 0 0 / 0.2); }
.status::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-inline-end: 0.45em; border-radius: 50%; background: #8a8f8b; vertical-align: 0.05em; }
.status[data-open="true"]::before { background: #2fa36b; box-shadow: 0 0 0 3px rgb(47 163 107 / 0.25); }
.status-hours { margin: 0; padding: 0.1rem 0.6rem; border-radius: 6px; background: rgb(0 0 0 / 0.55); color: #fff; font-size: 0.85rem; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr auto; align-items: center; min-block-size: min(78vh, 46rem); }
  .clock-badge { order: 0; grid-template-columns: auto; justify-items: center; text-align: center; }
  .clock-badge .clock { grid-row: auto; }
  .clock-badge .status, .clock-badge .status-hours { justify-self: center; }
  .clock { width: 230px; }
}

/* Today's features: the WELCOME letter board under the sign holds the soups */
.today { background: var(--paper); border-block: 1px solid var(--line); }
.today-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .today-grid { grid-template-columns: minmax(18rem, 0.8fr) 1.2fr; align-items: start; } }
.letterboard { padding: 1.25rem 1.25rem 1rem; background: #fbfaf6; color: #151515; border: 6px solid #2a2a2a; border-radius: 6px; box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
  background-image: repeating-linear-gradient(to bottom, transparent 0 2.65rem, #d7d4cb 2.65rem calc(2.65rem + 2px)); background-position: 0 3.2rem; }
.board-title, .board-lines li, .board-date { font: 700 1.35rem/2.75rem var(--sign); text-transform: uppercase; letter-spacing: 0.12em; text-align: center; margin: 0; }
.board-title { color: var(--red); line-height: 2.2rem; margin-block-end: 0.5rem; }
.board-lines { list-style: none; margin: 0; padding: 0; }
.board-date { font-size: 0.95rem; color: #555; letter-spacing: 0.2em; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; padding-block: 0.9rem; border-block-end: 2px dotted var(--line); }
.f-name { font: 600 1.25rem/1.2 var(--sign); text-transform: uppercase; letter-spacing: 0.03em; color: var(--head); }
.f-price { font-weight: 700; color: var(--red-ink); text-align: end; max-width: 14rem; }
.f-desc { grid-column: 1 / -1; color: var(--muted); font-size: 0.98rem; }

/* Food tiles: photos in rounded sign frames */
.tiles { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tile { position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--green), 0 14px 26px rgb(0 0 0 / 0.18); aspect-ratio: 4 / 5; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile h3 { position: absolute; inset: auto 0 0; margin: 0; padding: 0.7rem 1rem; background: var(--red); color: var(--cream); text-align: center; box-shadow: inset 0 3px 0 var(--cream); }

/* Family */
.family { background: linear-gradient(var(--bg), var(--paper)); }
.family-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .family-grid { grid-template-columns: 0.8fr 1.2fr; } }
.framed { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--red), 0 14px 26px rgb(0 0 0 / 0.2); max-width: 26rem; justify-self: center; }

/* Reviews: on little red bars */
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.quotes li { display: flex; flex-direction: column; padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; border-block-start: 10px solid var(--red); }
.quotes blockquote { margin: 0; flex: 1; }
.quotes blockquote p { font-size: 1.08rem; }
.who { margin: 0; font-family: var(--script); font-size: 1.6rem; color: var(--red-ink); }

/* Visit */
.visit-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .visit-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.big-hours { font-size: 1.2rem; }
.big-hours strong { font: 700 1.9rem/1.2 var(--sign); color: var(--cream); letter-spacing: 0.03em; }
.map { min-block-size: 22rem; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 4px var(--cream), 0 0 0 7px var(--green); }
.map iframe { display: block; width: 100%; height: 100%; min-block-size: 22rem; border: 0; }

/* Page head (menu, 404) */
.page-head { background: var(--green); color: var(--cream); text-align: center; padding-block: clamp(3rem, 8vw, 5rem); box-shadow: inset 0 -6px 0 var(--cream); }
.page-head .sign-letters { color: var(--cream); font-size: clamp(2.6rem, 8vw, 4.4rem); text-shadow: 0 3px 0 rgb(0 0 0 / 0.35), var(--glow); }
.page-head p { margin-inline: auto; color: #e9e3cf; }
.page-head .label { color: #f3c7b8; }
.page-head .actions { justify-content: center; }
.page-head .btn-outline { color: var(--cream); }

/* Footer: the green panel */
.site-footer { background: var(--green-deep); color: #e9e3cf; padding-block: 2.5rem 1rem; border-block-start: 6px solid var(--red); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); align-items: start; }
.footer-grid img { width: 140px; }
.legal { margin-block-start: 2rem; font-size: 0.85rem; color: #b9c4bb; max-width: none; }

/* Order via WhatsApp (RushTxt): the first ordering button everywhere, WhatsApp green.
   Not connected yet: a <button> that does nothing until it becomes a wa.me link. */
.btn-wa { gap: 0.55rem; background: #25d366; color: #05301a; border-color: #25d366; box-shadow: 0 8px 20px -8px rgb(37 211 102 / 0.7); }
.btn-wa:hover { background: #3be07a; }
.wa-icon { flex: none; inline-size: 1.3em; block-size: 1.3em; background: currentColor; -webkit-mask: url("/images/whatsapp.svg") center / contain no-repeat; mask: url("/images/whatsapp.svg") center / contain no-repeat; }
.btn-wa-big { min-block-size: 3.4rem; padding-inline: 1.6rem; }
@media (max-width: 30rem) { .wa-long, .ord-long { display: none; } .site-logo img { width: 64px; } .header-inner .btn-wa { padding-inline: 0.75rem; gap: 0.35rem; } }

/* Shared menu widget: themed from the sign */
mojo-menu {
  display: block;
  --mojo-menu-accent: var(--red);
  --mojo-menu-accent-text: #fff7ea;
  --mojo-menu-background: var(--bg);
  --mojo-menu-card: var(--paper);
  --mojo-menu-line: var(--line);
  --mojo-menu-muted: var(--muted);
  --mojo-menu-radius: 18px;
  --mojo-menu-heading-font: var(--sign);
  --mojo-menu-heading-weight: 700;
}

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
