/* Around the Clock — CONCEPT B: "Guest Check"
   The family diner from the inside: the counter, the bakery case, the caramel booths in the
   photos and the red-and-white check of the old printed features card. The memorable idea:
   today's soups and features are written up on a green diner guest check, by hand (Caveat),
   with prices in the right column. DM Serif Display headings, Libre Franklin for reading,
   a cherry gingham strip under the header and over the footer, photos as taped snapshots
   and a bakery-case arch. Light = cream paper. Dark = after-hours coffee. */

:root {
  --cherry: #b3261e;
  --cherry-ink: #a3221b;     /* AA on cream */
  --caramel: #a75f27;        /* booth leather */
  --coffee: #2a1d15;
  --bg: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2a1d15;
  --muted: #6c5a4c;
  --line: #e7dccb;
  --check: #eef4e6;          /* guest-check paper: same in both themes */
  --check-rule: #9cc0a4;
  --check-ink: #24392d;
  --pencil: #1f3a8a;         /* handwriting on the check */
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --font: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gingham: repeating-linear-gradient(90deg, rgb(179 38 30 / 0.55) 0 8px, transparent 8px 16px), repeating-linear-gradient(0deg, rgb(179 38 30 / 0.55) 0 8px, #fff 8px 16px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b130e;
    --paper: #261b14;
    --ink: #f3e9da;
    --muted: #c3b19f;
    --line: #3d2d22;
    --cherry-ink: #ff8a7a;
    --caramel: #d08a4e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b130e;
  --paper: #261b14;
  --ink: #f3e9da;
  --muted: #c3b19f;
  --line: #3d2d22;
  --cherry-ink: #ff8a7a;
  --caramel: #d08a4e;
}
: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.65; color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cherry-ink); text-underline-offset: 0.2em; }
h1, h2, h3 { margin: 0 0 0.45em; font-family: var(--serif); font-weight: 400; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5vw, 3.3rem); }
h3 { font-size: 1.6rem; }
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 p { margin-inline: auto; }
.small { font-size: 0.95rem; color: var(--muted); }
.hand { font-family: var(--hand); font-weight: 700; }
:focus-visible { outline: 3px solid var(--caramel); outline-offset: 3px; }
.skip-link { position: absolute; inset-inline-start: 1rem; inset-block-start: -4rem; z-index: 50; padding: 0.6rem 1rem; background: var(--cherry); color: #fff; }
.skip-link:focus { inset-block-start: 1rem; }
.kicker { margin: 0 0 0.6rem; font: 700 0.78rem var(--font); letter-spacing: 0.18em; text-transform: uppercase; color: var(--caramel); }
.section-head { margin-block-end: 2.5rem; }
.section-head p:not(.kicker) { color: var(--muted); }

/* Buttons: rounded like a counter edge */
.btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 3rem; padding: 0.6rem 1.35rem; border: 2px solid transparent; border-radius: 10px; font: 700 0.98rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-cherry { background: var(--cherry); color: #fff; }
.btn-cherry:hover { background: #971d16; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-cream { background: #fbf6ec; color: var(--coffee); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem 1rem; }

/* Header: cream paper with the gingham strip under it */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-block-end: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; inset: 100% 0 auto; block-size: 10px; background: var(--gingham); }
.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 img { width: 96px; }
@media (min-width: 48rem) { .site-logo img { width: 112px; } }
.menu-button { display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 3rem; padding: 0.5rem 0.9rem; border: 2px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font: 700 0.95rem var(--font); cursor: pointer; }
.menu-button svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 30rem) {
  .header-inner { gap: 0.45rem; }
  .site-logo img { width: 80px; }
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .header-inner .btn { padding-inline: 0.9rem; }
}
.site-menu { list-style: none; margin: 0; padding: 0.5rem; }
.site-menu a { display: block; padding: 0.7rem 1rem; color: inherit; font-weight: 600; text-decoration: none; }
.site-menu a[aria-current="page"] { color: var(--cherry-ink); text-decoration: underline wavy; text-underline-offset: 0.4em; }
.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(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 30px rgb(42 29 21 / 0.2); }
.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.75rem; }
.site-header.is-wide .site-menu a:hover { color: var(--cherry-ink); }
.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 1rem var(--font); 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 var(--line); border-radius: 10px; }
.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 */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero h1 { font-size: clamp(2.9rem, 7.5vw, 5.4rem); }
.hero h1 em { display: block; color: var(--cherry-ink); }
.hero .lede { font-size: 1.2rem; color: var(--muted); }
.open-line { font-weight: 600; }
[data-open-status]::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-inline-end: 0.4em; border-radius: 50%; background: #8a8f8b; vertical-align: 0.05em; }
[data-open-status][data-open="true"]::before { background: #2f9a62; box-shadow: 0 0 0 3px rgb(47 154 98 / 0.25); }
.hero-photo { margin: 0; justify-self: center; max-width: 26rem; border-radius: 200px 200px 16px 16px; overflow: hidden; border: 10px solid var(--paper); box-shadow: 0 0 0 1px var(--line), 0 24px 40px rgb(42 29 21 / 0.22); rotate: 1.5deg; }
.hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* Today's features: the guest check */
.today { background: var(--paper); border-block: 1px solid var(--line); }
.today-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .today-grid { grid-template-columns: 0.8fr 1.2fr; } .today-copy { position: sticky; top: 8rem; } }
.today-copy .hand { font-size: 1.7rem; color: var(--cherry-ink); line-height: 1.2; }
.guest-check { --row: 2.1rem; position: relative; padding: 1.25rem 1.5rem 1.5rem; background: var(--check); color: var(--check-ink); border-radius: 4px; box-shadow: 0 1px 0 #cfdcc8, 0 18px 36px rgb(42 29 21 / 0.22); rotate: -1deg;
  background-image: linear-gradient(90deg, transparent calc(100% - 7.5rem), var(--check-rule) calc(100% - 7.5rem), var(--check-rule) calc(100% - 7.5rem + 1px), transparent 0), repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), var(--check-rule) calc(var(--row) - 1px) var(--row)); background-position: 0 0, 0 7.2rem; background-repeat: no-repeat, repeat; }
.guest-check::before { content: ""; position: absolute; inset: -10px 0 auto; block-size: 10px; background: radial-gradient(circle at 5px 0, transparent 5px, var(--check) 5.5px) 0 0 / 10px 10px repeat-x; }
:root[data-theme="dark"] .guest-check { filter: brightness(0.93); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .guest-check { filter: brightness(0.93); } }
.check-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0 1rem; padding-block-end: 0.6rem; margin-block-end: 0.75rem; border-block-end: 3px double var(--check-rule); background: var(--check); }
.check-brand { margin: 0; font: 400 1.5rem/1 var(--serif); color: var(--cherry); }
.check-title { margin: 0; font: 700 0.75rem var(--font); letter-spacing: 0.3em; text-transform: uppercase; }
.check-date { grid-column: 1 / -1; margin: 0.4rem 0 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.check-date .hand { font-size: 1.5rem; letter-spacing: 0; text-transform: none; color: var(--pencil); }
.check-label { margin: 0.6rem 0 0; font: 700 0.72rem/var(--row) var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: #557a63; }
.check-soups, .check-items { list-style: none; margin: 0; padding: 0; }
.check-soups li { font-size: 1.6rem; line-height: var(--row); color: var(--pencil); }
.check-items .feature { display: grid; grid-template-columns: 1fr 7rem; column-gap: 1rem; }
.f-name { font: 700 1.55rem/var(--row) var(--hand); color: var(--pencil); }
.f-price { font: 700 1.25rem/var(--row) var(--hand); color: var(--pencil); text-align: end; padding-inline-start: 0.4rem; }
.f-desc { grid-column: 1; font-size: 0.86rem; line-height: var(--row); color: #4a5e52; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.check-foot { margin: 1rem 0 0; text-align: center; font: 700 0.72rem var(--font); letter-spacing: 0.3em; text-transform: uppercase; color: #557a63; }
@media (max-width: 30rem) {
  .guest-check { padding-inline: 1rem; rotate: 0deg; background-image: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), var(--check-rule) calc(var(--row) - 1px) var(--row)); background-position: 0 7.2rem; }
  .check-items .feature { grid-template-columns: 1fr; }
  .f-price { text-align: start; padding: 0; }
}

/* Meals: a little day line */
.dayline { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); counter-reset: none; position: relative; }
.dayline li { text-align: center; }
.dayline img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 8px solid var(--paper); box-shadow: 0 0 0 1px var(--line), 0 14px 28px rgb(42 29 21 / 0.18); }
.dayline .time { margin: 1rem 0 0; font: 700 1.6rem/1 var(--hand); color: var(--cherry-ink); }
.dayline h3 { margin: 0.2rem 0 0; }

/* Bakery: the coffee band */
.bakery { background: var(--coffee); color: #f3e9da; }
.bakery .kicker { color: #e6b07d; }
.bakery-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .bakery-grid { grid-template-columns: 0.8fr 1.2fr; } }
.arch { margin: 0; justify-self: center; max-width: 24rem; border-radius: 200px 200px 12px 12px; overflow: hidden; border: 8px solid #f3e9da; }
.arch img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.pull { margin: 1.5rem 0 2rem; }
.pull p { font: 400 clamp(2rem, 4vw, 2.8rem)/1.1 var(--serif); font-style: italic; margin: 0 0 0.3rem; }
.pull footer { color: #d6c4b0; font-size: 0.95rem; }

/* Family: taped snapshots and name tags */
.family-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .family-grid { grid-template-columns: 1fr 1fr; } }
.album { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 34rem; justify-self: center; }
.snap { position: relative; margin: 0; padding: 0.6rem 0.6rem 0; background: #fff; box-shadow: 0 12px 24px rgb(42 29 21 / 0.2); }
.snap img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.snap figcaption { padding: 0.3rem 0 0.5rem; text-align: center; font-size: 1.4rem; color: #2a1d15; }
.snap::before { content: ""; position: absolute; inset-block-start: -12px; inset-inline-start: 50%; translate: -50% 0; width: 5rem; height: 1.6rem; background: rgb(239 222 180 / 0.85); rotate: -3deg; }
.snap-1 { rotate: -3deg; }
.snap-2 { rotate: 2.5deg; margin-block-start: 2.5rem; }
.name-tags { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.name-tags li { display: grid; padding: 0.5rem 1rem; background: var(--paper); border: 1px solid var(--line); border-block-start: 6px solid var(--cherry); border-radius: 6px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.name-tags span { font: 700 1.7rem/1.1 var(--hand); letter-spacing: 0; text-transform: none; color: var(--ink); }

/* Reviews */
.reviews { background: var(--paper); border-block: 1px solid var(--line); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.quotes li { display: flex; flex-direction: column; }
.quotes blockquote { margin: 0; flex: 1; }
.quotes blockquote p { font: 400 1.35rem/1.35 var(--serif); }
.quotes blockquote p::before { content: "“"; display: block; font-size: 3.5rem; line-height: 0.6; color: var(--cherry-ink); }
.who { margin: 0; font: 700 1.5rem var(--hand); color: var(--caramel); }

/* Visit */
.visit-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .visit-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.visit-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.hours { display: grid; margin-block-end: 1.25rem; }
.hours span { color: var(--muted); }
.hours strong { font: 400 2.2rem/1.1 var(--serif); }
.map { min-block-size: 22rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 100%; min-block-size: 22rem; border: 0; }

/* Page head (menu, 404) */
.page-head { text-align: center; padding-block: clamp(3rem, 8vw, 5rem) clamp(2rem, 5vw, 3rem); }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 4.8rem); }
.page-head h1 em { color: var(--cherry-ink); }
.page-head p { margin-inline: auto; color: var(--muted); }
.page-head .actions { justify-content: center; }

/* Footer */
.site-footer { position: relative; background: var(--coffee); color: #e9dccb; padding-block: 3rem 1rem; margin-block-start: 10px; }
.site-footer::before { content: ""; position: absolute; inset: -10px 0 auto; block-size: 10px; background: var(--gingham); }
.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: #bfae9b; 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 diner */
mojo-menu {
  display: block;
  --mojo-menu-accent: var(--cherry);
  --mojo-menu-accent-text: #fff;
  --mojo-menu-background: var(--bg);
  --mojo-menu-card: var(--paper);
  --mojo-menu-line: var(--line);
  --mojo-menu-muted: var(--muted);
  --mojo-menu-radius: 12px;
  --mojo-menu-heading-font: var(--serif);
  --mojo-menu-heading-weight: 400;
}

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