:root {
  /* From the logo and the tablecloth swatches Yerga posted (beige, arena, teja, mostaza) */
  --brown: #531603;
  --brown-deep: #3a1003;
  --ink: #3b2216;
  --ink-soft: #6b4d3d;
  --cream: #f7eedf;
  --paper: #fbf5ea;
  --beige: #dbdad4;
  --arena: #bfb09f;
  --teja: #a26950;
  --teja-text: #8a4f36; /* teja darkened for small text on cream */
  --mostaza: #9a905d;
  --line: rgb(83 22 3 / 0.16);

  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 5vw, 5rem);
  --max: 76rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--brown);
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--teja);
}

p {
  margin: 0;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--brown);
  color: var(--cream);
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--teja);
  outline-offset: 3px;
}

/* ---------- Shared bits ---------- */

.eyebrow,
.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teja-text);
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.kicker .rule {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.eyebrow {
  margin-bottom: 1.1rem;
}

/* The "— • —" divider used on Yerga's posts */
.dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0 auto 2.25rem;
  width: 9rem;
}

.dots::before,
.dots::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teja);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.6rem;
  border: 1px solid var(--brown);
  border-radius: 999px;
  background: var(--brown);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  background: var(--teja);
  border-color: var(--teja);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
}

.btn-ghost:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--cream);
}

.btn-small {
  min-height: 2.5rem;
  padding: 0 1.15rem;
  font-size: 0.68rem;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.6rem max(var(--gutter), env(safe-area-inset-right)) 0.6rem max(var(--gutter), env(safe-area-inset-left));
  background: rgb(247 238 223 / 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -22px rgb(58 16 3 / 0.5);
}

.topbar-logo img {
  width: auto;
  height: 3.6rem;
}

.topbar-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar-nav a {
  position: relative;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 1px;
  background: var(--teja);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.topbar-nav a:hover {
  color: var(--brown);
}

.topbar-nav a:hover::after {
  transform: scaleX(1);
}

@media (max-width: 899px) {
  .topbar-nav {
    display: none;
  }

  .topbar .btn {
    margin-left: auto;
  }

  .topbar-logo img {
    height: 3rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  min-height: calc(100svh - 4.8rem);
}

h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.9rem, 6.6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h1 em {
  display: inline-block;
}

.lede {
  max-width: 31rem;
  margin-bottom: 2.25rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 300;
  color: var(--ink-soft);
}

.opening {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2.25rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 31rem;
}

.opening-date {
  display: flex;
  flex-direction: column;
}

.opening-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teja-text);
}

.opening time {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--brown);
}

.opening-count {
  margin-left: auto;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgb(154 144 93 / 0.18);
  color: #5d5630;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 31rem);
}

/* Arch window: a nod to Mediterranean doorways */
.arch {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 0.5rem 0.5rem;
  box-shadow: 0 40px 80px -40px rgb(58 16 3 / 0.55);
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 2.4s var(--ease) both;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  z-index: -1;
  border: 1px solid var(--arena);
  border-radius: 999px 999px 0.5rem 0.5rem;
}

.seal {
  position: absolute;
  left: -2.5rem;
  bottom: 2.5rem;
  width: clamp(6.5rem, 11vw, 8.5rem);
  height: auto;
  filter: drop-shadow(0 12px 18px rgb(58 16 3 / 0.3));
  font-family: var(--sans);
  font-weight: 500;
}

.seal-ring {
  transform-origin: 100px 100px;
  animation: spin 40s linear infinite;
}

@media (max-width: 899px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 1.25rem;
  }

  .hero-media {
    order: -1;
    justify-self: center;
    width: min(100%, 24rem);
  }

  .hero-media::before {
    inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  }

  .seal {
    left: -0.5rem;
    bottom: 1.5rem;
  }
}

@media (max-width: 479px) {
  .hero-media {
    width: calc(100% - 1rem);
    justify-self: start;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .opening-count {
    margin-left: 0;
  }
}

/* ---------- Manifesto ---------- */

.manifesto {
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  background: var(--brown);
  color: var(--cream);
  text-align: center;
}

.manifesto .dots {
  color: var(--arena);
}

.manifesto .eyebrow {
  color: var(--arena);
}

.manifesto h2 {
  max-width: 50rem;
  margin: 0 auto 2rem;
  color: var(--cream);
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  line-height: 1.12;
}

.manifesto h2 em {
  display: block;
  color: #e3b79c;
}

.manifesto-body {
  max-width: 38rem;
  margin: 0 auto 4rem;
  font-weight: 300;
  font-size: 1.12rem;
  color: rgb(247 238 223 / 0.8);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 56rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgb(247 238 223 / 0.18);
}

.pillars li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem 1.25rem 0;
}

.pillars li + li {
  border-left: 1px solid rgb(247 238 223 / 0.18);
}

.pillars strong {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--cream);
}

.pillars span {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgb(247 238 223 / 0.7);
}

@media (max-width: 699px) {
  .pillars {
    grid-template-columns: 1fr;
  }

  .pillars li {
    padding: 1.4rem 0;
  }

  .pillars li + li {
    border-left: 0;
    border-top: 1px solid rgb(247 238 223 / 0.18);
  }
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
}

.split.chef {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split h2 {
  margin-bottom: 1.6rem;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
}

.split-copy > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 1.25rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.split-media {
  margin: 0;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.5rem;
}

.split-media figcaption {
  margin-top: 0.9rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.arch-media img {
  border-radius: 999px 999px 0.5rem 0.5rem;
}

blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--teja);
}

blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.35;
  color: var(--brown);
}

.timeline {
  max-width: 34rem;
  margin: 1.75rem 0 2rem;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 300;
  color: var(--ink-soft);
}

.timeline li:first-child {
  border-top: 1px solid var(--line);
}

.timeline span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--teja);
}

.timeline li:last-child {
  color: var(--brown);
  font-weight: 500;
}

@media (max-width: 899px) {
  .split,
  .split.chef {
    grid-template-columns: 1fr;
  }

  .split-media {
    max-width: 28rem;
  }

  .chef .split-media {
    order: -1;
  }
}

/* ---------- Dishes ---------- */

.dishes {
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section-head h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
}

.section-lede {
  font-weight: 300;
  color: var(--ink-soft);
}

.dish-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.dish {
  position: relative;
}

.dish:nth-child(2) {
  margin-top: 3rem;
}

.dish-img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
}

.dish:nth-child(2) .dish-img {
  border-radius: 999px 999px 0.5rem 0.5rem;
}

.dish-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.dish:hover .dish-img img {
  transform: scale(1.05);
}

.dish-num {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--mostaza);
}

.dish h3 {
  margin-bottom: 0.5rem;
  font-size: 1.65rem;
}

.dish p {
  font-weight: 300;
  color: var(--ink-soft);
}

.dishes-note {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brown);
}

@media (max-width: 899px) {
  .dish-list {
    grid-template-columns: 1fr;
    max-width: 28rem;
    gap: 3rem;
  }

  .dish:nth-child(2) {
    margin-top: 0;
  }
}

/* ---------- Place ---------- */

.place {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(5rem, 11vw, 9rem);
}

.place-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 0.5rem;
}

.place h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
}

.place-copy > p:not(.eyebrow) {
  margin-bottom: 1.2rem;
  font-weight: 300;
  color: var(--ink-soft);
}

.link-arrow {
  display: inline-flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--teja);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brown);
}

.link-arrow span {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover span {
  transform: translateX(4px);
}

@media (max-width: 899px) {
  .place {
    grid-template-columns: 1fr;
  }
}

/* ---------- Notify band ---------- */

.notify-band {
  padding: clamp(5rem, 11vw, 8rem) var(--gutter);
  background:
    radial-gradient(120% 90% at 50% 0%, rgb(162 105 80 / 0.35), transparent 60%),
    var(--brown-deep);
  color: var(--cream);
  text-align: center;
}

.notify-inner {
  max-width: 34rem;
  margin: 0 auto;
}

.notify-band .dots {
  color: var(--arena);
}

.notify-band .eyebrow {
  color: var(--arena);
  letter-spacing: 0.4em;
}

.notify-band h2 {
  margin-bottom: 1rem;
  color: var(--cream);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
}

.notify-band h2 + p {
  margin-bottom: 2rem;
  font-weight: 300;
  color: rgb(247 238 223 / 0.75);
}

.notify {
  display: flex;
  border: 1px solid rgb(247 238 223 / 0.3);
  border-radius: 999px;
  padding: 0.3rem;
  background: rgb(247 238 223 / 0.06);
  transition: border-color 0.2s;
}

.notify:focus-within {
  border-color: rgb(247 238 223 / 0.7);
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-size: 1rem; /* keeps iOS from zooming on focus */
  outline: none;
}

.notify input::placeholder {
  color: rgb(247 238 223 / 0.5);
}

.notify button {
  flex: none;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--brown);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.notify button:hover {
  background: var(--teja);
  color: var(--cream);
}

.notify-status {
  min-height: 1.6em;
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: rgb(247 238 223 / 0.8);
}

.notify-status[data-state="error"] {
  color: #f0b4a0;
}

.hiring {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: rgb(247 238 223 / 0.6);
}

.hiring a {
  color: var(--cream);
  text-underline-offset: 0.2em;
  text-decoration-color: var(--teja);
}

/* ---------- Footer ---------- */

.footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 3rem;
  padding: 2.25rem max(var(--gutter), env(safe-area-inset-right)) max(2.25rem, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  background: var(--brown-deep);
  border-top: 1px solid rgb(247 238 223 / 0.12);
  color: rgb(247 238 223 / 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1;
}

.wordmark-sub {
  margin-top: 0.4rem;
  font-size: 0.62rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--arena);
}

.footer address {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  font-style: normal;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--cream);
}

@media (max-width: 799px) {
  .footer {
    grid-template-columns: 1fr;
  }

  .footer address {
    flex-direction: column;
  }
}

/* ---------- Utilities & motion ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.hero .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero .reveal:nth-child(5) { transition-delay: 0.32s; }
.dish.reveal:nth-child(2) { transition-delay: 0.1s; }
.dish.reveal:nth-child(3) { transition-delay: 0.2s; }

@keyframes settle {
  from { transform: scale(1.1); }
  to { transform: scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
