/* ============================================================
   duckpond — the goincognito.org stylesheet, let out of the house.
   Same bones: system sans, narrow column, panel cards, uppercase
   section labels, rise-on-load.  New paint: pond and bill colours,
   rounder corners, and a good deal more wobbling.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:     #f5f6f2;
  --panel:  #ffffff;
  --panel2: #eceee7;
  --fg:     #21262a;
  --mid:    #566065;
  --muted:  #838d92;
  --line:   #dde0d9;
  --line2:  #c7ccc2;

  /* the fun half */
  --pond:    #14706e;   /* teal — structure, links, the serious duck */
  --pondbg:  #e6f2f1;
  --mallard: #1c6b48;   /* head green */
  --bill:    #f0a81e;   /* bill, and rubber ducks */
  --billbg:  #fdf4e0;
  --blush:   #c2492f;   /* wood duck red, used sparingly */

  /* pond band, top to bottom */
  --sky:     #dbeef6;
  --sky2:    #cfe7f1;
  --sky3:    #bcdde9;
  --skyline: #b9d7e2;

  /* panel edges and small parts, so dark mode is one swap and not a hunt */
  --tintline:     #f0e2be;
  --pondline:     #cbe4e2;
  --yolkfg:       #8a5a00;
  --yolkico:      #b57c07;
  --duckframe:    #ffffff;
  --bubblebg:     #ffffff;
  --pillbg:       rgba(255,255,255,.8);
  --btnfg:        #24170a;
  --btnedge:      #c9860c;
  --btntealfg:    #ffffff;
  --btntealedge:  #0b4e4c;

  /* the leg diagram draws itself from these */
  --dia-body:  #eceee7;
  --dia-ice:   #dbeef6;
  --dia-warm:  #c2492f;
  --dia-cold:  #14706e;
  --dia-heat:  #d1900f;
  --dia-heat2: #a06c05;
}

/* ================= dark =================
   The site is light by default and follows the system when no choice has
   been made.  An explicit choice stamps data-theme on <html> and wins in
   both directions, which is why the media query excludes it. */
:root[data-theme="dark"],
:root:not([data-theme="light"]) {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }

/* The dark palette. Only the tokens are redefined; no rule below this point
   knows which theme it is in. */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
  --bg:      #10161a;
  --panel:   #192127;
  --panel2:  #222c32;
  --fg:      #e7edeb;
  --mid:     #a7b5b6;
  --muted:   #7b898c;
  --line:    #28333a;
  --line2:   #3a474e;

  --pond:    #4fcfc2;   /* lifted well off the background for contrast */
  --pondbg:  #14312f;
  --mallard: #5fc98f;
  --bill:    #f0a81e;
  --billbg:  #2c2313;
  --blush:   #ea8a72;

  --sky:     #1b3947;
  --sky2:    #16303c;
  --sky3:    #122731;
  --skyline: #24485a;

  --tintline:     #4a3a18;
  --pondline:     #235350;
  --yolkfg:       #f0c46a;
  --yolkico:      #dfa93c;
  --duckframe:    #2a353b;
  --bubblebg:     #222c32;
  --pillbg:       rgba(18,32,38,.82);
  --btnfg:        #1a1206;
  --btnedge:      #a06c05;
  --btntealfg:    #08211f;
  --btntealedge:  #1d6b64;

  --dia-body:  #222c32;
  --dia-ice:   #1b3947;
  --dia-warm:  #ea8a72;
  --dia-cold:  #4fcfc2;
  --dia-heat:  #f0b64a;
  --dia-heat2: #f0c46a;
}
}


/* The dark palette. Only the tokens are redefined; no rule below this point
   knows which theme it is in. */
:root[data-theme="dark"] {
  --bg:      #10161a;
  --panel:   #192127;
  --panel2:  #222c32;
  --fg:      #e7edeb;
  --mid:     #a7b5b6;
  --muted:   #7b898c;
  --line:    #28333a;
  --line2:   #3a474e;

  --pond:    #4fcfc2;   /* lifted well off the background for contrast */
  --pondbg:  #14312f;
  --mallard: #5fc98f;
  --bill:    #f0a81e;
  --billbg:  #2c2313;
  --blush:   #ea8a72;

  --sky:     #1b3947;
  --sky2:    #16303c;
  --sky3:    #122731;
  --skyline: #24485a;

  --tintline:     #4a3a18;
  --pondline:     #235350;
  --yolkfg:       #f0c46a;
  --yolkico:      #dfa93c;
  --duckframe:    #2a353b;
  --bubblebg:     #222c32;
  --pillbg:       rgba(18,32,38,.82);
  --btnfg:        #1a1206;
  --btnedge:      #a06c05;
  --btntealfg:    #08211f;
  --btntealedge:  #1d6b64;

  --dia-body:  #222c32;
  --dia-ice:   #1b3947;
  --dia-warm:  #ea8a72;
  --dia-cold:  #4fcfc2;
  --dia-heat:  #f0b64a;
  --dia-heat2: #f0c46a;
}


html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 960px; }

/* ================= loading bar ================= */
.progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--pond), var(--bill));
  transition: width .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.progress.gone { opacity: 0; }

/* ================= header ================= */
header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin-bottom: 40px;
}
header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; letter-spacing: -0.02em;
  text-decoration: none; color: var(--fg);
}
.brand svg { transition: transform .3s cubic-bezier(.2,1.6,.4,1); color: var(--pond); }
.brand:hover svg { transform: rotate(-14deg) scale(1.16); }
header nav {
  margin-left: auto; min-width: 0;
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: flex-end;
}
header nav a { color: var(--mid); text-decoration: none; font-size: 14px; }
header nav a:hover { color: var(--pond); }
header nav a.on { color: var(--fg); font-weight: 700; }
/* Six nav items will not fit beside the wordmark on a phone, so below this
   width the nav drops to its own line and wraps there. */
@media (max-width: 620px) {
  header nav {
    margin-left: 0; width: 100%;
    justify-content: flex-start; gap: 6px 14px;
  }
  header nav a { font-size: 13px; }
  header { padding: 14px 0 12px; }
}

/* theme toggle */
.theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none; padding: 0;
  color: var(--mid); background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, transform .2s ease;
}
.theme:hover { color: var(--pond); border-color: var(--pond); transform: rotate(-12deg); }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; }
:root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: none; }
  :root:not([data-theme="light"]) .theme .moon { display: block; }
  :root[data-theme="light"] .theme .sun { display: block; }
  :root[data-theme="light"] .theme .moon { display: none; }
}
.hdr-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
header nav { margin-left: 0; }
@media (max-width: 620px) {
  .hdr-tools { margin-left: auto; }
}

/* photographs sit slightly quieter in the dark, so they don't glare */
:root[data-theme="dark"] .bird img,
:root[data-theme="dark"] .duck-img,
:root[data-theme="dark"] .gallery img,
:root[data-theme="dark"] .pfp { filter: brightness(.88) saturate(.95); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bird img,
  :root:not([data-theme="light"]) .duck-img,
  :root:not([data-theme="light"]) .gallery img,
  :root:not([data-theme="light"]) .pfp { filter: brightness(.88) saturate(.95); }
  :root[data-theme="light"] .bird img,
  :root[data-theme="light"] .duck-img,
  :root[data-theme="light"] .gallery img,
  :root[data-theme="light"] .pfp { filter: none; }
}

/* ================= type ================= */
.hero { margin-bottom: 44px; }
h1 {
  font-size: 44px; line-height: 1.08; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 16px;
}
@media (max-width: 520px) { h1 { font-size: 33px; } }
.lede { font-size: 19px; color: var(--mid); margin: 0; max-width: 56ch; }
.hero p { color: var(--mid); }

/* one word of the headline gets a hand-drawn underline */
.squiggle { position: relative; white-space: nowrap; color: var(--pond); }
.squiggle svg {
  position: absolute; left: 0; right: 0; bottom: -.18em;
  width: 100%; height: .32em; color: var(--bill);
}

section { margin-bottom: 46px; }
h2 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); font-weight: 700;
  margin: 0 0 18px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line2);
}
h3 {
  display: flex; align-items: center; gap: 9px;
  font-size: 18px; letter-spacing: -0.02em; font-weight: 700;
  margin: 0 0 6px;
}
p { margin: 0 0 14px; }
a { color: var(--pond); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--fg); }
.fine { font-size: 13px; color: var(--muted); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em; background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px;
}
kbd {
  font-family: inherit; font-size: 0.82em; font-weight: 700;
  background: var(--panel); border: 1px solid var(--line2);
  border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px;
}

/* ================= cards ================= */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.grid > * { min-width: 0; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.three { grid-template-columns: 1fr; } }

.card {
  display: block; padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .18s cubic-bezier(.2,1.4,.4,1), box-shadow .18s ease;
}
a.card:hover {
  border-color: var(--pond); transform: translateY(-3px) rotate(-.4deg);
  box-shadow: 0 4px 16px rgba(20,112,110,.13);
}
.card h3 { font-size: 16px; margin-bottom: 3px; }
.card p { font-size: 14px; color: var(--mid); margin: 0; }
.card .num {
  display: block; font-size: 31px; font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.12; color: var(--pond);
  margin-bottom: 1px;
}
.card .num small { font-size: 17px; letter-spacing: -0.02em; }
.filename { margin-top: 6px; overflow-wrap: anywhere; word-break: break-word; }
.card.tint { background: var(--billbg); border-color: var(--tintline); }
.card.tint .num { color: var(--blush); }
.card.pondtint { background: var(--pondbg); border-color: var(--pondline); }

/* ================= feature ================= */
.feature {
  display: block; padding: 26px;
  background: var(--panel);
  border: 1px solid var(--line2); border-radius: 14px;
  text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 4px 18px rgba(0,0,0,.07); }
.feature.alt { background: var(--pondbg); border-color: var(--pondline); }
.feature h3 { font-size: 23px; letter-spacing: -0.025em; margin-bottom: 8px; }
.feature p { color: var(--mid); margin-bottom: 14px; }
.feature .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--pond);
}
.feature .more svg { transition: transform .2s ease; }
.feature:hover .more svg { transform: translateX(5px); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--mid); background: var(--bg);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 4px 11px; margin-bottom: 14px;
}
.badge.yolk { color: var(--yolkfg); background: var(--billbg); border-color: var(--tintline); }
.badge.teal { color: var(--pond); background: var(--pondbg); border-color: var(--pondline); }

/* ================= prose ================= */
.prose ol, .prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--bill); }
.prose h2 { margin-top: 34px; }
.prose h2:first-child { margin-top: 0; }

/* ================= note ================= */
.note {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 17px 18px; margin-bottom: 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--pond);
  border-radius: 0 12px 12px 0;
  font-size: 15px;
}
.note.yolk { border-left-color: var(--bill); background: var(--billbg); border-color: var(--tintline); }
.note p { margin: 0 0 8px; }
.note p:last-child { margin: 0; }
.note > svg { color: var(--pond); margin-top: 3px; }
.note.yolk > svg { color: var(--yolkico); }

/* ================= the pond (hero band) ================= */
.pond {
  position: relative; overflow: hidden;
  border-radius: 16px; margin-bottom: 34px;
  background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 55%, var(--sky3) 100%);
  border: 1px solid var(--skyline);
  padding: 26px 24px 22px;
  text-align: center;
}
.pond .ripple {
  position: absolute; left: 50%; bottom: 16px;
  width: 60px; height: 14px; margin-left: -30px;
  border: 1.5px solid rgba(20,112,110,.3);
  border-radius: 50%;
  animation: spread 3.4s ease-out infinite;
}
.pond .ripple:nth-of-type(2) { animation-delay: 1.15s; }
.pond .ripple:nth-of-type(3) { animation-delay: 2.3s; }
@keyframes spread {
  0%   { transform: scale(.4); opacity: 0; }
  15%  { opacity: .8; }
  100% { transform: scale(3.8); opacity: 0; }
}

/* the clickable duck */
.duck {
  position: relative; z-index: 2;
  background: none; border: 0; padding: 6px; cursor: pointer;
  line-height: 0; max-width: 100%;
  animation: bob 3.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-7px) rotate(1.5deg); }
}
.duck-img {
  width: 320px; max-width: 100%; height: auto;
  border: 4px solid var(--duckframe); border-radius: 16px;
  box-shadow: 0 6px 20px rgba(16,60,70,.22);
  transition: transform .2s ease; transform-origin: 50% 70%;
}
.duck:hover .duck-img { transform: rotate(-2.5deg) scale(1.03); }
.duck.quacking { animation: none; }
.duck.quacking .duck-img { animation: quack .42s ease; }
@keyframes quack {
  0%   { transform: rotate(0) scale(1); }
  22%  { transform: rotate(-9deg) scale(1.1); }
  50%  { transform: rotate(5deg) scale(.97); }
  75%  { transform: rotate(-3deg) scale(1.03); }
  100% { transform: rotate(0) scale(1); }
}
.hints { position: relative; z-index: 2; margin-top: 12px; }
.quack-hint[hidden] { display: none; }
.quack-hint {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 4px; padding: 6px 14px;
  font-size: 13px; font-weight: 700; color: var(--pond);
  background: var(--pillbg);
  border-radius: 999px;
}
.quack-count { font-variant-numeric: tabular-nums; }

/* speech bubble that pops out of the duck */
.quack-bubble {
  position: absolute; z-index: 3; top: 26px; right: 7%;
  padding: 7px 15px;
  font-size: 15px; font-weight: 700; color: var(--fg);
  background: var(--bubblebg); border-radius: 999px;
  box-shadow: 0 3px 12px rgba(0,0,0,.22);
  opacity: 0; transform: translateY(8px) scale(.85);
  transition: opacity .18s ease, transform .25s cubic-bezier(.2,1.6,.4,1);
  pointer-events: none;
}
.quack-bubble.show { opacity: 1; transform: none; }
@media (max-width: 560px) { .quack-bubble { right: 3%; top: 16px; font-size: 13px; } }

/* ten clicks and the rest of the raft turns up */
.flotilla { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.flotilla .mini {
  position: absolute; color: rgba(20,112,110,.5); line-height: 0;
  animation: swim 15s linear forwards;
}
@keyframes swim {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(150%) scale(1); }
}

/* ================= fact machine ================= */
.machine {
  padding: 22px 24px 24px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line2);
}
.fact-cat {
  margin: 0 0 8px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--pond);
}
.fact {
  font-size: 20px; line-height: 1.45; letter-spacing: -0.015em;
  margin: 0 0 16px; min-height: 3.4em;
}
.machine-foot {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 12px;
}
.fact-count {
  margin: 0; font-variant-numeric: tabular-nums;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.fact.swap { animation: pop .38s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop {
  0%   { opacity: 0; transform: translateY(9px) rotate(-.7deg); }
  100% { opacity: 1; transform: none; }
}
.fact-src { margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--btnfg); background: var(--bill);
  border: 0; border-bottom: 3px solid var(--btnedge); border-radius: 10px;
  padding: 11px 18px; cursor: pointer;
  transition: transform .12s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); border-bottom-width: 1px; }
.btn.teal { color: var(--btntealfg); background: var(--pond); border-bottom-color: var(--btntealedge); }
.btn svg { transition: transform .3s ease; }
.btn:hover svg { transform: rotate(20deg); }

/* ================= the manual (Form D-1) =================
   A 1970s instruction pamphlet built out of this site's own tokens: mono
   labels, hairline rules, numbered sections.  The numbering is real sequence
   — the sections run in the order the owner meets the problems. */
.packet-tag {
  display: inline-block; margin: 0 0 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--mid);
  background: var(--panel2); border: 1px solid var(--line2);
  border-radius: 4px; padding: 4px 10px;
}

.manual {
  counter-reset: step;
  border-top: 2px solid var(--fg);
  margin-bottom: 46px;
}
.manual .step {
  margin: 0; padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}
.manual .step:last-child { border-bottom: 2px solid var(--fg); }
.step-n {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 5px;
}
.manual .step h3 {
  font-size: 22px; letter-spacing: -0.025em; margin-bottom: 8px;
}
.step-lede {
  font-size: 17px; font-weight: 700; color: var(--fg);
  margin: 0 0 12px;
}
.manual .step p { font-size: 15px; color: var(--mid); }
.manual .step p:last-child { margin-bottom: 0; }
.manual .step strong { color: var(--fg); }

/* the line that carries the real advice */
.actually {
  display: flex; gap: 11px; align-items: flex-start;
  margin-top: 14px; padding: 14px 16px;
  background: var(--pondbg);
  border: 1px solid var(--pondline); border-radius: 10px;
}
.actually > svg { color: var(--mallard); margin-top: 4px; }
.actually p { margin: 0; font-size: 14.5px; color: var(--mid); }
.actually strong { color: var(--mallard); }

/* warranty card */
.warranty {
  background: var(--panel); border: 1px solid var(--line2);
  border-radius: 12px; overflow: hidden;
}
.w-row {
  display: flex; gap: 16px; align-items: baseline;
  padding: 13px 18px; border-bottom: 1px solid var(--line);
}
.w-row:last-child { border-bottom: 0; }
.w-k {
  flex: none; width: 150px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.w-v { font-size: 15px; color: var(--mid); }
@media (max-width: 560px) {
  .w-row { flex-direction: column; gap: 4px; }
  .w-k { width: auto; }
}

/* the comparison product */
.feature.rock { background: var(--panel2); border-color: var(--line2); }
.feature.rock p { font-size: 15px; }
.kicker {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px dashed var(--line2);
  font-size: 16px; font-weight: 700; color: var(--fg);
}

/* ================= species gallery ================= */
.flock {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.bird {
  margin: 0; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,1.4,.4,1), box-shadow .2s ease, border-color .2s ease;
}
.bird:hover {
  transform: translateY(-4px); border-color: var(--pond);
  box-shadow: 0 6px 22px rgba(20,112,110,.15);
}
.bird img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  background: var(--panel2);
  transition: transform .4s ease;
}
.bird:hover img { transform: scale(1.05); }
.bird figcaption { padding: 14px 16px 16px; }
.bird h3 { font-size: 16px; margin-bottom: 1px; }
.bird .sci {
  display: block; font-size: 12px; color: var(--muted);
  font-style: italic; margin-bottom: 9px;
}
.bird p { font-size: 14px; color: var(--mid); margin: 0; }
.bird .credit {
  display: block; font-size: 11px; color: var(--muted);
  margin-top: 11px; line-height: 1.45;
}
.bird .credit a { color: var(--muted); }

/* ================= size chart ================= */
.sizes { display: flex; flex-direction: column; gap: 9px; margin-bottom: 10px; }
.size { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.size .who { flex: none; width: 138px; color: var(--mid); }
.size .track {
  flex: 1; height: 22px; background: var(--panel2);
  border-radius: 6px; overflow: hidden;
}
.size .bar {
  display: block;                /* inline boxes ignore width, so the bars vanished */
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, var(--pond), #2aa39f);
  transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.size.hi .bar { background: linear-gradient(90deg, #c9860c, var(--bill)); }
.size .val {
  flex: none; width: 62px; text-align: right;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
@media (max-width: 560px) {
  .size .who { width: 96px; font-size: 13px; }
  .size .val { width: 54px; font-size: 13px; }
}

/* ================= diagram ================= */
.diagram {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; margin-bottom: 14px;
}
.diagram svg { width: 100%; height: auto; display: block; }

/* ================= myth / truth ================= */
.myth {
  padding: 20px; border-radius: 14px; margin-bottom: 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--blush);
}
.myth .label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--blush); margin-bottom: 5px;
}
.myth h3 { font-size: 17px; margin-bottom: 10px; }
.myth > p { font-size: 15px; color: var(--mid); }
.myth .truth {
  display: flex; gap: 11px; align-items: flex-start;
  font-size: 15px; color: var(--mid);
  padding-top: 13px; margin-top: 13px; border-top: 1px dashed var(--line2);
}
.myth .truth > svg { color: var(--mallard); margin-top: 4px; }
.myth .truth p { margin: 0; }
.myth .truth strong { color: var(--fg); }

/* ================= who's running this =================
   Ported from goincognito.org, where the same page lives, with this site's
   corner radii and accent colour. */
.whois { display: flex; gap: 22px; align-items: flex-start; }
.pfp {
  width: 120px; height: 120px; flex: none;
  border-radius: 14px; background: var(--panel);
  border: 1px solid var(--line); object-fit: cover;
}
h2.nolines {
  font-size: 26px; text-transform: none; letter-spacing: -0.025em;
  color: var(--fg); border: 0; padding: 0; margin: 0 0 6px;
}
.place { font-size: 17px; color: var(--mid); margin-bottom: 10px; }
.city {
  display: inline-block; min-width: 8.5ch;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.94em; font-weight: 700; color: var(--pond);
  background: var(--pondbg); border-radius: 6px;
  padding: 1px 7px; cursor: pointer;
  transition: background .2s ease;
}
.city:hover { background: var(--pondline); }
.ghlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--mid); text-decoration: none;
  border: 1px solid var(--line2); border-radius: 999px; padding: 6px 13px;
  transition: border-color .15s ease, color .15s ease;
}
.ghlink:hover { color: var(--pond); border-color: var(--pond); }
@media (max-width: 560px) {
  .whois { flex-direction: column; gap: 16px; }
  .pfp { width: 88px; height: 88px; }
}

/* ================= photo album ================= */
.album { margin-bottom: 6px; }
.album-name {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px; color: var(--mid);
  background: var(--panel2); border-radius: 6px; padding: 3px 9px;
}
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.gallery img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gallery img:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 4px 16px rgba(20,112,110,.13);
}

/* the about page's closing card carries a link inside .more */
.feature .more a { color: inherit; text-decoration: none; }
.feature .more a:hover { text-decoration: underline; }

.dl-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin: 0;
}
.dl-row .fine { margin: 0; }

/* ================= a hundred ducks =================
   Konami code.  Fixed layer, no pointer events, removed after 22s. */
.hundred {
  position: fixed; inset: 0; z-index: 40;
  pointer-events: none; overflow: hidden;
}
.one-of-100 {
  position: absolute; left: -60px; line-height: 0;
  color: var(--pond);
  animation: cross linear forwards;
}
@keyframes cross {
  from { transform: translateX(0) scale(var(--s)) rotate(-3deg); }
  50%  { transform: translateX(50vw) scale(var(--s)) rotate(3deg); }
  to   { transform: translateX(108vw) scale(var(--s)) rotate(-3deg); }
}

/* ================= search ================= */
.searchbar { margin-bottom: 26px; }
.search-box {
  width: 100%; font-family: inherit; font-size: 17px;
  color: var(--fg); background: var(--panel);
  border: 1px solid var(--line2); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-box:focus {
  outline: none; border-color: var(--pond);
  box-shadow: 0 0 0 3px var(--pondbg);
}
.search-box::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  font-family: inherit; font-size: 12px; font-weight: 700;
  color: var(--mid); background: var(--panel2);
  border: 1px solid var(--line2); border-radius: 999px;
  padding: 4px 11px; cursor: pointer;
  transition: color .12s ease, background .12s ease, border-color .12s ease;
}
.chip:hover { color: var(--pond); border-color: var(--pond); }
.chip[aria-pressed="true"] {
  color: var(--btntealfg); background: var(--pond); border-color: var(--pond);
}
#results { display: flex; flex-direction: column; gap: 10px; }
.hit {
  display: block; padding: 15px 17px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: inherit;
  animation: rise .28s ease backwards;
}
a.hit:hover { border-color: var(--pond); }
.hit-k {
  display: inline-block; margin-bottom: 5px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.hit p { margin: 0; font-size: 15px; color: var(--mid); }
.hit mark {
  background: var(--billbg); color: var(--fg);
  border-radius: 3px; padding: 0 2px;
}

/* ================= family tree ================= */
.tree { font-size: 15px; }
.tree-node { padding: 2px 0 4px; }
.tree-name { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.tree-common { font-weight: 400; color: var(--mid); }
.tree-common::before { content: "— "; }
.tree-note { margin: 2px 0 0; font-size: 14px; color: var(--mid); }
.tree-ours { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tree-ours a {
  font-size: 12px; color: var(--pond); text-decoration: none;
  background: var(--pondbg); border: 1px solid var(--pondline);
  border-radius: 999px; padding: 2px 10px;
}
.tree-ours a:hover { background: var(--pond); color: var(--btntealfg); }
.tree-kids { list-style: none; margin: 10px 0 0; padding-left: 20px; }
.tree-kids > li {
  position: relative; padding: 10px 0 10px 20px;
  border-left: 2px solid var(--line2);
}
.tree-kids > li::before {
  content: ""; position: absolute; left: 0; top: 26px;
  width: 16px; height: 2px; background: var(--line2);
}
.tree-kids > li:last-child { border-left-color: transparent; }
.tree-kids > li:last-child::after {
  content: ""; position: absolute; left: -2px; top: 0; height: 26px;
  width: 2px; background: var(--line2);
}
@media (max-width: 560px) {
  .tree-kids { padding-left: 8px; }
  .tree-kids > li { padding-left: 14px; }
  .tree-kids > li::before { width: 10px; }
}

/* ================= duck / goose / swan ================= */
.vs {
  background: var(--panel); border: 1px solid var(--line2);
  border-radius: 12px; overflow: hidden;
}
.vs-row {
  display: grid; grid-template-columns: 1fr 1.4fr 1.4fr 1.4fr;
  gap: 14px; padding: 13px 18px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mid);
}
.vs-row:last-child { border-bottom: 0; }
.vs-head {
  background: var(--panel2); color: var(--fg);
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .07em;
}
.vs-k { font-weight: 700; color: var(--fg); }
@media (max-width: 700px) {
  .vs-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .vs-head { display: none; }
  .vs-row > span:nth-child(2)::before { content: "Duck: "; font-weight: 700; color: var(--fg); }
  .vs-row > span:nth-child(3)::before { content: "Goose: "; font-weight: 700; color: var(--fg); }
  .vs-row > span:nth-child(4)::before { content: "Swan: "; font-weight: 700; color: var(--fg); }
}

/* ================= triage (injured duck) ================= */
.triage { display: flex; flex-direction: column; gap: 12px; }
.tri {
  padding: 18px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 12px;
  border-left: 3px solid var(--line2);
}
.tri h3 { font-size: 16px; margin-bottom: 6px; }
.tri p { font-size: 15px; color: var(--mid); margin: 0; }
.tri.t1 { border-left-color: var(--mallard); }

ol.big { counter-reset: s; list-style: none; padding-left: 0; margin: 0; }
ol.big > li {
  position: relative; counter-increment: s;
  padding: 15px 18px 15px 54px; margin-bottom: 10px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; font-size: 15px; color: var(--mid);
}
ol.big > li::before {
  content: counter(s);
  position: absolute; left: 17px; top: 15px;
  width: 25px; height: 25px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: var(--btntealfg); background: var(--pond);
  border-radius: 50%;
}
ol.big > li strong { color: var(--fg); }

/* ================= one very large duck ================= */
.big-page { display: grid; place-items: center; min-height: 100vh; padding: 4vmin; }
.big-page main { width: 100%; text-align: center; }
.big-duck {
  width: 100%; max-width: min(96vw, 170vh); height: auto;
  border-radius: 2vmin; border: 1vmin solid var(--duckframe);
  box-shadow: 0 2vmin 6vmin rgba(0,0,0,.22);
}
.big-cap { margin: 3vmin 0 0; font-size: 14px; color: var(--muted); }

/* ================= footer ================= */
footer {
  background: var(--panel); border-top: 1px solid var(--line);
  margin-top: 12px; padding: 26px 0 70px;
  font-size: 13px; color: var(--muted);
}
footer p { margin: 0 0 6px; }
footer a { color: var(--mid); }

/* ================= utilities =================
   A few spacing and crop values that would otherwise be inline style
   attributes.  They cannot be: the CSP has no 'unsafe-inline' in style-src. */
.mt { margin-top: 14px; }
.m0 { margin: 0; }
.bird img.op-top { object-position: center top; }
.bird img.op-40  { object-position: center 40%; }

/* ================= icons ================= */
svg { flex: none; }
.icon { width: 22px; height: 22px; }
.icon-sm { width: 15px; height: 15px; }
.icon-xs { width: 12px; height: 12px; }
.icon-lg { width: 26px; height: 26px; color: var(--pond); }

/* ================= back link ================= */
.back { font-size: 14px; margin-bottom: 20px; }
.back a { display: inline-flex; align-items: center; gap: 6px; color: var(--mid); text-decoration: none; }
.back a:hover { color: var(--pond); }
.back svg { transition: transform .2s ease; }
.back a:hover svg { transform: translateX(-3px); }

/* ================= a duck waddles across the footer ================= */
.parade { position: relative; height: 30px; overflow: hidden; margin-top: 16px; }
.parade svg {
  position: absolute; bottom: 0; left: -60px;
  color: var(--line2);
  animation: waddle 24s linear infinite;
}
@keyframes waddle {
  0%   { transform: translateX(0) rotate(0); }
  25%  { transform: translateX(28vw) rotate(4deg); }
  50%  { transform: translateX(56vw) rotate(-4deg); }
  75%  { transform: translateX(84vw) rotate(4deg); }
  100% { transform: translateX(115vw) rotate(0); }
}

/* ================= entrance motion =================
   Content is visible without JS; .animate only adds the movement. */
main.reveal.animate > * { animation: rise .5s cubic-bezier(.2,.7,.3,1) backwards; }
main.reveal.animate > *:nth-child(1) { animation-delay: .02s; }
main.reveal.animate > *:nth-child(2) { animation-delay: .07s; }
main.reveal.animate > *:nth-child(3) { animation-delay: .12s; }
main.reveal.animate > *:nth-child(4) { animation-delay: .17s; }
main.reveal.animate > *:nth-child(5) { animation-delay: .22s; }
main.reveal.animate > *:nth-child(n+6) { animation-delay: .27s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  main.reveal.animate > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ================= print =================
   The manual is a packet, so it should come out of a printer as one: no
   navigation, no colour panels, hairline rules, and no section split across
   a page break. */
@media print {
  html, body { background: #fff; color: #000; }
  header, footer, .progress, .pond, .machine, .parade { display: none !important; }
  .wrap, .wrap.wide { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  .manual .step, .warranty, .feature, .note, .myth, .diagram {
    break-inside: avoid; page-break-inside: avoid;
  }
  .manual { border-top: 2px solid #000; }
  .manual .step { border-bottom: 1px solid #999; }
  .actually, .feature.rock, .note {
    background: #fff !important; border: 1px solid #999 !important;
  }
  .packet-tag { border: 1px solid #000; background: #fff; }
  h1 { font-size: 30pt; }
  .manual .step h3 { font-size: 15pt; }
  body { font-size: 10.5pt; line-height: 1.45; }
  /* show where a link actually went, since a printout cannot be clicked */
  .prose a[href^="http"]::after, .actually a[href^="http"]::after {
    content: " (" attr(href) ")"; font-size: 8pt; color: #555;
  }
}
