/* ════════════════════════════════════════════════════════════════════════════
   Farmbox — the public site
   ════════════════════════════════════════════════════════════════════════════ */

/* Keep display type for headings; use a quieter reading face for prose. */
main p { font-family: var(--sans); font-weight: 400; line-height: 1.7; }
main h2 { text-wrap: balance; }
main .section { padding-block: clamp(64px, 7vw, 104px); }
main .section--tight { padding-block: clamp(36px, 4vw, 60px); }
main .lead { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.7; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(640px, 86svh, 860px);
  display: flex; align-items: flex-end;
  background: var(--forest);
  color: var(--bone);
  overflow: hidden;
  margin-top: -78px;
  padding-top: 78px;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 58% 45%;
  animation: heroDrift 26s var(--ease-in-out) infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; transform: scale(1.04); } }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(10,18,13,.93) 0%, rgba(10,18,13,.80) 34%, rgba(10,18,13,.30) 68%, rgba(10,18,13,.52) 100%),
    linear-gradient(to top, rgba(10,18,13,.86) 0%, rgba(10,18,13,0) 46%);
}
.hero__inner { position: relative; padding-block: 100px 80px; }
.hero__title { max-width: 18ch; font-size: clamp(3rem, 6.1vw, 6rem); line-height: 1.05; color: var(--bone); margin-bottom: 28px; text-wrap: balance; }
.hero__title em { color: var(--leaf-pale); }
.hero__lead {
  font-size: clamp(1.04rem, 1.35vw, 1.24rem);
  line-height: 1.7; max-width: 53ch;
  color: rgba(246,242,233,.80);
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(34px, 5vw, 58px); }
.hero__meta {
  font-family: var(--sans); font-size: var(--fs-micro);
  letter-spacing: .02em;
  color: rgba(246,242,233,.72);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
}
.hero__dot { opacity: .5; }
.hero__cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); }
.hero__cue span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(246,242,233,0), rgba(246,242,233,.62));
  animation: cue 2.6s var(--ease-in-out) infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.34); opacity: .35; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; transform-origin: top; } }

/* ── Section heads ──────────────────────────────────────────────────────── */
.section__head { max-width: 66ch; margin-bottom: clamp(28px, 3.5vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }
.section__head h2 { margin-bottom: 22px; }

/* ── Pillars ────────────────────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 68px); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }
.pillar { border-top: 1px solid var(--rule); padding-top: 22px; }
.pillar__num {
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .24em; color: var(--clay); display: block; margin-bottom: 18px;
}
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--stone); font-size: 1rem; }

/* ── Split layouts ──────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split--reverse .split__text { order: 2; }
/* This breakpoint used to sit inside `.split--reverse @media (...)`, which is
   not a thing, so it never applied and the two columns stayed side by side all
   the way down to a phone. */
@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split--reverse .split__text { order: 0; }
}
.split__text h2 { margin-bottom: 24px; }
.split__text .lead { margin-bottom: 20px; }
.split--tight { align-items: center; }

/* The builder panel is much taller than the words beside it, so centring the
   two leaves the heading stranded halfway down an empty column. */
.builder-teaser .split { align-items: start; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); }
.slot-guide { margin-block: 30px 22px; border-top: 1px solid rgba(246,242,233,.2); padding-top: 24px; max-width: 42ch; }
.slot-guide h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.slot-guide p, .builder-caption { color: rgba(246,242,233,.74); font-size: .94rem; }
.slot-guide .slot-guide__example { color: var(--leaf-pale); font-size: .86rem; margin-top: 12px; }
.builder-caption { max-width: 37ch; font-size: .85rem; }
@media (max-width: 940px) { .builder-teaser .split { align-items: stretch; grid-template-columns: 1fr; } }
/* Two paper sections in a row read as one long gap, so the second one starts
   closer to the first. */
.provenance { background: var(--sand); }
.provenance .prov-figures { margin-top: 0; }
.prov-figures {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 52px);
  margin-top: 38px; padding: 32px; border: 1px solid var(--rule); justify-content: space-around;
}
.prov-figures b {
  display: block; font-family: var(--serif); font-size: 2.1rem; font-weight: 400;
  font-variation-settings: 'opsz' 60; letter-spacing: -.02em; line-height: 1; color: var(--forest);
}
.prov-figures span {
  display: block; font-family: var(--sans); font-size: var(--fs-micro);
  letter-spacing: 0; color: var(--stone); margin-top: 12px; max-width: 18ch; line-height: 1.5;
}

/* ── Box builder demo ───────────────────────────────────────────────────── */
.builder-teaser { background: var(--forest); }
.demo {
  background: var(--forest-2);
  border: 1px solid rgba(246,242,233,.13);
  padding: clamp(20px, 2.6vw, 30px);
}
.demo__head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px;
}
.demo__count { font-family: var(--sans); font-size: var(--fs-small); color: rgba(246,242,233,.8); letter-spacing: .04em; }
.demo__count b { color: var(--leaf); font-weight: 600; }

/* The crate is drawn on a canvas; the stage only has to give it a box to sit
   in and a place to print the empty state. */
.demo__stage {
  position: relative; aspect-ratio: 5 / 4; min-height: 230px;
  border: 1px solid rgba(246,242,233,.13);
  background: radial-gradient(ellipse at 50% 25%, #f5f0e6, #ded6c6);
  overflow: hidden;
}
.demo__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo__empty {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-family: var(--sans); font-size: .85rem; letter-spacing: 0;
  color: var(--forest); margin: 0; pointer-events: none;
}
.demo--flat .demo__stage { aspect-ratio: auto; min-height: 0; border: 0; background: none; }

.demo__tray {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
}
@media (max-width: 900px) { .demo__tray { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .demo__tray { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.demo__tray button {
  position: relative; width: 100%; padding: 0; cursor: pointer;
  background: rgba(246,242,233,.05); color: rgba(246,242,233,.86);
  border: 1px solid rgba(246,242,233,.16);
  transition: border-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
  display: block; overflow: hidden;
}
.demo__thumb { display: block; position: relative; width: 100%; padding-top: 100%; overflow: hidden; }
.demo__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__name {
  display: block; font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0; padding: 9px 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo__slots {
  position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: var(--leaf-deep); color: var(--paper); border-radius: 50%;
}
.demo__tray button:hover:not([disabled]) { border-color: var(--leaf); transform: translateY(-2px); }
.demo__tray button[disabled] { cursor: default; }
.demo__tray button.is-in { border-color: var(--leaf); opacity: .42; }
.demo__tray button[disabled]:not(.is-in) { opacity: .3; }
.demo__note { margin-top: 14px; color: rgba(246,242,233,.72); }

/* ── Tiers ──────────────────────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } }
.tiers__loading { grid-column: 1/-1; background: var(--paper); padding: 40px; }

.tier {
  background: var(--paper); padding: clamp(24px, 2.3vw, 34px); border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  position: relative;
  transition: background var(--t-mid) var(--ease-out);
}
.tier:hover { background: #fff; }
.tier--featured { background: var(--forest); color: var(--bone); }
.tier--featured:hover { background: var(--forest-2); }
.tier--featured .tier__price, .tier--featured h3 { color: var(--bone); }
.tier--featured .tier__role, .tier--featured .tier__note { color: rgba(246,242,233,.74); }
.tier--featured .tier__perks li { color: rgba(246,242,233,.8); border-color: rgba(246,242,233,.14); }
.tier--featured .tier__perks li::before { color: var(--leaf); }

.tier__flag {
  position: absolute; top: 0; right: 0;
  font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; background: var(--leaf); color: var(--forest);
  padding: 5px 10px 4px;
}
.tier__role { font-family: var(--sans); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-2); }
.tier h3 { margin: 12px 0 4px; font-size: 1.72rem; }
.tier__tagline { font-size: .95rem; color: var(--stone); font-style: italic; min-height: 3em; margin-bottom: 20px; }
.tier--featured .tier__tagline { color: rgba(246,242,233,.78); }
.tier__price { font-family: var(--serif); font-size: 2.5rem; font-variation-settings: 'opsz' 72; line-height: 1; letter-spacing: -.028em; }
.tier__price sup { font-size: .9rem; vertical-align: .95em; letter-spacing: 0; opacity: .58; margin-right: 3px; }
.tier__per { font-family: var(--sans); font-size: .8rem; letter-spacing: 0; color: var(--stone); margin-top: 10px; }
.tier--featured .tier__per { color: rgba(246,242,233,.72); }

.tier__specs { display: flex; gap: 20px; margin: 22px 0 18px; padding: 16px 0; border-block: 1px solid var(--rule); }
.tier--featured .tier__specs { border-color: rgba(246,242,233,.15); }
.tier__specs div b { display: block; font-family: var(--serif); font-size: 1.36rem; line-height: 1; font-variation-settings: 'opsz' 40; }
.tier__specs div span { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: 0; color: var(--stone); margin-top: 8px; line-height: 1.4; }
.tier--featured .tier__specs div span { color: rgba(246,242,233,.72); }

.tier__perks { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.tier__perks li {
  font-size: .93rem; color: var(--stone); padding: 9px 0 9px 20px; position: relative;
  border-bottom: 1px solid var(--rule-soft);
}
.tier__perks li:last-child { border-bottom: 0; }
.tier__perks li::before { content: '·'; position: absolute; left: 4px; color: var(--leaf-deep); font-size: 1.3em; line-height: 1.1; }

.tier__fine {
  font-family: var(--sans); line-height: 1.55;
  color: var(--stone-2); border-top: 1px solid var(--rule-soft); padding-top: 13px; margin: 0 0 18px;
}
.tier--featured .tier__fine { color: rgba(246,242,233,.62); border-color: rgba(246,242,233,.14); }
.tiers__foot { margin-top: 22px; color: var(--stone-2); max-width: 78ch; }

/* ── Market table ───────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(24px,3vw,48px); counter-reset: s; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 1px solid rgba(246,242,233,.2); padding-top: 22px; }
.steps__n {
  font-family: var(--sans); font-size: .85rem; color: var(--leaf);
  letter-spacing: .1em; display: block; margin-bottom: 16px;
}
.steps h3 { color: var(--bone); font-size: 1.24rem; margin-bottom: 12px; }
.steps p { color: rgba(246,242,233,.78); font-size: .95rem; }

/* ── Closing ────────────────────────────────────────────────────────────── */
.closing { position: relative; min-height: clamp(520px, 74vh, 780px); display: grid; place-items: center; overflow: hidden; }
.closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,13,.72), rgba(10,18,13,.86)); }
.closing__inner { position: relative; text-align: center; color: var(--bone); padding-block: 90px; }
.closing__inner h2 { color: var(--bone); margin-bottom: 24px; }
.closing__inner h2 em { color: var(--leaf-pale); }
.closing__inner .lead { color: rgba(246,242,233,.85); margin-inline: auto; margin-bottom: 36px; }

/* The masthead sits on the hero photograph until the page moves. */
.masthead--dark[data-transparent]:not(.is-stuck) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Three frames under the provenance essay. */
.steps--plain li { border-top: 1px solid rgba(246,242,233,.2); padding-top: 22px; }
.closing--plain { background: var(--forest-2); border-top: 1px solid rgba(246,242,233,.15); min-height: 0; }
.closing--plain .closing__inner { padding-block: clamp(70px, 9vw, 120px); }

/* ── The list ───────────────────────────────────────────────────────────────
   The catalogue, on the front page. Square frames on a tight grid: the
   photographs are all shot to one brief, so the grid can be dense without
   turning into noise.
   ────────────────────────────────────────────────────────────────────────── */
.list { background: var(--paper); }

.tally {
  list-style: none; margin: 0 0 clamp(28px, 3.4vw, 44px); padding: 0;
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.tally li {
  flex: 1 1 auto; min-width: 116px; padding: 18px 22px 16px;
  border-right: 1px solid var(--rule-soft);
}
.tally li:last-child { border-right: 0; }
.tally b { display: block; font-size: 1.5rem; line-height: 1.1; letter-spacing: var(--tracking-tight); }
.tally span {
  display: block; margin-top: 4px;
  font-family: var(--sans); font-size: var(--fs-micro); letter-spacing: .12em;
  text-transform: uppercase; color: var(--stone-2);
}

.pgrid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px 16px;
}
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 420px)  { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pcard { background: var(--paper); }
.pcard__link {
  position: relative; display: block; text-decoration: none; color: inherit;
  transition: background var(--t-fast) var(--ease-out);
}
.pcard__link:hover { background: #fff; }
.pcard__media { display: block; position: relative; padding-top: 100%; overflow: hidden; background: var(--sand); }
.pcard__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease-out);
}
.pcard__link:hover .pcard__media img { transform: scale(1.045); }
.pcard__body { display: block; padding: 12px 0 8px; }
.pcard__name {
  display: block; font-size: 0.9375rem; line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}
.pcard__portion {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-size: var(--fs-micro); color: var(--stone-2);
}
.pcard__slots {
  position: absolute; top: 8px; right: 8px; min-width: 21px; height: 21px;
  display: grid; place-items: center; padding: 0 5px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  background: var(--forest); color: var(--bone); border-radius: 50%;
}

.list__foot {
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  align-items: baseline; justify-content: space-between;
  margin-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  .pcard__link:hover .pcard__media img { transform: none; }
}

/* Three one-line claims do not need a full editorial section around them. They
   sit close under the hero as a band, with a rule to separate them from it. */
#promise { border-bottom: 1px solid var(--rule-soft); }
.pillar p { max-width: 34ch; }

/* The tier's own words, in the space the repeated bullets used to take. */
/* `.tier__specs` already closes with a rule, so this must not open with one
   or the card carries two lines and a band of dead space between them. */
.tier__desc {
  font-size: 0.98rem; line-height: 1.55; color: var(--stone);
  margin: 0 0 20px; flex: 1; max-width: none;
}
.tier--featured .tier__desc { color: rgba(246,242,233,.78); }

/* What is true of every subscription, said once under the grid instead of
   three times inside it. */
/* A grid, not a bullet-separated row: when four items wrap, a separator ends up
   leading the second line and reads as a mistake. */
.tier-terms {
  list-style: none; margin: 24px 0 0; padding: 20px 0 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 28px;
}
@media (max-width: 1000px) { .tier-terms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .tier-terms { grid-template-columns: 1fr; } }
.tier-terms li {
  font-family: var(--sans); font-size: .82rem;
  letter-spacing: 0; color: var(--stone); line-height: 1.5;
  position: relative; padding-left: 15px;
}
.tier-terms li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 5px; height: 5px; background: var(--clay);
}

/* ── Box demo: sizes, basket, search ────────────────────────────────────── */
.demo__sizes { display: flex; gap: 6px; }
.demo__sizes button {
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 11px; cursor: pointer;
  background: transparent; color: rgba(246,242,233,.62);
  border: 1px solid rgba(246,242,233,.18);
  transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.demo__sizes button .num { opacity: .55; margin-left: 5px; }
.demo__sizes button:hover { color: var(--bone); border-color: rgba(246,242,233,.4); }
.demo__sizes button.is-on {
  background: var(--leaf); border-color: var(--leaf); color: var(--forest);
}
.demo__sizes button.is-on .num { opacity: .7; }

/* What is in the box, and the way back out of it. */
.demo__chosen { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.demo__chosen button {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--sans); font-size: var(--fs-micro); letter-spacing: .04em;
  padding: 6px 9px; color: rgba(246,242,233,.9);
  background: rgba(125,182,105,.14); border: 1px solid rgba(125,182,105,.4);
  transition: background var(--t-fast), border-color var(--t-fast);
}
.demo__chosen button:hover { background: rgba(197,90,70,.22); border-color: rgba(197,90,70,.6); }
.demo__chosen em { font-style: normal; opacity: .6; }
.demo__x { font-size: 15px; line-height: 1; opacity: .75; }

.demo__tools { display: flex; gap: 8px; margin-top: 16px; }
.demo__search {
  flex: 1; min-width: 0; padding: 9px 12px;
  font-family: var(--sans); font-size: var(--fs-small);
  color: var(--bone); background: rgba(246,242,233,.06);
  border: 1px solid rgba(246,242,233,.18);
}
.demo__search::placeholder { color: rgba(246,242,233,.42); }
.demo__search:focus { outline: none; border-color: var(--leaf); }
.demo__clear {
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  padding: 9px 13px; color: rgba(246,242,233,.7);
  background: transparent; border: 1px solid rgba(246,242,233,.18);
}
.demo__clear:hover { color: var(--bone); border-color: rgba(246,242,233,.4); }

/* The tray is the whole in-season list now, so it scrolls rather than growing
   the page by a thousand pixels. */
.demo__tray { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.demo__tray::-webkit-scrollbar { width: 8px; }
.demo__tray::-webkit-scrollbar-thumb { background: rgba(246,242,233,.2); }
.demo__none { grid-column: 1/-1; color: rgba(246,242,233,.6); padding: 18px 2px; }

/* The pillars carry sentences now, not numbered labels. */
.pillar h3 { font-size: 1.18rem; line-height: 1.24; }
.pillar p b { font-weight: 400; color: var(--forest); }
.demo__origin { display: block; padding: 0 6px 9px; font-family: var(--sans); font-size: 10px; line-height: 1.3; color: rgba(246,242,233,.7); }
.closing__inner > .eyebrow { color: var(--leaf); }

@media (max-width: 600px) {
  .hero { min-height: 690px; }
  .hero__inner { padding-block: 80px 58px; }
  .hero__title { font-size: clamp(2.8rem, 11vw, 3.7rem); }
  .hero__actions { gap: 12px; margin-bottom: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__cue { display: none; }
  .demo { padding: 16px; }
  .demo__empty { font-size: .75rem; bottom: 10px; }
  .demo__name { font-size: 11px; }
  .prov-figures { justify-content: flex-start; }
  .tier__desc { max-width: 42ch; }
  .tier__price { margin-top: 8px; }
}

/* The public catalogue is the same complete selection customers shop. */
.list__tools { display: flex; flex-wrap: wrap; gap: 12px; }
.list__tools input { flex: 2 1 240px; }
.list__tools select { flex: 1 1 170px; min-width: 0; }
.list__results { margin: 14px 0; color: var(--stone); }
.list__window { max-height: 680px; overflow-y: auto; overscroll-behavior-y: auto; padding: 0 10px 12px 0; scrollbar-width: thin; }
.pcard__availability { position: absolute; bottom: 8px; left: 8px; right: 8px; background: var(--forest); color: var(--bone); padding: 5px 7px; font: 10px/1.4 var(--sans); }
.pcard--unavailable .pcard__availability { background: var(--stone); }
.pcard--unavailable .pcard__media img { opacity: .7; }
.demo__browse { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.demo__browse select { max-width: 190px; }
.demo__browse .micro { color: rgba(246,242,233,.7); }
.demo__search option { background: var(--forest); color: var(--bone); }
.demo__availability { display: block; font: 9px/1.5 var(--sans); color: var(--leaf); }
.demo__tray .is-unavailable .demo__availability { color: var(--bone); }
.demo__tray button.is-unavailable { opacity: .55; }
@media (max-width: 600px) {
  .list__tools { gap: 8px; }
  .list__tools select { flex-basis: 135px; padding-inline: 8px; font-size: 12px; }
  .list__window { max-height: 620px; }
  .demo__browse { flex-wrap: wrap; }
}

.demo__photo-note { display: block; font: 9px/1.5 var(--sans); opacity: .7; }

/* ── Where we deliver ───────────────────────────────────────────────────────
   Two plates drawn by scripts/build-service-map.py: the island, and the
   north-west enlarged. Each plate is a relief image, a line drawing and a
   layer of place names, all in one projection, so they only need stacking.
   The names are HTML so they are set in the site's type and keep a readable
   size when the plates shrink; container units scale them within limits.
   ────────────────────────────────────────────────────────────────────────── */
.atlas { background: var(--bone); border-top: 1px solid var(--rule-soft); }
.atlas__head { max-width: 60ch; }
.atlas__head h2 em { color: var(--leaf-deep); }
.atlas__head .lead { color: var(--stone); text-wrap: pretty; }

.atlas__plate { margin: 0; }
.atlas__pair {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 6%;
}
.atlas__map {
  position: relative; aspect-ratio: 5 / 4;
  container-type: inline-size;
  background: #FAF7F0;
  box-shadow: 0 0 0 1px var(--rule), var(--shadow-lift);
  overflow: hidden;
}
.atlas__map > img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The enlargement is framed in the same brass as its outline on the island. */
.atlas__map--detail { box-shadow: 0 0 0 1px var(--clay), var(--shadow-lift); }

.atlas__label {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  white-space: nowrap; pointer-events: none;
  line-height: 1.15;
  /* A paper halo, so a name stays legible where it crosses streets. */
  text-shadow: 0 0 2px #FAF7F0, 0 0 3px #FAF7F0, 0 0 5px #FAF7F0, 0 0 8px rgba(250,247,240,.9);
}
.atlas__label--left { transform: translate(0, -50%); }
.atlas__label--right { transform: translate(-100%, -50%); text-align: right; }
.atlas__label--center { text-align: center; }
.atlas__label small { display: block; }

.atlas__label--served {
  font: 600 clamp(8.5px, 1.95cqw, 11.5px)/1.2 var(--sans);
  letter-spacing: .17em; text-transform: uppercase; color: var(--forest);
}
.atlas__label--served small {
  margin-top: .45em;
  font: italic 400 clamp(9px, 2.05cqw, 12.5px)/1.25 var(--serif);
  font-variation-settings: 'opsz' 14;
  letter-spacing: .01em; text-transform: none; color: var(--forest-3);
}
.atlas__label--area {
  font: 600 clamp(7.5px, 1.6cqw, 9.5px)/1.2 var(--sans);
  letter-spacing: .15em; text-transform: uppercase; color: var(--forest-3);
}
.atlas__label--place, .atlas__label--park {
  font: italic 400 clamp(9px, 2.1cqw, 12.5px)/1.2 var(--serif);
  font-variation-settings: 'opsz' 14;
  color: var(--stone);
}
.atlas__label--park { color: var(--leaf-deep); font-size: clamp(7.5px, 1.6cqw, 10px); }
.atlas__label--sea {
  font: italic 400 clamp(9px, 2.15cqw, 13px)/1.2 var(--serif);
  font-variation-settings: 'opsz' 14;
  letter-spacing: .2em; color: var(--clay-deep);
}
.atlas__label--land {
  font: italic 400 clamp(8px, 1.8cqw, 11px)/1.2 var(--serif);
  letter-spacing: .32em; color: var(--stone-2);
}
.atlas__label--title {
  font: italic 300 clamp(20px, 6.6cqw, 40px)/1 var(--serif);
  font-variation-settings: 'opsz' 144, 'WONK' 1;
  letter-spacing: .04em; color: var(--forest);
}
.atlas__label--town {
  font: 600 clamp(7px, 1.5cqw, 9px)/1.2 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
  padding-left: .9em;
}
.atlas__label--note {
  font: italic 400 clamp(9px, 2cqw, 12px)/1.2 var(--serif);
  color: var(--clay-deep);
}
.atlas__label--note::after { content: ' ↗'; font-style: normal; }
.atlas__label--scale {
  transform: translate(-50%, 0);
  font: 500 clamp(7.5px, 1.55cqw, 9.5px)/1 var(--sans);
  letter-spacing: .06em; color: var(--stone);
}
.atlas__corner {
  position: absolute; left: 12px; top: 12px;
  padding: 6px 9px 5px;
  font: 600 clamp(7.5px, 1.6cqw, 9.5px)/1.2 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--clay-deep);
  background: rgba(250,247,240,.9); box-shadow: 0 0 0 1px var(--rule);
}

.atlas__legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 10px 28px; margin-top: 22px;
  font-family: var(--sans); font-size: var(--fs-micro); color: var(--stone);
}
.atlas__key { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); font-weight: 500; }
.atlas__key i {
  width: 22px; height: 12px;
  background: color-mix(in srgb, var(--leaf-deep) 16%, #FAF7F0);
  box-shadow: inset 0 0 0 1.2px var(--forest-2);
}
.atlas__credit { color: var(--stone-2); font-size: 11px; }

/* Every neighbourhood by name, for the reader who wants the list and for the
   one whose screen reader cannot see the map. */
.atlas__index {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 32px;
  margin-top: clamp(44px, 5vw, 68px); padding-top: 30px;
  border-top: 1px solid var(--rule);
}
.atlas__index h4 {
  font: 600 var(--fs-eyebrow)/1.4 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; color: var(--clay-deep);
  margin: 0 0 14px;
}
.atlas__index ul { list-style: none; margin: 0; padding: 0; }
.atlas__index li {
  font-family: var(--serif); font-size: 1.04rem; line-height: 1.85; color: var(--forest);
  font-variation-settings: 'opsz' 24;
}

.atlas__note {
  max-width: 58ch; margin: clamp(52px, 6vw, 84px) auto 0; text-align: center;
}
.atlas__note::before {
  content: ''; display: block; width: 44px; height: 1px; margin: 0 auto 28px;
  background: var(--clay);
}
main .atlas__note p { margin-inline: auto; color: var(--stone); font-size: .98rem; text-wrap: pretty; }
main .atlas__note .atlas__note-title {
  font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.3 var(--serif);
  font-variation-settings: 'opsz' 60, 'WONK' 1;
  color: var(--forest); margin-bottom: 14px;
}
.atlas__note .link-arrow { margin-top: 22px; color: var(--forest); }

@media (max-width: 1000px) {
  .atlas__index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .atlas__pair { grid-template-columns: 1fr; row-gap: 22px; }
}
@media (max-width: 560px) {
  .atlas__index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  /* Two of the headings wrap at this width; hold every one to two lines so
     the names in neighbouring columns start level. */
  .atlas__index h4 { min-height: 2.8em; }
  .atlas__legend { flex-direction: column; }
}
/* On a phone the enlargement keeps its main names and loses the fine print;
   the list under the map carries every neighbourhood. */
@container (max-width: 440px) {
  .atlas__label small, .atlas__label--land, .atlas__label--park { display: none; }
  .atlas__corner { left: 8px; top: 8px; }
}
