@font-face { font-family: "Bagel Fat One"; src: url("assets/fonts/bagel-fat-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; src: url("assets/fonts/instrument-sans.woff2") format("woff2"); font-display: swap; }

:root {
  /* The page is plain: ink on white, one soft neutral for panels. */
  --paper: #FFFFFF;
  --panel: #F4F3EE;
  --ink: #15120E;
  --muted: #5F5B52;
  --line: #E2E0D8;

  /* Brand colours are accents only: status, today's hours, hover states. */
  --lemon: #FFE11A;
  --pomodoro: #F4491C;
  --rosa: #FFA6DE;
  --menta: #8FEDB4;
  --cobalto: #2A3FF0;
  --open: #1FB35C;

  --logo: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --accent: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 3.5vw, 56px);
  --space: clamp(72px, 10vw, 152px);
  --bar-h: 60px;
  --radius: 14px;
  --spring: cubic-bezier(.3, 1.7, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 8px; }

.wrap { max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

/* ── type ────────────────────────────── */
.display, .title { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
.display { font-size: clamp(46px, 6.6vw, 104px); line-height: 1; }
.title { font-size: clamp(34px, 4.2vw, 64px); line-height: 1.05; }
.display em, .title em { font: italic 400 1.1em/.9 var(--accent); letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; max-width: 34em; }

/* ── bar ─────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 50; height: var(--bar-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding-inline: var(--gutter); border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 15px;
}
.bar__links { display: flex; gap: clamp(16px, 2vw, 30px); }
.bar a { text-decoration: none; }
.bar__links a { color: var(--muted); transition: color .15s; }
.bar__links a:hover { color: var(--ink); }
.bar__home { font: 400 24px/1 var(--logo); letter-spacing: -.01em; padding-block: 10px; }
.bar__order { justify-self: end; font-size: 14px; padding: .62em 1.05em; }

/* Open / closed pill, in the footer */
.status {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  padding: 6px 13px 6px 11px; border: 1px solid rgb(255 255 255 / .28); border-radius: 99px;
  font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.status[hidden] { display: none; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--pomodoro); flex: none; }
.is-open .dot { background: var(--open); }
.is-open .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--open); animation: ping 2.2s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }

/* ── buttons ─────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-block; padding: .72em 1.2em; border: 1px solid var(--ink); border-radius: 99px;
  font-size: 15px; font-weight: 500; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
@media (hover: hover) { .pill:hover { background: var(--lemon); border-color: var(--lemon); color: var(--ink); } }
.pill--ink { background: var(--ink); color: var(--paper); }

/* ── hero ────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 88px); align-items: end;
  padding-top: clamp(28px, 3.5vw, 56px);
}
.hero__text { display: flex; flex-direction: column; gap: clamp(20px, 2vw, 30px); padding-bottom: clamp(8px, 2vw, 32px); }
.hero__media { position: relative; }
.hero__photo { width: 100%; max-height: calc(100svh - var(--bar-h) - 72px); object-fit: cover; object-position: 50% 70%; border-radius: var(--radius); }

/* The one loud character on the page, kept small and tucked on the photo's corner. */
.lemonhead {
  position: absolute; left: clamp(-56px, -3.5vw, -20px); bottom: clamp(-20px, -1.5vw, -12px); width: clamp(104px, 11.5vw, 172px);
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer; font: inherit;
  transition: transform .45s var(--spring);
}
@media (hover: hover) { .lemonhead:hover { transform: rotate(-4deg) scale(1.05); } }
.lemonhead:active { transform: scale(.95, .9); transition-duration: .1s; }
.lemonhead svg { width: 100%; height: auto; overflow: visible; }
.lemonhead__says {
  position: absolute; top: -6%; left: 66%; rotate: 5deg;
  padding: .36em .7em .4em; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 99px 99px 99px 6px;
  font: 400 clamp(14px, 1.25vw, 19px)/1 var(--logo); white-space: nowrap;
  transform-origin: 0 100%;
}
.lemonhead__says.pop { animation: pop .45s var(--spring); }
@keyframes pop { from { transform: scale(.3); } }

/* ── story ───────────────────────────── */
.story {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 88px); align-items: center;
  padding-top: var(--space);
}
.story__text { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); }
.story__text .title { margin-bottom: clamp(8px, 1.2vw, 16px); max-width: 15em; }
.story__art { background: var(--panel); border-radius: var(--radius); overflow: hidden; }
.vesuvio { width: 100%; height: auto; }

/* ── food ────────────────────────────── */
.food { padding-top: var(--space); }
.food__head { display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); }
.food__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 2.2vw, 36px) clamp(14px, 1.6vw, 24px); margin-top: clamp(28px, 3.5vw, 52px); }
.card__panel {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--panel); transition: background-color .3s;
}
.card__panel img { position: absolute; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card__panel .fill { inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The tarts run off the photo's sides, so they fill the panel edge to edge. */
.card__panel .fill--low { object-position: 50% 85%; }
.card__panel .float { inset: 0; margin: auto; max-width: 84%; max-height: 86%; }
/* Zoomed in so the panel crops the straw and the bucket's base, keeping both glasses whole. */
.card__panel--drinks img { top: -23%; width: auto; transform-origin: 50% 50%; }
.card__panel--drinks img { height: 169%; left: 50%; translate: -50% 0; }
.card__name { margin-top: 16px; font-size: clamp(21px, 1.7vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.card__note { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
@media (hover: hover) {
  .card:hover .card__panel { background: var(--tint); }
  .card:hover .card__panel img { transform: scale(1.04); }
}

/* ── showcase: coffee + cakes ────────── */
.showcase { padding-top: var(--space); }
.showcase__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px clamp(32px, 5vw, 88px); align-items: center; }
.showcase__side { display: flex; flex-direction: column; gap: 18px; }
.showcase__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(28px, 3.5vw, 52px); }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; display: grid; place-items: center; padding: 9%; background: var(--panel); border-radius: var(--radius); transition: background-color .3s; }
.tile img { width: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
/* Upright shots (a glass, a cup) fit by height instead of width. */
.tile--tall img { width: auto; height: 100%; min-height: 0; object-fit: contain; }
@media (hover: hover) {
  .tile:hover { background: var(--tint); }
  .tile:hover img { transform: scale(1.04); }
}

/* ── find ────────────────────────────── */
.find {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(36px, 5vw, 88px); align-items: start;
  padding-block: var(--space);
}
.find__info { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); }
.find__info .title { max-width: 12em; }
.hours { width: 100%; border-collapse: collapse; font-size: 17px; }
.hours caption { text-align: left; font-size: clamp(21px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.02em; padding-bottom: 14px; }
.hours th { font-weight: 400; text-align: left; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: .68em 0; }
.hours tr { border-top: 1px solid var(--line); }
.hours tr:last-child { border-bottom: 1px solid var(--line); }
.hours tr.is-today th, .hours tr.is-today td { background: var(--lemon); color: var(--ink); font-weight: 600; }
.hours tr.is-today th { padding-left: .7em; border-radius: 8px 0 0 8px; }
.hours tr.is-today td { padding-right: .7em; border-radius: 0 8px 8px 0; }

/* ── foot ────────────────────────────── */
.foot { background: var(--ink); color: var(--paper); padding: clamp(28px, 3vw, 44px) var(--gutter) var(--gutter); overflow: clip; font-size: 15px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.foot__ciao { font: italic 400 clamp(26px, 2.4vw, 36px)/1 var(--accent); margin-right: auto; }
.foot a { display: inline-block; padding-block: 10px; margin-block: -10px; text-underline-offset: 3px; }
.foot__mark {
  margin-top: clamp(32px, 6vw, 96px); color: var(--lemon); white-space: nowrap; text-align: center;
  font: 400 calc((100vw - 2 * var(--gutter)) / 4.75)/.86 var(--logo); letter-spacing: -.02em;
}
.slice { display: inline-block; width: .535em; height: .535em; margin-left: .02em; vertical-align: -.004em; transform: rotate(var(--spin, 0deg)); }

/* ── cake order ──────────────────────── */
html:has(.order[open]) { overflow: hidden; }
.order {
  width: min(640px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: var(--radius); background: var(--paper); color: var(--ink);
  overscroll-behavior: contain;
}
.order::backdrop { background: rgb(21 18 14 / .5); }
.order__top {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 10px 10px 0;
  background: linear-gradient(var(--paper) 80%, rgb(255 255 255 / 0));
}
.order__close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%;
  background: var(--panel); color: inherit; cursor: pointer;
}
.order__form, .order__done { display: flex; flex-direction: column; gap: 22px; padding: 0 clamp(24px, 4vw, 36px) clamp(24px, 4vw, 36px); }
.order__done { min-height: 320px; align-items: flex-start; justify-content: center; }
.order__done[hidden], .order__form[hidden] { display: none; }
.order__head { display: flex; flex-direction: column; gap: 10px; }
.order__title:focus { outline: none; }
.order__title { font-size: clamp(30px, 4vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.order__title em { font: italic 400 1.1em/.9 var(--accent); letter-spacing: -.02em; }
.order__lead { color: var(--muted); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.order__done:focus { outline: none; }
.order__proto { align-self: flex-start; padding: 6px 11px; border-radius: 8px; background: var(--lemon); font-size: 14px; font-weight: 500; line-height: 1.35; }
.order__preview { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.order__preview[hidden] { display: none; }
.order__preview pre { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--panel); font: 400 14px/1.5 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.order__grazie { font: 400 clamp(44px, 8vw, 64px)/1 var(--logo); }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; align-items: start; }
.field > label, .field > legend { padding: 0; font-size: 15px; font-weight: 500; }
.field > legend { margin-bottom: 7px; }
.field small { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
.field input:not([type="radio"], [type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #C9C6BB; border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 400 16px/1.35 var(--sans); -webkit-appearance: none; appearance: none;
}
.field input[type="date"]::-webkit-date-and-time-value { min-height: 1.35em; text-align: left; }
.field select {
  padding-right: 38px; cursor: pointer;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315120E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px;
}
.field select:invalid { color: var(--muted); }
.field textarea { resize: vertical; }
.field textarea::placeholder { color: var(--muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); border-radius: 10px; }
.field [aria-invalid="true"] { border-color: #C2300A; }
.field__error { color: #B02A07; font-size: 14px; line-height: 1.35; }
.field__error[hidden] { display: none; }

.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.extras { grid-template-columns: repeat(3, 1fr); }
.size { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.size input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size span {
  display: grid; place-items: center; height: 100%; min-height: 48px; padding: 6px 8px; border: 1px solid #C9C6BB; border-radius: 10px;
  font-size: 15px; font-weight: 500; line-height: 1.15; text-align: center; transition: background-color .15s, border-color .15s, color .15s;
}
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .size:hover input:not(:checked) + span { border-color: var(--ink); } }

.order__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order__check:empty { display: none; }
.order__notice { padding: 12px 14px; border-radius: 10px; background: #FDEBE5; color: #7E1F05; font-size: 15px; line-height: 1.4; }
.order__notice[hidden] { display: none; }
.order__notice a { color: inherit; }
.order__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.order__submit { min-height: 46px; padding-inline: 1.5em; font: 500 15px/1.1 var(--sans); cursor: pointer; }
.order__submit:disabled { opacity: .5; cursor: default; }
.order__small { flex: 1 1 200px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.order__done .pill { font-family: inherit; background: none; cursor: pointer; }

/* ── small screens ───────────────────── */
@media (max-width: 960px) {
  .food__grid { grid-template-columns: repeat(2, 1fr); }
  .food__grid .card:last-child { grid-column: 1 / -1; }
  .food__grid .card:last-child .card__panel { aspect-ratio: 8 / 3; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --bar-h: 56px; }
  .bar { grid-template-columns: auto 1fr; }
  .bar__links { display: none; }
  .bar__home { font-size: 22px; }

  .hero, .story, .showcase__head, .find { grid-template-columns: 1fr; }
  .hero__photo { aspect-ratio: 1; max-height: none; }
  .lemonhead { left: 12px; bottom: -18px; width: 112px; }
  .story__art { order: 1; }

  .order { width: 100%; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
  .sizes, .extras { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .food__grid { grid-template-columns: 1fr; }
  .card__panel { aspect-ratio: 4 / 3; }
  .food__grid .card:last-child .card__panel { aspect-ratio: 4 / 3; }
  .showcase__row { grid-template-columns: 1fr 1fr; }
  .showcase__row--lead .tile:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; padding: 5%; }
  .showcase__row--lead .tile:first-child img { width: auto; height: 100%; max-height: 100%; min-height: 0; }
}

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