/* Cre8 Balance. One stylesheet for the whole site. Read DESIGN.md before adding to it. */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Figtree Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-ext-wght-italic.woff2) format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/figtree-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  /* Colour. Black is the ground and the dominant neutral, paper white the supporting tone. */
  --black: #000;
  --black-2: #131513;
  --paper: #f7f5ee;
  --paper-2: #eceadf;
  --ink: #121512;
  /* The brand's three colours, from the official logo artwork. Each is also used as a whole band:
     red for visiting, green for the shop and its menu, blue for learning. */
  --red: #e32319;
  --green: #84bd21;
  --blue: #0084af;

  /* Contextual colours. `.on-paper` flips them for a light band. */
  --bg: var(--black);
  --bg-2: var(--black-2);
  --fg: var(--paper);
  --fg-2: #b5bdb6;
  --rule: #2c302c;
  --rule-strong: #7a807a;
  --danger: #ff8a80;

  /* The primary button: green on black. Bands restyle it so it always stands out. */
  --accent: var(--green);
  --accent-fg: var(--black);
  --accent-edge: var(--green);

  /* Type */
  --font-display: "Bricolage Grotesque Variable", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Figtree Variable", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --text-sm: 0.9375rem;
  --text-base: clamp(1.0625rem, 1.03rem + 0.16vw, 1.1875rem);
  --text-lg: clamp(1.25rem, 1.19rem + 0.3vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.36rem + 0.7vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3.5rem);
  --text-3xl: clamp(2.75rem, 1.4rem + 5.4vw, 6rem);

  /* Space, on a 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Layout */
  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 76rem;
  --measure: 40rem;
  --section: clamp(3.5rem, 2rem + 6vw, 7.5rem);
  --header-height: 4.25rem;
}

.on-paper {
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --fg-2: #47524b;
  --rule: rgb(18 21 18 / 0.2);
  --rule-strong: #6b726b;
  --danger: #b4231b;
  /* On paper the green button needs an ink outline to stand out. */
  --accent-edge: var(--ink);
}

/* Brand colour bands. Text is black on green and blue and white on red, the pairings that pass AA.
   Secondary text keeps the main colour here, because a muted tone would not have enough contrast. */
.on-green,
.on-blue {
  --fg: var(--black);
  --fg-2: var(--black);
  --rule: rgb(0 0 0 / 0.3);
  --rule-strong: rgb(0 0 0 / 0.7);
}

.on-green {
  --bg: var(--green);
}

.on-blue {
  --bg: var(--blue);
}

.on-red {
  --bg: var(--red);
  --fg: #fff;
  --fg-2: #fff;
  --rule: rgb(255 255 255 / 0.4);
  --rule-strong: rgb(255 255 255 / 0.8);
}

/* On a colour band the primary button turns black, so it reads on any of the three. */
.on-green,
.on-blue,
.on-red {
  --accent: var(--black);
  --accent-fg: #fff;
  --accent-edge: var(--black);
}

.on-paper,
.on-green,
.on-blue,
.on-red {
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Reset and base ---------- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--text-base) / 1.55 var(--font-body);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-lg);
  line-height: 1.2;
}

h4 {
  font-size: var(--text-base);
  line-height: 1.3;
}

p,
li,
dd {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--green);
  color: var(--black);
}

/* The hidden attribute always wins, whatever display a class sets. */
[hidden] {
  display: none !important;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

button {
  font: inherit;
  color: inherit;
}

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

/* ---------- Layout ---------- */

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

.section {
  padding-block: var(--section);
}

.section--rule {
  border-top: 1px solid var(--rule);
}

/* A heading column beside a wider content column. Stacks on small screens. */
.split {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 62rem) {
  .split {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-7);
  }
}

.stack > * + * {
  margin-top: var(--space-4);
}

.measure {
  max-width: var(--measure);
}

/* ---------- Text styles ---------- */

.kicker {
  color: var(--fg-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lede {
  font-size: var(--text-lg);
  line-height: 1.4;
  text-wrap: pretty;
}

.muted {
  color: var(--fg-2);
}

.small {
  font-size: var(--text-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 20;
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Icons ---------- */

/* An icon sits in the line of text it belongs to, so it wraps with the last word. */
.icon {
  display: inline-block;
  flex: none;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.22em;
  stroke-width: 1.75;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-2) 1.375rem;
  border: 1.5px solid var(--fg);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.btn--primary {
  border-color: var(--accent-edge);
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--primary:hover {
  border-color: var(--fg);
}

.btn--sm {
  min-height: 2.75rem;
  padding-inline: var(--space-4);
  font-size: var(--text-sm);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* A phone number never breaks across lines. */
a[href^="tel:"] {
  white-space: nowrap;
}

/* A standalone link with an arrow, for "see more" paths out of a section.
   Write a non-breaking space before the icon so the arrow never wraps on its own. */
.more {
  display: inline-block;
  padding-block: 0.625rem;
  font-weight: 700;
}

.more .icon {
  transition: transform 0.15s;
}

.more:hover .icon {
  transform: translateX(3px);
}

/* The paragraph that holds a link or button under a list. */
.after-list {
  margin-top: var(--space-4);
}

/* ---------- Social links ----------
   Round buttons for the shop's Instagram, Facebook and YouTube pages. Each link carries its name as
   hidden text, because an icon on its own says nothing to a screen reader. */

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}

.social ul {
  display: flex;
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.social a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  transition:
    background-color 0.15s,
    color 0.15s;
}

.social a:hover {
  background: var(--fg);
  color: var(--bg);
}

.hero .social,
.site-footer .social {
  margin-top: var(--space-5);
}

/* ---------- Open or closed status ---------- */

.status {
  display: inline-flex;
  gap: var(--space-2);
  font-weight: 700;
}

/* The dot sits on the first line of text, so a label that wraps stays aligned. */
.status[data-open]::before {
  content: "";
  flex: none;
  width: 0.625em;
  height: 0.625em;
  margin-top: 0.47em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.status[data-open="true"]::before {
  background: var(--green);
}

.status-line {
  display: none;
  text-decoration: none;
}

/* Matches the breakpoint where the header drops its own status. */
@media (max-width: 57.99rem) {
  .status-line {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--rule);
  }

  .status-line::before {
    margin-top: 0;
  }
}

/* ---------- The brand bar: red, green and blue in the order of the logo ---------- */

.brand-bar {
  height: 0.5rem;
  background: linear-gradient(to right, var(--red) 0 33.33%, var(--green) 33.33% 66.67%, var(--blue) 66.67% 100%);
}

/* ---------- Photos ---------- */

.photo img {
  width: 100%;
  height: auto;
}

.photo figcaption {
  margin-top: var(--space-2);
  color: var(--fg-2);
  font-size: var(--text-sm);
}

/* ---------- Rows: a list divided by hairlines ---------- */

.rows > * {
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule);
}

.rows > *:last-child {
  border-bottom: 1px solid var(--rule);
}

/* A row with a title on the left and its description on the right. */
.row {
  display: grid;
  gap: var(--space-1) var(--space-6);
}

@media (min-width: 40rem) {
  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: baseline;
  }
}

/* A row whose whole area opens its link. */
.row--link {
  position: relative;
}

.row--link a {
  text-decoration: none;
}

.row--link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row--link:hover a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.row--link .icon {
  transition: transform 0.15s;
}

.row--link:hover .icon {
  transform: translate(2px, -2px);
}

/* ---------- Facts: label and value pairs ---------- */

.facts {
  display: grid;
  gap: var(--space-5) var(--space-6);
}

.facts dt {
  margin-bottom: var(--space-1);
  color: var(--fg-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Two columns on the same line as `.row`, so facts and rows in one section share a grid. */
@media (min-width: 40rem) {
  .facts {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 62rem) {
  .facts--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Numbered steps ---------- */

.steps {
  display: grid;
  gap: var(--space-6) var(--space-7);
  counter-reset: step;
}

.steps > li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-content: start;
  column-gap: var(--space-4);
  counter-increment: step;
}

.steps > li::before {
  content: counter(step);
  grid-row: span 2;
  font: 600 var(--text-xl) / 1 var(--font-display);
}

.steps h3 {
  margin-bottom: var(--space-2);
}

.steps p {
  grid-column: 2;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours th,
.hours td {
  padding-block: 0.625rem;
  border-top: 1px solid var(--rule);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
}

.hours tr:last-child > * {
  border-bottom: 1px solid var(--rule);
}

.hours .is-today > * {
  font-weight: 700;
}

.hours .tag {
  margin-left: var(--space-2);
}

.tag {
  display: inline-block;
  padding: 0.0625rem var(--space-2);
  border-radius: 999px;
  background: var(--green);
  color: var(--black);
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

/* ---------- Questions and answers ---------- */

.faq {
  border-top: 1px solid var(--rule);
}

.faq:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding-block: var(--space-4);
  font-weight: 700;
  list-style: none;
  text-wrap: balance;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  margin-top: 0.15em;
  transition: transform 0.2s;
}

.faq[open] summary .icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-width: var(--measure);
  padding-bottom: var(--space-5);
}

.faq__answer > * + * {
  margin-top: var(--space-3);
}

/* ---------- Long-form text ---------- */

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: 1.2em;
}

.prose h2 {
  margin-top: 2.2em;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--fg-2);
}

.prose blockquote {
  padding-left: var(--space-4);
  border-left: 2px solid var(--fg);
}

.prose hr {
  height: 1px;
  border: 0;
  background: var(--rule);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.prose th,
.prose td {
  padding: var(--space-3) var(--space-4) var(--space-3) 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  text-wrap: balance;
  vertical-align: top;
}

.prose thead th {
  border-bottom-color: var(--fg);
}

/* ---------- Forms ---------- */

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: var(--space-3);
  border: 1.5px solid var(--rule-strong);
  border-radius: 0.375rem;
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--fg);
}

.field [aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: flex;
  gap: var(--space-2);
  color: var(--danger);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Before the age question is answered ---------- */

/* Hide the page until the visitor has answered the age question, and stop it scrolling behind the
   gate, so a visitor who says yes starts at the top. */
.age-pending {
  overflow: hidden;
}

.age-pending .page {
  visibility: hidden;
}

.noscript-notice {
  padding: var(--space-3) var(--gutter);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.site-header .bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--header-height);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-right: auto;
  font: 650 1.25rem / 1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .red {
  color: var(--red);
}

.site-header .green {
  color: var(--green);
}

.site-header .blue {
  color: var(--blue);
}

.site-header .site-nav ul {
  display: flex;
  gap: var(--space-1) var(--space-5);
  padding: 0;
  list-style: none;
}

.site-header .site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header .site-nav a:hover,
.site-header .site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.site-header .status {
  text-decoration: none;
  white-space: nowrap;
}

.site-header .nav-toggle {
  display: none;
  order: 1;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.site-header .nav-toggle[aria-expanded="false"] .when-open,
.site-header .nav-toggle[aria-expanded="true"] .when-closed,
.site-header .narrow-only,
.site-header .nav-contact {
  display: none;
}

/* Wide screens: nav, status and button sit in the bar. */
@media (min-width: 58rem) {
  .site-header .site-nav {
    margin-right: var(--space-4);
  }

  .site-header .bar .status {
    margin-right: var(--space-2);
  }
}

/* Narrow screens: nav moves into a panel under the bar. The status moves to a line above the page (see Base.astro). */
@media (max-width: 57.99rem) {
  .site-header .bar .status {
    display: none;
  }

  .site-header .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    padding: var(--space-2) var(--gutter) var(--space-5);
    border-bottom: 1px solid var(--rule);
    background: var(--bg);
  }

  .site-header[data-nav-open] .site-nav {
    display: block;
  }

  .site-header .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-header .site-nav li {
    border-bottom: 1px solid var(--rule);
  }

  .site-header .site-nav ul a {
    display: flex;
    min-height: 3.25rem;
    font-size: var(--text-lg);
  }

  .site-header .nav-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-5);
    margin-top: var(--space-4);
  }

  .site-header .nav-toggle {
    display: grid;
  }

  /* Without JavaScript the toggle cannot work, so the links stay visible under the bar. */
  .no-js .site-header .nav-toggle {
    display: none;
  }

  .no-js .site-header .bar {
    flex-wrap: wrap;
  }

  .no-js .site-header .site-nav {
    position: static;
    display: block;
    order: 5;
    width: 100%;
    padding-inline: 0;
    border: 0;
  }
}

@media (max-width: 30rem) {
  .site-header .wide-only {
    display: none;
  }

  .site-header .narrow-only {
    display: inline;
  }
}

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

.site-footer {
  padding-top: var(--section);
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}

.site-footer .brand-bar {
  margin-top: var(--space-6);
}

.site-footer .visit {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--rule);
}

.site-footer .about img {
  margin-bottom: var(--space-4);
}

.site-footer .about p {
  max-width: 22rem;
}

.site-footer .columns {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 40rem) {
  .site-footer .columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.site-footer .label {
  margin-bottom: var(--space-2);
  color: var(--fg-2);
  font: 600 var(--text-sm) / 1.3 var(--font-body);
  letter-spacing: 0.01em;
}

.site-footer ul {
  padding: 0;
  list-style: none;
}

/* Navigation links: 44px tall so they are easy to hit, underlined on hover like the header's. */
.site-footer .columns a,
.site-footer .legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.site-footer .columns a:hover,
.site-footer .legal a:hover {
  text-decoration: underline;
}

.site-footer .warning {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
}

.site-footer .warning p {
  max-width: 60rem;
}

.site-footer .warning strong {
  color: var(--fg);
}

.site-footer .legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--space-6);
  margin-top: var(--space-4);
  color: var(--fg-2);
}

.site-footer .legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}

/* ---------- Age question ----------
   The first thing a new visitor sees, so it fills the screen: the sign's three colours as three real
   things, red cloth, green light and blue water, with a singing bowl standing in the water.
   Nothing here shows cannabis, because the visitor has not yet said they are 21. */

.age-gate {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  border: 0;
  overflow: hidden auto;
  background: var(--black);
  color: var(--fg);
}

/* Only when open, so that a closed dialog stays hidden. The question sits in the middle row,
   with the logo above it and the bowl below. */
.age-gate[open] {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}

.age-gate::backdrop {
  background: var(--black);
}

.age-gate__logo,
.age-gate__ask,
.age-gate__still {
  position: relative;
  z-index: 1;
}

.age-gate__logo {
  grid-row: 1;
  place-self: end center;
  margin-block: var(--space-6) var(--space-5);
}

.age-gate__ask {
  grid-row: 2;
  justify-self: center;
  width: min(100% - 2 * var(--gutter), 34rem);
  text-align: center;
}

.age-gate h2 {
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
}

.age-gate .actions {
  justify-content: center;
  margin-top: var(--space-6);
}

/* The two answers are the same width, side by side or stacked. */
.age-gate .btn {
  min-width: 13.5rem;
}

.age-gate__cloth,
.age-gate__water,
.age-gate__bowl {
  position: absolute;
  width: auto;
  max-width: none;
}

/* On a phone the cloth is a drape in the top corner, which fades out before the question starts. */
.age-gate__cloth {
  grid-row: 1 / 2;
  top: 0;
  left: 0;
  height: 150%;
  translate: -25% 0;
  mask-image: linear-gradient(#000 40%, transparent 66%);
}

/* The light is a background, like the one in the hero, so it needs no element of its own. It is sized
   by the screen's height as well as its width, so on a short screen it stays inside the gate and
   gives it nothing to scroll. */
.age-gate::before {
  content: "";
  position: absolute;
  top: -5rem;
  right: -7rem;
  width: min(150vw, 130vh);
  aspect-ratio: 480 / 348;
  background: url(../nature/green-light.webp) no-repeat center / 100%;
  opacity: 0.7;
}

/* The bowl and the water are sized from the height of this box, so they keep their proportions. */
.age-gate__still {
  grid-row: 3;
  align-self: end;
  height: clamp(7rem, 22vh, 14rem);
  margin-top: var(--space-5);
}

.age-gate__water {
  bottom: 10%;
  left: 50%;
  height: 46%;
  translate: -38% 0;
}

.age-gate__bowl {
  z-index: 1;
  bottom: 28%;
  left: 50%;
  height: 72%;
  translate: -36% 0;
}

@media (min-width: 48rem) {
  /* With room, the cloth hangs the full height of the left edge and the question keeps clear of it. */
  .age-gate__cloth {
    grid-row: 1 / -1;
    height: 100%;
    translate: min(0px, 22vw - 100%) 0;
    mask-image: none;
  }

  .age-gate__ask {
    width: min(100% - 44vw, 34rem);
  }

  /* Here the limit also keeps the light in its corner and off the text. */
  .age-gate::before {
    top: 0;
    right: 0;
    width: min(62vw, 100vh, 58rem);
    opacity: 1;
  }
}

/* A short screen gets a smaller logo, and a very short one drops the bowl. */
@media (max-height: 40rem) {
  .age-gate__logo {
    width: 4rem;
    height: 4rem;
    margin-block: var(--space-4);
  }
}

@media (max-height: 30rem) {
  .age-gate__still {
    display: none;
  }
}

/* At the shortest (a desktop zoomed to 400%) there is only room for the question itself, set tighter
   so that it and the first answer show without scrolling even before the fonts have loaded. */
@media (max-height: 19rem) {
  .age-gate__logo {
    display: none;
  }

  .age-gate__ask {
    padding-block: var(--space-3);
  }

  .age-gate h2 {
    margin-bottom: var(--space-2);
    font-size: var(--text-xl);
  }

  .age-gate .actions {
    margin-top: var(--space-4);
  }
}

/* Saying yes: the question goes first, then the cloth draws aside, two rings spread across the water
   and the page shows through. site.js waits for these to finish before it closes the dialog. */
@media (prefers-reduced-motion: no-preference) {
  .age-gate.is-leaving {
    animation: gate-fade 0.45s 0.25s ease-in both;
  }

  .age-gate.is-leaving::backdrop {
    background: transparent;
  }

  .age-gate.is-leaving .age-gate__logo,
  .age-gate.is-leaving .age-gate__ask {
    animation: gate-fade 0.15s both;
  }

  .age-gate.is-leaving .age-gate__cloth {
    animation: gate-cloth 0.6s ease-in both;
  }

  .age-gate.is-leaving .age-gate__still::before,
  .age-gate.is-leaving .age-gate__still::after {
    content: "";
    position: absolute;
    bottom: 33%;
    left: 50%;
    width: 26vh;
    aspect-ratio: 8;
    border: 1.5px solid var(--paper);
    border-radius: 50%;
    translate: -50% 50%;
    animation: gate-ring 0.6s ease-out both;
  }

  .age-gate.is-leaving .age-gate__still::after {
    animation-delay: 0.1s;
  }
}

@keyframes gate-fade {
  to {
    opacity: 0;
  }
}

@keyframes gate-cloth {
  to {
    translate: -100% 0;
  }
}

@keyframes gate-ring {
  from {
    opacity: 1;
    scale: 0.3;
  }

  to {
    opacity: 0;
    scale: 3;
  }
}

/* ---------- Page title band ---------- */

.page-header {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}

.page-header .wrap {
  position: relative;
}

.page-header .kicker {
  margin-bottom: var(--space-3);
}

.page-header .lede {
  margin-top: var(--space-4);
}

/* ---------- Map ---------- */

.map > * + * {
  margin-top: var(--space-3);
}

.map iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border: 0;
  background: var(--black-2);
}

/* Without JavaScript the map cannot load, so only the directions button is offered. */
.no-js .map [data-map-load],
.no-js .map .map__note {
  display: none;
}

/* ---------- Home page ---------- */

.hero {
  padding-top: clamp(2.5rem, 1rem + 5vw, 5rem);
}

.hero__layout {
  display: grid;
  align-items: center;
  gap: var(--space-6);
  padding-bottom: clamp(2.5rem, 1rem + 5vw, 5rem);
}

.hero h1 {
  margin-block: var(--space-4) var(--space-5);
  font-size: var(--text-3xl);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.hero h1 > span {
  display: block;
}

.red {
  color: var(--red);
}

.green {
  color: var(--green);
}

.blue {
  color: var(--blue);
}

.hero .actions {
  margin-top: var(--space-6);
}

.hero__mark {
  width: min(100%, 20rem);
}

.hero__mark figcaption {
  margin-top: var(--space-4);
  color: var(--fg-2);
  font-size: var(--text-sm);
}

@media (min-width: 62rem) {
  .hero__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .hero__mark {
    justify-self: end;
    width: min(100%, 30rem);
  }

  .hero__mark figcaption {
    text-align: center;
  }
}

.door-sign {
  padding-block: var(--space-5);
  border-top: 1px solid var(--rule);
}

.door-sign dd {
  font-weight: 500;
}

/* Each link is its own line and a full-height touch target. */
.door-sign a {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 2.75rem;
  font-weight: 400;
}

.who {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 48rem) {
  .who {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

/* ---------- Guide pages ---------- */

.article-body {
  padding-top: var(--space-7);
}

.article-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
}

.keep-reading {
  margin-top: var(--section);
}

.topic {
  padding-block: var(--space-7);
}

/* ---------- Text pages ---------- */

.prose-page {
  padding-bottom: var(--section);
}

/* ---------- 404 page ---------- */

.not-found {
  padding-bottom: var(--section);
}

/* ---------- Nature ----------
   Every image has one job. A shaft of light falls across the home page hero, toward the photo of the
   shop door. The three groups of occasions each have one natural thing above them: a petal, rays of
   sunlight and a cloud. Petals fall beside that section's introduction. The images on the age
   question are with its styles, above. */

.hero {
  position: relative;
  overflow: hidden;
}

.hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(68rem, 130vw);
  aspect-ratio: 3 / 2;
  background: url(../nature/light.webp) no-repeat top right / contain;
  pointer-events: none;
}

/* On a phone the headline runs under the light, so only its faint tail is shown. */
@media (max-width: 61.99rem) {
  .hero::before {
    top: -5rem;
    right: -7rem;
    opacity: 0.6;
  }
}

.moods {
  display: grid;
  gap: var(--space-7) var(--space-6);
}

@media (min-width: 48rem) {
  .moods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.mood__image {
  display: flex;
  align-items: flex-end;
  height: 8.5rem;
  margin-bottom: var(--space-5);
}

.mood__image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.mood h3 {
  margin-bottom: var(--space-4);
}

.mood h4 {
  margin-bottom: var(--space-1);
}

/* Shown only where the heading column has room beside the content column. */
.falling {
  display: none;
}

@media (min-width: 62rem) {
  .falling {
    display: block;
    width: auto;
    height: 22rem;
    margin-top: var(--space-6);
  }
}
