/* Sugar In The Air — shared styles */
:root {
  --ground: #FBF8F4;
  --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: 40px; line-height: 1; 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; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.site-footer .links { display: flex; gap: 12px; align-items: center; }
.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); transition: background .2s, color .2s; }
.icon-link:hover { background: var(--ink); color: var(--ground); }

/* 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: 36px; line-height: 1.15; }
.hero .lead { max-width: 560px; font-size: 20px; }
/* Photo collage: 2 narrow staggered columns (like violetcakes.com). */
.collage { max-width: 1152px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; align-items: stretch; padding-bottom: 72px; }
.collage-col { display: flex; flex-direction: column; gap: 12px; }
.collage-col img:last-child { flex-grow: 1; }  /* last photo stretches a little so both columns end level */
.collage img { width: 100%; height: auto; object-fit: cover; border-radius: 0; }
.collage .tall { aspect-ratio: 2/3; }
.collage .portrait { aspect-ratio: 4/5; }
.collage .landscape { aspect-ratio: 3/2; }
.collage .full { aspect-ratio: 3/4; }
.collage .square { aspect-ratio: 1/1; }
/* Home photos: 2 columns on phones, 3 on computers. The note sits after 4 rows either way. */
.photo-grid{max-width:1152px;margin:0 auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.photo-grid>img{grid-column:span 2;width:100%;aspect-ratio:3/4;height:auto;object-fit:cover;display:block;border-radius:0}
.photo-grid>img:nth-of-type(21){grid-column:2/span 2}
.photo-grid>img:nth-of-type(n+9){order:2}
.photo-grid>.grid-note{order:1;grid-column:1/-1}
@media (min-width:900px){
.photo-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.photo-grid>img{grid-column:span 2}
.photo-grid>img:nth-of-type(n+9){order:0}
.photo-grid>img:nth-of-type(n+13){order:2}
.photo-grid>img:nth-of-type(21){grid-column:span 2}
}
.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; }
.collage.collage-top { padding-bottom: 0; }
.house-rules.house-rules-mid { max-width: 862px; padding: 56px 24px; }
.house-rules p { margin: 0; font-size: 19px; line-height: 1.7; color: var(--body); }
.house-rules .signoff { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--ink); }

/* About */
.about { max-width: 880px; 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; }
.about-portrait { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 0; }
.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: 0; }
.diploma-photo { width: 100%; max-width: 560px; align-self: center; aspect-ratio: 1/1; object-fit: cover; }
.wide-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }
.about .copy p + p { margin-top: 20px; }
.about-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; text-align: center; }
.about h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.1; text-align: center; }
.ig-feed { width: min(1040px, calc(100vw - 48px)); align-self: center; display: flex; flex-direction: column; gap: 16px; }
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.ig-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; text-align: left; }
.ig-head a { font-size: 15px; font-weight: 500; text-underline-offset: 5px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ig-grid a { display: block; }
.ig-grid img { width: 100%; aspect-ratio: 5/6; object-fit: cover; transition: opacity .2s; }
.ig-grid a:hover img { opacity: .85; }
.about .signoff { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.3; }

/* 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: 240px; object-fit: cover; border-radius: 0; }
.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)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; 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-wrap { flex: 0 0 calc((100% - 36px) / 4.25); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.thumb { all: unset; cursor: pointer; display: block; position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 0; }
.thumb-cap { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.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); }
.thumb-ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; background: linear-gradient(to bottom, rgba(20,16,13,0), rgba(20,16,13,.72)); color: #FFFFFF; font-family: var(--serif); font-size: 18px; line-height: 1.25; white-space: pre-line; opacity: 0; transition: opacity .25s; pointer-events: none; }
.thumb:hover .thumb-ov, .thumb:focus-visible .thumb-ov { opacity: 1; }

/* 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: 0; 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; }
.lb-cap { margin: 0; max-width: min(720px, 80vw); text-align: center; color: #FFFFFF; font-family: var(--serif); font-size: 24px; line-height: 1.3; white-space: pre-line; }

/* Order */
.order { max-width: 960px; 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: flex; flex-direction: column; gap: 20px; }
.rules h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; text-align: center; }
.rule { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; line-height: 1.6; color: var(--body); }
.rule p { margin: 0; }
.rule strong { font-weight: 500; color: var(--ink); }
.rule svg { flex: none; margin-top: 3px; }
.order-box { width: 100%; margin-top: 40px; text-align: left; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.order-head { display: flex; flex-direction: column; gap: 6px; }
.order-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field[hidden] { display: none; }
.order-box .field-label { font-family: var(--sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { all: unset; box-sizing: border-box; cursor: pointer; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-size: 15px; line-height: 1.3; border: 1px solid var(--line-strong); background: var(--ground); color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.photo-btn { align-self: flex-start; position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px dashed #B9AA9C; background: var(--ground); cursor: pointer; font-size: 15px; color: var(--ink); }
.photo-btn svg { color: var(--accent); }
.photo-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.photo-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-previews:empty { display: none; }
.photo-previews img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.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; }
#avail, #reel { font-size: 34px; }
.section > div > p.reel-note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; font-style: italic; color: #7C6F65; }
.reel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.reel img { flex: 0 0 auto; width: 220px; aspect-ratio: 3/4; object-fit: cover; display: block; scroll-snap-align: start; }
@media (max-width: 700px) { .reel img { width: 160px; } }
.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; }
.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: 30px; }
  .collage, .collage-col { gap: 6px; }
  .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: 128px; }
  .row-name { font-size: 28px; }
  .chev { width: 32px; height: 32px; }
  .flavours { grid-template-columns: minmax(0,1fr); grid-template-rows: none; grid-auto-flow: row; }
  .thumb-wrap { flex-basis: calc((100% - 12px) / 2.3); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Soft swirl pattern behind the page on larger screens (computers and tablets) */
/* The middle of the page stays plain so the swirls never run behind the writing */
@media (min-width: 900px) {
  body {
    background-image:
      linear-gradient(to right, transparent calc(50% - 660px), var(--ground) calc(50% - 600px), var(--ground) calc(50% + 600px), transparent calc(50% + 660px)),
      url(../images/swirls.svg);
    background-size: 100% 720px, 720px 720px;
    background-repeat: repeat-y, repeat;
  }
  /* Text near the edges (logo, menu links, footer, Menu title, Instagram heading) gets a soft clear patch */
  .site-header, .site-footer .wrap, .menu-page .page-title, .menu-page .lead, .ig-head {
    background: var(--ground);
    box-shadow: 0 0 28px 22px var(--ground);
  }
}

.fl-text { display: flex; flex-direction: column; gap: 4px; }
.fl-desc { font-size: 14px; line-height: 1.5; color: var(--muted); }

.pills.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pill.card-opt { display: flex; flex-direction: column; justify-content: flex-start; border-radius: 10px; padding: 12px 16px; text-align: left; }
.opt-desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.pill[aria-pressed="true"] .opt-desc { color: #E9E1D8; }

html { scroll-behavior: smooth; }
#terms { scroll-margin-top: 24px; }
.terms-link { align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.terms-link:hover { background: var(--ink); color: #FFFFFF; }


.menu-prices { display: flex; flex-direction: column; max-width: 560px; }
.menu-price { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px dotted var(--line-strong); font-size: 16px; line-height: 1.4; }
.menu-price span:last-child { white-space: nowrap; }

.price-drop { display: block; padding: 0; }
.price-drop summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 18px 0; }
.price-drop summary::-webkit-details-marker { display: none; }
.drop-mark { color: var(--accent); display: inline-block; transition: transform .2s; }
.price-drop[open] .drop-mark { transform: rotate(180deg); }
.price-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px dotted var(--line-strong); font-size: 15px; line-height: 1.4; color: var(--body); }
.price-sub:last-child { margin-bottom: 16px; }
.price-sub span:last-child { white-space: nowrap; }

.quick-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#pricing { scroll-margin-top: 24px; }

/* Instagram button (Specials on the Menu page) */
.btn-ig { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink, #221C18); color: var(--ink, #221C18); text-decoration: none; font-size: 15px; font-weight: 500; }
.btn-ig:hover { color: #6E4630; border-color: #6E4630; }

.photo-grid .grid-note { padding: 56px 24px; }
@media (min-width: 900px) { .photo-grid .grid-note { padding: 64px 24px; } }

/* Collection-date calendar (Order page) */
.avail-cal { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-month { font-size: 16px; font-weight: 500; }
.cal-nav { all: unset; box-sizing: border-box; cursor: pointer; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.cal-names span { font-size: 12px; color: var(--muted); text-align: center; }
.cal-day { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 6px; font-size: 14px; color: #B9AA9C; }
button.cal-day { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.cal-day.open { background: #EFE3D6; color: var(--ink); font-weight: 500; }
.cal-day.open:hover { background: #E4D3C1; }
.cal-day.open.chosen { background: var(--ink); color: #FFFFFF; }
.cal-day.open:focus-visible, .cal-nav:focus-visible { outline: 2px solid #6E4630; outline-offset: 2px; }
.cal-empty { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.avail-picked { margin: 0; font-size: 15px; font-weight: 500; }
.special-actions { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 10px !important; }
.special-actions .btn-ig { align-self: auto; }
.special-actions .btn-ig { min-height: 48px; box-sizing: border-box; }

/* Back to top button (Order page) */
.to-top-wrap { width: 100%; margin-top: 48px; display: flex; justify-content: center; }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.to-top:hover { color: #6E4630; border-color: #6E4630; }
