@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --wall: #d9dbda;
  --wall-shade: #c9cccb;
  --band: #f4f5f3;
  --ink: #1a1414;
  --ink-soft: #4a3f40;
  --plate: #550c15;
  --plate-deep: #3e080f;
  --white: #ffffff;
  --gutter: 16px;
  --max: 1180px;
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--plate) var(--wall-shade);
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--plate);
  color: var(--white);
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--plate);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark-logo {
  width: 40px;
  height: 32px;
}

.topbar nav {
  display: flex;
  gap: 18px;
}

.topbar nav a {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}

.topbar nav {
  align-items: center;
}

.nav-icon {
  display: inline-flex;
  color: var(--plate);
}

.nav-icon svg {
  width: 24px;
  height: 24px;
}

.topbar nav a:hover {
  color: var(--plate);
  text-decoration: underline;
}

/* The street plate: maroon enamel with a white double rule */
.plate {
  background: var(--plate);
  color: var(--white);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 5px var(--plate),
    inset 0 0 0 8px var(--white),
    0 10px 24px -14px rgba(62, 8, 15, 0.55);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
}

.plate-hero {
  padding: 26px 24px 24px;
  display: grid;
  gap: 18px;
  transform-origin: 50% 0;
  animation: hang 900ms var(--ease) both;
}

@keyframes hang {
  from {
    transform: translateY(-14px) rotate(-1.4deg);
  }
  to {
    transform: none;
  }
}

.plate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.plate-logo {
  width: 72px;
  height: 58px;
}

.plate-title {
  margin: 8px 0 4px;
}

.plate-title img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
}

.plate-name {
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* The obi band: dense printed facts wrapped under the plate */
.band {
  background: var(--band);
  border-top: 4px solid var(--plate);
  margin-top: 12px;
  padding: 18px 18px 22px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--plate);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status[data-state="closed"] {
  background: transparent;
  color: var(--plate);
  box-shadow: inset 0 0 0 2px var(--plate);
}

.band-lead {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  max-width: 34ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 2px solid var(--plate);
}

.facts dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plate);
}

.facts dd {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    transform 160ms var(--ease);
}

.btn svg {
  width: 24px;
  height: 24px;
  flex: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--plate);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--plate-deep);
}

.btn-outline {
  color: var(--plate);
  box-shadow: inset 0 0 0 3px var(--plate);
}

.btn-outline:hover {
  background: var(--plate);
  color: var(--white);
}

.btn-invert {
  background: var(--white);
  color: var(--plate);
}

.btn-invert:hover {
  background: var(--band);
}

/* Sections stack like plates on the wall, with visible joints */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
}

.section h2 {
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--plate);
  margin-bottom: 18px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 3px solid var(--plate);
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 2px solid var(--wall-shade);
}

.steps span {
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: var(--plate);
  font-variant-numeric: tabular-nums;
}

.steps p {
  font-size: 21px;
  max-width: 50ch;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.menu li {
  background: var(--band);
  padding: 18px 20px;
  border-radius: 4px;
}

.menu h3 {
  font-weight: 800;
  font-size: 30px;
  line-height: 1.05;
  text-transform: uppercase;
}

.menu p {
  margin-top: 4px;
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 55ch;
}

.menu-note {
  margin-top: 12px;
  font-size: 19px;
  color: var(--ink-soft);
}

.split {
  display: grid;
  gap: 28px;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  border-top: 3px solid var(--plate);
}

.hours th,
.hours td {
  padding: 12px 0;
  border-bottom: 2px solid var(--wall-shade);
  font-size: 21px;
  text-align: left;
}

.hours th {
  font-weight: 600;
}

.hours td {
  font-weight: 700;
  text-align: right;
}

.plate-small {
  padding: 24px 22px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.plate-small h2 {
  color: var(--white);
  margin: 0;
}

.plate-small p {
  font-size: 21px;
}

.plate-small .btn {
  justify-self: start;
}

button.btn {
  border: 0;
  background-color: transparent;
  font-family: inherit;
  cursor: pointer;
}

/* "Coming soon" popup, drawn as a small street plate */
.popup {
  width: min(420px, calc(100% - 32px));
  padding: 28px 24px 24px;
  border: 0;
  border-radius: 8px;
  background: var(--plate);
  color: var(--white);
  box-shadow:
    inset 0 0 0 5px var(--plate),
    inset 0 0 0 8px var(--white),
    0 24px 48px -20px rgba(26, 20, 20, 0.6);
}

.popup::backdrop {
  background: rgba(26, 20, 20, 0.55);
}

.popup[open] {
  animation: hang 500ms var(--ease) both;
}

.popup h2 {
  font-weight: 800;
  font-size: 48px;
  line-height: 0.95;
  text-transform: uppercase;
}

.popup p {
  margin-top: 10px;
  font-size: 21px;
}

.popup-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.popup .btn-primary {
  background: var(--white);
  color: var(--plate);
}

.popup .btn-outline {
  color: var(--white);
  box-shadow: inset 0 0 0 3px var(--white);
}

.popup .btn-outline:hover {
  background: var(--white);
  color: var(--plate);
}

.popup :focus-visible {
  outline-color: var(--white);
}

/* Zócalo: the painted plinth at the foot of the wall */
.zocalo {
  margin-top: 72px;
  background: var(--plate);
  color: var(--white);
  padding: 40px var(--gutter) 110px;
}

.zocalo-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.zocalo-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
}

.zocalo-brand svg {
  width: 44px;
  height: 35px;
}

.legal {
  font-size: 17px;
  line-height: 1.5;
  max-width: 70ch;
}

.zocalo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.zocalo-links a {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zocalo :focus-visible {
  outline-color: var(--white);
}

/* Mobile sticky order bar */
.order-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  background: var(--plate);
  color: var(--white);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 4px var(--plate),
    inset 0 0 0 6px var(--white),
    0 8px 20px -8px rgba(26, 20, 20, 0.5);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.order-bar svg {
  width: 24px;
  height: 24px;
}

/* Legal page */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
}

.legal-page h1 {
  font-weight: 800;
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--plate);
}

.legal-page .legal-date {
  margin-top: 10px;
  font-size: 17px;
  color: var(--ink-soft);
}

.legal-page section {
  padding: 22px 0;
  border-bottom: 2px solid var(--wall-shade);
}

.legal-page h2 {
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--plate);
  margin-bottom: 8px;
}

.legal-page p,
.legal-page li {
  font-size: 20px;
  max-width: 68ch;
}

.legal-page p + p,
.legal-page ul + p,
.legal-page p + ul {
  margin-top: 10px;
}

.legal-page ul {
  margin: 0;
  padding-left: 22px;
}

@media (min-width: 760px) {
  .actions {
    grid-template-columns: 1.4fr 1fr;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .order-bar {
    display: none;
  }

  .zocalo {
    padding-bottom: 48px;
  }
}

@media (min-width: 1000px) {
  .hero {
    grid-template-columns: 7fr 5fr;
    align-items: stretch;
  }

  .plate-hero {
    border-radius: 8px 0 0 8px;
    align-content: space-between;
    padding: 34px 34px 32px;
  }

  .band {
    margin-top: 0;
    border-top: 0;
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
  }

  .actions {
    grid-template-columns: 1fr;
    margin-top: auto;
    padding-top: 22px;
  }

  .menu {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .wordmark span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .topbar nav {
    gap: 12px;
  }

  .topbar nav a {
    font-size: 16px;
  }

  .nav-long {
    display: none;
  }
}

@media (max-width: 380px) {

  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .plate-hero {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
