/* Sugar In The Air — shared styles */
:root {
  --ground: #F7F3EE;
  --card: #FFFDFA;
  --ink: #221C18;
  --body: #3F3631;
  --muted: #5E534B;
  --accent: #6E4630;
  --line: #E3DBD2;
  --line-strong: #D9CFC4;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 400; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.logo { font-family: var(--serif); font-size: 28px; text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; letter-spacing: .04em; }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--ink); }
.btn-dark { background: var(--ink); color: var(--ground); }
.btn-dark:hover { color: var(--ground); background: #3a302a; }
.btn-light { background: transparent; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.page-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 80px; line-height: 1; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }

.card { border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 2px 6px rgba(34,28,24,.05), 0 8px 24px rgba(34,28,24,.06); }

/* Home */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 96px; line-height: 1; }
.hero .lead { max-width: 520px; }
.collage { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: 220px; gap: 12px; padding-bottom: 72px; }
.collage .tall { grid-row: span 2; }
.collage .wide { grid-column: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.house-rules { max-width: 760px; margin: 0 auto; padding: 24px 24px 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.house-rules h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 48px; line-height: 1.1; }
.house-rules p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--body); }

/* About */
.about { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; display: flex; flex-direction: column; gap: 40px; }
.about .page-title { font-size: 72px; text-align: center; }
.about p { margin: 0; font-size: 18px; line-height: 1.75; color: #2E2622; }
.about figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.about figcaption { font-size: 13px; color: var(--muted); font-style: italic; }
.portrait { width: 320px; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.pair img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.wide-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }

/* Menu */
.menu-page { padding-top: 40px; padding-bottom: 96px; }
.menu-page .lead { max-width: 520px; margin: 12px 0 40px; font-size: 17px; }
.menu-list { display: flex; flex-direction: column; gap: 16px; }
.menu-item { padding: 0 24px; overflow: hidden; }
.row-btn { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: grid; grid-template-columns: 180px minmax(0,1fr) 40px; gap: 32px; align-items: center; padding: 24px 0; }
.row-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.row-cover { width: 180px; height: 180px; object-fit: cover; border-radius: 4px; }
.row-text { display: flex; flex-direction: column; gap: 10px; }
.row-name { font-family: var(--serif); font-size: 44px; line-height: 1.05; }
.row-desc { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.chev { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; }
.chev svg { transition: transform .25s; }
.row-btn[aria-expanded="true"] .chev svg { transform: rotate(180deg); }
.panel { border-top: 1px solid #EDE5DC; padding: 24px 0 28px; display: flex; flex-direction: column; gap: 24px; }
.panel[hidden] { display: none; }
.panel-block { display: flex; flex-direction: column; gap: 14px; }
.flavours { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 40px; margin: 0; padding: 0; list-style: none; }
.flavours li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; line-height: 1.4; padding-bottom: 10px; border-bottom: 1px dotted var(--line-strong); }
.flavours .num { font-family: var(--serif); font-size: 18px; color: var(--accent); min-width: 22px; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.thumb { all: unset; cursor: pointer; flex: 0 0 calc((100% - 36px) / 4.25); scroll-snap-align: start; aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }
.thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20,16,13,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.lightbox[hidden] { display: none; }
.lb-row { display: flex; align-items: center; gap: 16px; max-width: 100%; }
.lb-btn { flex: none; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-close { position: absolute; top: 16px; right: 16px; }
.lb-frame { overflow: hidden; border-radius: 4px; max-width: min(720px, 72vw); max-height: 78vh; display: flex; }
.lb-img { max-width: min(720px, 72vw); max-height: 78vh; object-fit: contain; cursor: zoom-in; touch-action: pinch-zoom; transition: transform .25s ease; }
.lb-img.zoomed { cursor: zoom-out; transform: scale(2.2); }
.lb-caption { margin: 0; color: #E9E1D8; font-size: 14px; letter-spacing: .06em; }

/* Order */
.order { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.order .lead { max-width: 480px; }
.rules { width: 100%; margin-top: 24px; text-align: left; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
.rule { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--body); }
.rule svg { flex: none; margin-top: 2px; }
.order-box { width: 100%; margin-top: 16px; text-align: left; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.order-box label { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.order-box p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.order-box textarea { width: 100%; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--ground); border: 1px solid var(--line-strong); border-radius: 8px; padding: 14px 16px; resize: vertical; }
.order-box textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.small-note { margin: 0; font-size: 13px; color: var(--muted); }
.section { width: 100%; margin-top: 56px; text-align: left; display: flex; flex-direction: column; gap: 16px; }
.section h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; }
.section > div > p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.price-list { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 8px 24px; }
.price-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 18px 0; }
.price-row + .price-row { border-top: 1px solid #EDE5DC; }
.price-row .name { font-family: var(--serif); font-size: 26px; line-height: 1.1; display: block; }
.price-row .note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.price-row .price { font-size: 16px; font-weight: 500; white-space: nowrap; }
.calendar-slot { border: 1px dashed #B9AA9C; border-radius: 8px; padding: 24px; background: var(--card); min-height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 15px; }
.terms { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 24px; }
.terms details + details { border-top: 1px solid #EDE5DC; }
.terms summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 500; }
.terms details p { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--body); }

/* Phones */
@media (max-width: 700px) {
  .page-title, .about .page-title { font-size: 56px; }
  .hero h1 { font-size: 56px; }
  .collage { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: 150px; gap: 8px; }
  .collage .wide { grid-column: span 1; }
  .about p { font-size: 17px; }
  .pair { gap: 8px; }
  .row-btn { grid-template-columns: 96px minmax(0,1fr) 32px; gap: 16px; padding: 16px 0; }
  .row-cover { width: 96px; height: 96px; }
  .row-name { font-size: 28px; }
  .chev { width: 32px; height: 32px; }
  .flavours { grid-template-columns: minmax(0,1fr); }
  .thumb { flex-basis: calc((100% - 12px) / 2.3); }
}
