/*
  Primero Dios Matcha
  Palette and forms are taken from the trailer itself: white beadboard paint,
  the boxwood hedge wall, the green cup sticker with cream stacked caps,
  the printed menu board (brass italic section heads), and the walnut counter.
*/
:root {
  --paint: #FAFAF7;     /* trailer white */
  --hedge: #24361A;     /* boxwood in shadow: ink + dark sections */
  --sticker: #4E6B21;   /* cup label green */
  --label: #F0DEB4;     /* wordmark cream on the label */
  --board: #3D5718;     /* printed menu board */
  --brass: #D8AE48;     /* board section heads */
  --walnut: #6B4428;    /* counter: rules and links on white */

  --serif: "Roboto Serif", Georgia, serif;
  --gutter: clamp(18px, 5vw, 72px);
  --measure: 36rem;
  --label-radius: 10px; /* only for things shaped like the cup label */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paint);
  color: var(--hedge);
  font-family: var(--serif);
  font-variation-settings: "opsz" 16;
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* the brand's own voice: condensed black caps, as printed on the cup label */
.caps {
  font-weight: 900; font-stretch: 50%; font-variation-settings: "opsz" 144;
  text-transform: uppercase; line-height: .86; letter-spacing: 0;
}

/* ---------- the label (wordmark) ---------- */
.label {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--sticker); color: var(--label);
  border-radius: var(--label-radius);
  padding: .5rem .7rem .55rem;
  font-size: .95rem; text-decoration: none;
}
.label .big { font-size: 1.55em; }

/* ---------- links + buttons ---------- */
.link {
  color: var(--walnut); font-weight: 600;
  text-decoration-thickness: 1.5px; text-underline-offset: .2em;
}
.link:hover { color: var(--hedge); }
.btn {
  display: inline-block; text-decoration: none;
  background: var(--sticker); color: var(--label);
  border-radius: var(--label-radius);
  padding: .8rem 1.25rem; font-weight: 700; line-height: 1.2;
}
.btn:hover { background: var(--hedge); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }

/* ---------- header ---------- */
.site-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.25rem;
}
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem clamp(1rem, 3vw, 2.25rem); }
.site-nav a { text-decoration: none; padding-block: .3rem; border-bottom: 1.5px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.site-nav [lang] { color: var(--walnut); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 8vw, 7rem);
}
.slogan { margin: 0; font-size: clamp(3.75rem, 9.5vw, 8.75rem); color: var(--sticker); }
.slogan span { display: block; }
.hero h1 {
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0 0; max-width: 26ch;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem); line-height: 1.25;
  font-weight: 600; font-variation-settings: "opsz" 36;
}
.hero .lede { margin: 1rem 0 0; max-width: 34rem; font-size: 1.125rem; }
.next {
  margin: 2rem 0 1.5rem; padding-top: 1rem; max-width: 34rem;
  border-top: 2px solid var(--walnut); line-height: 1.5;
}
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- menu board (the one loud thing) ---------- */
.board { background: var(--board); color: var(--label); padding-block: clamp(3.5rem, 8vw, 7rem); }
.board-panel {
  max-width: 900px; margin-inline: auto;
  border: 1.5px solid var(--brass);
  padding: clamp(2.25rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4.5rem);
}
.board h2 { margin: 0 0 clamp(2rem, 5vw, 3rem); text-align: center; font-size: clamp(3rem, 8vw, 5.5rem); }
.board h2 span { display: block; }
.board h2 .big { font-size: 1.45em; }
.board h3 {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.75rem 0 1.25rem; text-align: center; text-wrap: balance;
  color: var(--brass); font-style: italic; font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-variation-settings: "opsz" 48;
  letter-spacing: .02em;
}
.board h3::before, .board h3::after { content: ""; flex: 1 0 1.5rem; border-top: 1.5px solid var(--brass); opacity: .7; }
.board h2 + h3 { margin-top: 0; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li {
  display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
  gap: .25rem 2rem; padding-block: .8rem;
}
.board-list h4 {
  margin: 0; font-size: 1.3rem; line-height: 1.25;
  font-weight: 700; font-stretch: 85%; font-variation-settings: "opsz" 36;
}
.board-list p { margin: 0; max-width: 34rem; line-height: 1.55; opacity: .9; }
.board-foot {
  margin: 2.75rem auto 0; max-width: 38rem; text-align: center;
  font-style: italic; line-height: 1.6;
}
.board-foot a { color: var(--label); font-weight: 600; text-underline-offset: .2em; }

/* ---------- photo strip ---------- */
.strip {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.5rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.strip figcaption { margin-top: .6rem; font-size: .95rem; line-height: 1.45; max-width: 30ch; }

/* ---------- story ---------- */
.story { background: var(--hedge); color: var(--label); padding-block: clamp(4rem, 9vw, 8rem); }
.story .wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.story h2 { margin: 0 0 2rem; font-size: clamp(2.6rem, 5.5vw, 4.75rem); max-width: 17ch; }
.story p { margin: 0 0 1.1em; max-width: var(--measure); }
.story p:first-of-type { font-size: 1.3rem; line-height: 1.5; }
.story figure { margin: 0; }
.story figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story figcaption { margin-top: .75rem; font-size: .95rem; line-height: 1.5; }
.story a { color: var(--label); font-weight: 600; text-underline-offset: .2em; }

/* ---------- find the trailer ---------- */
.find { padding-block: clamp(4rem, 9vw, 8rem); }
.find .wrap {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.find h2 { margin: 0; font-size: clamp(3rem, 8vw, 6.25rem); color: var(--sticker); }
.find .intro { margin: 1.5rem 0 0; max-width: var(--measure); font-size: 1.15rem; }
.find .next { font-size: 1.15rem; }
.schedule { width: 100%; max-width: 40rem; border-collapse: collapse; margin-top: 2.5rem; }
.schedule caption { text-align: left; font-weight: 700; font-size: 1.15rem; padding-bottom: .6rem; }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: .7rem 1rem .7rem 0; border-top: 1px solid var(--walnut); line-height: 1.45; }
.schedule thead th { font-size: .9rem; font-weight: 600; color: var(--walnut); border-top: 0; padding-bottom: .4rem; }
.schedule tbody tr:last-child > * { border-bottom: 1px solid var(--walnut); }
.schedule td:last-child { white-space: nowrap; padding-right: 0; }
.schedule small { display: block; font-size: .92rem; }
.find figure { margin: 0; }
.find figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.find figcaption { margin-top: .6rem; font-size: .95rem; }
.events { margin-top: 2.5rem; }
.events h3 { margin: 0 0 .5rem; font-size: 1.35rem; font-variation-settings: "opsz" 36; }
.events p { margin: 0 0 1.25rem; max-width: 30rem; }

/* ---------- faq ---------- */
.faq { padding-block: 0 clamp(4rem, 9vw, 8rem); }
.faq h2 { margin: 0 0 2rem; font-size: clamp(2.4rem, 5.5vw, 4.25rem); color: var(--sticker); max-width: 16ch; }
.faq-list { max-width: 46rem; border-bottom: 1px solid var(--walnut); }
.faq details { border-top: 1px solid var(--walnut); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-block: 1rem; font-size: 1.2rem; font-weight: 650; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--walnut); font-size: 1.4em; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 1.25rem; max-width: var(--measure); }

/* ---------- footer ---------- */
.site-foot { background: var(--hedge); color: var(--label); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.verse { margin: 0 0 3rem; max-width: 36rem; font-style: italic; font-size: 1.3rem; line-height: 1.5; }
.verse cite { display: block; margin-top: .5rem; font-style: normal; font-size: .95rem; opacity: .8; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; font-size: .95rem; }
.foot-row .label { font-size: 1.2rem; }
.foot-row address { font-style: normal; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot-row address a { color: var(--label); font-weight: 600; text-underline-offset: .2em; }
.foot-row .meta { margin: .3rem 0 0; opacity: .75; }
.foot-row .meta a { color: inherit; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(3rem, 10vw, 8rem); }
.notfound h1 { margin: 0 0 1.5rem; font-size: clamp(3.5rem, 11vw, 8.5rem); color: var(--sticker); }
.notfound p { max-width: var(--measure); font-size: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero, .story .wrap, .find .wrap { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; }
  .story figure { max-width: 420px; }
}
@media (max-width: 640px) {
  .site-nav { gap: .25rem .9rem; font-size: .92rem; }
  .site-nav .opt { display: none; }
  .board-list li { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip figure:last-child { grid-column: 1 / -1; }
  .strip figure:last-child img { aspect-ratio: 5 / 4; }
  .schedule td:last-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
