/* Sunrise Cafe Bagels & Diner. Built from the Claude Design homepage ("Sunrise Cafe Bagels & Diner — Website").
   Colors follow the storefront sign and menu boards: black with sign gold.
   Spacing is a 4px scale (--s-*), type is one scale (--text-*), and there are two radii: --r-pill for buttons and
   tabs, --r for photos and panels. No shadows. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('fonts/fraunces-var.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/montserrat-var.woff2') format('woff2'); }

:root {
  --night: #141312;
  --night-2: #1D1B19;
  --night-3: #0D0C0B;
  --gold: #F5B027;
  --gold-hi: #FFC94D;
  --cream: #FFF6E6;
  --sand: #D9CFBF;
  --muted: #B9AE9C;
  --hair: rgba(255, 246, 230, 0.12);
  --edge: rgba(255, 246, 230, 0.32);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Montserrat', system-ui, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-16: 64px; --s-24: 96px;
  --section: var(--s-24);

  --text-sm: 14px; --text-md: 16px; --text-lg: 18px; --text-xl: 28px;
  --text-h2: clamp(36px, 4.4vw, 56px);
  --text-h1: clamp(44px, 6vw, 80px);

  --r: 6px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-4); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--night); color: var(--cream); font-family: var(--body); font-size: var(--text-md); line-height: 1.5; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; }
a { color: var(--gold); }
a:hover { color: var(--gold-hi); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 10; background: var(--gold); color: var(--night); padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--s-3); }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--s-6), env(safe-area-inset-left)); padding-right: max(var(--s-6), env(safe-area-inset-right)); }
.section { padding-top: var(--section); padding-bottom: var(--section); }
.display { font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 0; color: var(--cream); }
.h2 { font-size: var(--text-h2); line-height: 1.05; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: var(--s-3) var(--s-6);
  font-family: var(--body); font-weight: 700; font-size: var(--text-md); text-decoration: none; border: 2px solid transparent; border-radius: var(--r-pill);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn svg { flex: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }
.btn-ghost { border-color: var(--edge); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-night { background: var(--night); border-color: var(--night); color: var(--gold); }
.btn-night:hover { background: #000; border-color: #000; color: var(--gold-hi); }
.btn-call { min-height: 56px; padding: var(--s-4) var(--s-8); font-size: var(--text-lg); }
.btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* Announcement */
.notice { background: var(--gold); color: var(--night); text-align: center; padding: var(--s-2) var(--s-4); font-size: var(--text-sm); font-weight: 600; }
.notice a { color: var(--night); text-underline-offset: 3px; }
.notice a:hover { color: #000; }

/* Header */
.header { border-bottom: 1px solid var(--hair); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-8); padding-top: var(--s-4); padding-bottom: var(--s-4); }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.brand-word { font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 0; font-size: 34px; line-height: 0.95; color: var(--gold); letter-spacing: -0.01em; }
.brand-sub { font-weight: 600; font-size: 9px; letter-spacing: 0.24em; color: var(--cream); margin-top: var(--s-1); }
.brand-sun { width: 58px; height: 30px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); font-weight: 600; }
.nav-links a:not(.btn) { color: var(--cream); text-decoration: none; padding: var(--s-3) 0; }
.nav-links a:not(.btn):hover { color: var(--gold); }
/* "Order online" opens a small list of the delivery apps */
.order-menu { position: relative; }
.order-menu summary { list-style: none; cursor: pointer; }
.order-menu summary::-webkit-details-marker { display: none; }
.order-menu summary::after { content: ''; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.order-menu[open] summary { border-color: var(--gold); color: var(--gold); }
.order-menu[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.order-pop { position: absolute; top: calc(100% + var(--s-2)); right: 0; z-index: 20; min-width: 100%; margin: 0; padding: var(--s-2);
  list-style: none; background: var(--night-2); border: 1px solid var(--edge); border-radius: var(--r); }
.order-pop a { display: block; color: var(--cream); text-decoration: none; font-weight: 600; padding: var(--s-3) var(--s-4); border-radius: var(--r); white-space: nowrap; }
.order-pop a:hover { background: var(--night); color: var(--gold); }

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-14); padding-top: var(--s-16); padding-bottom: var(--section); }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: var(--s-6); }
.hero h1 { font-size: var(--text-h1); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 span { color: var(--gold); }
.lede { max-width: 34em; font-size: var(--text-lg); line-height: 1.6; color: var(--sand); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); font-size: var(--text-sm); color: var(--sand); }
.fact { display: flex; align-items: center; gap: var(--s-2); }
.fact svg { flex: none; }
.fact strong { color: var(--cream); font-weight: 700; }
.hero-art { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.frame { position: relative; width: 100%; max-width: 500px; background: var(--gold); padding: var(--s-4); border-radius: var(--r); }
.slides { position: relative; list-style: none; margin: 0; padding: 0; aspect-ratio: 4 / 5; border: 6px solid var(--night); background: var(--night); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none; } }
.slides-toggle { position: absolute; top: var(--s-8); right: var(--s-8); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--night); color: var(--gold); border: 2px solid var(--gold); border-radius: var(--r-pill); transition: background-color .15s ease, color .15s ease; }
.slides-toggle:hover { background: var(--gold); color: var(--night); }
.slides-toggle .i-play { display: none; }
.slides-toggle[data-paused="true"] .i-pause { display: none; }
.slides-toggle[data-paused="true"] .i-play { display: inline; }
/* The badge hangs off the frame's left edge: its offset is measured from the slide, inside 16px padding + 6px border */
.badge { position: absolute; left: -46px; bottom: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3) var(--s-4);
  background: var(--night); color: var(--cream); border: 2px solid var(--gold); border-radius: var(--r); }
.badge-label { font-size: var(--text-sm); font-weight: 700; color: var(--gold); }
.badge-price { font-family: var(--display); font-weight: 700; font-size: var(--text-xl); line-height: 1.1; }

/* Menu */
.menu { display: flex; flex-direction: column; gap: var(--s-10); border-top: 1px solid var(--hair); }
.menu-head { text-align: center; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
.tabs[hidden] { display: none; }
.tab { min-height: 48px; padding: var(--s-3) var(--s-5); font-family: var(--body); font-size: var(--text-md); font-weight: 700; cursor: pointer;
  border: 2px solid var(--edge); border-radius: var(--r-pill); background: transparent; color: var(--cream); transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.tab:hover { border-color: var(--gold); }
.tab[aria-pressed="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-6); align-items: start; }
.panel[hidden] { display: none; }
.panel-title { grid-column: 1 / -1; font-family: var(--display); font-weight: 800; font-size: var(--text-xl); color: var(--cream); }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.group { background: var(--night-2); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.group img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.group-body { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); }
.group h4 { font-family: var(--display); font-weight: 800; font-variation-settings: 'SOFT' 100; font-size: var(--text-xl); line-height: 1.15; color: var(--gold); }
.group-note { font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-4); }
.item { display: flex; flex-direction: column; gap: var(--s-1); }
.item-line { display: flex; align-items: baseline; gap: var(--s-2); }
.item-name { font-weight: 700; color: var(--cream); }
.leader { flex: 1 1 auto; min-width: var(--s-4); border-bottom: 2px dotted rgba(255, 246, 230, 0.25); }
.item-price { font-weight: 700; color: var(--gold); white-space: nowrap; }
.item-desc { font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.menu-foot { text-align: center; font-size: var(--text-sm); color: var(--muted); }

/* Birria */
.birria { background: var(--gold); color: var(--night); }
.birria-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-14); }
.birria-art { flex: 1 1 460px; min-width: 0; }
.birria-art img { display: block; width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; border: 6px solid var(--night); border-radius: var(--r); }
.birria-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); }
.birria h2 { color: var(--night); }
.birria-copy p { max-width: 30em; font-size: var(--text-lg); line-height: 1.6; }

/* Photos */
.photos { background: var(--night-2); }
.photos .section { display: flex; flex-direction: column; gap: var(--s-10); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); list-style: none; margin: 0; padding: 0; }
.grid img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r); }

/* Visit */
.visit-inner { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--s-10); }
.visit-art { flex: 1 1 520px; min-width: 0; }
.visit-art img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; border-radius: var(--r); }
.visit-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--s-8); }
.details { margin: 0; display: grid; gap: var(--s-5); }
.details > div { display: flex; flex-direction: column; gap: var(--s-1); padding-bottom: var(--s-5); border-bottom: 1px solid var(--hair); }
.details > div:last-child { padding-bottom: 0; border-bottom: 0; }
.details dt { font-size: var(--text-sm); font-weight: 700; color: var(--muted); }
.details dd { margin: 0; font-size: var(--text-lg); line-height: 1.5; color: var(--cream); }
.details dd a { color: var(--cream); text-underline-offset: 4px; }
.details dd a:hover { color: var(--gold); }
.status { font-size: var(--text-md); color: var(--sand); }
.status strong { color: var(--gold); }
/* Hours: set like a menu board, day and time on one dotted line; today's row in gold */
.hours { width: 100%; margin-top: var(--s-3); border-collapse: collapse; font-size: var(--text-md); }
.hours th, .hours td { padding: var(--s-2) 0; border-bottom: 2px dotted rgba(255, 246, 230, 0.18); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; color: var(--sand); }
.hours td { text-align: right; font-weight: 700; color: var(--cream); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hours td.closed { font-weight: 600; color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--gold); }
.hours tr.is-today th { font-weight: 700; }

/* Footer */
.footer { background: var(--night-3); border-top: 4px solid var(--gold); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding-top: var(--s-12); padding-bottom: var(--s-12); }
.footer .brand-sun { width: 46px; height: 24px; }
.footer .brand-word { font-size: var(--text-xl); }
.footer .brand-sub { font-size: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); font-size: var(--text-sm); font-weight: 600; }
.footer-nav a { color: var(--sand); text-decoration: none; padding: var(--s-3) 0; }
.footer-nav a:hover { color: var(--gold); }
.footer-meta { display: flex; flex-direction: column; gap: var(--s-1); font-size: var(--text-sm); color: var(--muted); }
.footer-meta a { color: var(--muted); }

/* Phone action bar */
.action-bar { display: none; }
@media (max-width: 720px) {
  :root { --section: var(--s-16); }
  .nav { justify-content: center; }
  .nav-links { justify-content: center; gap: var(--s-1) var(--s-5); }
  .nav-links .btn, .nav-links .order-menu { display: none; }
  .btn-call { width: 100%; }
  .hero-inner { padding-top: var(--s-10); gap: var(--s-10); }
  .badge { left: var(--s-3); bottom: var(--s-3); }
  .slides-toggle { top: var(--s-6); right: var(--s-6); }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .group-body { padding: var(--s-5); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .action-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
    padding: var(--s-3) var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--night-3); border-top: 2px solid var(--gold); }
  .action-bar .btn { padding: var(--s-2); font-size: var(--text-sm); }
  /* Fill the strip under the bar, so the page never shows through while the phone's toolbar slides or the page bounces */
  .action-bar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: var(--night-3); }
  .order-menu-bar summary { width: 100%; }
  .order-menu-bar .order-pop { top: auto; bottom: calc(100% + var(--s-3)); left: 0; right: auto; min-width: 180px; }
  .order-menu-bar .order-pop a { padding: var(--s-4); font-size: var(--text-md); }
  /* Menu tabs: one row that scrolls sideways instead of wrapping onto three lines */
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 calc(-1 * var(--s-6)); padding: 0 var(--s-6) var(--s-1);
    scroll-padding: 0 var(--s-6); scroll-snap-type: x proximity; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; scroll-snap-align: start; min-height: 44px; padding: var(--s-2) var(--s-4); font-size: var(--text-sm); white-space: nowrap; }
}
