/*
  Planet Farm site. One world: the county fair.
  Three inks, like a fair poster pulled on marigold stock: marigold, ribbon
  blue (with its night navy), and ribbon red. The game's own screenshots bring
  every other colour. Display type is fat wood-type slab (Ultra); body is
  Libre Franklin, the plain American printed-matter gothic of a premium book.
*/

:root {
  --stock: #f4cd3d;
  --stock-2: #f8dc75;
  --paper: #fdf0c2;
  --ink: #152057;
  --ink-soft: #2e3a78;
  --blue: #2448c8;
  --blue-deep: #1a37a3;
  --night: #0e1536;
  --night-2: #18214d;
  --red: #c02a22;
  --red-deep: #9c1f19;

  --display: "Ultra", "Rockwell Extra Bold", Georgia, serif;
  --body: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;

  --gutter: 16px;
  --max: 1240px;
  --r: 14px;
  --r-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(14, 21, 54, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  font-variant-numeric: lining-nums;
}
@media (min-width: 720px) {
  body { font-size: 18px; }
}

::selection { background: var(--ink); color: var(--stock); }
.night ::selection { background: var(--stock); color: var(--ink); }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.night :focus-visible { outline-color: var(--stock); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 9vw, 92px); }
h2 { font-size: clamp(32px, 5.4vw, 60px); }
h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.9em; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: var(--stock);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------ sections */

section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.night {
  background: var(--night);
  color: var(--paper);
}
.night h2, .night h3 { color: var(--stock); }
.paper { background: var(--paper); }

.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; max-width: 38ch; }
.measure { max-width: 62ch; }
.soft { color: var(--ink-soft); }
.night .soft { color: #c9cde6; }

.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head p { margin-top: 18px; max-width: 58ch; font-size: clamp(17px, 1.6vw, 19px); }

/* ---------------------------------------------------------------- nav */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
}
.nav-links a:not(.btn):hover { background: rgba(21, 32, 87, 0.1); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .menu-toggle { display: none; }

@media (max-width: 859px) {
  .nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); gap: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:not(.btn) { padding: 8px 10px; font-size: 15px; white-space: nowrap; }
  .nav-links .btn { display: none; }
  .nav .nav-play { display: inline-flex; }
}
@media (min-width: 860px) {
  .nav .nav-play { display: none; }
}

/* ------------------------------------------------------------- buttons */

.btn {
  --bg: var(--blue);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font: 800 17px/1 var(--body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink), 0 10px 22px -10px rgba(14, 21, 54, 0.6);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink), 0 14px 26px -10px rgba(14, 21, 54, 0.6); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.big { min-height: 60px; padding: 16px 30px; font-size: 20px; }
.btn.small { min-height: 40px; padding: 9px 16px; font-size: 15px; }
.btn.line {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 2.5px var(--ink);
}
.btn.line:hover { background: rgba(21, 32, 87, 0.08); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn.line:active { box-shadow: inset 0 0 0 2.5px var(--ink); }
.night .btn.line { --fg: var(--stock); box-shadow: inset 0 0 0 2.5px var(--stock); }
.night .btn { box-shadow: 0 4px 0 #050918; }
.btn .arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; margin-top: 28px; }

/* ---------------------------------------------------- rosette and tags */

/* the blue prize ribbon: live things wear it */
.rosette {
  position: relative;
  width: 132px;
  aspect-ratio: 120 / 168;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 10px rgba(14, 21, 54, 0.35));
  container-type: inline-size;
}
.rosette svg { width: 100%; height: 100%; }
.rosette span {
  position: absolute;
  left: 50%;
  top: 35.7%;
  transform: translate(-50%, -50%);
  width: 52%;
  text-align: center;
  font: 800 8.4cqw/1.05 var(--body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.rosette span b { display: block; font: 400 15cqw/1 var(--display); letter-spacing: 0; text-transform: none; margin-bottom: 1px; }

/* the paper entry tag: planned things wear it, in red */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 26px;
  background: var(--paper);
  color: var(--red);
  font: 800 13px/1.1 var(--body);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%);
  white-space: nowrap;
}
.tag::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--stock);
  box-shadow: inset 0 0 0 1.5px var(--red);
}
.tag.live { color: var(--blue); }
.tag.live::before { box-shadow: inset 0 0 0 1.5px var(--blue); }
.night .tag::before { background: var(--night); }
.tag.on-paper { background: var(--stock); }

/* bunting: the fairground string, used once at the top of a page */
.bunting {
  height: 30px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='30'%3E%3Cpath d='M0 3 Q44 9 88 3' fill='none' stroke='%23152057' stroke-width='1.6'/%3E%3Cpath d='M4 4.3 L40 6 L22 28Z' fill='%232448c8'/%3E%3Cpath d='M48 6 L84 4.3 L66 28Z' fill='%23c02a22'/%3E%3C/svg%3E")
    repeat-x left top / 88px 30px;
}

/* ---------------------------------------------------------------- hero */

.hero { padding: 0 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-top: clamp(24px, 5vw, 56px);
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 11fr 13fr; gap: 56px; }
}
.hero h1 { font-size: clamp(42px, 5.6vw, 80px); }
.hero .lead { margin-top: 22px; }
.hero-note { margin-top: 18px; font-weight: 700; font-size: 15px; }

/* an exhibit: real game footage in a thick ink frame */
.exhibit {
  position: relative;
  margin: 0;
}
.exhibit .frame {
  position: relative;
  border: 6px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}
.exhibit .frame > img, .exhibit .frame > video { width: 100%; }
.exhibit figcaption {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.night .exhibit figcaption { color: #c9cde6; }
.night .exhibit .frame { border-color: var(--stock); }
.hero .exhibit .rosette {
  position: absolute;
  z-index: 2;
  width: clamp(96px, 12vw, 138px);
  left: clamp(-8px, -2vw, -30px);
  top: clamp(-30px, -3vw, -44px);
  transform: rotate(-8deg);
}
@media (max-width: 979px) {
  .hero .exhibit .rosette { left: auto; right: 4px; top: -58px; transform: rotate(7deg); }
  .hero .exhibit { margin-top: 30px; }
}
.hero .exhibit .frame { aspect-ratio: 16 / 9; }
.hero .exhibit .frame > video { height: 100%; object-fit: cover; }
.motion-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(14, 21, 54, 0.78);
  color: var(--paper);
  font: 700 13px/1 var(--body);
  cursor: pointer;
}

/* callout labels pinned to things in a screenshot */
.callouts { position: absolute; inset: 0; pointer-events: none; }
.callouts li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  font: 800 13px/1 var(--body);
  color: var(--ink);
  white-space: nowrap;
}
.callouts li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 2.5px var(--ink);
  flex: 0 0 auto;
  transform: translate(-50%, 0);
}
.callouts li span {
  position: relative;
  margin-left: 18px;
  background: var(--paper);
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 3px 0 var(--ink);
}
.callouts li span::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
}
.callouts li.l { flex-direction: row-reverse; }
.callouts li.l::before { transform: translate(50%, 0); }
.callouts li.l span { margin-left: 0; margin-right: 18px; }
.callouts li.l span::before { right: auto; left: 100%; }
.callouts li.l { transform: translateX(-100%); }
.callouts li { transform: translateY(-50%); }
.callouts li.l { transform: translate(-100%, -50%); }
.legend { display: none; }
@media (max-width: 719px) {
  .callouts { display: none; }
  .legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
  }
  .legend li {
    font: 700 14px/1.2 var(--body);
    background: var(--paper);
    padding: 7px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 0 var(--ink);
  }
}

/* -------------------------------------------------------- status ledger */

.status {
  display: grid;
  gap: 0;
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
@media (min-width: 820px) {
  .status { grid-template-columns: 1fr 1fr; }
}
.status > div { padding: 24px clamp(20px, 3vw, 32px) 26px; }
.status > div + div { border-top: 3px solid var(--ink); }
@media (min-width: 820px) {
  .status > div + div { border-top: 0; border-left: 3px solid var(--ink); }
}
.status h3 { margin: 14px 0 8px; font-size: clamp(22px, 2.4vw, 28px); }
.status p { font-size: 16px; }
.status .tag { background: var(--stock); }

/* ---------------------------------------------------------- the loop */

.loop-row {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 720px) {
  .loop-row { grid-template-columns: repeat(5, 1fr); gap: 0; }
}
.loop-row li {
  position: relative;
  padding: 18px 20px 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
}
@media (min-width: 720px) {
  .loop-row li { border-radius: 0; border-left-width: 0; }
  .loop-row li:first-child { border-left-width: 3px; border-radius: var(--r) 0 0 var(--r); }
  .loop-row li:last-child { border-radius: 0 var(--r) var(--r) 0; }
  .loop-row li + li::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    background: var(--stock);
    border: 3px solid var(--ink);
    border-radius: 50%;
    z-index: 1;
  }
}
.loop-row b { display: block; font: 400 24px/1 var(--display); margin-bottom: 8px; }
.loop-row span { font-size: 15px; line-height: 1.45; display: block; }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.l7 { grid-template-columns: 7fr 5fr; }
  .split.r7 { grid-template-columns: 5fr 7fr; }
  .split.top { align-items: start; }
}

/* the two farmers, as entrants */
.entrants { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 3vw, 28px); }
.entrant { margin: 0; }
.entrant .frame { aspect-ratio: 4 / 5; border-width: 5px; }
.entrant .frame img { height: 100%; object-fit: cover; }
.entrant figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; margin-top: 12px; }
@media (max-width: 560px) {
  .entrant figcaption { flex-direction: column; }
}
.entrant figcaption b { font: 400 clamp(20px, 2.4vw, 26px)/1 var(--display); color: var(--ink); }
.entrant figcaption span { font-size: 14px; font-weight: 700; }

/* ------------------------------------------------------------ planets */

.planets {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .planets { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .planets { grid-template-columns: repeat(4, 1fr); } }
.planet {
  position: relative;
  background: var(--night-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.planet .ground { aspect-ratio: 4 / 3; overflow: hidden; }
.planet .ground img { width: 100%; height: 100%; object-fit: cover; }
.planet .ball {
  position: absolute;
  right: 12px;
  top: calc(75% * 0 + 12px);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--night-2), 0 8px 18px rgba(0, 0, 0, 0.45);
}
.planet .ball img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.45); }
.planet .body { padding: 18px 20px 22px; }
.planet h3 { font-size: 30px; }
.planet dl { margin: 12px 0 0; display: grid; gap: 6px; font-size: 15px; }
.planet dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(253, 240, 194, 0.18); padding-top: 6px; }
.planet dt { color: #c9cde6; }
.planet dd { margin: 0; font-weight: 700; color: var(--paper); text-align: right; }

/* ----------------------------------------------------------- scoreboard */

.board {
  background: var(--night-2);
  border: 4px solid var(--stock);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.board-title { font: 400 clamp(22px, 3vw, 32px)/1 var(--display); color: var(--stock); }
.tiles {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(3px, 0.7vw, 8px);
  margin: clamp(20px, 3vw, 32px) 0 clamp(16px, 2vw, 22px);
  font-variant-numeric: tabular-nums;
}
.tiles .t {
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  background: var(--night);
  border-radius: 8px;
  box-shadow: inset 0 -50% 0 rgba(255, 255, 255, 0.03), inset 0 0 0 1px rgba(253, 240, 194, 0.12);
  color: var(--stock);
  font: 400 clamp(26px, 6vw, 72px)/1 var(--display);
  position: relative;
  overflow: hidden;
}
.tiles .t::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.45);
}
.tiles .t.sep { flex: 0 0 auto; width: clamp(8px, 1.4vw, 18px); background: none; box-shadow: none; aspect-ratio: auto; align-self: end; font-size: clamp(22px, 5vw, 60px); }
.tiles .t.sep::after { display: none; }
.board[data-live="false"] .tiles .t { color: rgba(244, 205, 61, 0.28); }
.board .unit { font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; font-size: 14px; color: var(--stock); }
.board-foot {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(253, 240, 194, 0.2);
  padding-top: 18px;
}
@media (min-width: 720px) { .board-foot { grid-template-columns: repeat(3, 1fr); } }
.board-foot div span { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #c9cde6; }
.board-foot div b { display: block; font: 400 24px/1.2 var(--display); color: var(--paper); margin-top: 4px; font-variant-numeric: tabular-nums; }
.board-msg { margin-top: 18px; color: var(--paper); font-size: 16px; }
.board-msg[hidden] { display: none; }
.board.big .tiles .t { max-width: 120px; }

/* -------------------------------------------------------- premium list */

.premium {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
}
.premium caption {
  caption-side: top;
  text-align: left;
  font: 400 22px/1.15 var(--display);
  padding: 0 0 12px;
}
.premium th, .premium td { padding: 12px 14px; text-align: left; vertical-align: top; }
.premium thead th {
  background: var(--ink);
  color: var(--stock);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.premium tbody tr + tr > * { border-top: 1.5px solid rgba(21, 32, 87, 0.22); }
.premium tbody th { font-weight: 800; }
.premium td.n, .premium th.n { text-align: right; white-space: nowrap; }
.premium tfoot td, .premium tfoot th { border-top: 3px solid var(--ink); font-weight: 800; background: var(--stock-2); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.table-scroll:focus-visible { outline-offset: 2px; }
.table-scroll .premium { min-width: 560px; }
.table-note { margin-top: 12px; font-size: 15px; color: var(--ink-soft); max-width: 70ch; }
.honest {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--red);
  color: var(--paper);
  border-radius: var(--r);
  font-weight: 700;
  font-size: 17px;
}
.honest svg { flex: 0 0 auto; margin-top: 2px; }

/* ------------------------------------------------------------- facts */

.facts { margin: 0; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 14px; padding: 13px 0; border-top: 1.5px solid rgba(21, 32, 87, 0.25); }
.facts > div:last-child { border-bottom: 1.5px solid rgba(21, 32, 87, 0.25); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.night .facts > div { border-color: rgba(253, 240, 194, 0.2); }
@media (max-width: 480px) {
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}

/* supply split bar */
.split-bar {
  display: flex;
  height: 64px;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  margin: 8px 0 18px;
}
.split-bar > div { display: flex; align-items: center; padding: 0 16px; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; }
.split-bar .a { flex: 0 0 71.43%; background: var(--blue); color: var(--paper); }
.split-bar .b { flex: 1; background: var(--paper); color: var(--ink); border-left: 3px solid var(--ink); }

/* flow: where the SOL goes */
.flow { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.flow li {
  position: relative;
  padding: 18px 20px 18px 64px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
}
.flow li + li { margin-top: 26px; }
.flow li + li::before {
  content: "";
  position: absolute;
  left: 30px;
  top: -29px;
  width: 3px;
  height: 26px;
  background: var(--ink);
}
.flow li .k {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper);
  display: grid;
  place-items: center;
  font: 400 16px/1 var(--display);
}
.flow li b { display: block; font-size: 18px; }
.flow li p { font-size: 16px; margin-top: 4px; }

/* the trust panel: every commitment its own instrument, each with a lamp */
.checks { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .checks { grid-template-columns: repeat(4, 1fr); } }
.checks li {
  background: var(--night-2);
  border-radius: var(--r);
  padding: 18px 18px 20px;
  box-shadow: inset 0 0 0 1px rgba(253, 240, 194, 0.14);
}
.checks .lamp { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--stock); }
.checks .lamp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--stock); box-shadow: 0 0 0 3px rgba(244, 205, 61, 0.22); }
.checks b { display: block; margin-top: 12px; font: 400 20px/1.15 var(--display); color: var(--paper); }
.checks p { margin-top: 8px; font-size: 15px; color: #c9cde6; }

/* sinks */
.sinks td:last-child { min-width: 180px; }

/* ------------------------------------------------------------ plots teaser */

.deeds-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 22px); }
.deed-tag {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 10px 10px 12px;
  text-decoration: none;
  transition: transform 220ms var(--ease);
}
.deed-tag:nth-child(1) { transform: rotate(-2deg); }
.deed-tag:nth-child(3) { transform: rotate(2deg); }
.deed-tag:hover { transform: rotate(0) translateY(-4px); }
.deed-tag img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.deed-tag span { display: block; margin-top: 8px; font-weight: 800; font-size: 14px; }
@media (max-width: 520px) { .deed-tag span { font-size: 12px; } }

/* ----------------------------------------------------------- closing */

.close { text-align: center; padding: clamp(80px, 12vw, 150px) 0; }
.close h2 { font-size: clamp(40px, 8vw, 96px); max-width: 14ch; margin: 0 auto; }
.close p { margin: 20px auto 0; max-width: 46ch; font-size: clamp(17px, 1.8vw, 20px); }
.close .btn-row { justify-content: center; }

/* ------------------------------------------------------------- footer */

.foot { padding: 48px 0 40px; background: var(--night); color: var(--paper); }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.foot .brand { color: var(--stock); }
.foot small { display: block; margin-top: 14px; font-size: 14px; line-height: 1.55; color: #c9cde6; max-width: 60ch; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { font-weight: 700; text-decoration: none; padding: 6px 0; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--stock); }
.risk { margin-top: 14px; font-size: 14px; color: var(--paper); font-weight: 700; }

/* ------------------------------------------------------------ page head */

.page-head { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { font-size: clamp(44px, 8vw, 96px); margin-top: 16px; }
.page-head .lead { margin-top: 20px; max-width: 44ch; }

/* ------------------------------------------------------------ reveal */

html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .deed-tag { transition: none; }
}

/* ============================================================ guide */

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--paper); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: 0 2px 0 var(--ink); }
.toc a:hover { background: var(--stock-2); }
.guide-sec { padding: clamp(48px, 7vw, 88px) 0; border-top: 3px solid var(--ink); }
.guide-sec:first-of-type { border-top: 0; }
.guide-sec h2 { font-size: clamp(30px, 4.4vw, 48px); margin-bottom: 20px; }
.keys { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .keys { grid-template-columns: 1fr 1fr; } }
kbd {
  display: inline-block;
  min-width: 30px;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  font: 800 14px/1.2 var(--body);
  text-align: center;
}
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--paper); border-radius: var(--r); padding: 14px 16px; border: 2px solid var(--ink); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--stock); display: grid; place-items: center; font: 400 16px/1 var(--display); }
.steps li b { display: block; }
.steps li span { font-size: 16px; }

/* ============================================================ plots */

.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--stock);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 12px 0;
}
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.fset { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flabel { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 4px; }
.pill {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 15px/1 var(--body);
  cursor: pointer;
}
.pill:hover { background: var(--stock-2); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--stock); }
.selects { display: none; gap: 10px; width: 100%; }
.sel { flex: 1; display: grid; gap: 4px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.sel select {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 700 16px/1.2 var(--body);
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 719px) {
  .selects { display: flex; }
  .fset.pills { display: none; }
  .toolbar { position: static; }
}
.count { font-weight: 800; font-size: 15px; margin: 0; font-variant-numeric: tabular-nums; }

.plot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 28px 0 20px;
}
@media (min-width: 720px) { .plot-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; } }
.plot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 8px 8px 12px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.plot:hover { transform: translateY(-3px); box-shadow: 0 6px 0 var(--ink); }
.plot .art { aspect-ratio: 1; border-radius: 7px; overflow: hidden; background: var(--stock-2); display: grid; place-items: center; margin-bottom: 6px; }
.plot .art img { width: 100%; height: 100%; object-fit: cover; }
.plot .tok { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); white-space: pre; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #55a844; box-shadow: 0 0 0 1.5px var(--ink); flex: 0 0 auto; }
.dot.ember { background: #e0803f; }
.dot.frost { background: #cfe6f2; }
.dot.umbra { background: #6a4fa8; }
.plot .name { font: 400 19px/1.1 var(--display); }
.plot .traits { font-size: 13px; line-height: 1.4; white-space: pre-line; color: var(--ink-soft); }
.plot.skel { cursor: default; }
.plot.skel .bar { height: 12px; border-radius: 6px; background: var(--stock-2); margin-top: 6px; }
.plot.skel .bar.short { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .plot.skel .art, .plot.skel .bar { animation: pulse 1.4s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.55; } }
.blank .mark { display: grid; place-items: center; }
.more-row { display: flex; justify-content: center; padding: 8px 0 72px; }
.empty { text-align: center; padding: 64px 0 88px; display: grid; justify-items: center; gap: 12px; }
.empty h2 { font-size: clamp(26px, 4vw, 36px); }
.art-note { margin-top: 16px; font-weight: 700; max-width: 60ch; }

dialog.deed {
  width: min(880px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 4px solid var(--ink);
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
}
dialog.deed::backdrop { background: rgba(14, 21, 54, 0.72); }
.deed-body { display: grid; gap: 0; position: relative; }
@media (min-width: 760px) { .deed-body { grid-template-columns: 1fr 1fr; } }
.deed-art { aspect-ratio: 1; background: var(--stock-2); display: grid; place-items: center; }
.deed-art img { width: 100%; height: 100%; object-fit: cover; }
.deed-info { padding: 24px 22px 26px; }
.deed-info h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 14px; }
.deed-token { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.deed-note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.deed-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.deed-info .facts > div { padding: 9px 0; font-size: 15px; }

/* levels ladder on the plots page */
.ladder { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.rung { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); padding: 18px 18px 20px; }
.rung b { font: 400 34px/1 var(--display); display: block; }
.rung span { display: block; font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; color: var(--ink-soft); }
.rung p { margin-top: 10px; font-size: 16px; }

/* ------------------------------------------------ status, three across */

@media (min-width: 980px) {
  .status.three { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 820px) and (max-width: 979px) {
  .status.three { grid-template-columns: 1fr 1fr; }
  .status.three > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 3px solid var(--ink); }
}

/* ------------------------------------------------ contract address */

.ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
  padding: 12px 12px 12px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  max-width: 720px;
}
.ca-label { flex: 1 0 100%; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.ca-code {
  flex: 1 1 0;
  min-width: 0;
  font: 600 15px/1.35 ui-monospace, "Cascadia Mono", Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.ca-copy { flex: 0 0 auto; }
.ca-copy[data-done] { --bg: var(--ink); }
.board .ca { background: var(--night); color: var(--paper); border-color: rgba(253, 240, 194, 0.25); max-width: none; }
.board .ca-label { color: #c9cde6; }
.board .ca-copy { box-shadow: 0 3px 0 #050918; }

.checks .lamp.live { color: #9fe0a8; }
.checks .lamp.live::before { background: #9fe0a8; box-shadow: 0 0 0 3px rgba(159, 224, 168, 0.22); }

/* up to 13 characters (1,000,000,000) must fit a phone row */
.tiles .t { font-size: clamp(18px, 5.4vw, 72px); }
.tiles .t.sep { font-size: clamp(16px, 4.6vw, 60px); width: clamp(5px, 1.2vw, 18px); }
.plot .art img, .deed-art img, .deed-tag img { background: #0b1024; }
/* the plot SVG declares 3000x3000; never let that size a grid column */
@media (min-width: 760px) { .deed-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.deed-art, .plot .art { min-width: 0; }
.deed-art img { max-width: 100%; height: auto; aspect-ratio: 1; }
.deed-art { background: #0b1024; aspect-ratio: auto; }
@media (max-width: 759px) { .deed-art { aspect-ratio: 1; } }
