/* The Ticker Notary: a land survey sheet. Parchment, ink, pastel parcels, pencil, one red stamp ink.
   Layout system: one left edge (--edge), spacing 8/16/24/32/48/64/96, one section head, one paper card. */
@font-face { font-family: "Fell"; src: url("/fonts/fell.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell"; font-style: italic; src: url("/fonts/fell-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Fell SC"; src: url("/fonts/fell-sc.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Public Sans"; font-weight: 400 800; src: url("/fonts/public-sans.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; font-weight: 400 800; src: url("/fonts/public-sans-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono.woff2") format("woff2"); font-display: swap; }

:root {
  --paper: #EFE6CF;      /* parchment, the ground */
  --paper-hi: #F7F1E1;   /* a fresh sheet: cards */
  --ink: #22313F;        /* ink: text, outlines, the primary button */
  --ink-2: #3E4C59;      /* ink, a softer line for secondary text */
  --red: #B3261E;        /* stamp ink: the key word, copies, seals */
  --sage: #CFE3C7; --sand: #E8D9B5; --slate: #D6DDEA;   /* parcel washes */
  --pencil: #A9A08A;     /* survey grid, hairlines */
  --edge: clamp(16px, 4.7vw, 64px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --sans: "Public Sans", system-ui, sans-serif;
  --fell: "Fell", Georgia, serif;
  --fell-sc: "Fell SC", "Fell", Georgia, serif;
  --mono: "Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font: 400 18px/1.55 var(--sans); font-variant-numeric: tabular-nums;
  background-color: var(--paper);
  /* the survey sheet: a pencil grid of 48 px cells over the whole page */
  background-image:
    linear-gradient(to right, rgba(169, 160, 138, .28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 160, 138, .28) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
b, strong { font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, .addr { font-family: var(--mono); font-size: max(16px, .9em); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---- nav: one row of four words ---- */
.nav { display: flex; gap: var(--s4); align-items: center; }
.nav a { font-weight: 600; font-size: 18px; padding: 6px 0; text-decoration: underline 3px transparent; text-underline-offset: 9px; }
.nav a:hover { text-decoration-color: var(--pencil); }
.nav a[aria-current="page"] { text-decoration-color: var(--red); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 1.4em;
  font: 700 18px/1 var(--sans); letter-spacing: .01em; color: var(--paper-hi); background: var(--ink);
  border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; text-decoration: none;
  transition: transform .12s ease-out, background-color .15s;
}
.btn:hover { background: #2E4255; }
.btn:active { transform: translateY(1px) scale(.98); }

/* =========================== the first screen =========================== */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 100svh; }
.hero-copy { display: flex; flex-direction: column; padding: var(--s4) var(--s5) var(--s4) var(--edge); min-width: 0; }
.hero-copy .nav { order: 0; }
.name { order: 1; }
.headline { order: 2; }
.lede { order: 3; }
.check { order: 4; }
.check-msg { order: 5; }
.hero-links { order: 6; }
.ticker-strip { order: 7; }

.name {
  position: relative; margin: var(--s4) 0 0; font: italic 400 clamp(64px, min(7.6vw, 12.5vh), 140px)/.86 var(--fell); letter-spacing: -.01em;
}
.name span { display: block; position: relative; }
/* the pencil copy under every line of the name: the registry's own joke */
.name span::before {
  content: attr(data-t); position: absolute; left: .045em; top: .05em; z-index: -1; color: transparent;
  -webkit-text-stroke: 1.2px var(--pencil); white-space: nowrap;
}
.headline { margin: var(--s3) 0 0; font: 400 clamp(30px, 2.7vw, 46px)/1.1 var(--fell); }
.headline em { color: var(--red); }
.lede { margin: var(--s3) 0 0; max-width: 34em; font-size: 18px; }
.check { display: flex; gap: var(--s2); margin-top: var(--s4); max-width: 560px; }
.check input {
  flex: 1; min-width: 0; height: 56px; padding: 0 1em; font: 500 19px var(--sans); color: var(--ink);
  background: var(--paper-hi); border: 2px solid var(--ink); border-radius: 6px;
}
.check input::placeholder { color: #6B7280; }
.check .btn { min-height: 56px; }
.check-msg { margin: var(--s1) 0 0; min-height: 1.4em; font-size: 16px; color: var(--red); }
.hero-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); }
.howlink { font-weight: 600; text-underline-offset: 4px; }
.reach { margin: 0; font-size: 16px; color: var(--ink-2); }
.ticker-strip { list-style: none; margin: var(--s3) 0 0; padding: 0; max-width: 560px; height: 92px; overflow: hidden; position: relative; }
.ticker-strip li {
  display: flex; align-items: baseline; gap: 10px; height: 46px; padding: 10px 20px; border-top: 1px solid rgba(34, 49, 63, .25);
  font-size: 16px; white-space: nowrap; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .4s;
}
.ticker-strip .tk { font: 400 19px/1 var(--fell-sc); color: var(--ink); }
.ticker-strip .no { color: var(--red); font-weight: 700; }
.ticker-strip .pad, .ticker-strip .t { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.ticker-strip li.enter { transform: translateY(-100%); opacity: 0; }

/* ---- the stage: the map in one box with the picture's own ratio ---- */
.stage-wrap { position: relative; align-self: start; min-width: 0; }
.stage { position: relative; width: min(58vw, 100svh); aspect-ratio: 1 / 1; container-type: inline-size; }
.stage .map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; }
.parcels { position: absolute; inset: 0; }
.parcel { position: absolute; inset: 0; pointer-events: none; }
.parcel .hatch {
  position: absolute; inset: 0; opacity: .55;
  background: repeating-linear-gradient(135deg, rgba(34, 49, 63, .55) 0 1.2px, transparent 1.2px var(--gap, 12px));
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  transition: opacity .3s;
}
.parcel a.plot-label {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; text-align: center; text-decoration: none;
  padding: 0; white-space: nowrap; line-height: 1; font-size: max(18px, var(--fs, 34px));
}
.plot-label .tk, .plot-label .ct, .plot-label .rk {
  /* hand lettering straight on the parcel, a parchment halo keeps it clear of the hatching */
  text-shadow: 0 0 2px var(--paper-hi), 0 0 5px var(--paper-hi), 0 0 9px var(--paper-hi), 0 0 14px var(--paper-hi);
}
.plot-label .tk { display: block; font: 400 1em/1.1 var(--fell-sc); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; padding: 0 .2em; }
.plot-label .ct { display: block; margin-top: 4px; font: 700 16px/1.1 var(--sans); color: var(--ink); }
.plot-label .ct b { color: var(--red); }
.parcel a.plot-label:hover .tk, .parcel a.plot-label:focus-visible .tk { color: var(--red); }
.plot-label .rk { display: none; }
.parcel .label-ink { display: block; clip-path: inset(0 100% 0 0); animation: ink-in .9s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes ink-in { to { clip-path: inset(0 0 0 0); } }
.shack, .imprint, .orig-stamp, .stamp-tool { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.shack { width: 7.2%; }
.imprint { width: 9.5%; opacity: .92; mix-blend-mode: multiply; }
.imprint.old { opacity: .5; }
.orig-stamp { width: 13%; opacity: .85; mix-blend-mode: multiply; rotate: -9deg; }
.stamp-tool { width: 8%; transform: translate(-50%, -100%); z-index: 3; }
.stage-tag {
  position: absolute; left: 3%; top: 2.2%; margin: 0; padding: 8px 16px; font-size: 16px; font-weight: 600;
  background: var(--paper-hi); border: 1.5px solid var(--ink); border-radius: 4px; z-index: 2;
}
.stage-tag:empty { display: none; }
.stage-tag .dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--red); vertical-align: 1px; }

/* ---- the legend: links and the contract, in the map's empty corner ---- */
.legend {
  position: absolute; right: 2.5%; bottom: 2.5%; width: min(42%, 400px); padding: var(--s2) var(--s1) var(--s1);
  background: var(--paper-hi); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pencil); z-index: 2;
}
.leg-title { margin: 0 0 6px; padding: 0 16px; font: 400 22px/1 var(--fell-sc); }
.leg-row {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; min-height: 48px; padding: 8px 16px;
  border-top: 1px solid rgba(34, 49, 63, .3); text-decoration: none; font-weight: 600;
}
.leg-row img { width: 26px; height: 26px; object-fit: contain; }
.leg-row .leg-go { font-size: 16px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
a.leg-row:hover span:nth-child(2) { color: var(--red); }
.leg-row.is-off { color: var(--ink-2); }
.leg-row.is-off .leg-go { text-decoration: none; font-weight: 500; }
.leg-ca { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 10px; border-top: 1px solid rgba(34, 49, 63, .3); }
.leg-ca .addr { font-size: 16px; overflow-wrap: anywhere; user-select: all; line-height: 1.3; }
.leg-key { font: 700 16px var(--sans); }
.leg-wait { font-size: 16px; color: var(--ink-2); line-height: 1.3; }
.leg-copy { min-height: 40px; padding: 0 16px; font: 700 16px var(--sans); color: var(--paper-hi); background: var(--ink); border: 0; border-radius: 4px; cursor: pointer; }

/* =========================== sections below =========================== */
.sec { padding: var(--s7) var(--edge) 0; max-width: 1440px; margin: 0 auto; }
.sec:last-of-type { padding-bottom: var(--s7); }
.sec-head { max-width: 760px; margin-bottom: var(--s4); }
.sec-head h2 { margin: 0; font: 400 clamp(36px, 3.6vw, 54px)/1.05 var(--fell-sc); }
.sec-head p { margin: var(--s2) 0 0; }
.mode-line { margin: 0 0 var(--s2); font-size: 16px; color: var(--ink-2); }
.mode-line:empty { display: none; }

/* one card style: a fresh sheet, an ink border, a pencil offset */
.card, .ledger, .plots { background: var(--paper-hi); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pencil); }

.ledger { overflow: hidden; }
.lrow {
  display: grid; grid-template-columns: 1.6fr 1.3fr 1fr 1fr 1.6fr; gap: var(--s3); align-items: center;
  padding: 14px var(--s3); border-top: 1px solid rgba(34, 49, 63, .2); min-height: 64px;
}
.lrow:first-child { border-top: 0; }
.lrow.head { min-height: 0; padding-top: 12px; padding-bottom: 12px; font-size: 16px; font-weight: 700; background: var(--sand); }
.lrow .tk { font: 400 22px/1.1 var(--fell-sc); text-decoration: none; }
.lrow .tk:hover { color: var(--red); }
.lrow .sub { display: block; font-size: 16px; color: var(--ink-2); }
.lrow .addr { font-size: 16px; }
.lrow a { text-underline-offset: 3px; }
.lrow.enter { animation: row-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes row-in { from { transform: translateY(-14px); opacity: 0; background: #F3DCD3; } }
.seal { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.seal.rehearsal, .seal.burned { color: var(--red); }
.seal.rehearsal span { padding: 6px 16px; border: 2px solid var(--red); border-radius: 3px; letter-spacing: .08em; font-size: 16px; }
.seal.nopot { color: var(--ink-2); font-weight: 600; }
.seal img { width: 34px; }

.plots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plot {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s2); align-items: center; padding: var(--s2) var(--s3);
  min-height: 88px; text-decoration: none; border-top: 1px solid rgba(34, 49, 63, .2);
}
.plot:nth-child(-n+2) { border-top: 0; }
.plot:nth-child(odd) { border-right: 1px solid rgba(34, 49, 63, .2); }
.plot .rank { font: 400 30px/1 var(--fell); color: var(--ink-2); text-align: center; }
.plot .tk { display: block; font: 400 24px/1.1 var(--fell-sc); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plot .sub { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.plot .num { text-align: right; font-size: 16px; }
.plot .num b { display: block; font: 400 30px/1 var(--fell); color: var(--red); }
.plot { padding: 24px 32px; }
.plot:hover .tk { color: var(--red); }
.plot .swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 1.5px solid var(--ink); vertical-align: 0; }

.step-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.step { padding: var(--s4); background: var(--paper-hi); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pencil); }
.step-pic { aspect-ratio: 1 / 1; background-image: url("/img/steps.webp"); background-size: 300% 100%; background-repeat: no-repeat; border-bottom: 1.5px solid rgba(34, 49, 63, .3); margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) var(--s3); }
.step-pic.s1 { background-position: 0% 0; }
.step-pic.s2 { background-position: 50% 0; }
.step-pic.s3 { background-position: 100% 0; }
.step h3 { margin: 0; font: 400 28px/1.1 var(--fell-sc); }
.step p { margin: var(--s1) 0 0; }

.err-line { margin: 0; padding: var(--s2) var(--s3); font-size: 16px; color: var(--ink-2); }


/* =========================== inner pages =========================== */
.page-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--edge) 0; max-width: 1440px; margin: 0 auto; }
.page-top .nav { border-bottom: 0; padding-bottom: 0; }
.check.small { margin-top: 0; width: min(440px, 100%); }
.check.small input, .check.small .btn { height: 52px; min-height: 52px; }
.page-main { padding: var(--s5) var(--edge) var(--s7); max-width: 1440px; margin: 0 auto; min-height: 70vh; }
.t-head { max-width: 1100px; }
.t-kicker { margin: 0; font: 600 16px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.t-name { margin: var(--s1) 0 0; font: italic 400 clamp(56px, 8vw, 128px)/.95 var(--fell); overflow-wrap: anywhere; }
.verdict.is-copy .t-name { color: var(--red); }
.t-sub { margin: var(--s3) 0 0; font-size: 18px; max-width: 60em; overflow-wrap: anywhere; }
.t-sub a { text-underline-offset: 3px; }
.t-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s5); align-items: start; margin-top: var(--s5); }

.cert { position: relative; padding: var(--s4); }
.cert-title { margin: 0 0 var(--s3); padding-right: 30%; font: 400 34px/1.05 var(--fell-sc); }
.cert-stamp { position: absolute; right: var(--s3); top: var(--s3); width: 30%; max-width: 170px; mix-blend-mode: multiply; rotate: -8deg; opacity: .9; }
.cert-stamp.copy { width: 26%; rotate: 6deg; }
.cert-coin.no-pic { grid-template-columns: minmax(0, 1fr); }
.cert-coin { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.cert-pic { width: 88px; height: 88px; border: 1.5px solid var(--ink); background: var(--sand); overflow: hidden; }
.cert-pic img { width: 100%; height: 100%; object-fit: cover; }
.cert-name { margin: 0; font: 400 28px/1.1 var(--fell); overflow-wrap: anywhere; }
.cert-spell { margin: 4px 0 0; font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.cert-fields { margin: 0; display: grid; gap: 0; }
.cert-fields > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: var(--s2); padding: 14px 16px; border-top: 1px dashed rgba(34, 49, 63, .35); }
.cert-fields dt { font-weight: 700; font-size: 16px; }
.cert-fields dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.cert-fields .addr { font-size: 16px; }

.tree { padding: var(--s4); }
.tree-head h2 { margin: 0; font: 400 34px/1.05 var(--fell-sc); }
.tree-head p { margin: var(--s1) 0 var(--s3); font-size: 16px; color: var(--ink-2); }
.root { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px var(--s2); padding: 16px 24px; background: var(--sage); border: 2px solid var(--ink); font-size: 16px; }
.root .r-label { font: 400 24px/1 var(--fell-sc); }
.root.is-focus, .node.is-focus { outline: 3px solid var(--red); outline-offset: 2px; }
.branches { list-style: none; margin: 0; padding: 0 0 0 var(--s3); border-left: 2px solid var(--ink); margin-left: var(--s3); }
.branch { position: relative; padding: var(--s3) 0 0 var(--s3); }
.branch::before { content: ""; position: absolute; left: calc(-1 * var(--s3)); top: calc(var(--s3) + 18px); width: var(--s4); border-top: 2px solid var(--ink); }
.b-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 24px; background: var(--slate); border: 1.5px solid var(--ink); }
.branch:nth-child(3n+2) .b-head { background: var(--sand); }
.branch:nth-child(3n) .b-head { background: var(--paper-hi); }
.b-spell { font: 400 22px/1.2 var(--fell); margin-right: 6px; overflow-wrap: anywhere; }
.chip { padding: 8px 16px; font-size: 16px; font-weight: 600; background: var(--paper-hi); border: 1px solid var(--ink-2); border-radius: 999px; }
.b-count { margin-left: auto; font-size: 16px; color: var(--ink-2); }
.nodes { list-style: none; margin: 0; padding: 0; }
.node {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: var(--s2); align-items: center;
  padding: 10px var(--s2); border-bottom: 1px solid rgba(34, 49, 63, .18); font-size: 16px;
}
.node .n-no { font-weight: 700; color: var(--red); text-decoration: none; }
.node .n-meta { color: var(--ink-2); }
.node .n-mint { font-size: 16px; color: var(--ink-2); white-space: nowrap; text-align: right; }
.node .n-cap { white-space: nowrap; color: var(--ink); }
.n-cap.muted { color: var(--ink-2); font-weight: 400; }
.n-cap { font-weight: 600; }
.b-more { margin: var(--s2) 0 0; min-height: 44px; padding: 0 var(--s3); font: 700 16px var(--sans); color: var(--ink); background: var(--paper-hi); border: 2px solid var(--ink); border-radius: 6px; cursor: pointer; }

/* ---- the empty parcel: 404 and unregistered lookups ---- */
.empty-plot { position: relative; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pencil); overflow: hidden; }
.empty-plot .ep-copy { position: absolute; left: 5%; top: 50%; transform: translateY(-50%); width: 42%; }
.ep-kicker { margin: 0; font: 400 24px var(--fell-sc); color: var(--red); }
.ep-title { margin: var(--s1) 0 var(--s3); font: italic 400 clamp(52px, 6vw, 104px)/.95 var(--fell); overflow-wrap: anywhere; }
.ep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.ep-pic { width: 100%; height: auto; }

@media (max-width: 900px) {
  .page-top { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .page-main { padding-top: var(--s4); }
  .t-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .empty-plot .ep-copy { position: static; transform: none; width: auto; padding: var(--s3) var(--s2) 0; }
  .ep-pic { aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; }
  .cert, .tree { padding: var(--s3) var(--s2); }
  .cert-title { font-size: 28px; }
  .cert-fields > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 20px; }
  .branches { margin-left: var(--s1); padding-left: var(--s2); }
  .branch { padding-left: var(--s2); }
  .branch::before { left: calc(-1 * var(--s2)); width: var(--s3); }
  .node { grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--s2); }
  .node .n-seal { grid-column: 1 / -1; }
  .node .n-seal:empty { display: none; }
  .node .n-mint { grid-column: 1 / -1; text-align: left; }
}


/* ---- docs ---- */
.doc-steps { margin-top: var(--s5); }
.doc { max-width: 1040px; }
.doc-sec { padding-top: var(--s6); }
.doc-sec h2 { margin: 0 0 var(--s2); font: 400 clamp(34px, 3.2vw, 48px)/1.05 var(--fell-sc); }
.doc-sec h3 { margin: var(--s3) 0 var(--s1); font: 400 24px/1.2 var(--fell-sc); }
.doc-sec p { max-width: 46em; }
.doc-sec code { overflow-wrap: anywhere; }
.note { font-size: 16px; color: var(--ink-2); }
.rules { padding-left: 1.4em; max-width: 46em; }
.rules li { margin: 6px 0; }
.dtable { margin: var(--s3) 0; }
.drow { display: grid; grid-template-columns: 1.3fr 1fr 1.6fr; gap: var(--s3); padding: var(--s2) var(--s3); border-top: 1px solid rgba(34, 49, 63, .2); font-size: 17px; }
.drow:first-child { border-top: 0; }
.drow.head { background: var(--sand); font-weight: 700; font-size: 16px; }
.drow .addr { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-2); overflow-wrap: anywhere; }
.two-tables { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin-top: var(--s3); }
.ctable { max-height: 420px; overflow: auto; }
.crow { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: baseline; padding: 16px 28px; border-top: 1px solid rgba(34, 49, 63, .15); font-size: 16px; }
.crow:first-child { border-top: 0; }
.crow .lat { font: 400 26px/1 var(--fell); min-width: 1.2em; }
.crow .alts { font-size: 22px; letter-spacing: .1em; overflow-wrap: anywhere; }
.try { height: 48px; padding: 0 .8em; font: 500 18px var(--sans); color: var(--ink); background: var(--paper-hi); border: 2px solid var(--ink); border-radius: 6px; width: 12em; max-width: 60%; }
.split { display: flex; margin: var(--s3) 0; min-height: 88px; }
.sp { flex: var(--w) 1 0; padding: 24px 36px; font-size: 16px; display: flex; flex-direction: column; justify-content: center; }
.sp b { font: 400 34px/1 var(--fell); }
.sp.pot { background: #F1D9D3; border-right: 2px solid var(--ink); }
.sp.pot b { color: var(--red); }
.sp.work { background: var(--slate); }
.api { padding: var(--s3) var(--s4); }
.api h3 { margin-top: var(--s3); }
.api h3:first-child { margin-top: 0; }
.api pre { margin: var(--s2) 0 0; padding: var(--s2) var(--s3); background: var(--paper); border: 1.5px solid rgba(34, 49, 63, .4); font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.api pre code { font-size: 16px; }
.api pre.sample:has(code:empty) { display: none; }

@media (max-width: 900px) {
  .drow { grid-template-columns: 1fr; gap: 6px; }
  .drow.head { display: none; }
  .two-tables { grid-template-columns: 1fr; }
  .api { padding: var(--s2); }
  .split { flex-direction: column; }
  .sp.pot { border-right: 0; border-bottom: 2px solid var(--ink); }
}

/* ============================ phone ============================ */
@media (max-width: 900px) {
  body { font-size: 17px; background-size: 32px 32px; }
  /* the phone: one column, the map right under the headline */
  .hero { display: flex; flex-direction: column; min-height: 0; padding-top: var(--s2); }
  .hero-copy { display: contents; }
  .hero-copy > * { margin-left: var(--edge); margin-right: var(--edge); }
  .stage-wrap { order: 5; margin-top: var(--s3); }
  .nav { gap: var(--s3); }
  .nav a { font-size: 17px; }
  .check { order: 1; margin-top: var(--s3); }
  .check-msg { order: 2; }
  .name { order: 3; margin-top: var(--s3); font-size: clamp(48px, 14vw, 64px); }
  .headline { order: 4; font-size: 28px; margin-top: var(--s2); }
  .lede { order: 6; font-size: 17px; }
  .hero-links { order: 7; margin-top: var(--s2); }
  .ticker-strip { display: none; }
  .stage-wrap { display: block; }
  .stage { width: 100%; }
  .stage-tag { font-size: 16px; padding: 8px 16px; }
  .legend { position: relative; right: auto; bottom: auto; width: auto; margin: var(--s3) var(--edge) 0; }
  /* the phone reads the map as numbered parcels; the list right under it carries the names */
  .parcel a.plot-label { font-size: 22px; min-width: 48px; }
  .plot-label .label-ink { display: none; }
  .plot-label .rk { display: block; font: 400 34px/1 var(--fell); }
  .sec { padding-top: var(--s6); }
  .lrow { grid-template-columns: 1fr auto; gap: 6px var(--s2); padding: 16px 24px; }
  .lrow.head { display: none; }
  .lrow .c-mint, .lrow .c-pad { display: none; }
  .lrow .c-cap { grid-column: 1; }
  .lrow .c-seal { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .plots { grid-template-columns: 1fr; }
  .plot:nth-child(odd) { border-right: 0; }
  .plot:nth-child(2) { border-top: 1px solid rgba(34, 49, 63, .2); }
  .plot { padding: 20px 24px; grid-template-columns: 36px minmax(0, 1fr) auto; }
  .plot .num b, .plot .rank { font-size: 24px; }
  .step-row { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .nav { gap: var(--s2); }
  .check .btn { padding: 0 1em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .parcel .label-ink { clip-path: none; }
}
