/* Greenfield Cannabis: the Clarkston Quadrangle sheet */

:root {
  --paper: #f4f1e4;
  --ink: #17201b;
  --green: #0f6848;
  --gold: #d2aa45;
  --land: #cfe3d2;
  --idaho: #e8e4d2;
  --contour: #b08a3e;
  --water: #7fb2d6;
  --water-ink: #123f61;
  --road: #a4372c;
  --muted: #45554b;
  --rule: 2px solid var(--ink);
  --hair: 1.5px solid var(--ink);
  --label: "Archivo Narrow", "Arial Narrow", sans-serif;
  --text: "Gelasio", Georgia, serif;
  --gutter: clamp(10px, 1.7vw, 24px);
  --pad: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --collar-h: 3.25rem;
  --fold: rgba(23, 32, 27, 0.16);
  --fold-lit: rgba(255, 255, 255, 0.45);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink) var(--paper);
  scroll-padding-top: calc(var(--collar-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.55;
}

::selection { background: var(--gold); color: var(--ink); }
a[href^="tel:"] { white-space: nowrap; }

h1, h2, h3, p, ul, ol, dl, dd, table, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}
p a:hover, .imprint a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border: var(--rule);
  font: 700 0.875rem/1 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* ---------- Collar ---------- */
.collar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: var(--collar-h);
  padding-left: var(--gutter);
  background: var(--paper);
  border-bottom: var(--rule);
}
.sheet-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font: 700 0.9375rem/1.15 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.sheet-title img { width: 1.9rem; height: auto; }
.sheet-title span { display: block; }
.sheet-title small i { font-style: normal; }
.sheet-title small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.collar nav { display: flex; }
.collar nav a {
  display: flex;
  align-items: center;
  padding: 0 clamp(0.75rem, 2vw, 1.4rem);
  border-left: var(--hair);
  font: 700 0.8125rem/1 var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.collar nav a:hover { background: var(--ink); color: var(--paper); }
.collar nav a[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--ink); }
.collar nav a.order[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--paper); }
.collar nav a.order {
  background: var(--green);
  color: var(--paper);
  border-left: var(--rule);
}
.collar nav a.order:hover { background: var(--ink); color: var(--paper); }

/* ---------- Sheet frame ---------- */
.sheet {
  position: relative;
  margin: 0 var(--gutter) var(--gutter);
  border: var(--rule);
  border-top: 0;
}
/* Coordinate ticks carried down both neatlines */
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, var(--ink) 0 1.5px, transparent 1.5px 7.5rem) left / 7px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 1.5px, transparent 1.5px 7.5rem) right / 7px 100% no-repeat;
}
.statement, .menu { position: relative; z-index: 3; }
.band, .margin { position: relative; }
.band { border-top: var(--rule); }
.defs { position: absolute; width: 0; height: 0; }

/* Legend numbers: one numeral per symbol, on the map, in the legend, on the panel it leads to */
.num circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.4px; }
.num text { font: 700 23px var(--label); fill: var(--ink); text-anchor: middle; }
.num circle.hit { fill: transparent; stroke: none; }
a.num { outline: none; }
a.num:hover circle:not(.hit), a.num:focus-visible circle:not(.hit) { fill: var(--ink); }
a.num:hover text, a.num:focus-visible text { fill: var(--paper); }
a.num:focus-visible circle:not(.hit) { stroke: var(--ink); stroke-width: 7px; }
.key b, .tab b {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border: var(--hair);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.8125rem/1 var(--label);
}
.tab {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.55rem 0.3rem 0.5rem;
  border-right: var(--hair);
  border-bottom: var(--hair);
  background: var(--paper);
}
.margin:has(> .tab) { padding-top: 3.4rem; }
.band:first-child { border-top: 0; }

/* ---------- First viewport: map + legend ---------- */
.map {
  position: relative;
  height: clamp(270px, 46svh, 460px);
  overflow: hidden;
  background: var(--land);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12.5%) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12.5%) bottom / 100% 7px no-repeat;
}

.q-label { font-family: var(--label); font-weight: 700; fill: var(--ink); letter-spacing: 0.2em; }
.q-halo { paint-order: stroke; stroke: var(--land); stroke-width: 7px; stroke-linejoin: round; }
.q-halo-idaho { paint-order: stroke; stroke: var(--idaho); stroke-width: 8px; stroke-linejoin: round; }
.q-water { font-family: var(--text); font-style: italic; fill: var(--water-ink); letter-spacing: 0.14em; paint-order: stroke; stroke: var(--water); stroke-width: 5px; stroke-linejoin: round; }

/* Corner coordinates */
.coord {
  position: absolute;
  z-index: 1;
  padding: 0.1rem 0.3rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  font: 700 0.6875rem/1.2 var(--label);
  letter-spacing: 0.1em;
}
.coord-n { top: 0.7rem; left: 0.7rem; }
.coord-w { bottom: 0.7rem; right: 0.7rem; }

/* The store marker is ringed in gold while the store is open */
.beacon circle { fill: none; stroke: var(--gold); stroke-width: 7px; }
.beacon .rule { stroke: var(--ink); stroke-width: 1.5px; }
.beacon .pulse { stroke-width: 3px; transform-box: fill-box; transform-origin: center; opacity: 0; }
.beacon { opacity: 0; }
[data-store="open"] .beacon { opacity: 1; }

/* A legend entry, or its numeral on the map, picks out its feature */
.f-way, .f-street, .f-line, .f-store { transition: stroke-width 0.2s, transform 0.2s; }
.f-store { transform-box: fill-box; transform-origin: 50% 60%; }
.first:has(a[href="#order"]:is(:hover, :focus-visible)) .f-way { stroke-width: 12px; }
.first:has(a[href="#hours"]:is(:hover, :focus-visible)) .f-store { transform: scale(1.7); }
.first:has(a[href="#record"]:is(:hover, :focus-visible)) .f-street { stroke-width: 8px; }
.first:has(a[href="#rules"]:is(:hover, :focus-visible)) .f-line { stroke-width: 5px; }
.q-fine { display: none; }

.legend {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.1rem;
  border-top: var(--rule);
}
.legend h1 {
  font-weight: 500;
  font-size: clamp(2.05rem, 1.1rem + 4.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.legend h1 em { font-style: normal; font-weight: 600; color: var(--green); }

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0.85rem 0 0.8rem;
  font-family: var(--label);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}
.status b {
  padding: 0.3rem 0.6rem;
  border: var(--hair);
  background: var(--gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}
.status b[data-state="closed"] { background: var(--paper); }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.1rem;
  border: var(--rule);
  background: var(--green);
  color: var(--paper);
  font: 700 clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem)/1 var(--label);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cta svg { flex: none; color: var(--gold); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.cta:hover { background: var(--ink); color: var(--paper); }
.cta:hover svg { transform: translateX(6px); }
.cta:active { background: #0b4f37; }

.cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 0.6rem;
  border: var(--hair);
}
.cells a {
  padding: 0.6rem 0.75rem 0.65rem;
  font: 700 1rem/1.2 var(--label);
  letter-spacing: 0.05em;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.cells a + a { border-left: var(--hair); }
.cells a:hover { background: var(--ink); color: var(--paper); }
.cells small {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.cells a:hover small { color: var(--paper); }

.key { margin-top: 1rem; }
.key ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--hair);
  border-left: var(--hair);
}
.key li { border-right: var(--hair); border-bottom: var(--hair); }
.key a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.45rem 0.5rem;
  font: 700 0.75rem/1.2 var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.key svg, .tab svg { flex: none; }
.key small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.key a:hover { background: var(--ink); color: var(--paper); }
.key a:hover small { color: var(--paper); }
.key a:hover svg { background: var(--paper); outline: 3px solid var(--paper); }
.sheet-note {
  margin-top: 0.85rem;
  font: 500 0.8125rem/1.4 var(--label);
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- Bands ---------- */
.band-pad { padding: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) var(--pad); }
.band h2 {
  font-weight: 500;
  font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.band p { max-width: 62ch; }
.band p + p { margin-top: 0.9rem; }
.band h2 + p { margin-top: 1.1rem; }

.split { display: grid; gap: 2rem; }

/* Menu index */
.index { border-top: var(--rule); }
.index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.25rem;
  border-bottom: var(--hair);
  font: 700 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s;
}
.index a svg { flex: none; color: var(--green); }
.index a:hover { padding-left: 0.9rem; padding-right: 0.9rem; background: var(--ink); color: var(--paper); }
.index a:hover svg { color: var(--paper); }

/* Hours */
.hours {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--rule);
  font-family: var(--label);
  font-size: 1.125rem;
  font-variant-numeric: tabular-nums;
}
.hours th,
.hours td { padding: 0.6rem 0.5rem; border-bottom: var(--hair); text-align: left; }
.hours th { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.hours td { text-align: right; letter-spacing: 0.03em; }
.hours tr.today th,
.hours tr.today td { background: var(--gold); }
.hours tr.today th::after {
  content: "Today";
  margin-left: 0.6rem;
  padding: 0.1rem 0.35rem;
  border: 1.5px solid var(--ink);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  vertical-align: 0.12em;
}

.place { font-style: normal; font-size: 1.25rem; line-height: 1.4; }
.place strong { font-weight: 600; }
.band .cells { max-width: 30rem; margin-top: 1.25rem; }
.band .aside-link { margin-top: 1.1rem; font-family: var(--label); letter-spacing: 0.06em; }

/* Statement */
.statement { background: var(--green); color: var(--paper); }
.statement h2 { font-size: clamp(2rem, 1rem + 4.4vw, 4.75rem); line-height: 1; max-width: 16ch; }
.statement p { margin-top: 0; font-size: 1.25rem; line-height: 1.45; color: #e2ead9; max-width: 30ch; }
.statement.split { align-items: end; }
.statement ::selection { background: var(--paper); color: var(--green); }
.statement :focus-visible { outline-color: var(--paper); }

/* Record (traverse) */
.traverse { display: grid; gap: 1.6rem; margin-top: 2.2rem; }
.traverse li { position: relative; padding-left: 2rem; }
.traverse li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1rem;
  height: 0.9rem;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.traverse time {
  display: block;
  font: 700 0.875rem/1.2 var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.traverse p { margin-top: 0.3rem; font-size: 1.1875rem; line-height: 1.35; max-width: 26ch; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2.2rem;
  padding: 0.95rem 1rem;
  border: var(--rule);
  font: 700 0.9375rem/1 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.more:hover { background: var(--ink); color: var(--paper); }

/* Closing order band */
.close { display: grid; gap: 1.4rem; align-items: center; }
.close .cta { max-width: 34rem; }

/* ---------- Footer margin notes ---------- */
.margin {
  padding: 1.6rem var(--pad) 2rem;
  border-top: var(--rule);
  font-family: var(--label);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.sheets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 34rem;
  margin-bottom: 1.4rem;
  border: var(--hair);
}
.sheets a {
  padding: 0.9rem 0.75rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.sheets a + a { border-left: var(--hair); }
.sheets a:hover, .sheets a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.margin .warn { max-width: 78ch; }
.margin .imprint a { display: inline-block; padding: 0.85rem 0; }
.margin .rules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.margin .rules li {
  padding: 0.3rem 0.6rem;
  border: var(--hair);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.margin .rules li:first-child { background: var(--ink); color: var(--paper); }
.margin .imprint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  margin-top: 1.2rem;
  padding-top: 0.5rem;
  border-top: var(--hair);
  color: var(--muted);
}

/* ---------- Shop ---------- */
.counter { display: grid; gap: 1rem; padding: 1.25rem var(--pad) 1.4rem; }
.counter h1 { font-weight: 500; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); line-height: 1.05; letter-spacing: -0.01em; }
.counter .status { margin: 0.6rem 0 0; }
.counter .cells { margin-top: 0; }
.counter .sheet-note { margin-top: 0.6rem; max-width: 60ch; font-size: 0.8125rem; }
.menu { background: #fff; }
.menu-fallback { padding: 1rem var(--pad); font-family: var(--label); letter-spacing: 0.04em; }

/* ---------- History ---------- */
.story { padding: clamp(2rem, 1rem + 4vw, 5rem) var(--pad); }
.story h1 {
  max-width: 18ch;
  font-weight: 500;
  font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.story h1 em { font-style: normal; font-weight: 600; color: var(--green); }
.story .lede { max-width: 58ch; margin-top: 1.4rem; font-size: 1.25rem; line-height: 1.5; }
.stations { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-left: var(--rule); }
.stations > li { position: relative; padding: 0 0 clamp(2.2rem, 4vw, 3.5rem) clamp(1.4rem, 4vw, 3rem); }
.stations > li:last-child { padding-bottom: 0; }
.stations > li::before {
  content: "";
  position: absolute;
  left: -0.7rem;
  top: 0.1rem;
  width: 1.3rem;
  height: 1.15rem;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow: 0 0 0 6px var(--paper);
}
.stations > li::after {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: -0.2rem;
  width: 1.6rem;
  height: 1.8rem;
  background: var(--paper);
  z-index: -1;
}
.stations { isolation: isolate; }
.stations time {
  display: block;
  font: 700 0.9375rem/1.2 var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.stations h2 {
  margin-top: 0.35rem;
  font-weight: 500;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.stations p { max-width: 64ch; margin-top: 0.8rem; }
.st-body > :first-child { margin-top: 0.8rem; }
.stations blockquote {
  max-width: 22ch;
  margin: 1.2rem 0 0;
  font-weight: 600;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  line-height: 1.08;
  color: var(--green);
}
.stations .source {
  margin-top: 0.9rem;
  font: 500 0.8125rem/1.45 var(--label);
  letter-spacing: 0.05em;
  color: var(--muted);
}
.stations .source a { color: var(--ink); }
.stations .source a:hover { color: var(--green); }

/* ---------- Larger sheets ---------- */
@media (min-width: 700px) {
  .q-fine { display: inline; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .traverse { grid-template-columns: repeat(3, 1fr); gap: 0; border-top: var(--rule); margin-top: 3rem; }
  .traverse li { padding: 1.5rem 1.5rem 0 0; }
  .traverse li::before { left: 0; top: -0.95rem; box-shadow: none; }
  .close { grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem); gap: 3rem; }
  .counter { grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); align-items: end; gap: 2rem; }
  .margin { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .sheet-title { font-size: 0.875rem; letter-spacing: 0.1em; gap: 0.5rem; }
  .sheet-title small i { display: none; }
  .collar nav a { padding: 0 0.7rem; letter-spacing: 0.12em; }
}

/* ---------- Phones carry the sheet folded ---------- */
@media (max-width: 699px) {
  /* The long crease down the middle of the sheet */
  .sheet::after,
  .statement::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50% - 1px);
    z-index: 2;
    pointer-events: none;
    border-left: 1px solid var(--fold);
    border-right: 1px solid var(--fold-lit);
  }
  .statement::after { border-left-color: rgba(0, 0, 0, 0.24); border-right-color: rgba(255, 255, 255, 0.16); }
  /* Cross creases: one through the map, one where each panel hinges */
  .map::before,
  .band-pad::before,
  .margin::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
    border-top: 1px solid var(--fold-lit);
    border-bottom: 1px solid var(--fold);
  }
  .map::before { top: 50%; border-top-color: var(--fold); border-bottom-color: var(--fold-lit); }
  .statement::before { border-top-color: rgba(255, 255, 255, 0.16); border-bottom-color: rgba(0, 0, 0, 0.24); }
}

/* Each panel opens from its hinge as it comes into view, in fold order */
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band-pad,
    .margin {
      transform-origin: 50% 0;
      animation: unfold linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
    @keyframes unfold {
      from { transform: perspective(900px) rotateX(-26deg); }
      to { transform: perspective(900px) rotateX(0deg); }
    }
  }
}

@media (min-width: 900px) {
  :root { --collar-h: 3.75rem; }
  .stations > li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); }
  .st-body > :first-child { margin-top: 0.15rem; }
  .story .lede { font-size: 1.375rem; }
  .first {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(24rem, 1fr);
    min-height: min(calc(100svh - var(--collar-h) - var(--gutter)), 56rem);
  }
  .map { height: auto; min-height: 34rem; }
  .legend { border-top: 0; border-left: var(--rule); padding: clamp(1.4rem, 2.4vw, 2.5rem); justify-content: center; }
  .status { margin: 1.3rem 0 1.2rem; font-size: 1.0625rem; }
  .cells a { font-size: 1.125rem; padding: 0.8rem 1rem; }
  .key { margin-top: 1.6rem; }
  .key a { padding: 0.6rem 0.75rem; gap: 0.6rem; font-size: 0.8125rem; }
  .key small { font-size: 0.75rem; }
  .sheet-title { font-size: 1.0625rem; }
  .sheet-title small { font-size: 0.75rem; }
  .sheet-title img { width: 2.2rem; }
}

/* ---------- The survey draws itself, once ---------- */
@media (prefers-reduced-motion: no-preference) {
  .draw {
    stroke-dasharray: 1;
    animation: draw 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--d, 0s);
  }
  .route.draw { animation-duration: 1.1s; }
  .mark {
    animation: mark 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--d, 0s);
  }
  .late { animation: late 0.8s both; animation-delay: 1.7s; }
  [data-store="open"] .beacon .pulse { animation: pulse 2.6s cubic-bezier(0.16, 1, 0.3, 1) infinite; animation-delay: 2.4s; }
  @keyframes late {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes pulse {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(2.3); opacity: 0; }
  }
  @keyframes draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
  @keyframes mark {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
}

@media print {
  .collar { position: static; }
  .collar nav a.order[aria-current="page"] { box-shadow: inset 0 -5px 0 var(--ink); }
  .cta, .collar nav a.order, .statement, .statement p, .margin .rules li:first-child, .sheets a[aria-current="page"] { background: none; color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .f-way, .f-street, .f-line, .f-store, .cta, .cta svg, .index a { transition: none; }
}
