/*
 * The public site: home, stickers, sanctuaries, postcards, crates & items.
 *
 * One committed world: a sticker album open on a table at night, under a
 * lamp. Deep green-black ground, bone-white ink, and gold foil as the single
 * accent -- the same foil as the first pack. It is deliberately not the legal
 * pages' daylight palette (styles.css): those exist to be read by a reviewer,
 * this exists to make somebody want the album.
 */

:root {
  --ground:   #0C1410;
  --ground-2: #111B15;
  --surface:  #172319;
  --line:     #263529;
  --ink:      #EFEADF;
  --ink-2:    #B4BFB3;
  --ink-3:    #7E8B7F;
  --foil:     #E6B94F;
  --foil-2:   #F6D77E;
  --moss:     #7FBE8E;

  --c-common:      #A9B5A8;
  --c-uncommon:    #7FBE8E;
  --c-rare:        #E6B94F;
  --holo: conic-gradient(from 200deg, #ff9ecf, #ffd36e, #a8ff9a, #7ee8ff, #c39cff, #ff9ecf);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 em, h2 em { font-style: italic; font-variation-settings: "SOFT" 100; color: var(--foil-2); }
p { margin: 0; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--foil); margin-bottom: 14px;
}
.skip { position: absolute; left: -999px; top: 8px; background: var(--foil); color: var(--ground); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--foil-2); outline-offset: 3px; }

/* ── Top bar ──────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-frog { width: 34px; height: 34px; }
.brand-word { height: 15px; width: auto; }
.top nav { display: flex; gap: 4px 22px; flex-wrap: wrap; font-size: 14px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .top nav a:nth-child(n+5) { display: none; } .top nav { gap: 4px 14px; font-size: 13px; } }
.top nav a[aria-current="page"] { color: var(--foil-2); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92svh;
  display: grid; align-content: center; gap: 48px;
  padding: 10vh var(--gutter) 6vh;
  max-width: var(--max); margin: 0 auto;
  isolation: isolate; overflow: clip;
}
.cloud { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: visible; }
.cloud-item {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  transform: translate(-50%, -50%) rotate(var(--r)) translate3d(var(--px, 0), var(--py, 0), 0);
  opacity: calc(.35 + var(--d) * .5);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)) saturate(calc(.6 + var(--d) * .5));
  will-change: transform;
  animation: bob 9s ease-in-out infinite;
  animation-delay: calc(var(--d) * -9s);
}
@keyframes bob { 50% { margin-top: -10px; } }
@media (max-width: 760px) {
  .cloud-item { opacity: calc(.18 + var(--d) * .25); width: calc(var(--s) * .6); height: calc(var(--s) * .6); left: calc(var(--x) * .9 + 10%); }
}
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(44px, 9vw, 124px); line-height: .96; font-weight: 500; }
.hero h1 .line { display: block; }
.hero h1 .line:first-child { animation: rise .9s var(--ease) .1s both; }
.hero h1 .line:last-child  { animation: rise .9s var(--ease) .25s both; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.lede { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); text-wrap: pretty; }
.cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  display: inline-block; padding: 14px 22px; border-radius: 999px;
  background: var(--foil); color: var(--ground); font-weight: 600; text-decoration: none;
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { background: var(--foil-2); transform: translateY(-2px); }
.soon { color: var(--ink-3); font-size: 15px; }
.hero-stats { display: flex; gap: 12px 40px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--ink-3); font-size: 14px; }

/* ── Marquee ──────────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--ground-2); padding: 18px 0; }
.mq-track { display: flex; gap: 40px; width: max-content; animation: mq 60s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.mq-item img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.mq-item:hover { color: var(--foil-2); }

/* ── Light sections ───────────────────────────────────────────────────── */
/*
 * The album is open under a lamp, but not every page of it is the dark
 * endpaper. A `.light` section re-declares the same tokens on paper -- the
 * app's own off-white -- and bleeds edge to edge, so every component keeps
 * its rules and simply changes ground. Gold darkens on paper so it still
 * reads as an accent rather than a highlight.
 */
.light {
  --ground:   #F4F1E8;
  --ground-2: #EBE7DA;
  --surface:  #FFFFFF;
  --line:     #DAD6C8;
  --ink:      #14201A;
  --ink-2:    #4A574D;
  --ink-3:    #74807A;
  --foil:     #9A7A22;
  --foil-2:   #7A5F14;
  --c-common: #7A867C;
  --c-uncommon: #3E7A4E;
  --c-rare:   #9A7A22;
  background: var(--ground); color: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ground); clip-path: inset(0 -100vmax);
}
.light .btn { color: #F4F1E8; }
.talks.light { background: var(--ground); }
.light .sheen { mix-blend-mode: multiply; opacity: 0; }
.light .card-hit img, .light .moment img, .light .item img, .light .feature img, .light .tier-cell img { filter: drop-shadow(0 8px 12px rgba(20,32,26,.22)); }
.light .phone img { box-shadow: 0 30px 60px -24px rgba(20,32,26,.45), 0 0 0 6px var(--ground-2); }
.light .postcard { box-shadow: 0 30px 60px -24px rgba(20,32,26,.5); }

/* ── Shared section rhythm ────────────────────────────────────────────── */
main > section { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: var(--max); margin: 0 auto; }
main > section h2 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.02; }
.loop, .trading { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .loop, .trading { grid-template-columns: 5fr 7fr; } .trading { grid-template-columns: 6fr 6fr; } }
.loop-copy p:not(.eyebrow), .trading-copy > p:not(.eyebrow), .rarity-copy p:not(.eyebrow), .cat-head > p:not(.eyebrow) {
  margin-top: 20px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty;
}

/* ── Phones ───────────────────────────────────────────────────────────── */
.phones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1400px; }
.phones-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .phones { grid-template-columns: 1fr 1fr; } .phones li:nth-child(3) { grid-column: span 2; max-width: 50%; margin: 0 auto; } }
.phone { margin: 0; display: grid; gap: 12px; }
.phone img {
  width: 100%; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), 0 0 0 6px var(--ground-2);
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.js .phone:not(.in) img { transform: rotateY(var(--tilt)) translateY(24px); opacity: 0; }
.phone.in img { transform: rotateY(var(--tilt)); opacity: 1; }
.phone:hover img { transform: rotateY(0deg) translateY(-6px); }
.phone figcaption { font-size: 14px; color: var(--ink-3); text-align: center; text-wrap: balance; }

/* ── Reveal ───────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Catalogue ────────────────────────────────────────────────────────── */
.catalogue { max-width: none; padding-inline: 0; }
.cat-head, .filters, .packs { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.fieldtest {
  margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--foil); background: var(--ground-2);
  color: var(--ink-2); font-size: 15px; max-width: 64ch;
}
.fieldtest b { color: var(--ink); }
.live-note { color: var(--ink-3); }

.filters {
  position: sticky; top: 58px; z-index: 10;
  margin-top: 40px; padding-block: 14px;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
  display: grid; gap: 8px;
}
.filter-row { display: flex; align-items: baseline; gap: 14px; }
.filter-label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); flex: none; width: 52px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn {
  flex: none; font: 500 13px/1 var(--body); color: var(--ink-2);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.chip-btn .n { color: var(--ink-3); font-family: var(--mono); font-size: 11px; margin-left: 4px; }
.chip-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.chip-btn.is-on { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip-btn.is-on .n { color: var(--ground); }
.showing { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.pack { margin-top: 64px; }
.pack.is-empty { display: none; }
.pack-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.pack-head .wrapper { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.pack-head h3 { font-size: clamp(24px, 3vw, 34px); font-weight: 500; }
.pack-head p { color: var(--ink-2); margin-top: 2px; }
.pack-count { font-family: var(--mono); font-size: 12px; color: var(--ink-3) !important; margin-top: 6px !important; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
@media (max-width: 480px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { perspective: 800px; }
.card.is-hidden { display: none; }
/* Two rows per pack until asked; any filter opens everything, because a
   person filtering for holographics wants all fifty-two, not fourteen. */
.js .pack:not(.is-open) .card.is-more { display: none; }
.js .packs.is-filtering .card.is-more { display: block; }
.js .packs.is-filtering .more { display: none; }
.more {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; margin-top: 12px;
  padding: 12px; text-align: center; border: 1px dashed var(--line); border-radius: 12px;
  font: 500 14px var(--body); color: var(--ink-2); transition: border-color .2s, color .2s;
}
.more:hover { border-color: var(--ink-3); color: var(--ink); }
.pack.is-open .more { display: none; }
.card-hit {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  position: relative; display: grid; gap: 8px; padding: 14px 12px 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
  transition: transform .18s ease-out, border-color .2s;
  overflow: hidden; isolation: isolate;
}
.card-hit:hover, .card-hit:focus-visible { border-color: var(--ink-3); }
.card-hit img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.card-name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.card-meta { display: grid; gap: 6px; justify-items: start; }
.run { font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.run b { color: var(--ink); font-weight: 500; }
.sheen {
  position: absolute; inset: -40%; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 42%);
  transition: opacity .3s;
}
.card-hit:hover .sheen, .detail-art:hover .sheen { opacity: 1; }
.r-holographic .sheen {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.3), transparent 40%),
    linear-gradient(calc(var(--ang, 120deg)), transparent 30%, rgba(255,158,207,.35), rgba(126,232,255,.35), rgba(168,255,154,.35), transparent 70%);
}
.r-holographic .card-hit { border-color: color-mix(in srgb, #c39cff 40%, var(--line)); }

.chip {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; border: 1px solid currentColor;
}
.chip-common      { color: var(--c-common); }
.chip-uncommon    { color: var(--c-uncommon); }
.chip-rare        { color: var(--c-rare); }
.chip-holographic { color: var(--ink); border-color: transparent; background: var(--holo); -webkit-background-clip: padding-box; position: relative; }
.chip-holographic::before { content: ""; position: absolute; inset: 1px; border-radius: 999px; background: var(--surface); z-index: -1; }
.chip-holographic { z-index: 0; }
.chip-btn-holographic.is-on { background: var(--holo); color: var(--ground); border-color: transparent; }

/* ── Rarity ledger ────────────────────────────────────────────────────── */
.rarity { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .rarity { grid-template-columns: 5fr 7fr; } }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 0 12px 12px 0; border-bottom: 1px solid var(--line); }
.ledger td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ledger td:last-child b { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); }
.ledger td:nth-child(2), .ledger td:nth-child(3) { color: var(--ink-2); }
.ledger tr.r-holographic td:last-child b { background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 520px) { .ledger th:nth-child(2), .ledger td:nth-child(2) { display: none; } }

/* ── Trading ──────────────────────────────────────────────────────────── */
.rules { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; color: var(--ink-2); max-width: 56ch; }
.rules li { padding-left: 18px; border-left: 2px solid var(--line); }
.rules b { color: var(--ink); display: block; }

/* ── Outro & footer ───────────────────────────────────────────────────── */
.outro { text-align: center; }
.outro h2 { font-size: clamp(48px, 10vw, 140px); line-height: .95; }
.outro p { margin: 26px auto 0; max-width: 56ch; color: var(--ink-2); text-wrap: pretty; }
.outro .soon { margin-top: 14px; }
footer.site {
  border-top: 1px solid var(--line); padding: 28px var(--gutter) 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  color: var(--ink-3); font-size: 14px; max-width: var(--max); margin: 0 auto;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--ink-3); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ── Detail dialog ────────────────────────────────────────────────────── */
.detail {
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink);
  padding: 0; width: min(92vw, 720px); box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.detail::backdrop { background: rgba(6, 10, 8, .7); backdrop-filter: blur(4px); }
.detail form { position: absolute; top: 10px; right: 10px; margin: 0; }
.close { all: unset; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; color: var(--ink-2); }
.close:hover { background: var(--line); color: var(--ink); }
.detail-body { display: grid; gap: 24px; padding: 28px; }
@media (min-width: 640px) { .detail-body { grid-template-columns: 1fr 1fr; align-items: center; } }
.detail-art { position: relative; border-radius: 18px; background: var(--ground-2); padding: 24px; isolation: isolate; overflow: hidden; }
.detail-art img { width: 100%; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 16px 24px rgba(0,0,0,.5)); }
.detail h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; margin-bottom: 10px; }
.detail dl { margin: 20px 0 0; display: grid; gap: 10px; }
.detail dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.detail dt { color: var(--ink-3); font-size: 14px; }
.detail dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.detail-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ── Motion preferences ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud-item { animation: none; }
  .hero h1 .line { animation: none; }
  .mq-track { animation: none; }
  .reveal, .phone img { transition: none; opacity: 1; transform: none; }
  .card-hit { transition: none; transform: none; }
}

/* ── Home hero frog ───────────────────────────────────────────────────── */
.hero-frog {
  width: clamp(72px, 9vw, 120px); height: auto; margin-bottom: 18px;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.5));
  animation: focus 6s ease-in-out infinite;
}
@keyframes focus { 50% { transform: scale(1.04); } }
.hero-short { min-height: 0; padding-top: 8vh; }
.hero-sprite { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-sprite { grid-template-columns: 7fr 5fr; align-items: center; } }
.sprite-row { display: flex; gap: clamp(14px, 3vw, 40px); justify-content: center; align-items: flex-end; }
.sprite-row figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.sprite-row img { height: clamp(90px, 14vw, 170px); width: auto; filter: drop-shadow(0 20px 28px rgba(0,0,0,.55)); animation: bob 7s ease-in-out infinite; }
.sprite-row figure:nth-child(2) img { animation-delay: -2.3s; }
.sprite-row figure:nth-child(3) img { animation-delay: -4.6s; }
.sprite-row figcaption { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-quiet:hover { background: var(--surface); }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; max-width: 56ch; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; color: var(--ink-2); text-wrap: pretty; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; color: var(--foil-2); border: 1px solid var(--foil);
}
.steps b { color: var(--ink); }
.steps a { color: var(--foil-2); }

/* ── Wide single-column statements ────────────────────────────────────── */
.talks, .validate, .two-kinds, .plans { text-align: left; }
.talks-inner, .validate-inner, .two-kinds-inner { max-width: 70ch; }
.talks-inner p:not(.eyebrow), .validate-inner p:not(.eyebrow), .two-kinds-inner p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); text-wrap: pretty; }
.talks { background: var(--ground-2); max-width: none; }
.talks-inner { max-width: var(--max); margin: 0 auto; }
.talks-inner p:not(.eyebrow) { max-width: 70ch; }
.validate-inner b, .two-kinds-inner b { color: var(--ink); }
.validate-inner a { color: var(--foil-2); }

/* ── Score ────────────────────────────────────────────────────────────── */
.score { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .score { grid-template-columns: 6fr 6fr; } }
.score-copy p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.score .ledger td:first-child { font-weight: 600; }
.score .ledger td:nth-child(2) b { font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3vw, 40px); color: var(--ink); }
.score .ledger td:nth-child(3) { color: var(--ink-3); }
.score .ledger tr.r-very_rare td:nth-child(2) b { color: var(--foil-2); }

/* ── Moments / items grid ─────────────────────────────────────────────── */
.moments-copy p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); max-width: 64ch; text-wrap: pretty; }
.moments-grid {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.moment, .item {
  display: grid; gap: 6px; justify-items: start; align-content: start;
  padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s;
}
.moment:hover, .item:hover { transform: translateY(-4px); border-color: var(--ink-3); }
.moment img { width: 88px; height: 88px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.45)); justify-self: center; margin-bottom: 4px; }
.item img { width: 96px; height: 96px; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); justify-self: center; margin-bottom: 4px; }
.moment b, .item b { font-size: 15px; }
.moment .mult { font-family: var(--mono); font-size: 12px; color: var(--foil-2); }
.moment-set .mult { color: var(--ink-3); }
.item .mult { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.moment .note, .item .note { font-size: 13px; color: var(--ink-3); line-height: 1.45; text-wrap: pretty; }
.items-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* ── Ranks ────────────────────────────────────────────────────────────── */
.ranks { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .ranks { grid-template-columns: 6fr 6fr; } }
.ranks-copy p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.ranks-copy b { color: var(--ink); }
.rungs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rung {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--foil) calc(var(--i) * 6%), var(--surface));
  margin-left: calc(var(--i) * 4%);
  transition-delay: calc(var(--i) * 70ms);
}
.rung b { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2vw, 24px); }
.rung span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.rung:last-child { border-color: var(--foil); }

/* ── Feature cards ────────────────────────────────────────────────────── */
.rest-head { margin-bottom: 36px; }
.features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 22px;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--foil); }
.feature img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.5)); }
.feature-text { display: grid; gap: 8px; align-content: start; }
.feature-text .eyebrow { margin: 0; }
.feature-title { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.1; }
.feature-blurb { color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.feature-more { color: var(--foil-2); font-size: 14px; margin-top: 6px; }

/* ── Plans ────────────────────────────────────────────────────────────── */
.plan-grid { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.plan b { font-family: var(--display); font-weight: 500; font-size: 26px; display: block; margin-bottom: 8px; }
.plan p { color: var(--ink-2); text-wrap: pretty; }
.plan-pro { border-color: var(--foil); }
.plan-pro b { color: var(--foil-2); }

/* ── Tier tables and cells ────────────────────────────────────────────── */
.ledger-tiers td { color: var(--ink-2); }
.tier-cell { display: flex; align-items: center; gap: 12px; }
.tier-cell img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.tier-cell span { color: var(--ink); font-weight: 600; }
.ledger .muted { color: var(--ink-3); font-size: 14px; }
.ledger-tiers td:nth-child(3) b { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.6vw, 34px); color: var(--foil-2); }
.tables { display: grid; gap: 28px; }
@media (max-width: 640px) { .ledger .muted { display: none; } }

/* ── Postcard demo ────────────────────────────────────────────────────── */
.postcard-demo { display: grid; place-items: center; perspective: 1200px; }
.postcard {
  width: min(100%, 420px); aspect-ratio: 3 / 2; background: #F3EDDF; color: #2A2E28;
  border-radius: 6px; padding: 12px; display: grid; grid-template-rows: 1fr auto; gap: 10px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  transform: rotate(-3deg) rotateY(6deg); transition: transform .6s var(--ease);
}
.postcard:hover { transform: rotate(0) rotateY(0); }
.postcard-photo {
  border-radius: 3px; display: grid; place-items: center;
  background: radial-gradient(120% 80% at 30% 20%, #3B6B4A, #16281E 70%);
  color: rgba(239,234,223,.7); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.postcard-foot { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; }
.postcard-place { font-family: var(--display); font-weight: 600; font-size: 20px; }
.postcard-date { font-family: var(--mono); font-size: 12px; color: #5E6B60; }
.postcard-stamp { width: 40px; height: 48px; border: 2px dashed #B9AD90; display: grid; place-items: center; background: #FFF8EC; }
.postcard-stamp img { width: 26px; height: 26px; }

/* ── Footer brand ─────────────────────────────────────────────────────── */
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { width: 40px; height: 40px; opacity: .8; }
.foot-brand p { margin: 0; line-height: 1.5; }
