@font-face {
  font-family: Lato;
  src: url("/fonts/lato-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/fonts/lato-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Lato;
  src: url("/fonts/lato-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Index;
  src: url("/fonts/index.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f3f1;
  --ink: #121212;
  --muted: #6a6a64;
  --line: #d8d8d2;
  --plate: #e8e8e3;
  --night: #141413;
  --night-2: #1c1c1b;
  --mist: #b7b7b0;
  --sans: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: Index, "DejaVu Sans Mono", ui-monospace, monospace;
  --measure: 70rem;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
}
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.35rem 5.5rem;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.95rem 0 0.8rem;
  background: rgba(243, 243, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mark, .nav nav a, .mode {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  text-decoration: none;
}
.mark { color: var(--ink); }
.nav nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; margin-left: auto; }
.nav nav a { color: var(--muted); }
.nav nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--ink); }
.mode {
  margin-left: auto;
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  cursor: pointer;
}
.nav nav + .mode { margin-left: 1.25rem; }
.mode:hover { color: var(--ink); }

.markplate {
  margin: 0.6rem 0 0;
  color: var(--ink);
  background: transparent;
}
.markplate svg { width: 100%; height: auto; display: block; }
.tagline {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: right;
  color: var(--ink);
}
.markplate line {
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: butt;
  transform-box: fill-box;
  transform-origin: center;
  animation-name: slash-shift;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
@keyframes slash-shift {
  0%, 70%, 100% { transform: translate(0, 0); }
  80% { transform: translate(var(--dx), var(--dy)); }
}
.markplate + .shelf:first-of-type,
.markplate + .home { margin-top: 2.8rem; }

.home { margin-top: 4.4rem; }
.home h2 {
  margin: 0 0 0.15rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate-photo { margin: 0.7rem 0 0; }
.shot { position: relative; display: block; }
.plate-photo img, .trio .shot > img:first-child {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.trio .shot > img:first-child {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--plate);
}
.on-photo {
  position: absolute;
  right: 0.65rem;
  bottom: 0.5rem;
  max-width: 70%;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.65);
}
.shot .face {
  position: absolute;
  left: 0.55rem;
  bottom: 0.5rem;
  width: 18%;
  min-width: 2.6rem;
  aspect-ratio: 1;
  height: auto;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.trio .on-photo {
  -webkit-text-stroke: 1.5px #000;
  paint-order: stroke fill;
  text-shadow: none;
}
html[data-mode="dark"] .on-photo { filter: invert(1); }
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.1rem;
  margin-top: 0.7rem;
}
.pair a { display: block; text-decoration: none; color: inherit; }
.pair img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--plate);
}
.pair .name, .doors .name {
  display: block;
  margin-top: 0.55rem;
  font-weight: 300;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.doors .name { margin-top: 0; }
.pair .dek, .doors .dek {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  margin-top: 0.55rem;
}
.doors a {
  display: block;
  padding: 0;
  text-decoration: none;
}
.trio {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem 1.1rem;
  margin-top: 0.7rem;
}
.trio a { display: block; text-decoration: none; color: inherit; }
.pair a:hover .name, .doors a:hover .name { text-decoration: underline; text-underline-offset: 0.12em; }

.cat-mark {
  display: block;
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.62rem;
  line-height: 1;
  text-decoration: none;
  color: #c8c8c3;
}
.cat-mark:hover { color: #9a9a94; }
.whois {
  margin: 2em 0 0;
  font-family: monospace;
  font-size: 10pt;
  text-align: center;
}
.whois span {
  display: inline-block;
  padding: 5px;
}

html[data-mode="dark"] { background: #0c0c0e; }
html[data-mode="dark"] body { filter: invert(1); }
html[data-mode="dark"] img[src$=".jpg"],
html[data-mode="dark"] img[src$=".jpeg"],
html[data-mode="dark"] img[src$=".png"],
html[data-mode="dark"] img[src$=".webp"],
html[data-mode="dark"] video {
  filter: invert(1);
}
/* Maps stay dark. The extra brightness is undone by the page invert,
   leaving a gray a step lighter than the light-mode plate. */
html[data-mode="dark"] .basin,
html[data-mode="dark"] .away,
html[data-mode="dark"] .locator {
  filter: invert(1) brightness(0.9);
}
html[data-mode="dark"] .atlas,
html[data-mode="dark"] .card {
  background: #d3d3d1;
}
html[data-mode="dark"] .card {
  color: #141412;
}
html[data-mode="dark"] .card .where,
html[data-mode="dark"] .card .count-label {
  color: #3c3c38;
}

.shelf { max-width: 44rem; }
.shelf:first-of-type { margin-top: 12vh; }
.shelf + .shelf { margin-top: 3.4rem; }
.shelf h2 {
  margin: 0 0 0.2rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.directory {
  list-style: none;
  margin: 0;
  padding: 0;
}
.directory.plain a { grid-template-columns: minmax(0, 1fr) auto; }
.directory a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  gap: 0.4rem 1.1rem;
  align-items: baseline;
  padding: 0.55rem 0 0.62rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.directory li:last-child a { border-bottom: 1px solid var(--line); }
.idx {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.directory .name {
  display: block;
  font-weight: 300;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.directory .dek {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.directory a::after {
  content: "→";
  font-family: var(--mono);
  color: var(--ink);
  opacity: 0;
  transform: translateX(-0.35rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.directory a:hover::after,
.directory a:focus-visible::after {
  opacity: 1;
  transform: none;
}
.directory a:hover .idx { color: var(--ink); }

h1.section {
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 1.6rem 0 0;
}
.section-kicker {
  margin: 1.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.atlas {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 0.55rem;
  align-items: stretch;
  margin-top: 1.25rem;
  padding: 0.55rem;
  background: var(--night);
}
.basin { min-width: 0; grid-column: 1; grid-row: 1; }
.map { width: 100%; height: auto; display: block; }
.map .pin { cursor: pointer; }
.map .plate { fill: #141413 !important; }
.map .county { fill: #1a1a19 !important; stroke: #3a3a36 !important; }
.map .rivers path { stroke: #d7d7d0 !important; }
.map text { fill: #b9b9b2 !important; }
.map .scale line, .map .neat { stroke: #6a6a64 !important; }
.map .pin .dot { fill: #f7f7f4 !important; }
.map .pin .ring { fill: none; stroke: #f7f7f4 !important; opacity: 0; }
.map .pin.is-on .ring { opacity: 1; }
.map a:focus-visible { outline-color: #f4f4f1; }

.away {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.plate {
  display: block;
  text-decoration: none;
  color: #f3f3f1;
  border: 1px solid #343430;
  padding: 0.45rem 0.5rem 0.55rem;
}
.plate svg { width: 100%; height: auto; display: block; }
.plate-name { display: block; margin-top: 0.4rem; font-weight: 400; font-size: 0.95rem; }
.plate-meta {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
}
.plate.is-on { border-color: #f3f3f1; }

.card {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 3.4rem;
  height: 100%;
  max-height: calc(100vh - 4.2rem);
  overflow: auto;
  background: var(--night-2);
  color: #f3f3f1;
  padding: 1rem 1.05rem 1.15rem;
}
.card.is-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 16rem;
}
.count-rest {
  margin: 0;
  font-weight: 300;
  font-size: 5.5rem;
  letter-spacing: -0.06em;
  line-height: 0.85;
}
.count-label {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.card img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
  margin: 0 0 0.9rem;
}
.card .where, .where {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.card .where { color: var(--mist); }
.card-title {
  display: block;
  margin: 0.3rem 0 0.45rem;
  font-weight: 300;
  font-size: 1.85rem;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-decoration: none;
}
.card .hook { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.card a:focus-visible, .card button:focus-visible { outline-color: #f4f4f1; }
.menu {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0 0 0.4rem;
  border-bottom: 1px solid #333330;
}
.menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 0.32rem 0;
  cursor: pointer;
}
.menu button:hover, .menu button.is-on { text-decoration: underline; text-underline-offset: 0.18em; }

.group { margin-top: 2.6rem; }
.group h2 {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.group h2 .idx { margin-right: 0.55rem; }
.row {
  display: grid;
  grid-template-columns: 7.75rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  padding: 0.8rem 0.35rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  scroll-margin-top: 4.2rem;
}
.group .row:last-child { border-bottom: 1px solid var(--line); }
.row img, .row .ph {
  width: 7.75rem;
  height: 5.4rem;
  object-fit: cover;
  display: block;
  background: var(--plate);
}
.row .ph {
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.row .title {
  display: block;
  margin-top: 0.18rem;
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.row .hook {
  display: block;
  margin-top: 0.22rem;
  font-size: 1.02rem;
  line-height: 1.35;
}
.row.is-on { background: #e9e9e4; }
.anchor { scroll-margin-top: 4.2rem; }

.piece { max-width: 40rem; padding-top: 1.6rem; }
.piece h1 {
  margin: 0.25rem 0 0.8rem;
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.lead {
  margin: 0 0 1.15rem;
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.cook .by {
  margin: -0.35rem 0 1.05rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.piece figure { margin: 0 0 1.15rem; }
.piece figure > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: var(--plate);
}
.cap {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cap a { color: var(--muted); }
.piece .body p { margin: 0.85rem 0; }
.piece .body h2 { margin: 1.35rem 0 0.35rem; font-size: 1.35rem; font-weight: 400; letter-spacing: -0.03em; }
.piece .body h3 { margin: 1.1rem 0 0.3rem; font-size: 1.05rem; font-weight: 400; }
.piece .body ul, .piece .body ol { margin: 0.4rem 0 0.9rem; padding-left: 1.2rem; }
.piece .body li { margin: 0.18rem 0; }
.cook video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70vh;
  margin: 0.8rem auto 1.15rem;
  background: var(--plate);
}
.cook .follow { margin-top: 1.35rem; }
.cook .follow .when {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: 0.45rem 0.8rem;
  margin: 0.2rem 0 1.1rem;
}
.facts dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; }
.locator {
  margin: 2.2rem 0 0;
  background: #141413;
  padding: 0.45rem 0.45rem 0.55rem;
}
.piece .locator svg, .piece .locator img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0;
  display: block;
  background: #141413;
  pointer-events: none;
}
.locator figcaption {
  margin: 0.4rem 0.15rem 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b9b9b2;
}

.piece h2 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.piece ol, .links { margin: 0.2rem 0 0; padding-left: 1.15rem; }
.piece li { margin: 0.28rem 0; }
.links { list-style: none; padding-left: 0; }
.links a { text-underline-offset: 0.15em; }

.rail {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin: 2.5rem -1.35rem 0;
  padding: 0.75rem 1.35rem;
  background: rgba(243, 243, 241, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rail a { text-decoration: none; color: var(--ink); }
.rail a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.rail .prev { justify-self: start; }
.rail .next { justify-self: end; text-align: right; }
.rail .mid { color: var(--muted); letter-spacing: 0.14em; }
.rail .prev, .rail .next {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .atlas { grid-template-columns: 1fr; }
  .basin, .away, .card { grid-column: 1; }
  .basin { grid-row: 1; }
  .away { grid-row: 2; }
  .card {
    grid-row: 3;
    position: static;
    max-height: none;
    min-height: 0;
  }
  .card.is-empty { min-height: 8rem; }
  .count-rest { font-size: 4rem; }
  .shelf:first-of-type { margin-top: 2.2rem; }
  .pair, .doors, .trio { grid-template-columns: 1fr; }
  .on-photo { font-size: 0.62rem; }
  .markplate + .home { margin-top: 1.6rem; }
  .home { margin-top: 3rem; }
  .nav { align-items: flex-start; }
  .row { grid-template-columns: 5.6rem minmax(0, 1fr); }
  .row img, .row .ph { width: 5.6rem; height: 4.2rem; }
  .rail { grid-template-columns: 1fr auto 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .directory a::after { transition: none; }
  .markplate line { animation: none; }
}

.atlas.region .card { grid-row: 1; }
.when { margin-top: 1.7rem; }
.months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem 0.85rem;
  margin-top: 0.55rem;
}
.month-name {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.cal span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1;
}
.cal span.dow {
  aspect-ratio: auto;
  padding: 0.1rem 0 0.28rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.cal span.pad { visibility: hidden; }
.cal span.open {
  background: var(--plate);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.cal-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
@media (max-width: 800px) {
  .atlas.region .card { grid-row: 2; }
  .months { grid-template-columns: 1fr; max-width: 18rem; }
}
