/* ============================================================
   matches pls — design system
   warm paper · black ink · editorial restraint
   ============================================================ */

/* ---- 1. tokens ------------------------------------------- */
:root {
  /* paper */
  --paper:    #f3eee4;
  --paper-2:  #eae3d5;
  --paper-3:  #ded4c1;

  /* ink */
  --ink:      #191713;
  --ink-70:   #55504a;
  --ink-45:   #6f695f;   /* 4.7:1 on paper — small mono type still has to be readable */

  /* rules */
  --rule:      rgba(25, 23, 19, .20);
  --rule-soft: rgba(25, 23, 19, .10);

  /* accents — used sparingly */
  --oxblood: #7b2b26;
  --forest:  #2f4735;
  --navy:    #23324c;
  --mustard: #8a6314;

  /* type */
  --serif: "Instrument Serif", "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* measure */
  --wrap: 1180px;
  --gutter: 22px;
}

@media (min-width: 700px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

/* ---- 2. reset / base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
  transition: top .16s ease;
}
.skip:focus { top: 12px; }

/* ---- 3. paper grain -------------------------------------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: .052;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- 4. typography --------------------------------------- */
.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .84;
  display: inline-block;
}
.wordmark em { font-style: italic; }

.wordmark-xl {
  font-size: clamp(60px, 17.5vw, 172px);
  letter-spacing: -.035em;
}
.wordmark-md { font-size: clamp(26px, 5vw, 34px); }
.wordmark-sm { font-size: 21px; letter-spacing: -.025em; }
.wordmark-xs { font-size: 26px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.dateline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-45);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dateline::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 9vw, 68px);
  line-height: .95;
  letter-spacing: -.025em;
  margin-top: 14px;
}
.page-title em { font-style: italic; }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 6.5vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 4.6vw, 30px);
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
}

.body-note {
  color: var(--ink-70);
  max-width: 44ch;
  line-height: 1.62;
}

.caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-45);
  text-transform: lowercase;
}

/* editorial arrow link */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: .5em;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  transition: gap .18s ease, border-color .18s ease, color .18s ease;
}
.link-arrow span { transition: transform .18s ease; display: inline-block; }
.link-arrow:hover { gap: .85em; color: var(--oxblood); border-color: var(--oxblood); }

.link-quiet {
  border-bottom: 1px solid var(--rule);
  transition: border-color .18s ease, color .18s ease;
}
.link-quiet:hover { border-color: var(--ink); color: var(--ink); }

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

/* ---- 5. masthead ----------------------------------------- */
.masthead {
  position: relative;
  z-index: 60;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead-in {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-block: 16px 12px;
}
.nav {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: lowercase;
  color: var(--ink-70);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  /* room for the invisible tap pads below — a scroll container clips
     anything outside its padding box, negative margin keeps the height */
  padding-block: 13px;
  margin-block: -13px;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  white-space: nowrap;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav a:hover { color: var(--ink); border-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

@media (min-width: 760px) {
  .masthead-in {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 40px;
    padding-block: 22px 20px;
  }
  .nav { gap: 30px; font-size: 12px; overflow: visible; }
}

/* ---- 6. hero --------------------------------------------- */
.hero {
  padding-block: clamp(46px, 12vw, 96px) clamp(46px, 10vw, 84px);
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: center;
}
.hero-in { width: 100%; }
.hero .wordmark-xl { margin: 20px 0 0; display: block; }
.hero .lede { margin-top: clamp(22px, 5vw, 34px); max-width: 20ch; }
.hero-count {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-top: 20px;
}
.hero-count b { font-weight: 500; color: var(--ink); }
.hero-cta { margin-top: clamp(30px, 6vw, 44px); }

@media (min-width: 900px) {
  .hero .lede { max-width: 26ch; }
}

/* one object in the hero's empty right field — desktop only,
   so the phone's first screen stays as bare as briefed */
/* on a phone it sits under the CTA, small and right-aligned, so the
   type still owns the first screen. on desktop it moves into the
   hero's empty right field. */
.hero-plate {
  display: block;
  width: 58%;
  max-width: 250px;
  margin: clamp(30px, 7vw, 44px) 0 0 auto;
}
@media (min-width: 1000px) {
  .hero-in { position: relative; }
  .hero-plate {
    display: block;
    position: absolute;
    right: var(--gutter);
    bottom: 4%;
    width: clamp(196px, 17vw, 246px);
    max-width: none;
    margin: 0;
    transform: rotate(var(--rot, -3deg));
  }
  .hero-plate:hover { transform: rotate(0deg) translateY(-4px); }
}

/* ---- 7. sections ----------------------------------------- */
.section { padding-block: clamp(48px, 9vw, 92px); }
.section-head {
  /* stacked on a phone so the title always gets full measure;
     the eyebrow/title/link masthead row only kicks in when there's room */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(24px, 5vw, 40px);
}
@media (min-width: 760px) {
  .section-head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 18px;
  }
}
/* the section head's rule already opens the list — don't draw a second one */
.section-head + .index { border-top: 0; }
.section-head .eyebrow { flex: 0 0 auto; }
.section-head .section-title { flex: 1 1 auto; }
.section-head .section-more { flex: 0 0 auto; }

/* ---- 8. plates (matchbook photography) ------------------- */
.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 5vw, 34px) clamp(14px, 4vw, 28px);
  align-items: start;
}
.plate {
  transform: rotate(var(--rot, 0deg));
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.plate:hover { transform: rotate(0deg) translateY(-3px); }

.plate-frame {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 rgba(25,23,19,.05), 0 10px 26px -20px rgba(25,23,19,.7);
  overflow: hidden;
}
.plate-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--rule-soft);
  pointer-events: none;
}
.plate-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* the matchbox shots come on white studio backgrounds. multiplying them
   into the frame makes that white read as paper instead of a bright card. */
.collage .plate-frame img,
.spot-photo .plate-frame img { mix-blend-mode: multiply; }

.plate figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  line-height: 1.5;
  color: var(--ink-45);
}
.plate figcaption b { font-weight: 400; color: var(--ink-70); }

.ar-4x5 { aspect-ratio: 4 / 5; }
.ar-1x1 { aspect-ratio: 1 / 1; }
.ar-3x2 { aspect-ratio: 3 / 2; }
.ar-3x4 { aspect-ratio: 3 / 4; }
.ar-5x7 { aspect-ratio: 5 / 7; }
.ar-16x11 { aspect-ratio: 16 / 11; }

/* uneven mobile arrangement */
.collage .plate:nth-child(2) { margin-top: 30px; }
.collage .plate:nth-child(4) { margin-top: 26px; }
.collage .plate:nth-child(6) { margin-top: 22px; }

@media (min-width: 860px) {
  .collage {
    grid-template-columns: repeat(12, 1fr);
    gap: 0 clamp(18px, 2.4vw, 34px);
  }
  .collage .plate { margin-top: 0; }
  .collage .plate:nth-child(1) { grid-column: 1 / span 4; }
  .collage .plate:nth-child(2) { grid-column: 5 / span 3;  margin-top: 76px; }
  .collage .plate:nth-child(3) { grid-column: 9 / span 4;  margin-top: 14px; }
  .collage .plate:nth-child(4) { grid-column: 2 / span 3;  margin-top: 54px; }
  .collage .plate:nth-child(5) { grid-column: 5 / span 4;  margin-top: -26px; z-index: 2; position: relative; }
  .collage .plate:nth-child(6) { grid-column: 9 / span 3;  margin-top: 44px; }
}

/* ---- 9. status ------------------------------------------- */
.status {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: lowercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-70);
}
.status::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.status-confirmed { color: var(--forest); }
.status-reported  { color: var(--ink-70); }
.status-reported::before { background: none; box-shadow: inset 0 0 0 1px currentColor; }
.status-probably  { color: var(--mustard); }
.status-out       { color: var(--ink-45); }
.status-out::before { background: none; box-shadow: inset 0 0 0 1px currentColor; }
.status-new       { color: var(--oxblood); }

/* ---- 10. the list ---------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  padding-block: 16px;
  border-bottom: 1px solid var(--rule);
}
.filter {
  color: var(--ink-45);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
  min-height: 30px;
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.index { border-top: 1px solid var(--rule); }
.filters + .index { border-top: 0; }
.index-item { border-bottom: 1px solid var(--rule-soft); }

.index-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: baseline;
  gap: 4px 12px;
  width: 100%;
  text-align: left;
  padding: 18px 0;
  transition: opacity .16s ease;
}
.index-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-45);
  padding-top: 6px;
}
.index-name {
  font-family: var(--serif);
  font-size: clamp(23px, 5.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -.015em;
  transition: color .18s ease;
}
.index-hood {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--ink-45);
  margin-top: 7px;
}
.index-right {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 11px;
}
.index-mark {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-45);
  transition: transform .18s ease, color .18s ease;
}
.index-row:hover .index-name { color: var(--oxblood); }
.index-row:hover .index-mark { color: var(--oxblood); transform: translateX(3px); }
.index-row[aria-expanded="true"] .index-mark { transform: rotate(90deg); }

.index-panel { padding: 0 0 26px; }
.index-panel[hidden] { display: none; }
.panel-in {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  padding-left: 42px;
}
.panel-meta { display: grid; gap: 10px; align-content: start; }
.panel-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-70);
}
.panel-line dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-top: 3px;
}
.panel-line dd { margin: 0; }
.panel-note {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}

/* editorial metadata: provenance + when it was last touched. deliberately quiet. */
.panel-editorial {
  margin-top: 16px;
  display: grid;
  gap: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-45);
}
.panel-editorial .when {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
}

@media (min-width: 760px) {
  .index-row { grid-template-columns: 54px 1fr 200px; padding: 22px 0; }
  .index-right {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    width: auto;
    margin-top: 0;
  }
  .panel-in { padding-left: 54px; }
}

/* ---- 11. map --------------------------------------------- */
.map-layout { display: grid; gap: 0; }

.map-frame {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  height: 58vh;
  height: 58svh;
  min-height: 380px;
}
#map-canvas { position: absolute; inset: 0; }

.map-side { padding-top: 26px; }

@media (min-width: 1000px) {
  .map-layout {
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(28px, 3.5vw, 48px);
    align-items: start;
  }
  .map-frame { height: 72vh; min-height: 520px; }
  .map-side {
    padding-top: 0;
    max-height: 72vh;
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

/* leaflet reskin */
.leaflet-container {
  background: var(--paper-2);
  font-family: var(--sans);
}
/* pastel treatment: warm the neutrals first (sepia), bring the hues back
   up (saturate), then lift + flatten into pastel (brightness/contrast) */
/* tiles render in their own colours — no tint. */
.leaflet-control-zoom { border: 1px solid var(--ink) !important; box-shadow: none !important; }
.leaflet-control-zoom a {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rule) !important;
  width: 30px !important; height: 30px !important;
  line-height: 30px !important;
  font-size: 15px !important;
  font-weight: 400 !important;
}
.leaflet-control-zoom a:last-child { border-bottom: 0 !important; }
.leaflet-control-zoom a:hover { background: var(--paper-2) !important; }
.leaflet-control-attribution {
  background: rgba(243,238,228,.86) !important;
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: .04em;
  color: var(--ink-45) !important;
  padding: 2px 6px !important;
}
.leaflet-control-attribution a { color: var(--ink-70) !important; }

.pin {
  width: 22px; height: 22px;
  display: grid; place-content: center;
}
.pin i {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  /* paper halo so our pins read above the map's own symbols */
  box-shadow: 0 0 0 3px var(--paper);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.pin:hover i { transform: scale(1.35); background: var(--ink); }
.pin.is-active i {
  background: var(--oxblood);
  border-color: var(--oxblood);
  transform: scale(1.45);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px rgba(123,43,38,.22);
}
.pin.is-out i { border-style: dashed; opacity: .6; }
.pin.is-confirmed i { background: var(--ink); }

/* selected-spot card */
.spot-card { border-top: 1px solid var(--ink); padding-top: 18px; }
.spot-empty {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink-45);
  padding-block: 8px 4px;
}
.spot-name {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.spot-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: lowercase;
  color: var(--ink-45);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.spot-photo { margin-bottom: 18px; max-width: 240px; }
.spot-actions { margin-top: 18px; display: flex; gap: 20px; flex-wrap: wrap; }

.mini-list { margin-top: 34px; border-top: 1px solid var(--rule); }
.mini-list h2 {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-45);
  padding-block: 14px 10px;
}
.mini-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 11px 0;
  border-top: 1px solid var(--rule-soft);
  transition: color .16s ease;
}
.mini-item span:first-child {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
}
.mini-item:hover { color: var(--oxblood); }
.mini-item[aria-current="true"] span:first-child { font-style: italic; }

/* ---- 12. signup ------------------------------------------ */
.signup-inline { display: grid; gap: 12px; }

.field {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  max-width: 460px;
}
.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-family: var(--sans);
  font-size: 16px; /* prevents iOS zoom */
  padding: 6px 0;
}
.field input::placeholder { color: var(--ink-45); }
.field button {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 8px 0 6px;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
  min-height: 34px;
}
.field button:hover { color: var(--oxblood); border-color: var(--oxblood); }
.field button[disabled] { color: var(--ink-45); cursor: default; }

.form-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-45);
  line-height: 1.6;
  max-width: 46ch;
}
.form-note[data-state="error"] { color: var(--oxblood); }
.form-note[data-state="ok"] { color: var(--forest); }

/* small editorial line of social proof — not a badge, not a stat */
.signup-proof {
  font-size: 13.5px;
  color: var(--ink-70);
  line-height: 1.5;
}

.signup-block {
  display: grid;
  gap: clamp(24px, 5vw, 40px);
  padding-block: clamp(48px, 9vw, 88px);
  border-top: 1px solid var(--ink);
}
.signup-block .signup-title {
  font-family: var(--serif);
  font-size: clamp(38px, 10vw, 76px);
  line-height: .96;
  letter-spacing: -.03em;
}
.signup-block .signup-title em { font-style: italic; }
.signup-copy {
  font-family: var(--serif);
  font-size: clamp(19px, 3.4vw, 23px);
  line-height: 1.32;
  color: var(--ink-70);
  max-width: 26ch;
}
@media (min-width: 900px) {
  .signup-block { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ---- 13. empty states ------------------------------------ */
.empty-note {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 30px);
  line-height: 1.24;
  color: var(--ink-45);
  padding-block: clamp(30px, 6vw, 52px);
  max-width: 24ch;
}

/* ---- 14. submit form ------------------------------------- */
.form-grid {
  display: grid;
  gap: clamp(24px, 4.5vw, 32px);
  max-width: 560px;
}
.form-row { display: grid; gap: 7px; }
.form-row label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.form-row label .opt { text-transform: lowercase; letter-spacing: .08em; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  outline: none;
  font-family: var(--sans);
  font-size: 16px;
  padding: 8px 0;
  width: 100%;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-row textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.form-row input:focus, .form-row textarea:focus { border-bottom-color: var(--oxblood); }
.form-row input[type="file"] {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-70);
  padding: 8px 0;
}
.form-row input[type="file"]::file-selector-button {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 8px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.btn-send {
  justify-self: start;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 15px 26px;
  min-height: 46px;
  transition: background .18s ease, color .18s ease;
}
.btn-send:hover { background: var(--ink); color: var(--paper); }
.btn-send[disabled] { opacity: .5; cursor: default; }

/* ---- 15. small closing sections -------------------------- */
.tail {
  display: grid;
  gap: 18px;
  padding-block: clamp(44px, 8vw, 76px);
  border-top: 1px solid var(--rule);
}
.tail-title {
  font-family: var(--serif);
  font-size: clamp(28px, 6.5vw, 44px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
@media (min-width: 760px) {
  .tail { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---- 16. footer ------------------------------------------ */
.footer {
  border-top: 1px solid var(--ink);
  padding-block: clamp(34px, 6vw, 52px) clamp(40px, 7vw, 60px);
}
.footer-in { display: grid; gap: 22px; }
.footer-note {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.34;
  color: var(--ink-70);
  max-width: 30ch;
}
.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-45);
}
@media (min-width: 760px) {
  .footer-in { grid-template-columns: auto 1fr auto; align-items: start; gap: 44px; }
  .colophon { flex-direction: column; text-align: right; align-items: flex-end; gap: 8px; }
}

/* ---- 17. tap targets ------------------------------------
   Editorial links are small on purpose. These invisible pads give
   thumbs ~44px to aim at without moving a single pixel of type.
   --------------------------------------------------------- */
.nav a, .filter, .link-arrow, .mini-item, .link-quiet { position: relative; }
.nav a::before,
.filter::before,
.link-arrow::before {
  content: "";
  position: absolute;
  inset: -12px -7px;
}
@media (min-width: 760px) {
  .nav a::before, .filter::before, .link-arrow::before { inset: -10px -6px; }
}

/* ---- 18. touch ------------------------------------------
   Phones fire :hover on tap and then leave it stuck until you touch
   something else. Mobile is the priority here, so neutralise it.
   --------------------------------------------------------- */
@media (hover: none) {
  .plate:hover, .hero-plate:hover { transform: rotate(var(--rot, 0deg)); }
  .index-row:hover .index-name { color: inherit; }
  .index-row:hover .index-mark { color: var(--ink-45); transform: none; }
  .index-row[aria-expanded="true"] .index-mark { transform: rotate(90deg); }
  .mini-item:hover { color: inherit; }
  .link-arrow:hover { gap: .5em; color: inherit; border-color: var(--ink); }
  .link-quiet:hover { color: inherit; border-color: var(--rule); }
  .nav a:hover { color: var(--ink-70); border-color: transparent; }
  .nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
  .filter:hover { color: var(--ink-45); }
  .filter[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
  .field button:hover { color: inherit; border-color: transparent; }
  .btn-send:hover { background: none; color: var(--ink); }
}

/* ---- 19. motion ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .plate { transform: none; }
}
