/* Freshet — a kiln shelf of models. One cobalt glaze, three densities; everything
   else is chalk, ash and grog. See DESIGN.md. */

@font-face {
  font-family: "Antonio";
  src: url("fonts/antonio-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  --shelf: #f1f1ed;      /* the ground: kiln shelf, chalk */
  --shelf-2: #e9e8e2;
  --card: #f7f7f4;
  --ash: #d8d5ce;        /* rules */
  --grog: #a7a39a;
  --grog-ink: #5d5a52;   /* muted text, 6.1:1 on --shelf */

  --cobalt: #1e3fae;     /* the run */
  --thin: #8ea6dd;       /* thin flow */
  --sapphire: #0b1e4d;   /* the pool, and the ink */
  --ghost: #d7e3f5;      /* drip ghost */
  --ink-2: #33406a;      /* secondary text, tinted from the ink */

  --display: "Antonio", "Arial Narrow", sans-serif;
  --sans: "Figtree", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --gutter: clamp(1rem, 4vw, 2.75rem);
  --max: 1200px;
  --band: clamp(3.5rem, 8vw, 6.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--shelf);
  /* kiln-shelf grain: rendered once, tiled */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .33 0 0 0 0 .3 0 0 0 .12 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--sapphire);
  font: 400 1rem/1.62 var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px; }
a { color: var(--cobalt); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
code, pre { font-variant-ligatures: none; }
code { font-family: var(--mono); font-size: .86em; color: var(--sapphire); background: var(--ghost); padding: .08em .32em; border-radius: 2px; }
strong { font-weight: 700; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--cobalt); margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem); line-height: 1; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
html { scrollbar-color: var(--grog) var(--shelf-2); }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--cobalt); color: #fff; padding: .5rem .8rem; z-index: 10; }
.skip:focus { left: .5rem; }
.lede { font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }

/* ── buttons: a glaze bead drops from the corner on hover ─────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .7rem 1.35rem;
  font: 700 .8125rem/1 var(--mono); letter-spacing: .06em;
  color: #fff; background: var(--cobalt);
  border: 1px solid var(--cobalt); border-radius: 3px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(11, 30, 77, .25), 0 6px 14px -8px rgba(11, 30, 77, .5);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn::after {
  content: ""; position: absolute; right: 14%; top: 100%;
  width: 7px; height: 9px; border-radius: 0 0 4px 4px;
  background: inherit; transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease);
}
.btn:hover { background: var(--sapphire); border-color: var(--sapphire); text-decoration: none; }
.btn:hover::after { transform: none; }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 2.25rem; padding: .5rem .9rem; font-size: .75rem; }
.btn--ghost { color: var(--cobalt); background: transparent; box-shadow: none; }
.btn--ghost::after { display: none; }
.btn--ghost:hover { color: var(--sapphire); background: var(--ghost); border-color: var(--cobalt); }
.btn--light { color: var(--cobalt); background: var(--shelf); border-color: var(--shelf); }
.btn--light:hover { color: var(--sapphire); background: #fff; border-color: #fff; }
.btn--ghost-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.6); box-shadow: none; }
.btn--ghost-light::after { display: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ── header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 5; background: rgba(241, 241, 237, .92); border-bottom: 1px solid var(--ash); backdrop-filter: saturate(1.2) blur(6px); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font: 700 1.6rem/1 var(--display); color: var(--cobalt); text-decoration: none; letter-spacing: .01em; }
.logo svg { width: 1.75rem; height: 1.75rem; }
.logo__cup { fill: var(--ash); }
.logo__glaze { fill: var(--cobalt); }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.6rem); }
.nav a:not(.btn) { font: 400 .8125rem/1 var(--mono); color: var(--sapphire); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--cobalt); text-decoration: underline; }
@media (max-width: 900px) { .nav__opt { display: none; } }
@media (max-width: 620px) { .nav a:not(.btn) { display: none; } }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(2rem, 4vw, 3rem); overflow: hidden; }
.hero__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
h1 { font-size: clamp(2.9rem, 1.5rem + 4.3vw, 5.4rem); line-height: .95; letter-spacing: -.01em; max-width: 15ch; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 62ch; margin: 1.2rem 0 1.5rem; }
.lead strong { color: var(--sapphire); }

.log { border: 1px solid var(--cobalt); border-radius: 4px; padding: 1.1rem 1.25rem 1rem; background: rgba(247, 247, 244, .7); margin-top: .5rem; }
.log__title { font: 700 .75rem/1.2 var(--mono); letter-spacing: .08em; color: var(--cobalt); margin: 0 0 .9rem; }
.log__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin: 0; }
.log__grid div { border-top: 1px solid var(--ash); padding-top: .55rem; }
.log__wide { grid-column: span 2; display: flex; align-items: baseline; justify-content: space-between; }
.log dt { font: 400 .75rem/1.3 var(--mono); color: var(--grog-ink); }
.log dd { margin: 0; font: 700 2.4rem/1 var(--display); color: var(--cobalt); font-variant-numeric: tabular-nums; }
.log__wide dd { font-size: 1.9rem; }
.log dd small { font: 400 .75rem/1 var(--mono); color: var(--grog-ink); }
.log__note { font-size: .78rem; line-height: 1.5; color: var(--grog-ink); margin: .9rem 0 0; }

/* the shelf */
.shelf-wrap { margin-top: clamp(1.5rem, 3vw, 2.25rem); position: relative; }
.shelf__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.shelf__cap { font: 400 .9rem/1.55 var(--sans); color: var(--grog-ink); max-width: 80ch; margin: 0; }
.shelf__cap code { font-size: .9em; }
.replay { font: 700 .75rem/1 var(--mono); letter-spacing: .04em; color: var(--cobalt); background: transparent; border: 1px solid var(--cobalt); border-radius: 3px; padding: .55rem .8rem; cursor: pointer; white-space: nowrap; }
.replay:hover { background: var(--ghost); }
.replay:disabled { opacity: .45; cursor: default; }

.shelf-scroll { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(.4rem, 1vw, .9rem); position: relative; z-index: 1; }
.cup { display: flex; flex-direction: column; min-width: 0; }
.stage { position: relative; --gap: clamp(.4rem, 1vw, .9rem); }
/* each cup brings its own length of kiln shelf; the gaps close so the slab reads as one */
.stage::after {
  content: ""; position: absolute; z-index: -1;
  left: calc(var(--gap) / -2 - 1px); right: calc(var(--gap) / -2 - 1px);
  top: 92.5%; height: 2.3rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='60'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='1' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .3 0 0 0 0 .26 14 0 0 0 -9.3'/%3E%3C/filter%3E%3Crect width='160' height='60' filter='url(%23s)'/%3E%3C/svg%3E"),
    linear-gradient(#e6e4dd, #d3d0c8 55%, #b4b0a6);
  box-shadow: 0 12px 16px -12px rgba(40, 36, 28, .5);
}
/* the cups are one photographed stoneware tumbler, glazed twice (assets/cup-*.webp); the
   images are cropped around the fused pool, so the cup body is 73% of the image width */
.cup__art { position: relative; display: block; width: 106%; max-width: none; height: auto; margin: 0 -3%; }

.card {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column;
  margin-top: 1.4rem;
  background: var(--card); border: 1px solid var(--ash); border-radius: 4px;
  padding: .8rem .8rem .75rem;
  box-shadow: 0 2px 6px -3px rgba(40, 36, 28, .25);
}
.card h3 { font-size: clamp(1.1rem, .85rem + .5vw, 1.3rem); line-height: 1.05; }
.card__kind { font: 400 .6875rem/1.4 var(--mono); color: var(--grog-ink); margin: .3rem 0 .6rem; padding-bottom: .55rem; border-bottom: 1px solid var(--ash); }
.card__kind code { background: none; padding: 0; color: inherit; }
.card__why { font-size: .78rem; line-height: 1.45; color: var(--ink-2); margin: .55rem 0 .6rem; flex: 1; }
.card__why code { font-size: .92em; }
.card__cu { font: 700 .75rem/1 var(--mono); color: var(--grog-ink); margin: 0; font-variant-numeric: tabular-nums; }
.stamp { width: fit-content; align-self: flex-start; font: 700 .6875rem/1 var(--mono); letter-spacing: .03em; color: var(--grog-ink); border: 1px solid var(--grog); border-radius: 3px; padding: .3rem .45rem; margin: 0; }
.stamp--run { color: var(--cobalt); border-color: var(--cobalt); background: var(--ghost); }
.stamp--fuse { color: #fff; border-color: var(--sapphire); background: var(--sapphire); }
.cup--run .card__cu, .cup--fuse .card__cu { color: var(--cobalt); }
.cup--run .card { border-color: var(--thin); }
.cup--fuse .card { border-color: var(--cobalt); }


/* ── the pour (motion.js adds .is-ready, then .is-poured per cup) ─────────
   The glaze layer is its own box, revealed top-down like a run finding its level;
   the negative insets leave room for drips and the pool to leave the cup. */
.cup__glaze { position: absolute; top: 0; left: 0; margin: 0 -3%; }
/* A feathered mask front travels down the cup, so glaze flows on rather than wiping.
   The mask is 3x the image: 40% opaque, a 10% feather, the rest clear. */
.cup__glaze {
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 50%);
          mask-image: linear-gradient(to bottom, #000 40%, transparent 50%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position 1.7s cubic-bezier(.45, .05, .3, 1), mask-position 1.7s cubic-bezier(.45, .05, .3, 1);
}
.shelf.is-ready .cup__glaze { -webkit-mask-position: 0 100%; mask-position: 0 100%; transition-duration: 0s; }
.shelf.is-ready .cup.is-poured .cup__glaze { -webkit-mask-position: 0 0; mask-position: 0 0; transition-duration: 1.7s; }
.shelf.is-ready .cup--fuse.is-poured .cup__glaze { transition-duration: 2.3s; }

.stamp, .card__cu { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.card { transition: opacity .4s var(--ease), border-color .4s var(--ease); }
.shelf.is-ready .stamp,
.shelf.is-ready .card__cu { opacity: 0; transform: translateY(4px); }
.shelf.is-ready .cup--hold .card { opacity: .55; }
.shelf.is-ready .cup.is-poured .stamp,
.shelf.is-ready .cup.is-poured .card__cu { opacity: 1; transform: none; transition-delay: 1s; }
.shelf.is-ready .cup--hold.is-poured .stamp,
.shelf.is-ready .cup--hold.is-poured .card__cu { transition-delay: .1s; }
.shelf.is-ready .cup.is-poured .card { opacity: 1; }

/* ── background drips: glaze hanging from the top edge, behind everything. motion.js
   builds them and ties length and falling beads to scroll; nothing here moves on its own. */
.drips { position: fixed; inset: 4rem 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.drips__defs { position: absolute; width: 0; height: 0; }
/* the lip: glaze gathered along the header's edge, where every drip hangs from */
.drips__lip { position: absolute; top: 0; left: 0; width: 100%; height: 10px; opacity: .3; }
.drip { position: absolute; top: 3px; left: var(--x); width: var(--w); height: var(--len); margin-left: calc(var(--w) / -2); opacity: var(--o); }
.drip--far { filter: blur(1.2px); }
.drip__col { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: top; transform: scaleY(var(--s, .15)); will-change: transform; }
.drip__bead, .drip__drop {
  position: absolute; left: 50%; top: 0; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .9), #5a78cf 30%, #1e3fae 75%);
}
.drip__bead { width: calc(var(--w) * .78); transform: translate(-50%, calc(var(--len) * var(--s, .15) - 62%)); will-change: transform; }
.drip__drop { width: calc(var(--w) * .6); transform: translate(-50%, var(--dy, 0)); opacity: var(--do, 0); will-change: transform, opacity; }
@media (max-width: 620px) { .drip--far { display: none; } .drips__lip { opacity: .22; } }

/* ── bands ────────────────────────────────────────────────────────────── */
.band { padding-block: var(--band); border-top: 1px solid var(--ash); }
.hero + .band { margin-top: var(--band); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.band h2::after {
  content: ""; display: block; width: 5.5rem; height: 15px; margin-top: .7rem;
  background:
    linear-gradient(var(--cobalt), var(--cobalt)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--cobalt), var(--cobalt)) right 6px top 0 / 3px 10px no-repeat,
    radial-gradient(circle at 50% 50%, var(--cobalt) 3.4px, transparent 4px) right 3.5px bottom 0 / 8px 8px no-repeat;
}
.split__text h2 { margin-bottom: 1.25rem; }
.split__text > p { color: var(--ink-2); max-width: 60ch; }

.rules { margin: 1.75rem 0 0; }
.rules dt { font: 700 1.5rem/1.1 var(--display); color: var(--cobalt); margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--ash); }
.rules dt:first-child { margin-top: 0; }
.rules dd { margin: .45rem 0 0; color: var(--ink-2); max-width: 58ch; }

.term { margin: 0; background: var(--sapphire); color: #dfe6f7; border-radius: 5px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(11, 30, 77, .7); }
.term__bar { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-bottom: 1px solid rgba(215, 227, 245, .15); font: 400 .72rem/1 var(--mono); color: var(--thin); }
.term__bar::before { content: ""; width: 9px; height: 13px; border-radius: 1px 1px 5px 5px; background: var(--thin); }
.term pre { margin: 0; padding: 1.1rem 1.15rem 1.25rem; overflow-x: auto; font: 400 .78rem/1.7 var(--mono); tab-size: 2; scrollbar-color: #33406a var(--sapphire); }
.term code { background: none; padding: 0; color: inherit; font-size: 1em; }
.term .p { color: var(--thin); user-select: none; }
.term .c { color: #8290b8; }
.term figcaption { padding: .9rem 1.15rem 1rem; border-top: 1px solid rgba(215, 227, 245, .15); font-size: .8rem; line-height: 1.55; color: #c3cde8; }
.term figcaption code { background: rgba(215, 227, 245, .12); color: #fff; }

/* ── the firing record ────────────────────────────────────────────────── */
.band--record { background: rgba(233, 232, 226, .78); }
.record__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: end; margin-bottom: 2.25rem; }
.record__head .lede { margin: 0; }

.kiln { background: var(--card); border: 1px solid var(--ash); border-radius: 5px; padding: clamp(1rem, 3vw, 1.75rem); }
.kiln__tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.kiln__tabs button {
  font: 400 .78rem/1 var(--mono); color: var(--cobalt);
  background: transparent; border: 1px solid var(--ash); border-radius: 3px;
  padding: .6rem .8rem; cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.kiln__tabs button:hover { border-color: var(--cobalt); }
.kiln__tabs button[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; font-weight: 700; }
.kiln__q { margin: 1.25rem 0 1.4rem; font-size: 1.05rem; color: var(--ink-2); min-height: 1.7em; }
.kiln__scale { font: 400 .8rem/1.45 var(--sans); color: var(--grog-ink); margin: 1.2rem 0 0; }

.lanes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.05rem; }
.lane { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) 12rem; align-items: center; gap: 1rem; }
.lane__name { font: 700 1.2rem/1.1 var(--display); color: var(--sapphire); }
.lane--us .lane__name { color: var(--cobalt); }
.lane__track { position: relative; height: 1.1rem; border-bottom: 1px dashed var(--ash); }
.lane__run {
  position: absolute; left: 0; top: .15rem; height: .8rem;
  width: max(.8rem, var(--w)); min-width: .8rem;
  background: linear-gradient(90deg, var(--thin), var(--cobalt) 30%, var(--sapphire));
  border-radius: 1px 7px 7px 1px;
  /* ponytail: width, not scaleX, so the drip at the end keeps its shape; four bars, on click only */
  transition: width .9s var(--ease);
}
/* each run ends in a drip */
.lane__run::after { content: ""; position: absolute; right: 2px; top: 60%; width: 6px; height: .95rem; border-radius: 0 0 4px 4px; background: var(--sapphire); transform-origin: top; transition: transform .6s var(--ease) .5s; }
.lane--us .lane__run { background: var(--cobalt); }
.lane--us .lane__run::after { background: var(--cobalt); }
.lane.is-none .lane__run { width: 0; min-width: 0; }
.lane.is-none .lane__run::after { transform: scaleY(0); }
.lane__t { font: 400 .8rem/1.3 var(--mono); color: var(--grog-ink); font-variant-numeric: tabular-nums; }
.lane__t b { display: block; font-weight: 700; font-size: 1rem; color: var(--sapphire); }
.lane--us .lane__t b { color: var(--cobalt); }

.table-scroll { overflow-x: auto; margin-top: 2rem; }
.rec { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 40rem; }
.rec caption { caption-side: bottom; text-align: left; font-size: .8rem; line-height: 1.55; color: var(--grog-ink); padding-top: .8rem; }
.rec th, .rec td { padding: .7rem .8rem; border-bottom: 1px solid var(--ash); text-align: right; }
.rec thead th { font: 700 .72rem/1.3 var(--mono); color: var(--grog-ink); border-bottom: 1px solid var(--grog); vertical-align: bottom; }
.rec tbody th { text-align: left; font-weight: 500; font-size: .92rem; color: var(--sapphire); }
.rec thead th:first-child { text-align: left; }
.rec td { font: 400 .88rem/1.3 var(--mono); color: var(--ink-2); }
.rec td.us { color: var(--cobalt); font-weight: 700; }
.rec tr.hl { background: var(--ghost); }
.rec sup { font-size: .7em; }

.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); margin-top: 2rem; }
.notes p { font-size: .88rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.notes strong { color: var(--sapphire); }

/* ── embed ────────────────────────────────────────────────────────────── */
.band--embed h2 { max-width: 16ch; margin-bottom: 1.1rem; }
.surfaces { width: 100%; border-collapse: collapse; margin-top: 2.25rem; }
.surfaces th, .surfaces td { padding: 1rem .9rem 1rem 0; border-top: 1px solid var(--ash); text-align: left; vertical-align: baseline; }
.surfaces tr:last-child th, .surfaces tr:last-child td { border-bottom: 1px solid var(--ash); }
.surfaces th { font: 700 1.35rem/1.1 var(--display); color: var(--cobalt); width: 8.5rem; }
.surfaces td:nth-child(2) { width: 34%; }
.surfaces td:nth-child(2) code { background: none; padding: 0; font-size: .82rem; color: var(--sapphire); }
.surfaces td:last-child { color: var(--ink-2); font-size: .95rem; }

/* ── editions: a kiln log, one row per edition ─────────────────────────── */
.band--editions h2 { max-width: 18ch; margin-bottom: 1.1rem; }
.ledger { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 2px solid var(--cobalt); }
.ledger__row {
  display: grid; grid-template-columns: 5.5rem minmax(11rem, 15rem) minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2rem); align-items: start;
  padding: 1.6rem 0; border-bottom: 1px solid var(--ash);
}
.ledger__row--cloud { grid-template-columns: 7rem minmax(11rem, 15rem) minmax(0, 1fr) auto; padding-inline: 2.5rem 1.25rem; overflow: hidden; padding-block: 2rem; background: linear-gradient(90deg, rgba(215, 227, 245, .55), transparent 70%); }
.ledger__art .cup__art { width: 100%; margin: 0; }
.ledger__row:not(.ledger__row--cloud) .ledger__art { padding-top: .3rem; }
.ledger h3 { font-size: 2rem; line-height: 1; }
.ledger__row--cloud h3 { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); }
.ledger__line { font-weight: 600; color: var(--sapphire); margin: .45rem 0 .8rem; }
.ledger__terms { list-style: none; margin: 0; padding: 0; }
.ledger__terms li { position: relative; padding: .45rem 0 .45rem 1.2rem; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.ledger__terms li + li { border-top: 1px solid var(--ash); }
.ledger__terms li::before { content: ""; position: absolute; left: .1rem; top: .85rem; width: 5px; height: 9px; border-radius: 0 0 3px 3px; background: var(--thin); }
.ledger__row--cloud .ledger__terms li::before { background: var(--cobalt); }
.ledger__act { display: flex; flex-direction: column; align-items: flex-start; }
.ledger__fine { font-size: .8rem; color: var(--grog-ink); margin: .8rem 0 0; }

/* ── close ────────────────────────────────────────────────────────────── */
.close { background: var(--cobalt); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; overflow: hidden; }
.close::before {
  /* the glaze's lip: the band drips into the footer */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px;
  background: radial-gradient(circle at 10% 100%, var(--sapphire) 8px, transparent 9px) 0 0 / 180px 22px repeat-x;
  opacity: .8;
}
.close__in { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.close h2 { color: #fff; max-width: 17ch; }

.foot { background: var(--sapphire); color: #c3cde8; padding-block: 2.25rem 2.75rem; font-size: .85rem; }
.foot__in { display: grid; grid-template-columns: 1.1fr 1.6fr auto; gap: 1.5rem; }
.foot p { margin: 0; }
.foot strong { color: #fff; }
.foot a { color: #fff; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 1.75rem; }
  .stage { --gap: clamp(.4rem, 1vw, .9rem); }
  .notes { grid-template-columns: 1fr; max-width: 70ch; }
  .ledger__row, .ledger__row--cloud { grid-template-columns: 6rem minmax(0, 1fr); }
  .ledger__terms, .ledger__act { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero__top, .split, .split--rev, .record__head { grid-template-columns: 1fr; }
  .log { max-width: 26rem; }
  .lane { grid-template-columns: minmax(0, 1fr); gap: .35rem; }
  .lane__t { display: flex; gap: .6rem; align-items: baseline; }
  .lane__t b { display: inline; }
  .surfaces, .surfaces tbody, .surfaces tr, .surfaces th, .surfaces td { display: block; width: auto !important; }
  .surfaces tr { border-top: 1px solid var(--ash); padding: .9rem 0; }
  .surfaces th, .surfaces td { border: 0 !important; padding: .15rem 0; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* the shelf comes straight after the actions; the readout follows it */
  .hero { display: flex; flex-direction: column; }
  .hero__top { display: contents; }
  .hero__copy, .log { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
  .hero__copy { order: 1; }
  .shelf-wrap { order: 2; margin-top: 1.75rem; }
  .log { order: 3; margin-top: 2rem; max-width: none; }
  .shelf { column-gap: .5rem; row-gap: 1.25rem; }
  .stage { --gap: .5rem; }
  .stage::after { height: 1.6rem; }
  .card { margin-top: .9rem; padding: .5rem .45rem .55rem; }
  .card h3 { font-size: 1rem; }
  .card__kind, .card__why, .card__cu { display: none; }
  .stamp { margin-top: .45rem; font-size: .6rem; padding: .25rem .3rem; }
  .shelf__head { flex-direction: column; align-items: start; }
  .ledger__row, .ledger__row--cloud { grid-template-columns: 4rem minmax(0, 1fr); gap: .9rem; }
  .ledger__terms, .ledger__act { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
}
[hidden]{display:none!important}
