/*
  Good Dirt: concept website for a fictional plant kitchen in Boulder, Colorado.
  Fonts, photos and scripts are self-hosted. No third-party requests on page load.
  No rules, no borders, no boxes: photographs, type and paper.
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f6efe2;
  --paper: #fdfbf5;
  --ink: #1b1f1a;
  --muted: #5f655a;
  --soft: rgba(27, 31, 26, .07);
  --clay: #b8501f;
  --clay-soft: #f0925c;
  --leaf: #223120;
  --leaf-soft: #9dbb88;

  --font-display: "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-body: clamp(.9375rem, 1.02vw, 1.0625rem);
  --fs-lead: clamp(1.0625rem, 1.3vw, 1.3rem);
  --fs-h2: clamp(2.5rem, 5.6vw, 5.6rem);
  --fs-h3: clamp(1.5rem, 2.1vw, 2.1rem);

  --gutter: clamp(1rem, 3vw, 2.5rem);
  --max: 1360px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);

  /* Paper: a soft tooth, barely there */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .2 0 0 0 .8 -.31'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd,
figure,
ul,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

em {
  font-style: normal;
  color: var(--clay);
}

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

.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: .6rem 1rem;
  color: var(--cream);
  background: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 1rem;
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Type ---------- */

.h2,
.h3,
.hero__mark,
.foot__mark,
.brand,
.tag,
.price,
.mini__name,
.dish__name,
.farm h3,
.when__line,
.photo figcaption,
.statement,
.season__facts dd,
.hours__big,
.words p,
.month,
.stepper output,
.book__table b,
.farm__miles b {
  font-family: var(--font-display);
  font-stretch: 86%;
  font-weight: 700;
  letter-spacing: -.035em;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: .94;
  text-wrap: balance;
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1;
}

.kicker {
  display: block;
  margin-bottom: .9rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
}

.lead {
  max-width: 38ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--muted);
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.price {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clay);
}

/* ---------- Buttons and chips: filled, never outlined ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.4rem;
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: scale .35s var(--ease-back), background-color .3s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--clay);
  scale: 1.05;
}

.btn:active {
  scale: .97;
}

.btn--fill {
  color: #fff;
  background: var(--clay);
}

.btn--fill:hover,
.btn--fill:focus-visible {
  background: var(--ink);
}

.btn--big {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: .875rem;
}

.chip {
  padding: .55rem 1rem;
  font-size: .8125rem;
  font-weight: 600;
  background: var(--soft);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, scale .3s var(--ease-back);
}

.chip:hover {
  background: rgba(27, 31, 26, .14);
  scale: 1.05;
}

.chip.is-on,
.chip[aria-pressed="true"] {
  color: var(--cream);
  background: var(--ink);
}

/* ---------- Header: it slides in once the hero has gone by ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
  padding: 0 var(--gutter);
  background: rgba(246, 239, 226, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  translate: 0 -104%;
  transition: translate .6s var(--ease-out);
}

.top.is-on {
  translate: 0 0;
}

.brand {
  margin-right: auto;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.8rem;
}

.nav a {
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .25s ease;
}

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

.nav__cta {
  display: none;
}

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  background: var(--soft);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.burger span:not(.sr) {
  position: absolute;
  left: 13px;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }

.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(.6rem, 1.6vw, 1.4rem);
  background: var(--cream);
}

.hero__mark,
.foot__mark {
  font-size: 20.5vw;
  font-stretch: 78%;
  font-weight: 800;
  line-height: .8;
  letter-spacing: .016em;
  text-align: center;
  white-space: nowrap;
}

.hero__mark span,
.foot__mark span {
  display: inline-block;
}

.hero__mark .char,
.foot__mark .char {
  display: inline-block;
  will-change: transform;
}

.hero__sub {
  margin-top: clamp(1rem, 1.8vw, 1.7rem);
  padding-inline: var(--gutter);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

/* Torn paper: the shape of each piece is cut in script, one tear per piece. Behind the
   paper sits a second, whiter sheet torn a little wider: the fibre that shows at the edge. */
[data-tear] {
  position: relative;
  isolation: isolate;
}

[data-tear]::before,
[data-tear]::after {
  content: "";
  position: absolute;
}

[data-tear]::before {
  inset: 0;
  z-index: -1;
  background: var(--paper) var(--grain);
  clip-path: var(--tear, polygon(1% 5%, 99% 0, 100% 95%, 0 100%));
}

[data-tear]::after {
  inset: -5px;
  z-index: -2;
  background: #fff;
  clip-path: var(--tear-rim, polygon(0 0, 0 0, 0 0));
}

/* The menu: five pieces of torn paper */
.tags {
  position: relative;
  z-index: 400;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem clamp(.7rem, 1.5vw, 1.6rem);
  margin-top: clamp(1.2rem, 2.2vw, 2.2rem);
  padding-inline: var(--gutter);
  pointer-events: none;
}

.tag {
  display: inline-block;
  padding: .3em .78em .38em;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
  rotate: var(--r, 0deg);
  filter: drop-shadow(0 12px 12px rgba(40, 30, 10, .16));
  pointer-events: auto;
  transition: rotate .45s var(--ease-back), scale .45s var(--ease-back), filter .3s ease;
}

.tag:hover,
.tag:focus-visible {
  rotate: calc(var(--r, 0deg) * -1.4);
  scale: 1.07;
  filter: drop-shadow(0 22px 18px rgba(40, 30, 10, .22));
}

.tag--hot {
  color: #fff;
}

.tag--hot::before,
.piece--note::before {
  background-color: var(--clay);
}

/* The table. Everything starts as one heap in the middle and is then shot out to its
   place, loose. --mid is where the middle of the heap is, from the top of the table. */
.collage {
  --mid: 37vw;
  position: relative;
  height: 82vw;
  margin-top: clamp(1rem, 2.4vw, 2.6rem);
}

/* A piece is placed by its middle: --cx and --cy are where it ends up, --hx and --hy where
   it sits in the heap, both measured from the middle of the table. --ar is its height over
   its width. Where it has been dragged, what the mouse and the scroll do to it, and the way
   from the heap are separate variables added up here, so none of them steps on the others
   and transform stays free for the slow drift. */
.piece {
  position: absolute;
  top: calc(var(--mid) + var(--cy) - var(--w) * var(--ar) / 2);
  left: calc(50% + var(--cx) - var(--w) / 2);
  width: var(--w);
  max-width: none;
  margin: 0;
  translate:
    calc(var(--dx, 0px) + var(--ox, 0px) + var(--ix, 0px))
    calc(var(--dy, 0px) + var(--oy, 0px) + var(--iy, 0px));
  rotate: calc(var(--r, 0deg) + var(--ir, 0deg));
  scale: var(--is, 1);
  filter: drop-shadow(0 22px 20px rgba(40, 30, 10, .26));
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  will-change: translate;
  transition: filter .25s ease;
}

.js .piece {
  animation: drift var(--t, 7s) ease-in-out var(--delay, 0s) infinite alternate;
}

.piece.is-held {
  z-index: 50;
  cursor: grabbing;
  scale: 1.05;
  filter: drop-shadow(0 40px 30px rgba(40, 30, 10, .32));
}

.piece.is-held,
.piece.was-moved {
  animation: none;
}

.piece.is-homing {
  transition: translate .9s var(--ease-out);
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-12px) rotate(1.6deg);
  }
}

.piece--pineapple { --w: 19vw; --ar: 1.601; --cx: 3vw; --cy: -21vw; --hx: 4vw; --hy: -15vw; --r: 6deg; }
.piece--lemon { --w: 18vw; --ar: .638; --cx: -37vw; --cy: 0vw; --hx: -20.9vw; --hy: .4vw; --r: 10deg; }
.piece--vine { --w: 32vw; --ar: .728; --cx: 1vw; --cy: 3vw; --hx: -.3vw; --hy: 3.8vw; --r: -6deg; }
.piece--carrots { --w: 22vw; --ar: 1.385; --cx: 24vw; --cy: 6vw; --hx: 11.2vw; --hy: 3vw; --r: 9deg; }
.piece--tomato { --w: 18vw; --ar: .754; --cx: -19vw; --cy: 1vw; --hx: -3.9vw; --hy: 9.2vw; --r: 12deg; }
.piece--lobster { --w: 32vw; --ar: .806; --cx: -10vw; --cy: 25vw; --hx: -30vw; --hy: 13vw; --r: 4deg; }
.piece--avocado { --w: 21vw; --ar: .631; --cx: -36vw; --cy: 18vw; --hx: -18.1vw; --hy: 8.2vw; --r: 6deg; }
.piece--radish { --w: 22vw; --ar: .995; --cx: -33vw; --cy: -20vw; --hx: -16.8vw; --hy: -10vw; --r: -10deg; }
.piece--peach { --w: 18vw; --ar: .847; --cx: -14vw; --cy: -21vw; --hx: -4.3vw; --hy: -9.9vw; --r: -4deg; }
.piece--cauliflower { --w: 26vw; --ar: .832; --cx: 24vw; --cy: -19vw; --hx: 13.9vw; --hy: -11.1vw; --r: 8deg; }
.piece--kale { --w: 15vw; --ar: 1.724; --cx: 41vw; --cy: -10vw; --hx: 22.6vw; --hy: .3vw; --r: -8deg; }
.piece--strawberries { --w: 28vw; --ar: .561; --cx: 35vw; --cy: 26vw; --hx: 13.8vw; --hy: 13.9vw; --r: 5deg; }
.piece--eggplant { --w: 25vw; --ar: .629; --cx: 13vw; --cy: 28vw; --hx: -12vw; --hy: 15.4vw; --r: -6deg; }
.piece--chili { --w: 24vw; --ar: .291; --cx: 14vw; --cy: 39vw; --hx: -4.3vw; --hy: 17.4vw; --r: -12deg; }

.piece--note,
.piece--where {
  top: var(--y);
  left: var(--x);
  width: auto;
  font-family: var(--font-display);
  font-stretch: 90%;
  font-weight: 700;
  text-transform: uppercase;
  filter: drop-shadow(0 14px 14px rgba(40, 30, 10, .22));
}

.piece--note {
  --x: 5%;
  --y: 1.5vw;
  --r: -3deg;
  max-width: 17.5em;
  padding: .75em 1em .85em;
  font-size: clamp(.9375rem, 1.9vw, 2.4rem);
  line-height: 1.14;
  letter-spacing: .02em;
  color: #fff;
}

.piece--where {
  --x: 4%;
  --y: 75vw;
  --r: 4deg;
  padding: .5em .9em .55em;
  font-size: clamp(.75rem, 1.2vw, 1.4rem);
  letter-spacing: .06em;
  color: var(--ink);
}

.hero__reset {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  z-index: 80;
  padding: .7rem 1.3rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  translate: -50% 0;
  transition: background-color .25s ease, scale .3s var(--ease-back), opacity .3s ease, translate .4s var(--ease-out);
}

.hero__reset[hidden] {
  display: none;
}

.hero__reset.is-away {
  opacity: 0;
  pointer-events: none;
  translate: -50% 1.2rem;
}

.hero__reset:hover {
  background: var(--clay);
  scale: 1.05;
}

/* What the hero looks like before it comes in. Script brings every part in; if the
   script never runs, the second class shows everything after a moment. */
.js .hero__mark,
.js .hero__sub,
.js .tag,
.js .hero .piece {
  opacity: 0;
}

.js-late .hero__mark,
.js-late .hero__sub,
.js-late .tag,
.js-late .hero .piece {
  opacity: 1;
}

/* ---------- Photographs ---------- */

.photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 26px;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.photo--wide {
  height: clamp(340px, 46vw, 640px);
}

.photo--tall {
  height: clamp(300px, 40vw, 580px);
}

.photo--wide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 20, 14, .66), rgba(16, 20, 14, .06) 68%);
}

.photo figcaption {
  position: absolute;
  z-index: 1;
  bottom: clamp(1.4rem, 3vw, 2.8rem);
  left: clamp(1.4rem, 3vw, 3rem);
  max-width: 13ch;
  font-size: clamp(2.2rem, 5.4vw, 5.2rem);
  line-height: .94;
  color: #fff;
}

.photo figcaption em {
  color: #ffc79a;
}

/* ---------- The photo and the line ---------- */

.feature {
  padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(3.5rem, 7vw, 6.5rem);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem);
  align-items: center;
  margin-top: clamp(1.8rem, 3.4vw, 3rem);
}

.statement {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.03em;
}

.mini {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
}

.mini img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
  transition: scale .6s var(--ease-back), rotate .6s var(--ease-back);
}

.mini:hover img {
  scale: 1.08;
  rotate: -4deg;
}

.mini .kicker {
  margin-bottom: .35rem;
}

.mini__name {
  font-size: clamp(1.4rem, 1.9vw, 1.9rem);
  line-height: 1;
}

.mini__text {
  margin-top: .3rem;
  font-size: .875rem;
  color: var(--muted);
}

/* ---------- Menu ---------- */

.menu,
.seasons,
.farms,
.view,
.reserve,
.hours {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.dishes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 3.4vw, 3.4rem) clamp(1rem, 1.8vw, 1.6rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.dish.is-hidden {
  display: none;
}

.dish__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
}

.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.1s var(--ease-out);
}

.dish:hover .dish__media img {
  scale: 1.08;
}

.dish__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1rem;
}

.dish__name {
  font-size: clamp(1.35rem, 1.75vw, 1.8rem);
  line-height: 1;
}

.dish__text {
  margin-top: .45rem;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--muted);
}

.marks {
  margin-top: .5rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
}

.menu__empty {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
}

/* ---------- When it tastes best ---------- */

.when {
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5rem) 0;
}

.when__line {
  font-size: clamp(2.6rem, 9.4vw, 9.6rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-align: center;
  white-space: nowrap;
  will-change: transform;
}

/* ---------- Seasons ---------- */

.months {
  display: flex;
  gap: .3rem;
  margin-top: clamp(1.6rem, 3vw, 2.6rem);
  overflow-x: auto;
  scrollbar-width: none;
}

.months::-webkit-scrollbar {
  display: none;
}

.month {
  flex: 1 0 auto;
  padding: .45rem .9rem .55rem;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color .25s ease, background-color .35s ease, scale .35s var(--ease-back);
}

.month:hover {
  color: var(--ink);
  scale: 1.08;
}

.month[aria-selected="true"] {
  color: #fff;
  background: var(--clay);
}

.season {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.season__stage {
  position: relative;
  height: clamp(260px, 30vw, 420px);
}

.season__stage img {
  position: absolute;
  width: auto;
  max-width: 40%;
  max-height: 62%;
  filter: drop-shadow(0 18px 16px rgba(40, 30, 10, .22));
}

.season__stage img:nth-child(1) {
  top: 4%;
  left: 2%;
  rotate: -8deg;
}

.season__stage img:nth-child(2) {
  bottom: 2%;
  left: 27%;
  rotate: 6deg;
}

.season__stage img:nth-child(3) {
  top: 8%;
  right: 2%;
  rotate: 10deg;
}

.season__stage img:nth-child(1):nth-last-child(2) {
  top: 14%;
  left: 6%;
  max-width: 44%;
  max-height: 72%;
}

.season__stage img:nth-child(2):nth-last-child(1) {
  top: 18%;
  right: 6%;
  bottom: auto;
  left: auto;
  max-width: 44%;
  max-height: 72%;
}

.season__facts {
  display: grid;
  gap: 1.4rem;
}

.season__facts dt,
.book__set legend,
.hours__list dt,
.book__table span {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.season__facts dd {
  margin-top: .3rem;
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.02;
}

.season__facts div:first-child dd {
  font-size: clamp(2.4rem, 4.6vw, 4.6rem);
  font-weight: 700;
  color: var(--clay);
}

/* ---------- Farms ---------- */

.farm-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.farm .photo {
  aspect-ratio: 4 / 3;
}

.farm .photo img {
  height: 116%;
}

.farm__miles {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin-top: 1.2rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}

.farm__miles b {
  font-size: 3rem;
  line-height: .9;
}

.farm h3 {
  margin-top: .4rem;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem);
  line-height: 1;
}

.farm__text {
  margin-top: .5rem;
  color: var(--muted);
}

/* ---------- Fire ---------- */

.band .photo figcaption {
  max-width: 17ch;
  font-size: clamp(1.9rem, 4.2vw, 4.2rem);
}

/* ---------- The view ---------- */

.view__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.view__text .lead {
  margin: 1.2rem 0 1.8rem;
}

.photo--tall img {
  height: 116%;
}

/* ---------- Reserve ---------- */

.reserve__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.reserve__plan,
.book {
  min-width: 0;
}

.plan {
  width: 100%;
  height: auto;
  overflow: visible;
}

.plan__floor {
  fill: rgba(27, 31, 26, .05);
}

.plan__zone {
  fill: rgba(157, 187, 136, .22);
}

.plan__bar {
  fill: rgba(184, 80, 31, .16);
}

.plan__label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  fill: var(--muted);
}

.plan__label--mtn {
  fill: var(--clay);
}

.table {
  cursor: pointer;
}

.table__shape {
  fill: var(--paper);
  filter: drop-shadow(0 5px 5px rgba(40, 30, 10, .16));
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: fill .3s ease, scale .35s var(--ease-back);
}

.table text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  pointer-events: none;
}

.table .seats {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .04em;
  fill: var(--muted);
}

.table:hover .table__shape,
.table:focus-visible .table__shape {
  fill: #e4f0d8;
  scale: 1.08;
}

.table:focus-visible {
  outline: none;
}

.table.is-view .table__shape {
  fill: #ffe9d6;
}

.table.is-taken {
  cursor: not-allowed;
}

.table.is-taken .table__shape {
  fill: rgba(27, 31, 26, .08);
  filter: none;
  scale: 1;
}

.table.is-taken text {
  fill: rgba(27, 31, 26, .3);
}

.table.is-small {
  cursor: not-allowed;
  opacity: .4;
}

.table.is-mine .table__shape {
  fill: var(--clay);
  scale: 1.1;
  animation: glow 1.8s ease-in-out infinite;
}

.table.is-mine text,
.table.is-mine .seats {
  fill: #fff;
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(184, 80, 31, .0));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(184, 80, 31, .7));
  }
}

.plan__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.2rem;
  margin-top: 1.1rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan__key {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: .4rem;
  vertical-align: -2px;
  border-radius: 4px;
}

.plan__key--free { background: var(--paper); box-shadow: 0 2px 4px rgba(40, 30, 10, .2); }
.plan__key--taken { background: rgba(27, 31, 26, .12); }
.plan__key--mine { background: var(--clay); }

.book {
  position: sticky;
  top: 6rem;
}

.book__set {
  min-width: 0;
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
}

.book__set legend {
  padding: 0;
  margin-bottom: .65rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.chips--days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .3rem;
}

.chips--days .chip {
  min-width: 0;
  padding: .5rem .1rem .55rem;
  font-size: .6875rem;
  line-height: 1.2;
  text-align: center;
  border-radius: 14px;
}

.chips--days .chip b {
  display: block;
  font-weight: 700;
}

.chips--days .chip small {
  display: block;
  font-size: .5625rem;
  font-weight: 500;
  opacity: .7;
}

.stepper {
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  border-radius: 999px;
}

.stepper__btn {
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color .25s ease, scale .3s var(--ease-back);
}

.stepper__btn:hover {
  color: var(--clay);
  scale: 1.2;
}

.stepper output {
  min-width: 2.4ch;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.book__table {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
}

.book__table b {
  font-size: 2.6rem;
  line-height: .9;
  color: var(--clay);
}

.book__table b:empty {
  display: none;
}

.book__table em {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

.book .btn--big {
  margin-top: 1.4rem;
}

.book__status {
  min-height: 1.4em;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--leaf);
}

.book__status.is-error {
  color: var(--clay);
}

/* ---------- Words ---------- */

.words {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.words__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.words p {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
  font-weight: 600;
  line-height: 1.06;
}

.words footer {
  margin-top: .9rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- Hours ---------- */

.hours__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
}

.hours__list {
  display: grid;
  gap: .7rem;
  margin-top: 1.1rem;
}

.hours__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hours__list dt {
  align-self: center;
}

.hours__list dd {
  font-weight: 500;
}

.hours__block > p:not(.kicker):not(.hours__addr):not(.hours__big) {
  margin-top: .8rem;
  color: var(--muted);
}

.hours__addr {
  margin-top: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.hours__big {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  font-size: clamp(3.6rem, 7vw, 6.4rem);
  line-height: .9;
}

.hours__big small {
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
}

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

.foot {
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 2rem;
  color: var(--cream);
  background: var(--leaf);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

.foot__grid a {
  display: block;
  width: fit-content;
  margin-top: .35rem;
  text-decoration: none;
  transition: color .25s ease, translate .35s var(--ease-out);
}

.foot__grid a:hover {
  color: var(--clay-soft);
  translate: 6px 0;
}

.foot__kicker {
  margin-bottom: .6rem;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leaf-soft);
}

.foot__small {
  margin-top: 2.5rem;
  font-size: .75rem;
  color: rgba(246, 239, 226, .6);
}

/* ---------- Small screens ---------- */

@media (max-width: 1100px) {
  .dishes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .statement {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .top {
    translate: 0 0;
    gap: .8rem;
  }

  .hero {
    padding-top: 78px;
  }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    z-index: 59;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--cream);
    translate: 0 -12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, translate .3s var(--ease-out), visibility 0s .3s;
  }

  .nav.is-open {
    translate: 0 0;
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav a {
    padding: .7rem 0;
    font-family: var(--font-display);
    font-stretch: 86%;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.03em;
  }

  .nav__cta {
    display: block;
    color: var(--clay);
  }

  .top__cta {
    display: none;
  }

  .burger {
    display: block;
  }

  .tags {
    justify-content: center;
  }

  .season,
  .reserve__grid,
  .view__grid,
  .farm-list,
  .hours__grid,
  .words__grid,
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .book {
    position: static;
  }

  .view .photo {
    order: -1;
  }
}

@media (max-width: 700px) {
  .collage {
    --mid: 120vw;
    height: 226vw;
  }

  .piece--pineapple { --w: 34vw; --cx: 8vw; --cy: -78vw; --hx: 6vw; --hy: -46vw; }
  .piece--vine { --w: 62vw; --cx: -14vw; --cy: -6vw; --hx: -6vw; --hy: 6vw; }
  .piece--carrots { --w: 38vw; --cx: 30vw; --cy: -4vw; --hx: 26vw; --hy: 10vw; }
  .piece--tomato { --w: 34vw; --cx: -28vw; --cy: -48vw; --hx: -12vw; --hy: 26vw; }
  .piece--lobster { --w: 60vw; --cx: 20vw; --cy: 38vw; --hx: -20vw; --hy: 44vw; }
  .piece--avocado { --w: 42vw; --cx: -26vw; --cy: 30vw; --hx: -28vw; --hy: 22vw; }
  .piece--radish { --w: 44vw; --cx: -24vw; --cy: -80vw; --hx: -26vw; --hy: -30vw; }
  .piece--peach { --w: 36vw; --cx: 32vw; --cy: -84vw; --hx: -2vw; --hy: -30vw; }
  .piece--cauliflower { --w: 52vw; --cx: 22vw; --cy: -44vw; --hx: 24vw; --hy: -26vw; }
  .piece--strawberries { --w: 56vw; --cx: -18vw; --cy: 68vw; --hx: 20vw; --hy: 38vw; }
  .piece--eggplant { --w: 50vw; --cx: 22vw; --cy: 86vw; --hx: -6vw; --hy: 50vw; }
  .piece--note { --x: 7%; --y: 2vw; max-width: 15.5em; font-size: 1rem; }

  .piece--kale,
  .piece--lemon,
  .piece--chili,
  .piece--where {
    display: none;
  }

  .dishes,
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .head {
    align-items: flex-start;
  }

  .season__stage {
    height: 220px;
  }
}

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .piece,
  .table.is-mine .table__shape {
    animation: none;
  }

  .js .hero__mark,
  .js .hero__sub,
  .js .tag,
  .js .hero .piece {
    opacity: 1;
  }

  .top {
    transition: none;
  }
}
