/* Café Capitolino — quiet editorial one-pager
   Palette from brand/direction.md (derived from the gelato display) */

/* Self-hosted, latin-subset woff2 (was Google Fonts: two extra origins, render-blocking CSS) */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-400.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-500.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-500.woff2") format("woff2");
}

:root {
  --cream: #FAF6EE;
  --vanilla: #F0E6D2;
  --pistachio: #AEB98A;
  --gold: #D9B98A;
  --espresso: #5C3A28;
  --chocolate: #3E2A20;
  --blush: #E3A9B8;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; color-scheme: light; }

body {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--chocolate);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blush); color: var(--chocolate); }

/* fixed sketch backdrop — content scrolls over it */
.skyline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  color: var(--espresso);
  opacity: .18;
}
.skyline svg {
  display: block;
  width: 100%;
  height: min(38vh, 400px);
}

main, .site-footer { position: relative; z-index: 1; }

h2 {
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1.6rem;
}

h3 {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--espresso);
}

p + p { margin-top: 1rem; }

a { color: inherit; }

.text-link {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.text-link:hover { border-color: var(--espresso); }

.kicker {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.6rem;
  color: var(--cream);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header__mark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header__nav {
  display: flex;
  gap: 1.6rem;
}
.site-header__nav a {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .92;
  white-space: nowrap;
}
.site-header__nav a:hover { opacity: 1; }
.site-header__nav .num { opacity: .8; letter-spacing: .08em; }

body.past-hero .site-header {
  background: rgba(250, 246, 238, .94);
  color: var(--chocolate);
  box-shadow: 0 1px 0 rgba(92, 58, 40, .12);
  backdrop-filter: blur(8px);
}

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

.hero { height: 320vh; }
body.reduced-motion .hero { height: 100vh; }

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--chocolate);
}

.hero__video,
.hero__poster,
.hero__poster img,
.hero__sticky::before {
  position: absolute;
  inset: 0;
}
.hero__video,
.hero__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The poster is a real responsive image (it is the LCP); the video sits above it and
   only fades in once it actually has a frame, so nothing flashes black meanwhile. */
.hero__video { opacity: 0; transition: opacity .5s ease; }
.hero__video.is-ready { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 20, 14, .5), rgba(30, 20, 14, 0) 30%),
    linear-gradient(to top, rgba(30, 20, 14, .45), rgba(30, 20, 14, 0) 35%),
    rgba(30, 20, 14, .2);
  pointer-events: none;
}

.hero__cap {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
  padding: 0 1.5rem;
}
.hero__cap.is-visible { opacity: 1; }
.hero__cap { text-shadow: 0 1px 26px rgba(30, 20, 14, .55), 0 1px 4px rgba(30, 20, 14, .3); }

.wordmark { font-weight: 600; }

.hero__pool {
  padding: 2.6rem 3.4rem 3rem;
  background: radial-gradient(closest-side, rgba(30, 20, 14, .48), rgba(30, 20, 14, 0));
}
.wordmark__name {
  display: block;
  font-size: clamp(2.1rem, 6.5vw, 4.4rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-indent: .2em; /* balances the trailing letter-spacing so the line centers true */
  line-height: 1.15;
}
.wordmark__place {
  display: block;
  margin-top: .9rem;
  font-size: clamp(.85rem, 1.8vw, 1.05rem);
  letter-spacing: .58em;
  text-indent: .58em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
}

.hero__line {
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin-top: 1.6rem;
  opacity: .95;
}
.hero__line--mid {
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.45;
  text-shadow: 0 1px 24px rgba(30, 20, 14, .35);
}

.hero__cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: .62rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  opacity: .8;
  display: grid;
  justify-items: center;
  gap: .7rem;
}
.hero__cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, transparent, var(--cream));
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50% { transform: translateY(6px); opacity: 1; }
}
body.reduced-motion .hero__cue span { animation: none; }

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

.section { padding: clamp(4.5rem, 10vw, 7.5rem) 1.6rem; }
.section__inner { max-width: 1020px; margin: 0 auto; }

#story p:not(.facts) { max-width: 34em; }

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.story-photo { margin: 0; }
.story-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-band { margin: 0; }
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(260px, 48vh, 460px);
  object-fit: cover;
}
.facts {
  margin-top: 2.2rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--espresso);
}

/* ---------- gelato band ---------- */

.gelato {
  background: var(--vanilla);
  padding: clamp(4.5rem, 10vw, 7rem) 1.6rem;
  text-align: left;
}
.gelato .section__inner { max-width: 1020px; margin: 0 auto; }
.gelato-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.gelato-photo { margin: 0; }
.gelato-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.gelato__note { font-style: italic; color: var(--espresso); }
.gelato__sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.8rem 0 1.8rem;
  max-width: 640px;
}
.gelato__size {
  border-top: 1px solid var(--gold);
  padding-top: 1.1rem;
}
.gelato__label {
  display: block;
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: .4rem;
}
.gelato__price {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
}
.gelato__extras {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--espresso);
}

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

.menu-acc {
  margin-top: 2.4rem;
  max-width: 780px;
  border-bottom: 1px solid rgba(92, 58, 40, .2);
}
.menu-group { border-top: 1px solid rgba(92, 58, 40, .2); }

.menu-group__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--espresso);
}
.menu-group__head:hover { color: var(--chocolate); }

.menu-group__sign {
  position: relative;
  width: 13px;
  height: 13px;
  flex: none;
}
.menu-group__sign::before,
.menu-group__sign::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform .45s ease, opacity .45s ease;
}
.menu-group__sign::before { inset: 6px 0; height: 1px; }
.menu-group__sign::after { inset: 0 6px; width: 1px; }
.menu-group.is-open .menu-group__sign::after { transform: rotate(90deg); opacity: 0; }

.menu-group__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.25, .7, .2, 1);
}
.menu-group.is-open .menu-group__body { grid-template-rows: 1fr; }
.menu-group__list { overflow: hidden; }
.menu-group__list ul {
  list-style: none;
  padding: .3rem 0 1.6rem;
}
.menu-group__list[data-cols="2"] ul { column-count: 2; column-gap: 4rem; }
body.reduced-motion .menu-group__body { transition: none; }
.menu-group li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding: .32rem 0;
  font-size: 1.15rem;
  break-inside: avoid;
}
.menu-group li i {
  flex: 1;
  border-bottom: 1px dotted rgba(92, 58, 40, .3);
  transform: translateY(-.25em);
}
.menu-group li b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.menu-note {
  margin-top: 3rem;
  font-style: italic;
  color: var(--espresso);
}

/* ---------- visit ---------- */

.section--visit { background: transparent; }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4.5rem;
  margin-top: 2.5rem;
}
.hours { border-collapse: collapse; width: 100%; max-width: 22rem; }
.hours td { padding: .45rem 0; vertical-align: baseline; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr + tr td { border-top: 1px dotted rgba(92, 58, 40, .25); }
.hours-note {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--espresso);
}

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

.site-footer {
  text-align: center;
  padding: 4.5rem 1.6rem 3.5rem;
  border-top: 1px solid rgba(92, 58, 40, .15);
}
.site-footer__logo {
  width: 110px;
  height: auto;
}
.site-footer__mark {
  margin-top: 1.2rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-size: 1rem;
}
.site-footer__mark span {
  display: block;
  font-size: .68rem;
  letter-spacing: .5em;
  color: var(--espresso);
  margin-top: .4rem;
}
.site-footer__meta {
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--espresso);
}
.site-footer__meta a { text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ---------- reveals ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
body.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }

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

@media (max-width: 720px) {
  body { font-size: 1.12rem; }
  .site-header { padding: 1rem 1.1rem; }
  .site-header__mark { font-size: .78rem; letter-spacing: .12em; white-space: nowrap; }
  .site-header__nav { gap: .7rem; }
  .site-header__nav a { font-size: .6rem; letter-spacing: .12em; }
  .story-grid, .gelato-grid { grid-template-columns: 1fr; }
  .hero__pool { padding: 2rem 1.6rem 2.4rem; }
  .visit-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .menu-group__list[data-cols="2"] ul { column-count: 1; }
  .gelato__sizes { grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
  .hero { height: 280vh; }
}

@media (max-width: 480px) {
  .mark-cafe { display: none; }
  .site-header__nav .plat { display: none; }
}

/* ---------- launch polish (2026-09-18) ---------- */

/* Screen-reader-only text: table captions, price currency, skip link at rest */
.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;
}

/* Keyboard focus: gold ring, legible on the dark hero and the cream page alike */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header a:focus-visible { outline-color: var(--cream); }
body.past-hero .site-header a:focus-visible { outline-color: var(--espresso); }

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 20;
  padding: .6rem 1rem;
  background: var(--cream);
  color: var(--chocolate);
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.menu-cur {
  margin: -1rem 0 1.6rem;
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--espresso);
}

.site-footer__addr {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--espresso);
}

/* ---------- 404 ---------- */
.kicker--center { justify-content: center; }
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 6rem 1.5rem 4rem; position: relative; z-index: 1; }
.nf h1 { font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; }
.nf p { max-width: 28rem; }
.nf .text-link { display: inline-block; margin-top: 2rem; }

.site-footer__credit {
  margin-top: 1.1rem;
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso);
  opacity: .75;
}
.site-footer__credit a { text-decoration: none; border-bottom: 1px solid var(--gold); }
.site-footer__credit a:hover { border-color: var(--espresso); }
