/* Decoy. One object carries the look: a carved, hand-painted wooden duck decoy floating on a still lake at dawn,
   reeds at the edges, a painted sign nailed to a post in the shallows. The model talks to the decoy, never to you.
   Without a key the decoy is the bare carved blank; with a key it is painted as the species of that key. The sign says
   what to do next and is the button. Everything you press is the same chestnut paint on cedar, with the grain showing
   through; every value you read is burned into a pale basswood tag. Ink is lake-bottom dark, the ground is dawn mist. */

@font-face { font-family: 'IM Fell English'; src: url('/fonts/im-fell-english.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IM Fell English'; src: url('/fonts/im-fell-english-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Reddit Sans'; src: url('/fonts/reddit-sans.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Google Sans Code'; src: url('/fonts/google-sans-code.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --ground: #f2ebe2;
  --ground-hi: #fbf8f3;
  --ground-lo: #e6ddd0;
  --line: #ddd2c2;
  --line-2: #bdb09c;
  --ink: #1b2226;
  --ink-2: #3a4246;
  --mute: #6d6a63;
  --paint: #8a3a1d;
  --paint-hi: #a54a27;
  --paint-lo: #6a2b14;
  --lake: #4c676d;
  --lake-deep: #213840;
  --reed: #a98d52;
  --wood: #e9d4ab;
  --wood-2: #d9bb88;
  --scorch: #3a2213;
  --cream: #f6ead2;
  --paper: #fffdf9;
  --highlight: #f6c98f;
  --good: #2e6b4c;
  --bad: #a8321d;

  --display: 'IM Fell English', 'Iowan Old Style', Georgia, serif;
  --text: 'Reddit Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Google Sans Code', ui-monospace, 'SF Mono', Menlo, monospace;
  --burn: 'IM Fell English', Georgia, serif;

  --grain: repeating-linear-gradient(177deg, rgba(60, 30, 10, .07) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(182deg, rgba(255, 240, 220, .05) 0 2px, transparent 2px 11px);

  --fs-0: .8125rem;
  --fs-1: .9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-4: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem);
  --fs-5: clamp(2.7rem, 1.2rem + 3.9vw, 4.5rem);

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 var(--fs-2)/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; text-decoration-color: var(--paint); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--highlight); color: var(--ink); }
:focus-visible { outline: 3px solid var(--paint); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .9em; }
.mute { color: var(--mute); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- buttons: boards of wood. The plain ones are bare basswood, the one you should press is painted chestnut,
   the grain showing through the paint and the paint worn back at the edges. The letters sit cut into the board.
   Pressing pushes the board down into its shadow. */
.key {
  --face: #efdcb8; --face-2: #ddc193; --on: var(--ink); --rim: rgba(70, 44, 20, .55); --under: #a9875a; --worn: rgba(255, 246, 228, .5);
  --cut: 0 1px 0 rgba(255, 248, 232, .55);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.3em; border: 0; border-radius: 6px;
  background: var(--grain), linear-gradient(180deg, var(--face), var(--face-2));
  color: var(--on);
  font: 700 var(--fs-2)/1 var(--text); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  text-shadow: var(--cut);
  box-shadow: inset 0 0 0 1.5px var(--rim), inset 0 2px 0 1.5px var(--worn), inset 0 -3px 6px -2px rgba(40, 20, 6, .25),
    0 3px 0 0 var(--under), 0 10px 16px -9px rgba(40, 28, 16, .6);
  transform: translateY(0); transition: transform .07s ease-out, box-shadow .07s ease-out, filter .12s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.key:hover { filter: brightness(1.04); transform: translateY(-1px); }
.key:active, .key[aria-pressed='true'] {
  transform: translateY(2px);
  box-shadow: inset 0 0 0 1.5px var(--rim), inset 0 2px 0 1.5px var(--worn), inset 0 -2px 5px -2px rgba(40, 20, 6, .25),
    0 1px 0 0 var(--under), 0 2px 5px -2px rgba(40, 28, 16, .5);
}
.key:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.key.go {
  --face: #9c4524; --face-2: #7a321a; --on: var(--cream); --rim: #4e1d0b; --under: #4a1c0b; --worn: rgba(233, 196, 140, .35);
  --cut: 0 -1px 0 rgba(30, 8, 0, .55), 0 1px 0 rgba(255, 210, 160, .22);
  background: var(--grain), radial-gradient(120% 140% at 50% 50%, transparent 62%, rgba(214, 160, 96, .32) 100%), linear-gradient(180deg, var(--face), var(--face-2));
}
.key.dark { --face: #2e4850; --face-2: #1d3239; --on: var(--cream); --rim: #0f1d22; --under: #0c171b; --worn: rgba(200, 220, 220, .16); --cut: 0 -1px 0 rgba(0, 0, 0, .5); }
.key.big { min-height: 62px; padding: 0 1.6em; font-size: 1.1875rem; border-radius: 7px; }
.key.small { min-height: 40px; padding: 0 1em; font-size: var(--fs-1); border-radius: 5px; }
.key.small:active, .key.small[aria-pressed='true'] { transform: translateY(2px); }
.key svg { width: 1.1em; height: 1.1em; flex: none; }
.plain { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .2em; }
.plain:hover { text-decoration-thickness: .14em; text-decoration-color: var(--paint); }

/* ---------- the basswood tag: every value you read (the credit at the top, the balance, the 404) is burned into a
   small pale tag, a drilled hole at the top with a twist of twine through it. */
.lit {
  position: relative; border-radius: 5px; color: var(--scorch);
  background: var(--grain), radial-gradient(130% 120% at 50% 40%, transparent 60%, rgba(150, 100, 45, .22)), linear-gradient(180deg, #f1dfbb, #e2c799);
  padding-top: 14px;
  box-shadow: inset 0 0 0 1px rgba(110, 72, 30, .35), 0 2px 0 rgba(90, 60, 25, .25), 0 10px 18px -10px rgba(40, 28, 16, .6);
}
.lit::before { content: ''; position: absolute; left: 50%; top: 5px; width: 7px; height: 7px; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #6b4a28 0 45%, #3c2812 70%); box-shadow: 0 1px 0 rgba(255, 245, 225, .6); }
.lettered { font-family: var(--text); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 .06em rgba(90, 40, 10, .5); }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: clamp(14px, 3vw, 36px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: italic 400 2.15rem/1 var(--display); letter-spacing: -.01em; color: var(--ink); }
.brand span { translate: 0 -3px; }
.brand svg { width: 44px; height: 33px; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; font-weight: 600; font-size: var(--fs-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--ink); }
.nav a[aria-current='page'] { border-bottom-color: var(--paint); }
.top-x { display: inline-flex; padding: 8px; margin: -8px; }
.top-x svg { width: 19px; height: 19px; }
/* the credit at the top: a small basswood tag, pressable */
.credit { display: inline-flex; align-items: center; padding: 0; border: 0; border-radius: 5px; background: none; margin: 4px; transition: transform .07s; rotate: -2deg; }
.credit:hover { transform: translateY(-1px); }
.credit:active { transform: translateY(1px); }
.credit .lit { display: block; min-width: 92px; padding: 16px 12px 6px; font-size: 1.4rem; line-height: 1; text-align: center; }
.menu-btn { display: none; }

/* ---------- the hero: dawn sky over a still lake. The lake runs the whole width under the scene; the far shore is a
   grey band of trees on the horizon. One unit, --u, sizes the scene and the lake together. */
.hero {
  --u: 16px; --lake-h: calc(var(--u) * 13.6);
  position: relative; overflow: clip; padding-top: clamp(24px, 5vw, 60px);
  background: linear-gradient(180deg, var(--ground) 0%, #f3e4d6 38%, #f4d9c0 calc(100% - var(--lake-h) - 40px), #f2d3b6 calc(100% - var(--lake-h)), transparent calc(100% - var(--lake-h)));
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: var(--lake-h); z-index: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='60'%3E%3Cpath d='M20 8H96M150 15H186M240 6H330M60 26H118M210 31H262M330 22H404M8 43H52M120 47H214M290 52H346M380 40H416' stroke='%23fff6ea' stroke-opacity='.22' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") 0 18px / 420px 60px,
    linear-gradient(180deg, #d9cfc6 0, #c4c3bb 8%, #9fadab 30%, #73898c 62%, #546d73 100%);
}
.shore { position: absolute; left: 0; right: 0; bottom: var(--lake-h); width: 100%; height: calc(var(--u) * 2.4); z-index: 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(20px, 4vw, 60px); }
.hero .words { align-self: start; padding: clamp(8px, 3vw, 40px) 0 calc(var(--lake-h) + 36px); }
.hero h1 { font: 400 var(--fs-5)/.98 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.hero h1 em { display: block; font-style: italic; color: var(--paint); }
.hero .lead { margin-top: 26px; max-width: 30em; font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.hero .lead b { font-weight: 700; color: var(--ink); }
.hero .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: 36px; }

/* ---------- the scene: drawn in SVG at 340 x 300 units for 34em x 30em, so one unit is a tenth of an em; the sign
   (an HTML button) is nailed to the post at the same measures. The waterline is at 210 units, 9em above the bottom. */
.scene { position: relative; flex: none; width: 34em; height: 30em; font-size: var(--u); }
.lake-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* the decoy's paint, per species. --sp-* are set on the scene by data-sp; bare = the carved blank before any paint */
.duck path, .duck ellipse { transition: fill .9s ease, stroke .9s ease, opacity .9s ease; }
.duck .p-body { fill: var(--sp-body); }
.duck .p-breast { fill: var(--sp-breast); }
.duck .p-rump { fill: var(--sp-rump); }
.duck .p-back { fill: var(--sp-back); }
.duck .p-spec { fill: var(--sp-spec); }
.duck .p-edge { stroke: var(--sp-edge, transparent); }
.duck .p-curl { stroke: var(--sp-curl, transparent); }
.duck .p-head { fill: var(--sp-head); }
.duck .p-cheek { fill: var(--sp-cheek, var(--sp-head)); }
.duck .p-ring { fill: var(--sp-ring, var(--sp-head)); }
.duck .p-bill { fill: var(--sp-bill); }
.duck .p-grain { opacity: var(--sp-grain, .22); }
.duck .wear ellipse { fill: #d9b98a; opacity: var(--sp-wear, .7); }
.scene[data-sp='bare'] { --sp-body: #dcc092; --sp-breast: #d8b986; --sp-rump: #d2b07c; --sp-back: #cfae7a; --sp-spec: #c9a671; --sp-head: #dcbf90; --sp-bill: #cfae78; --sp-grain: .5; --sp-wear: 0; }
.scene[data-sp='mallard'] { --sp-head: #1f4a3a; --sp-ring: #f1ede2; --sp-breast: #6e3420; --sp-body: #bfb9ac; --sp-back: #7f766a; --sp-rump: #1b1c1b; --sp-bill: #c9a43a; --sp-spec: #3d4f9c; --sp-edge: #f3efe4; --sp-curl: #1b1c1b; }
.scene[data-sp='pintail'] { --sp-head: #5b3b27; --sp-ring: #f1ede2; --sp-breast: #f1ede2; --sp-body: #b9b6ae; --sp-back: #55524c; --sp-rump: #1b1c1b; --sp-bill: #56656f; --sp-spec: #2f5a3a; --sp-edge: #c89a52; --sp-curl: #1b1c1b; }
.scene[data-sp='canvasback'] { --sp-head: #8a3a1e; --sp-ring: #1b1b1b; --sp-breast: #1b1b1b; --sp-body: #ece8de; --sp-back: #d6d2c7; --sp-rump: #1b1b1b; --sp-bill: #1f1f1f; --sp-spec: #9a978e; }
.scene[data-sp='redhead'] { --sp-head: #b0481f; --sp-ring: #1b1b1b; --sp-breast: #1b1b1b; --sp-body: #8f908c; --sp-back: #6e6f6b; --sp-rump: #1b1b1b; --sp-bill: #86a2b6; --sp-spec: #a3a8aa; }
.scene[data-sp='bluebill'] { --sp-head: #1c2c2b; --sp-breast: #1c1c1c; --sp-body: #e3e1da; --sp-back: #9c9d98; --sp-rump: #1c1c1c; --sp-bill: #7497bb; --sp-spec: #f1ede2; }
.scene[data-sp='goldeneye'] { --sp-head: #17352c; --sp-cheek: #f3f0e6; --sp-breast: #f3f0e6; --sp-body: #f1eee4; --sp-back: #1b1b1b; --sp-rump: #1b1b1b; --sp-bill: #1b1b1b; --sp-spec: #f3f0e6; }
.scene[data-sp='bufflehead'] { --sp-head: #262a3d; --sp-cheek: #f6f3ea; --sp-breast: #f3f0e6; --sp-body: #f3f0e6; --sp-back: #1d1d1f; --sp-rump: #1d1d1f; --sp-bill: #6d7480; --sp-spec: #f3f0e6; }
.scene[data-sp='wigeon'] { --sp-head: #c2b9a4; --sp-cheek: #2c5a3e; --sp-breast: #a7765d; --sp-body: #a98068; --sp-back: #7d6a5c; --sp-rump: #1b1b1b; --sp-bill: #8fa3b2; --sp-spec: #2c6a46; --sp-edge: #f1ede2; }
.scene[data-sp='teal'] { --sp-head: #7a3a24; --sp-cheek: #2b5e44; --sp-breast: #d6c3a1; --sp-body: #aaa69c; --sp-back: #8a857a; --sp-rump: #2a2a26; --sp-bill: #232323; --sp-spec: #2b6e4d; --sp-edge: #f1ede2; }
.scene[data-sp='blackduck'] { --sp-head: #75644c; --sp-breast: #3d2e23; --sp-body: #3f3026; --sp-back: #30251d; --sp-rump: #2b211a; --sp-bill: #b9a24a; --sp-spec: #4a4f9c; --sp-edge: #1b1b1b; }
.scene[data-sp='merganser'] { --sp-head: #1d3b31; --sp-ring: #f3f0e6; --sp-breast: #f3f0e6; --sp-body: #efebe1; --sp-back: #1b1b1b; --sp-rump: #8a8a86; --sp-bill: #b33a22; --sp-spec: #f3f0e6; }
.scene[data-sp='gadwall'] { --sp-head: #8d8475; --sp-breast: #6f685f; --sp-body: #918b81; --sp-back: #6c665c; --sp-rump: #1b1b1b; --sp-bill: #3a3a3a; --sp-spec: #f3f0e6; --sp-edge: #7a3a24; }

/* the decoy rides the water, barely */
.float { transform-box: view-box; transform-origin: 214px 210px; animation: ride 7s ease-in-out infinite; }
@keyframes ride { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(.9px) rotate(-.5deg); } }
.scene.on .float { animation: settle 1.3s ease-out, ride 7s ease-in-out 1.3s infinite; }
@keyframes settle { 0% { transform: translateY(-3px) rotate(1.4deg); } 35% { transform: translateY(1.6px) rotate(-1deg); } 65% { transform: translateY(-.6px) rotate(.4deg); } 100% { transform: none; } }
.rings ellipse { transform-box: view-box; transform-origin: 214px 211.5px; opacity: 0; }
.rings .r0 { animation: ring 9s ease-out infinite; }
.scene.on .rings .r1 { animation: ring 2.6s ease-out .05s; }
.scene.on .rings .r2 { animation: ring 2.6s ease-out .45s; }
.scene.on .rings .r3 { animation: ring 2.6s ease-out .85s; }
@keyframes ring { 0% { transform: scale(.55); opacity: 0; } 12% { opacity: .55; } 100% { transform: scale(1.45); opacity: 0; } }

/* the sign: a cedar board painted chestnut, nailed to the post, the words cut in and painted cream */
.plank {
  position: absolute; z-index: 2; left: .4em; top: 2.4em; width: 16.6em; height: 8.9em; padding: 0 1em; border: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; align-content: center; text-align: center; color: var(--cream);
  border-radius: .25em; rotate: -2.2deg; -webkit-tap-highlight-color: transparent;
  clip-path: polygon(0 3%, 3% 0, 58% 1%, 61% 0, 98% 1.5%, 100% 6%, 99.4% 52%, 100% 96%, 96% 100%, 40% 99%, 37% 100%, 2% 99%, 0 94%, .6% 40%);
  background:
    var(--grain),
    repeating-linear-gradient(179deg, transparent 0 .9em, rgba(30, 8, 0, .14) .9em .96em, transparent .96em 2.8em),
    radial-gradient(110% 130% at 50% 45%, transparent 55%, rgba(222, 170, 105, .4) 100%),
    linear-gradient(180deg, #a14a27, #84381d 55%, #6c2c15);
  box-shadow: inset 0 0 0 .08em rgba(40, 12, 2, .5), inset 0 .12em .1em rgba(255, 210, 160, .2), inset 0 -.3em .4em -.2em rgba(30, 8, 0, .45);
  filter: drop-shadow(0 .5em .55em rgba(50, 30, 20, .35));
  transition: transform .08s ease-out, filter .12s;
}
.plank::before, .plank::after { /* two nails into the post */
  content: ''; position: absolute; left: calc(50% - .25em); top: .42em; width: .5em; height: .5em; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9c3b8, #6f6a62 55%, #3a3632); box-shadow: 0 .06em .08em rgba(0, 0, 0, .5), .1em .2em .2em -.05em rgba(80, 30, 10, .5);
}
.plank::after { top: auto; bottom: .3em; }
.plank b { align-self: end; padding-top: .35em; font: italic 400 3.05em/1 var(--display); white-space: nowrap; letter-spacing: -.005em;
  text-shadow: 0 -.03em 0 rgba(30, 8, 0, .6), 0 .03em 0 rgba(255, 220, 170, .25); }
.plank b.num { font: 800 2.7em/1 var(--text); letter-spacing: -.02em; }
.plank b.l8 { font-size: 2.4em; }
.plank small { display: block; margin: .55em auto 1.4em; font: 500 .74em/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(246, 234, 210, .78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.plank:hover { filter: drop-shadow(0 .5em .55em rgba(50, 30, 20, .35)) brightness(1.05); }
.plank:active { transform: translateY(.12em); filter: drop-shadow(0 .25em .3em rgba(50, 30, 20, .4)); }
.plank:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.scene.on .plank b, .scene.on .plank small { animation: brush .8s ease-in-out both; }
.scene.on .plank small { animation-delay: .3s; }
@keyframes brush { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }

/* ---------- home */
.band { padding: clamp(52px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.band h2 { font: 400 var(--fs-4)/1.02 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.band h2 em { font-style: italic; color: var(--paint); }
.band .intro { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 84px); align-items: start; }

/* price list */
.prices { width: 100%; border-collapse: collapse; font-size: var(--fs-2); }
.prices th { text-align: left; font: 700 var(--fs-0)/1.2 var(--text); color: var(--mute); padding: 0 0 10px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prices td { padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.prices .n { text-align: right; font-family: var(--mono); font-size: .875rem; white-space: nowrap; padding-left: 18px; font-variant-numeric: tabular-nums; }
.prices th.n { font-family: var(--text); font-size: var(--fs-0); }
.prices td:first-child { font-weight: 700; padding-right: 12px; }
.prices tr.front td:first-child { font: 800 1.1rem/1.25 var(--text); letter-spacing: -.01em; }
.prices caption { caption-side: bottom; text-align: left; padding-top: 12px; font-size: var(--fs-0); color: var(--mute); }
.prices .id { display: block; font: 400 var(--fs-0)/1.35 var(--mono); color: var(--mute); overflow-wrap: anywhere; letter-spacing: 0; }
.prices .tag { font: 700 var(--fs-0)/1 var(--text); color: var(--paint-lo); margin-left: 8px; }
.prices tbody tr:hover td { background: color-mix(in srgb, var(--ground-hi) 80%, transparent); }
.more { display: inline-block; margin-top: 24px; font-weight: 700; }

/* code: dark water */
.code { background: #142328; color: #e9efee; border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .06); }
.code-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0 10px; }
.code-tabs button { background: none; border: 0; padding: 9px 13px; border-radius: 8px 8px 0 0; font: 600 var(--fs-1)/1 var(--text); color: #93a6a7; }
.code-tabs button:hover { color: #fff; }
.code-tabs button[aria-selected='true'] { background: #1d3036; color: #fff; }
.code-tabs .copy { margin-left: auto; margin-bottom: 6px; }
.code pre { margin: 0; padding: 20px 22px 22px; background: #1d3036; overflow-x: auto; font: 400 .8125rem/1.7 var(--mono); tab-size: 2; }
.code pre .c { color: #849a9b; } .code pre .s { color: #f2c48a; } .code pre .k { color: #fff; font-weight: 700; }
.copy { background: #2c454c; color: #e9efee; border: 0; border-radius: 7px; padding: 7px 11px; font: 600 var(--fs-0)/1 var(--text); }
.copy:hover { background: #38565e; }
.copy.done { background: var(--paint); color: #fff; }

/* the dark band: the lake further out, deep and still, long pale streaks where the dawn sky lies on it */
.band.dark {
  color: #e8efee; border-top: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='120'%3E%3Cpath d='M30 14H190M260 22H330M420 9H600M80 46H140M200 52H380M480 40H560M10 78H120M230 86H300M360 74H520M560 98H630M100 108H260' stroke='%23f4dcc0' stroke-opacity='.09' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 640px 120px,
    linear-gradient(180deg, #2c4850, var(--lake-deep) 60%, #1b3036);
}
.band.dark .wrap { position: relative; }
.band.dark .intro { color: #bccbca; }
.band.dark h2 em { color: #f2c48a; }
.band.dark .more:hover { text-decoration-color: #f2c48a; }
.band.dark + .band { border-top: 0; }

/* what the server keeps, and what it never keeps */
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 5vw, 64px); margin-top: clamp(26px, 4vw, 44px); }
.ledger h3 { font: 400 1.7rem/1.15 var(--display); letter-spacing: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.ledger li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.mem { counter-reset: mem; }
.mem li { display: grid; grid-template-columns: 2.2em 1fr; align-items: baseline; counter-increment: mem; }
.mem li::before { content: counter(mem, decimal-leading-zero); font: 400 .9375rem/1 var(--mono); color: var(--mute); }
/* never kept: each line next to a small decoy on its waterline */
.ledger .no li { display: flex; align-items: baseline; gap: 14px; color: var(--ink-2); }
.ledger .no li::before { content: ''; flex: none; width: 22px; height: 14px; translate: 0 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14'%3E%3Cpath d='M2 12C1.6 9.6 3 7.8 5.4 7.2C8.6 6.4 12.6 6.6 15.6 6.8C17.4 6.9 18.6 6 20 4.8C20.6 6.4 20 8.6 18.8 10C18.2 11 17.9 11.6 17.8 12Z' fill='%23bdb7aa'/%3E%3Cpath d='M5.8 7.8C5 6.4 4.2 5.6 4 4.4C3.8 2.8 5 1.6 6.4 1.6C7.8 1.6 8.8 2.6 8.7 4C8.6 5.2 8.6 6.2 9.6 7.2Z' fill='%23655f56'/%3E%3Cpath d='M4.4 3.4C3.2 3.4 2 3.8 1.2 4.6C1.6 5.2 3 5.2 4.4 4.9Z' fill='%23655f56'/%3E%3Cpath d='M.5 12.4H21.5' stroke='%231b2226' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .8; }
.fine { margin-top: 26px; max-width: 46em; color: var(--ink-2); }

/* questions */
.qa { border-top: 2px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 18px 0; font: 700 1.1875rem/1.3 var(--text); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; font: 400 1.6rem/1 var(--mono); color: var(--mute); flex: none; }
.qa details[open] summary::after { content: '\2212'; color: var(--paint); }
.qa p { padding: 0 0 20px; max-width: 44em; color: var(--ink-2); }

.foot { border-top: 1px solid var(--line); padding: 34px 0 44px; font-size: var(--fs-1); color: var(--mute); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: baseline; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { color: var(--ink); font-weight: 600; }
.foot p { max-width: 40em; }

/* ---------- the account sheet */
dialog.sheet {
  width: min(100% - 24px, 500px); max-height: min(100dvh - 24px, 860px); padding: 0; border: 0; border-radius: 14px;
  background: var(--ground-hi); color: var(--ink); overflow: auto;
  box-shadow: 0 0 0 2px var(--ink), 0 30px 70px rgba(20, 22, 18, .42);
}
dialog.sheet::backdrop { background: rgba(18, 22, 20, .6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet[open] { animation: rise .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes rise { from { transform: translateY(14px) scale(.985); opacity: 0; } }
.sheet-in { padding: 26px 26px 28px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sheet-head h2 { font: 400 2.1rem/1.05 var(--display); letter-spacing: -.005em; }
.x { background: none; border: 0; width: 40px; height: 40px; margin: -8px -10px 0 0; border-radius: 10px; font: 400 1.7rem/1 var(--mono); color: var(--mute); }
.x:hover { background: var(--ground-lo); color: var(--ink); }
.sheet p { font-size: var(--fs-1); line-height: 1.5; }
/* the key: stamped on a paper slip */
.keyline { margin: 4px 0 16px; padding: 15px 16px 14px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); font: 400 .9375rem/1.5 var(--mono); word-break: break-all; user-select: all; }
.decoy-name { margin: -4px 0 14px; font-size: var(--fs-1); color: var(--ink-2); }
.decoy-name b { font: italic 400 1.35rem/1 var(--burn); color: var(--ink); margin-left: 6px; }
/* the credit: burned into a tag */
.balance { margin: 12px 4px 22px; padding: 26px 20px 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; rotate: -1deg; }
.balance b { font-size: 3.1rem; line-height: .95; }
.balance span { font: 500 var(--fs-0)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: right; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.row.spread { justify-content: space-between; }
.row.center { justify-content: center; }
.full { width: 100%; }
.gap-top { margin-top: 22px; }
.warn { margin: 20px 0 22px; padding-left: 14px; border-left: 4px solid var(--paint); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr) 1.25fr; gap: 12px; margin: 8px 3px 20px; }
.amounts .key { padding: 0; min-height: 46px; }
.amounts .key[aria-pressed='true'] { --face: #2e4850; --face-2: #1d3239; --on: var(--cream); --rim: #0f1d22; --under: #0c171b; --worn: rgba(200, 220, 220, .16); --cut: 0 -1px 0 rgba(0, 0, 0, .5); }
.amounts label { position: relative; display: block; }
.amounts label span { position: absolute; left: 12px; top: 50%; translate: 0 -50%; font-weight: 700; pointer-events: none; }
.amounts input { width: 100%; height: 46px; padding: 0 8px 0 26px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: 700 var(--fs-2)/1 var(--text); }
.pay { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 18px; align-items: start; }
.qr { width: 148px; height: 148px; background: #fff; padding: 8px; border-radius: 8px; box-shadow: 0 0 0 2px var(--ink); }
.qr svg, .qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.field { margin-bottom: 12px; }
.field > span { display: block; font: 600 var(--fs-0)/1.2 var(--text); color: var(--mute); margin-bottom: 5px; }
.field .val { display: flex; align-items: flex-start; gap: 8px; }
.field .val b { flex: 1; min-width: 0; font: 400 .75rem/1.45 var(--mono); overflow-wrap: anywhere; }
.field .val b.amt { font: 600 1.2rem/1.15 var(--mono); letter-spacing: -.01em; }
.mini { background: var(--ink); color: #fff; border: 0; border-radius: 6px; padding: 7px 10px; font: 600 var(--fs-0)/1 var(--text); flex: none; box-shadow: 0 2px 0 #000; }
.mini:hover { background: var(--ink-2); }
.mini:active { transform: translateY(1px); box-shadow: 0 1px 0 #000; }
.mini.done { background: var(--good); }
.status { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--ground-lo); font-weight: 600; font-size: var(--fs-1); }
.status.seen { background: #f6dcb3; }
.status.ok { background: var(--paint); color: #fff; }
/* waiting: a ring runs out over still water, again and again */
.wait { position: relative; width: 30px; height: 10px; flex: none; }
.wait::before, .wait::after { content: ''; position: absolute; inset: 0; border: 1.6px solid var(--lake); border-radius: 50%; animation: wait 1.8s ease-out infinite; }
.wait::after { animation-delay: .9s; }
@keyframes wait { from { transform: scale(.2); opacity: 1; } to { transform: scale(1); opacity: 0; } }
.notes { margin-top: 16px; font-size: var(--fs-0); color: var(--mute); line-height: 1.5; }
.notes a { color: var(--ink); font-weight: 600; }
.payments { margin-top: 20px; border-top: 2px solid var(--ink); }
.payments li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1); }
.payments li span:last-child { font-family: var(--mono); font-size: var(--fs-0); color: var(--mute); text-align: right; }
.sheet-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-1); }
.sheet-foot .danger { color: var(--bad); }
.paste { display: flex; gap: 12px; margin-top: 12px; }
.paste input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; font: 400 var(--fs-1)/1 var(--mono); }
.err { color: var(--bad); font-weight: 600; margin-top: 10px; font-size: var(--fs-1); }
.credited { text-align: center; padding: 6px 0 4px; }
.credited .lit { margin: 10px 30px; padding: 30px 16px 22px; rotate: -2deg; }
.credited .lit small { display: block; font: 500 var(--fs-0)/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; color: #6b4a2a; }
.credited .lit b { display: block; font-size: 3.6rem; line-height: .95; }
.credited p { margin: 22px 0 20px; font-size: var(--fs-2); }

.toast { position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 90; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: var(--fs-1); box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: rise .2s ease-out; max-width: calc(100% - 32px); }

/* ---------- text pages */
.page { padding: clamp(30px, 6vw, 70px) 0 clamp(60px, 8vw, 110px); }
.page h1 { font: 400 clamp(2.6rem, 1.5rem + 3.8vw, 4.6rem)/1 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.page h1 em { font-style: italic; color: var(--paint); }
.page .lead { margin-top: 20px; max-width: 36em; font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); }
.prose { max-width: 44em; }
.prose h2 { font: 400 2rem/1.1 var(--display); letter-spacing: -.005em; margin: 52px 0 14px; }
.prose h3 { font: 700 1.1875rem/1.2 var(--text); margin: 30px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ul li::marker { color: var(--paint); }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose code { font: 400 .86em var(--mono); background: var(--ground-lo); padding: .12em .38em; border-radius: 4px; }
.prose .code { margin: 16px 0 22px; }
.prose .code code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: var(--fs-1); }
.prose th { text-align: left; font-weight: 700; border-bottom: 2px solid var(--ink); padding: 8px 12px 8px 0; }
.prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }

/* ---------- small screens */
@media (max-width: 1080px) {
  .hero { --u: 14px; }
}
@media (max-width: 900px) {
  .hero { --u: clamp(8px, (100vw - 2 * var(--gutter)) / 35, 16px); }
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero .words { padding-bottom: 8px; }
  .hero .scene { margin: 18px auto 0; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 76px 0 auto 0; z-index: 29; flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; background: var(--ground); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 22, 18, .14); font-size: 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page'] { border-bottom-color: var(--line); color: var(--paint); }
  .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; margin-right: -8px; background: none; border: 0; border-radius: 10px; }
  .menu-btn svg { width: 24px; height: 24px; }
  .top .wrap { gap: 12px; }
  .top-x { display: none; }
  .brand { font-size: 1.9rem; }
  .ledger { grid-template-columns: 1fr; gap: 34px; }
  .prices .ctx { display: none; }
  .pay { grid-template-columns: 1fr; }
  .qr { margin-inline: auto; }
  .amounts { grid-template-columns: repeat(4, 1fr); }
  .amounts label { grid-column: 1 / -1; }
  .sheet-in { padding: 22px 18px 24px; }
  .hero .acts .key.big { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* CA-Leiste (nur wenn COIN_CA gesetzt ist) */
.ca-bar { background: var(--lake-deep); color: #d9e4e2; font-size: 13px; }
.ca-bar .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; min-height: 38px; padding-block: 6px; }
.ca-t { font: italic 400 18px/1 var(--display); color: #f2c48a; }
.ca-v { font-family: var(--mono); color: var(--ground-hi); overflow-wrap: anywhere; min-width: 0; }
.ca-copy, .ca-go { font: inherit; font-weight: 700; color: var(--ink); background: var(--ground-hi); border: 0; border-radius: 6px; padding: 4px 10px; cursor: pointer; text-decoration: none; }
.ca-go { background: var(--paint); color: var(--cream); }
