/* Sunbrew Cafe. Tokens follow brief 02, section 3. Values marked "check" are stand-ins until brief 02 is applied. */

@font-face { font-family: "Poppins"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;

  --cream: #FBF4E6;      /* check */
  --sand: #F1E5CC;       /* check */
  --ink: #1F1A14;        /* check */
  --ink-soft: #4A4138;   /* check */
  --yellow: #F4B841;     /* CTAs */
  --clay-deep: #954823;  /* links */
  --line: #E2D3B5;       /* check */
  --on-ink: #FBF4E6;
  --on-ink-soft: #D9CDB8;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --radius-card: 14px;
  --radius-pill: 999px;
  --max: 1200px;
  --gutter: 20px;
  --ease: 150ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0 0 var(--s-4); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; font-weight: 500; }
p { margin: 0 0 var(--s-4); }
address { font-style: normal; }
a { color: var(--clay-deep); text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
abbr[title] { text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: var(--s-3) var(--s-4); border-radius: var(--radius-pill); }
.skip-link:focus { top: var(--s-4); color: var(--on-ink); }
main:focus { outline: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s-5);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font: 600 1rem/1 var(--font-display); text-decoration: none; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn-primary { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--yellow); }
/* Yellow appears once per screen: the header button on desktop, the sticky bar on mobile. Order buttons in the page use ink. */
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.text-link { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.logomark { width: 55px; height: 48px; }
.logo { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s-1); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3);
  color: var(--ink); text-decoration: none; font: 500 1rem/1 var(--font-display); border-radius: var(--radius-pill);
}
.site-nav a:hover { color: var(--clay-deep); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Hero */
.hero { padding: var(--s-7) 0 var(--s-8); }
.hero-inner { display: grid; gap: var(--s-6); align-items: center; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 38em; }

/* Photos */
.eyebrow { font: 600 1rem/1.3 var(--font-display); color: var(--clay-deep); margin-bottom: var(--s-3); }
.photo { display: block; overflow: hidden; border-radius: var(--radius-card); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; border-radius: var(--radius-card);
  background: repeating-linear-gradient(135deg, var(--sand) 0 14px, #EDDFC2 14px 28px);
  display: grid; place-items: center; color: var(--ink-soft); font: 500 0.875rem/1.3 var(--font-display); text-align: center; padding: var(--s-4);
}

/* Facts strip */
.facts { border-block: 1px solid var(--line); }
.facts-list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6); padding-block: var(--s-4); font: 500 1rem/1.4 var(--font-display); text-align: center; }

/* Sections */
.section { padding: var(--s-8) 0; }
.section-ink { background: var(--ink); color: var(--on-ink); }
.section-ink a { color: var(--yellow); }
.section-sand { background: var(--sand); }
.section-intro { color: var(--ink-soft); }
.section-ink .section-intro { color: var(--on-ink-soft); }
.section-cta { margin-top: var(--s-5); }
.two-col { display: grid; gap: var(--s-6); align-items: center; }
.two-col-top { align-items: start; }
.prose { max-width: 40em; }
.prose h2:not(:first-child) { margin-top: var(--s-6); }
.source { font-size: 0.9375rem; color: var(--ink-soft); }
.page-head { padding: var(--s-7) 0 var(--s-5); }

/* Cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.card .photo-placeholder, .card .photo { border-radius: 0; }
.card-body { padding: var(--s-4) var(--s-4) var(--s-2); }
.card-title { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 1.0625rem; margin-bottom: var(--s-2); }
.card-body p { font-size: 0.9375rem; color: var(--ink-soft); }
.price { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }

.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.partner-list li { border: 1px solid #4A4138; border-radius: var(--radius-pill); padding: var(--s-2) var(--s-4); font: 500 0.9375rem/1.4 var(--font-display); }

/* Reviews */
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s-5); height: 100%; }
.review-quote { margin: 0 0 var(--s-3); font-size: 1.0625rem; }
.review figcaption { color: var(--ink-soft); font-size: 0.9375rem; }

/* Hours */
.hours { margin: 0 0 var(--s-4); }
.hours div { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }
.hours dt { font-weight: 600; }
.hours dt::after { content: ":"; }
.hours dd { margin: 0; }
.hours-table { border-collapse: collapse; width: 100%; margin-bottom: var(--s-4); }
.hours-table th, .hours-table td { text-align: left; padding: var(--s-3) var(--s-2) var(--s-3) 0; border-bottom: 1px solid var(--line); }
.hours-table thead th { font: 600 0.8125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

/* Menu */
.diet-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin: var(--s-5) 0 0; font-size: 0.9375rem; }
.diet-key div { display: flex; gap: var(--s-2); align-items: center; }
.diet-key dd { margin: 0; }
.menu-jump ul { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.menu-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-pill); text-decoration: none; color: var(--ink); font: 500 0.9375rem/1 var(--font-display); background: #fff; }
.menu-jump a:hover { border-color: var(--ink); }
.menu { padding-bottom: var(--s-8); }
.menu-section { padding-top: var(--s-7); scroll-margin-top: var(--s-4); }
.menu-section > h2 { padding-bottom: var(--s-3); border-bottom: 2px solid var(--ink); }
.section-note { font: 500 1rem/1 var(--font-body); color: var(--ink-soft); margin-left: var(--s-2); }
.drinks-h { margin-top: var(--s-6); }
.dishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s-7); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.dish { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.dish-name { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); margin: 0 0 var(--s-1); font-size: 1.0625rem; font-weight: 600; }
.dish-copy { margin: 0; color: var(--ink-soft); font-size: 0.9375rem; }
.addon { white-space: nowrap; font-weight: 500; color: var(--ink); }
.tags { margin: var(--s-2) 0 0; display: flex; gap: var(--s-1); }
.tag, .diet-key abbr { display: inline-block; min-width: 2.2em; text-align: center; padding: 1px var(--s-2); border: 1px solid var(--ink-soft); border-radius: var(--radius-pill); font: 600 0.75rem/1.5 var(--font-display); color: var(--ink); }
.menu-section-compact .dishes { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.menu-section-compact .dish { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0 var(--s-3); }
.menu-section-compact .dish-name { flex: 1; }
.menu-foot { margin-top: var(--s-7); padding: var(--s-6); border-radius: var(--radius-card); background: var(--sand); display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: space-between; }
.menu-foot p { margin: 0; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-3) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 1.5rem/1 var(--font-display); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { margin: 0; font-size: 1.0625rem; }
.faq details p { color: var(--ink-soft); }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list a { display: inline-flex; min-height: 44px; align-items: center; font: 600 1.125rem/1 var(--font-display); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: var(--s-8) 0 calc(var(--s-6) + 80px); font-size: 0.9375rem; }
.site-footer a { color: var(--on-ink); }
.site-footer a:hover { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-h { font: 600 0.8125rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-ink-soft); margin-bottom: var(--s-4); }
.footer-grid p { margin: 0 0 var(--s-2); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-grid address a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-grid address p { margin: 0; }
.lockup { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; margin-bottom: var(--s-4); }
.footer-ack { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid #3A332B; color: var(--on-ink-soft); }
.footer-ack p { margin: 0; max-width: 60em; }

/* Mobile sticky bar */
.sticky-bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 1px solid var(--line);
}
.sticky-bar .btn { width: 100%; }

@media (max-width: 719px) {
  .header-order { display: none; }
  .header-inner { gap: var(--s-2); }
  .site-nav a { padding: 0 var(--s-2); font-size: 0.9375rem; }
}
@media (min-width: 720px) {
  .sticky-bar { display: none; }
  .site-footer { padding-bottom: var(--s-6); }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: var(--s-7); }
  .two-col { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.site-footer .hours div { display: block; margin-bottom: var(--s-2); }
.site-footer .hours dt::after { content: ""; }

.page-head + .section { padding-top: var(--s-5); }

.banner .photo img { object-position: center 60%; }
.banner { padding-bottom: var(--s-8); }
.section:has(+ .banner) { padding-bottom: var(--s-7); }
@media (max-width: 719px) { .banner .photo, .banner .photo-placeholder { aspect-ratio: 4 / 3 !important; } }

/* Menu: suggestions and drinks */
.dish-suggestion { margin: var(--s-1) 0 0; font-size: 0.875rem; font-weight: 600; color: var(--clay-deep); }
.drink-groups { column-gap: var(--s-7); margin-top: var(--s-5); }
.drink-group { break-inside: avoid; padding-bottom: var(--s-6); }
@media (min-width: 720px) { .drink-groups { columns: 2; } }
@media (min-width: 1000px) { .drink-groups { columns: 3; } }
.drink-group .drinks-h { margin-top: 0; }
.drink-table { width: 100%; border-collapse: collapse; }
.drink-table th, .drink-table td { text-align: left; padding: var(--s-2) 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.drink-table tbody th { font: 600 1rem/1.4 var(--font-display); padding-right: var(--s-3); }
.drink-table td { font: 600 1rem/1.4 var(--font-display); text-align: right; white-space: nowrap; width: 4.5em; }
.drink-table thead th { font: 600 0.75rem/1 var(--font-display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); text-align: right; }
.drink-copy { display: block; font: 400 0.875rem/1.5 var(--font-body); color: var(--ink-soft); margin-top: 2px; }
.menu-foot p { margin: 0 0 var(--s-1); }
.page-head h1:last-child { margin-bottom: 0; }

.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); margin: calc(-1 * var(--s-2)) 0 var(--s-5); color: var(--ink-soft); }
.rating-summary strong { color: var(--ink); font-weight: 600; }
.rating-star { color: var(--yellow); flex: none; }
.rating-summary .text-link { margin-left: var(--s-2); }
