@font-face {
  font-family: "Formiga";
  src: url("assets/fonts/Formiga-Black.otf") format("opentype");
  font-weight: 900;
  font-display: swap;
}
/* Bold is used only for prices — the brand guide names Formiga Black as the
   header face, so Black stays the default everywhere headings appear. */
@font-face {
  font-family: "Formiga";
  src: url("assets/fonts/Formiga-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --cream: #f7f6e2;
  --yellow: #f2f0b1;
  --blue: #10069f;
  --ink: #1c1c1c;

  --display: "Formiga", sans-serif;
  --sans: "Manrope", -apple-system, sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --section: clamp(96px, 15vw, 220px);
  --wrap: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--blue);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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


/* ── Type primitives ───────────────────────────── */
.meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

.display {
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6rem);
  text-wrap: balance;
}

/* Big airy statement — light Manrope, not heavy display */
.statement {
  font-weight: 200;
  font-size: clamp(1.5rem, 3.3vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
}
/* Formiga's caps are ~13% taller than Manrope's, so baseline-aligning them
   leaves the emphasis top-heavy. Nudge down to centre the two cap-heights
   on each other instead. See the ink metrics in the comment below:
   Manrope caps ink -72..0, Formiga caps ink -78.9..+2.3 (per 100px). */
.statement em {
  font-style: normal;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0;
  position: relative;
  top: 0.045em;
}

.lede {
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
  opacity: 0.78;
}

/* ── Link / button ─────────────────────────────── */
.link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.25s ease, opacity 0.25s ease;
}
.link:hover { gap: 18px; }
.link.on-dark { color: var(--yellow); }

/* inline text link inside body copy */
.ulink { border-bottom: 1px solid rgba(16,6,159,0.35); padding-bottom: 2px; transition: border-color 0.2s ease; }
.ulink:hover { border-bottom-color: var(--blue); }

/* ── Top nav ───────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.stuck {
  background: rgba(247,246,226,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(16,6,159,0.10);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand img { height: 36px; width: auto; }
.nav-word { height: 19px; width: auto; fill: var(--blue); display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--blue);
  color: var(--cream);
  opacity: 1 !important;
  font-weight: 500;
}
@media (max-width: 520px) {
  .nav-links a { padding: 9px 10px; font-size: 0.64rem; letter-spacing: 0.08em; }
  .nav-brand img { height: 30px; }
  .nav-word { height: 16px; }
}

/* ── Ticker (divider band, below hero) ─────────── */
.ticker {
  position: relative;
  z-index: 4;
  background: var(--blue);
  color: var(--cream);
  overflow: hidden;
  white-space: nowrap;
  /* asymmetric by 2px: the mono caps have almost no descender, so even
     padding leaves the ink sitting low in the band. Keeps height at 50px. */
  padding: 12px 0 16px;
}
.ticker-track { display: inline-flex; animation: marquee 34s linear infinite; }
.ticker-track span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-right: 0;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Hero ──────────────────────────────────────── */
/* sized so nav + hero + ticker clear a typical laptop viewport,
   letting the ticker show on landing — hence the vh caps below */
.hero {
  padding: clamp(24px, 3.5vw, 48px) var(--gutter) clamp(40px, 5vw, 72px);
  max-width: var(--wrap);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

/* h1 is a plain wrapper — the kicker and wordmark keep their own styling */
.hero-h1 { margin: 0; font-weight: inherit; font-size: inherit; }

/* keep the kicker clear of the mascot, which overhangs the mark */
.hero-kicker { display: block; opacity: 0.55; max-width: 68%; }

/* wordmark + mascot lockup */
.hero-mark { display: block; position: relative; margin: 22px 0 0; max-width: min(100%, 76vh); }
.hero-mark svg {
  width: 100%;
  height: auto;
  display: block;
  fill: var(--blue);
  animation: rise 1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-bear {
  position: absolute;
  top: -46%;
  right: -4%;
  width: 27%;
  animation: bearIn 1s cubic-bezier(.16,1,.3,1) 0.15s both, bob 5s ease-in-out 1.2s infinite;
}
@keyframes bearIn {
  from { opacity: 0; transform: translateY(20px) rotate(-6deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-9px) rotate(2deg); }
}

/* drifting sleep marks — the name, made literal */
.zzz {
  position: absolute;
  top: -22%;
  right: 29%;
  font-family: var(--display);
  line-height: 1;
  pointer-events: none;
}
.zzz i {
  position: absolute;
  font-style: normal;
  color: var(--blue);
  opacity: 0;
  animation: drift 4.2s ease-out infinite;
}
.zzz i::before { content: "z"; }  /* CSS-drawn so the h1 has no stray text */
.zzz i:nth-child(1) { font-size: 0.85rem; animation-delay: 0s; }
.zzz i:nth-child(2) { font-size: 1.15rem; left: 14px; animation-delay: 1.4s; }
.zzz i:nth-child(3) { font-size: 1.5rem;  left: 32px; animation-delay: 2.8s; }
@keyframes drift {
  0%   { opacity: 0; transform: translate(0, 8px) rotate(-8deg); }
  30%  { opacity: 0.5; }
  100% { opacity: 0; transform: translate(14px, -30px) rotate(10deg); }
}

.hero-say { display: block; margin-top: clamp(22px, 3vw, 34px); opacity: 0.55; }
.hero-line {
  font-weight: 200;
  font-size: clamp(1.35rem, 2.6vw, 2.3rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  max-width: 26ch;
  text-wrap: balance;
}
.hero-links { display: flex; gap: 30px; flex-wrap: wrap; margin-top: clamp(26px, 4vw, 40px); }

/* offset product shot */
.hero-shot { position: relative; }
.hero-shot { align-self: start; }
.hero-shot img {
  width: 100%;
  aspect-ratio: 3/4;
  max-height: min(50vh, 520px);
  object-fit: cover;
  border-radius: 200px 200px 18px 18px;
  animation: rise 1s cubic-bezier(.16,1,.3,1) 0.1s both;
  margin-left: auto;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* stacked: centre the arch rather than leaving it right-aligned */
  .hero-shot { max-width: 300px; margin: 0 auto; align-self: center; }
  .hero-shot img { margin: 0; }
  .hero-bear { top: -40%; right: 0; width: 24%; }
  .hero-kicker { max-width: 60%; }
}

.panel { position: relative; background: var(--cream); }

/* ── Sections ──────────────────────────────────── */
section { padding: var(--section) 0; }

/* anchors land clear of the 68px sticky nav, with breathing room above */
#menu, #visit { scroll-margin-top: clamp(100px, 8vw, 124px); }

.intro { text-align: center; }
.intro .statement { max-width: 22ch; margin: 22px auto 0; }
.intro .lede { margin: 34px auto 0; text-align: center; }

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 7vw, 120px);
  margin-top: clamp(60px, 9vw, 120px);
  text-align: left;
}
.split h3 { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; margin: 0 0 16px; opacity: 0.6; }
.split p { margin: 0; font-weight: 300; line-height: 1.7; font-size: 1rem; opacity: 0.85; }
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

/* ── Menu ──────────────────────────────────────── */
.menu-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 0 var(--gutter);
  margin-bottom: clamp(28px, 4vw, 44px);
  flex-wrap: wrap;
}
/* a .grid always sits between headings, so target that adjacency */
.grid + .menu-head { margin-top: clamp(110px, 14vw, 190px); }
.menu-head .display { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
.menu-head .meta { opacity: 0.55; }

/* full-bleed borderless grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2px;
  row-gap: clamp(38px, 4.5vw, 62px);
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }

.item { position: relative; }
.item-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eceadb;
}
.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(.16,1,.3,1);
}
.item:hover .item-img img { transform: scale(1.045); }
.item-img.empty { display: flex; align-items: center; justify-content: center; background: var(--yellow); }
.item-img.empty img { width: 34%; height: auto; object-fit: contain; opacity: 0.4; transform: none; }

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 14px 0;
}
.item-row h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 1.15rem;
  line-height: 1.08;
  margin: 0;
  font-weight: 900;
}
/* price sits a step below the name — Formiga Bold, slightly smaller — so it
   reads clearly without competing with it */
.item-row .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.08;
  white-space: nowrap;
}
.item-note {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 8px 0 0;
  padding: 0 14px;
}

/* extras — plain rows, hairlines only */
.extras { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); }
.extras li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(16,6,159,0.14);
}
.extras ul { list-style: none; margin: 0; padding: 0; }
.extras .n { font-weight: 300; font-size: 1.05rem; }
.extras .n small { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.45; margin-top: 6px; }
.extras .p { font-family: var(--mono); font-size: 0.8rem; opacity: 0.65; }

/* ── Collage ───────────────────────────────────── */
.collage {
  position: relative;
  background: var(--blue);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}
.collage .display { color: var(--yellow); position: relative; z-index: 2; }
.collage .lede { margin: 28px auto 34px; text-align: center; opacity: 0.8; position: relative; z-index: 2; }
.collage .link { position: relative; z-index: 2; }
.collage-photos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.collage-photos img {
  position: absolute;
  width: clamp(90px, 13vw, 190px);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.collage-photos img:nth-child(1) { top: 12%; left: 4%; transform: rotate(-8deg); }
.collage-photos img:nth-child(2) { top: 8%; right: 5%; transform: rotate(7deg); }
.collage-photos img:nth-child(3) { bottom: 10%; left: 9%; transform: rotate(6deg); }
.collage-photos img:nth-child(4) { bottom: 13%; right: 8%; transform: rotate(-6deg); }
@media (max-width: 860px) {
  .collage-photos img:nth-child(2), .collage-photos img:nth-child(3) { display: none; }
  .collage-photos img { opacity: 0.5; }
}

/* ── Visit ─────────────────────────────────────── */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }
.visit-block { margin-top: 40px; }
.visit-block h3 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; opacity: 0.5; margin: 0 0 10px; }
.visit-block p { margin: 0; font-weight: 300; line-height: 1.7; font-size: 1.05rem; }

/* opening hours — day on the left, time on the right, aligned in a grid */
.hours {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 4px 28px;
  max-width: 300px;
}
.hours dt { font-weight: 300; font-size: 1.05rem; line-height: 1.7; opacity: 0.62; }
.hours dd { margin: 0; font-weight: 300; font-size: 1.05rem; line-height: 1.7; }
/* aspect matches the OSM bbox below so the embed fills instead of letterboxing */
.map { border-radius: 20px; overflow: hidden; aspect-ratio: 4/3; background: #eceadb; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── Footer ────────────────────────────────────── */
footer { padding: var(--section) 0 150px; }
.foot-word { padding: 0 var(--gutter); }
.foot-word svg { width: 100%; height: auto; fill: var(--blue); opacity: 0.12; display: block; }
.foot-rows {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 50px;
  opacity: 0.6;
}
.foot-rows a { transition: opacity 0.2s ease; }
.foot-rows a:hover { opacity: 0.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
