/* ==========================================================================
   Bliss Café — site stylesheet
   Warm, typographic, photo-optional. One file, no build step, no trackers.
   Palette is Bliss's own (cream / sun / clay / leaf) — deliberately distinct
   from the Quiet Axis house system (navy / gold / Cormorant).
   ========================================================================== */

:root {
  --cream:      #FBF6EC;
  --cream-2:    #F5EDDD;
  --paper:      #FFFFFF;
  --ink:        #241F1A;
  --ink-2:      #4A423A;
  --muted:      #6B6155;
  --sun:        #E0A020;
  --sun-deep:   #A9740F;
  --sun-wash:   #FBEFD4;
  --clay:       #C4623C;
  --leaf:       #45654A;
  --leaf-wash:  #EAF0E7;
  --line:       rgba(36, 31, 26, 0.14);
  --line-soft:  rgba(36, 31, 26, 0.07);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gap: 24px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36, 31, 26, .04), 0 10px 30px rgba(36, 31, 26, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sun-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  z-index: 200;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }

/* ---------------------------------------------------------------- type --- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
}

h1 { font-size: clamp(2.6rem, 8.2vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

p { color: var(--ink-2); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun-deep);
}

.lede { font-size: clamp(1.05rem, 2.1vw, 1.28rem); color: var(--ink-2); max-width: 62ch; }

.rule { height: 1px; background: var(--line); border: 0; }

/* -------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 236, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand { text-decoration: none; display: flex; flex-direction: column; gap: 1px; margin-right: auto; }
.brand .mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.brand .mark::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--sun);
  vertical-align: 0.32em;
}
.brand .sub {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--sun); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.header-cta:hover { background: #000; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}
.menu-toggle span { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; }
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* full-height opaque mobile panel — never translucent, never short */
.mobile-panel {
  position: fixed;
  inset: 74px 0 0 0;
  background: var(--cream);
  border-top: 1px solid var(--line-soft);
  padding: 28px var(--gap) 40px;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  z-index: 99;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-panel .panel-foot { margin-top: auto; padding-top: 24px; font-size: 0.92rem; color: var(--muted); }
.mobile-panel .panel-foot a { font-family: var(--sans); font-size: 0.95rem; border: 0; padding: 4px 0; }
body.panel-open { overflow: hidden; }

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  padding: clamp(52px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(760px 420px at 78% 8%, rgba(224, 160, 32, 0.20), transparent 68%),
    radial-gradient(560px 340px at 4% 92%, rgba(196, 98, 60, 0.12), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero-grid { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr); align-items: stretch; gap: 56px; }
  .hero-facts { margin-top: 0; height: 100%; grid-auto-rows: 1fr; }
}
.hero h1 { max-width: 19ch; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero .lede { margin-top: 18px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status.is-open .dot { background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-wash); }
.status.is-closed .dot { background: var(--clay); box-shadow: 0 0 0 4px rgba(196, 98, 60, .12); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(36, 31, 26, .03); }

.hero-facts {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 34px;
}
/* must come after the base rule: the card is a right-hand column from 900px up */
@media (min-width: 900px) { .hero-facts { margin-top: 0; } }
.fact { background: var(--paper); padding: 18px 20px; }
.fact dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin-top: 6px; font-size: 0.98rem; color: var(--ink); }
.fact dd a { text-decoration: none; border-bottom: 1px solid var(--line); }
.fact dd a:hover { border-bottom-color: var(--sun); }

/* ------------------------------------------------------------ sections --- */

section { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 14px; }

.band { background: var(--paper); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.cols { display: grid; gap: 30px; }
@media (min-width: 760px) { .cols-2 { grid-template-columns: 1.05fr 0.95fr; } .cols-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.22rem; }
.card p { margin-top: 10px; font-size: 0.96rem; }

.note {
  background: var(--sun-wash);
  border: 1px solid rgba(224, 160, 32, .3);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.note strong { color: var(--ink); }

.hours-list { list-style: none; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.97rem;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .closed { color: var(--muted); }
.hours-list .day { color: var(--ink); }
.hours-list li.today { font-weight: 600; }
.hours-list li.today .day::after {
  content: "today";
  margin-left: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-deep);
  vertical-align: 0.15em;
}

/* -------------------------------------------------------- menu at a glance */

.glance { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.glance a {
  background: var(--paper);
  text-decoration: none;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}
.glance a:hover { background: var(--cream); }
.glance .name { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.glance .count { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
@media (min-width: 700px) { .glance { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------- the menu --- */

.menu-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.menu-jump a {
  flex: none;
  text-decoration: none;
  font-size: 0.84rem;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--paper);
  white-space: nowrap;
}
.menu-jump a:hover { border-color: var(--ink); color: var(--ink); }

.menu-cat { padding: 34px 0 6px; scroll-margin-top: 96px; border-top: 1px solid var(--line-soft); }
.menu-cat:first-of-type { border-top: 0; }
.menu-cat > header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.menu-cat h3 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.tag-time { background: var(--sun-wash); border-color: rgba(224, 160, 32, .34); color: var(--sun-deep); }
.tag-veg { background: var(--leaf-wash); border-color: rgba(69, 101, 74, .3); color: var(--leaf); }

.items { list-style: none; }
.items li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.items li:last-child { border-bottom: 0; }
.item-name { font-size: 1.02rem; color: var(--ink); }
.item-name .flag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--leaf);
  border: 1px solid rgba(69, 101, 74, .3);
  background: var(--leaf-wash);
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: 0.12em;
}
.item-price { font-size: 1.02rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-desc { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); max-width: 68ch; }

.menu-notes { margin-top: 12px; }
.menu-notes ul { list-style: none; }
.menu-notes li { padding: 9px 0 9px 20px; position: relative; font-size: 0.93rem; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.menu-notes li::before { content: ""; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.menu-notes li:last-child { border-bottom: 0; }

/* -------------------------------------------------------- photo carousel --- */

.photo-carousel { margin-top: 24px; }
.photo-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  outline: none;
}
.photo-viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(224, 160, 32, .42);
}
.dish-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dish-strip::-webkit-scrollbar { display: none; }
.dish-strip figure {
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--cream-2);
}
.dish-strip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}
.photo-carousel-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.photo-carousel.is-enhanced .photo-carousel-controls { display: flex; }
.carousel-control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
  font: 1.15rem/1 var(--sans);
  cursor: pointer;
}
.carousel-control:hover { border-color: var(--sun-deep); background: var(--sun-wash); }
.carousel-control:focus-visible { outline: 3px solid rgba(224, 160, 32, .42); outline-offset: 2px; }
.carousel-control:disabled { opacity: .38; cursor: default; }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; }
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
}
.carousel-dot[aria-selected="true"] { background: var(--sun-deep); transform: scale(1.2); }
.carousel-dot:focus-visible { outline: 3px solid rgba(224, 160, 32, .42); outline-offset: 3px; }
.carousel-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
}
.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;
}
@media (min-width: 620px) {
  .dish-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
  }
  .dish-strip figure {
    flex: auto;
    aspect-ratio: 3 / 4;
    scroll-snap-align: none;
    border-radius: var(--radius);
    border: 1px solid var(--line-soft);
  }
  .photo-carousel-controls, .carousel-hint { display: none !important; }
}
@media (min-width: 900px) {
  .dish-strip { grid-template-columns: repeat(5, 1fr); gap: 14px; }
}

/* --------------------------------------------------------------- forms --- */

.form-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }

label { display: block; font-size: 0.83rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink); margin-bottom: 6px; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.79rem; margin-top: 4px; }

input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--sun-deep); outline: none; box-shadow: 0 0 0 3px rgba(224, 160, 32, .18); }
textarea { min-height: 108px; resize: vertical; }

.form-status {
  display: none;
  margin-top: 18px;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--paper);
}
.form-status.show { display: block; }
.form-status.ok { background: var(--leaf-wash); border-color: rgba(69, 101, 74, .3); }
.form-status.off { background: var(--sun-wash); border-color: rgba(224, 160, 32, .34); }

.policy { list-style: none; }
.policy li { padding: 10px 0 10px 20px; position: relative; font-size: 0.94rem; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.policy li::before { content: "→"; position: absolute; left: 0; color: var(--sun-deep); font-size: 0.85rem; }
.policy li:last-child { border-bottom: 0; }

/* -------------------------------------------------------------- footer --- */

.site-footer { background: var(--ink); color: var(--cream); padding: clamp(44px, 6vw, 68px) 0 34px; }
.site-footer h4 { font-family: var(--serif); font-size: 1.25rem; color: var(--cream); }
.site-footer p, .site-footer li, .site-footer a { color: rgba(251, 246, 236, .74); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.footer-list { list-style: none; margin-top: 10px; }
.footer-list li { padding: 5px 0; font-size: 0.93rem; }
.footer-brand .mark { font-family: var(--serif); font-size: 1.7rem; color: var(--cream); }
/* The café's own mark, cut out of the POS bill logo (black artwork -> white,
   paper -> transparent). Displayed at 72px because that is the size at which
   this raster actually reads; see REVIEW-NOTES.md for the vector request. */
.footer-logo { height: 72px; width: auto; margin-bottom: 16px; }
.footer-brand .mark::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--sun); vertical-align: 0.32em; }
.footer-brand p { margin-top: 12px; max-width: 34ch; font-size: 0.93rem; }

.footer-base {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(251, 246, 236, .14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(251, 246, 236, .5);
}
.credit { font-size: 0.78rem; color: rgba(251, 246, 236, .42); }
.credit a { color: rgba(251, 246, 236, .62); }

/* ------------------------------------------------------------ responsive --- */

@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { min-height: 66px; }
  .mobile-panel { inset: 66px 0 0 0; }
  .items li { grid-template-columns: 1fr; }
  .item-price { color: var(--ink); }
  /* The sticky header remains over the viewport at document bottom; keep the
     first footer content below it on narrow screens. */
  .site-footer { padding-top: 86px; padding-bottom: 0; }
}

@media (min-width: 821px) { .mobile-panel { display: none !important; } }

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

/* ------------------------------------------------------------ photography ---
   Five approved dish photos now live in the home-page carousel. Mobile uses a
   fixed portrait frame with object-fit: cover so mixed source ratios cannot
   stretch the images; desktop expands the same photos into a five-column grid.
   --------------------------------------------------------------------------- */
.has-photo {
  background-image:
    linear-gradient(180deg, rgba(36, 31, 26, .52) 0%, rgba(36, 31, 26, .30) 45%, rgba(36, 31, 26, .62) 100%),
    var(--photo);
  background-size: cover;
  background-position: center;
}
.has-photo h1, .has-photo h2, .has-photo p, .has-photo .eyebrow, .has-photo .lede { color: var(--cream); }
.has-photo .eyebrow { color: var(--sun); }
