/* Dead Fish of NZ - site styles ("green sheet" design) */
@font-face {
  font-family: "Valoon";
  src: url("../fonts/Valoon.ttf") format("truetype");
  font-display: swap;
}

:root {
  --green: #54ff6e;
  --ink: #0b3d17;
  --sheet: #f1f1ee;
  --yellow: #ffe651;
  --narrow: "Archivo Narrow", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--green); color: var(--ink); font-family: var(--body); }
a { color: var(--ink); }
a:hover { color: #000; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.narrow { font-family: var(--narrow); font-weight: 700; }
.section-title { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: clamp(36px, 4vw, 56px); line-height: 0.95; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; max-width: 1440px; margin: 0 auto; aspect-ratio: 1440 / 1040;
  overflow: hidden; container-type: inline-size;
}
.hero .sheet, .hero .heads {
  position: absolute; inset: 0;
  clip-path: polygon(44% 6%, 82% 6%, 82% 15%, 88% 15%, 88% 44%, 80% 44%, 80% 64%, 88% 64%, 88% 84%, 58% 84%, 58% 92%, 24% 92%, 24% 76%, 10% 76%, 10% 22%, 26% 22%, 26% 16%, 44% 16%);
}
.hero .sheet { background: var(--sheet); }
.hero .heads img { position: absolute; left: 3%; top: 18%; width: 77.1%; }
.hero h1 { position: absolute; left: 3%; top: 3%; margin: 0; font-family: var(--narrow); font-weight: 700; font-size: 3.9cqw; line-height: 1; }
.hero .parts { position: absolute; left: 90%; top: 8%; font-family: var(--narrow); font-weight: 500; font-size: 1.39cqw; line-height: 1.35; writing-mode: vertical-rl; }
.hero .count { position: absolute; left: 4%; top: 30%; margin: 0; writing-mode: vertical-rl; font-family: var(--narrow); font-weight: 700; font-size: 1.81cqw; letter-spacing: 0.42cqw; }
.hero .kiwi { position: absolute; left: 81%; top: 46%; margin: 0; font-family: var(--narrow); font-weight: 700; font-size: 3.06cqw; line-height: 0.95; }
.hero .cta {
  position: absolute; left: 60%; top: 76%; width: 26%; height: 6%; border: 2px solid var(--ink); background: var(--sheet);
  display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden;
  font-family: var(--narrow); font-weight: 700; font-size: 2.2cqw; letter-spacing: 0.45cqw; text-decoration: none;
}
.hero .cta:hover { background: var(--ink); color: var(--green); }
.hero nav { position: absolute; right: 3%; top: 2%; display: flex; gap: 1.25cqw; font-size: max(12px, 0.95cqw); font-weight: 600; }
.hero nav a { text-decoration: none; }
.hero nav a.current { border-bottom: 2px solid var(--ink); }

/* heads take turns: each ~10s, sliding up from / down into the sheet */
@keyframes dfnzHead { 0% { transform: translateY(130%); } 6%, 22% { transform: translateY(0); } 29%, 100% { transform: translateY(130%); } }
.hero .heads img { transform: translateY(130%); animation: dfnzHead 40s cubic-bezier(.3, 1.2, .5, 1) infinite both; will-change: transform; }
.hero .heads img:nth-child(1) { animation-delay: -2.4s; }
.hero .heads img:nth-child(2) { animation-delay: 7.6s; }
.hero .heads img:nth-child(3) { animation-delay: 17.6s; }
.hero .heads img:nth-child(4) { animation-delay: 27.6s; }

/* phones: the hero stays a picture, but the main button gets a proper size */
.cta-phone { display: none; }
@media (max-width: 700px) {
  .hero .cta { display: none; }
  .cta-phone {
    display: block; margin: 12px 16px 0; padding: 18px; text-align: center; text-decoration: none;
    background: var(--ink); color: var(--green); font-family: var(--narrow); font-weight: 700; font-size: 24px; letter-spacing: 4px;
  }
}

/* ---------------------------------------------------------------- sections */
.about p { margin: 24px 0 0; max-width: 820px; font-family: var(--narrow); font-weight: 700; font-size: clamp(15px, 1.81vw, 26px); line-height: 1.35; }

.examples { padding-top: 40px; }
.examples .grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.examples figure { margin: 0; background: var(--sheet); padding: 40px 14px 14px; }
.examples figure:nth-child(1) { clip-path: polygon(0 0, 62% 0, 62% 6%, 100% 6%, 100% 100%, 0 100%); }
.examples figure:nth-child(2) { clip-path: polygon(0 6%, 40% 6%, 40% 0, 100% 0, 100% 100%, 0 100%); }
.examples figure:nth-child(3) { clip-path: polygon(0 0, 100% 0, 100% 92%, 70% 92%, 70% 100%, 0 100%); padding: 14px 14px 40px; }
.examples img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.examples .ex-img { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; text-align: left; }
.examples .ex-parts { position: absolute; inset: 0; background: rgba(11, 61, 23, 0.94); color: var(--sheet); padding: 6% 7%; display: flex; flex-direction: column; justify-content: center; }
.examples .ex-parts .row { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid rgba(241, 241, 238, 0.25); }
.examples .ex-parts .row:first-child { border-top: 0; }
.examples .ex-parts .part { flex: 0 0 88px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.examples .ex-parts .what { flex: 1; font-size: 14px; line-height: 1.3; }
.examples .ex-parts .what em { font-size: 12px; opacity: 0.75; }
.examples .ex-parts .c { font-family: var(--narrow); font-weight: 700; font-size: 17px; color: var(--green); }
.examples .ex-hint { display: block; font-weight: 500; font-size: 14px; }
.examples figcaption { padding-top: 10px; font-family: var(--narrow); font-weight: 700; font-size: 18px; }

.species { padding-top: 32px; }
.species .panel { background: var(--sheet); padding: 28px 32px; display: flex; flex-direction: column; gap: 14px; }
.species .panel h2 span { font-size: 20px; font-weight: 500; }
.species .info { background: var(--ink); color: var(--sheet); padding: 10px 16px; min-height: 44px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.species .info .code { font-family: var(--narrow); font-weight: 700; font-size: 24px; color: var(--green); }
.species .info .name { font-family: var(--narrow); font-weight: 700; font-size: 20px; }
.species .info .latin { font-size: 14px; font-style: italic; }
.species .info .family { font-size: 13px; opacity: 0.8; }
.species .codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 4px; }
.species .codes button { font-family: var(--narrow); font-weight: 700; font-size: 16px; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 7px 0; cursor: pointer; }
.species .codes button[aria-pressed="true"] { background: var(--ink); color: var(--green); }
@media (max-width: 600px) { .species .panel { padding: 20px 16px; } }

.cut { padding-top: 56px; }
.cut .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.cut .head span { font-family: var(--narrow); font-weight: 500; font-size: 20px; }
.cut .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); background: var(--sheet); }
.cut .tile { aspect-ratio: 1; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); position: relative; display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; }
.cut .tile img { max-width: 92%; max-height: 66%; object-fit: contain; }
.cut .tile .lower { max-width: 56.7%; max-height: 53.5%; }
.cut .tile .upper { width: 49%; max-width: none; max-height: none; height: auto; flex: none; }
.cut .tile .fin { max-width: 70%; }
.cut .tile span { position: absolute; left: 12px; top: 10px; font-family: var(--narrow); font-weight: 700; font-size: 16px; }

.build { padding-top: 56px; }
.build .panel { background: var(--sheet); clip-path: polygon(0 0, 46% 0, 46% 40px, 100% 40px, 100% 100%, 0 100%); padding: 24px 32px 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.build .text { flex: 1 1 280px; min-width: 0; }
.build .text .order { margin: 14px 0 0; font-family: var(--narrow); font-weight: 700; font-size: 22px; line-height: 1.5; }
.build .text p { margin: 14px 0 0; font-size: 15px; line-height: 1.5; max-width: 340px; }
.build .stage { margin-top: 32px; flex: 1 1 520px; min-width: 0; max-width: 620px; position: relative; aspect-ratio: 1; overflow: hidden; background: var(--yellow); border: 2px solid var(--ink); container-type: inline-size; }
.build .stage > * { position: absolute; }
.build .mark { right: 1.2%; bottom: 1.2%; text-align: right; font-family: "Valoon", var(--narrow); font-size: 3.2cqw; line-height: 1.35; color: #fff7a8; text-shadow: 0 0 1px rgba(0, 0, 0, 0.15); }
@keyframes dfnzFly { 0% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } 14%, 84% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
.build .fly { animation: dfnzFly 7s cubic-bezier(.2, 1.2, .4, 1) infinite both; will-change: transform, opacity; }
@media (max-width: 600px) { .build .panel { padding: 56px 16px 20px; } }

.faq { padding: 56px 0; }
.faq .panel { background: var(--sheet); clip-path: polygon(0 0, 30% 0, 30% 36px, 100% 36px, 100% 100%, 0 100%); padding: 24px 32px 32px; display: flex; flex-wrap: wrap; gap: 24px; }
.faq .panel h2 { flex: 1 1 200px; }
.faq .panel h2 span { font-size: 20px; font-weight: 500; }
.faq .list { flex: 4 1 560px; min-width: 0; border-top: 2px solid var(--ink); margin-top: 36px; }
.faq .item { border-bottom: 2px solid var(--ink); }
.faq .item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: transparent; border: 0; padding: 16px 0; cursor: pointer; font-family: var(--narrow); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); color: var(--ink); text-align: left; }
.faq .item button .sign { font-size: 30px; }
.faq .item p a { font-weight: 600; }
.faq .item p { margin: 0 0 18px; font-size: 17px; line-height: 1.5; max-width: 640px; }
@media (max-width: 600px) { .faq .panel { padding: 56px 16px 20px; } }

.species .info .note-line { flex-basis: 100%; font-size: 13px; color: var(--green); }
/* ---------------------------------------------------------------- fish and chip shops */
.shop { padding-top: 56px; }
.shop .panel { scroll-margin-top: 16px; background: var(--ink); color: var(--sheet); padding: 32px; display: flex; flex-wrap: wrap; gap: 32px 40px; }
.shop .text { flex: 1 1 380px; min-width: 0; }
.shop .section-title { color: var(--green); }
.shop .lead { margin: 16px 0 0; font-family: var(--narrow); font-weight: 700; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; color: var(--yellow); }
.shop .text p { margin: 14px 0 0; font-size: 15px; line-height: 1.55; max-width: 560px; }
.shop .steps { margin: 18px 0 0; padding-left: 22px; font-size: 15px; line-height: 1.55; }
.shop .steps li { margin-bottom: 4px; }
.shop-form { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.shop-form .wide { grid-column: 1 / -1; }
.shop-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.shop-form .opt { font-weight: 400; opacity: 0.75; }
.shop-form input, .shop-form select, .shop-form textarea { font: 16px var(--body); padding: 11px 12px; border: 0; border-radius: 0; background: var(--sheet); color: var(--ink); width: 100%; box-sizing: border-box; }
.shop-form textarea { resize: vertical; }
.shop-form [aria-invalid="true"] { outline: 3px solid var(--yellow); }
.shop-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shop-form button { font-family: var(--narrow); font-weight: 700; font-size: 20px; letter-spacing: 3px; border: 0; background: var(--green); color: var(--ink); padding: 15px 18px; cursor: pointer; }
.shop-form button:hover { background: var(--yellow); }
.shop-form button:disabled { opacity: 0.6; cursor: wait; }
.shop-form .status { margin: 0; min-height: 1.2em; font-size: 14px; line-height: 1.5; }
.shop-form .status a { color: var(--green); }
.shop-form :focus-visible { outline-color: var(--green); }
.shop-done { flex: 1 1 420px; align-self: center; font-family: var(--narrow); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; color: var(--green); }
.shop-done span { display: block; margin-top: 10px; font-family: var(--body); font-weight: 400; font-size: 15px; color: var(--sheet); }
@media (max-width: 600px) { .shop .panel { padding: 24px 16px; } .shop-form { grid-template-columns: 1fr; } }

.mentions { padding-bottom: 24px; }
.mentions h2 { margin: 0 0 6px; font-family: var(--narrow); font-weight: 700; font-size: 16px; }
.mentions p { margin: 0 0 8px; max-width: 760px; font-size: 13px; line-height: 1.5; }
footer.site { max-width: 1280px; margin: 0 auto; padding: 18px 32px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 600; }

/* ---------------------------------------------------------------- inner pages (My fish, share, privacy) */
.top { max-width: 1200px; margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.top .brand { font-family: var(--narrow); font-weight: 700; font-size: 28px; text-decoration: none; }
.top nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.top nav a { text-decoration: none; }
.top nav a.current { border-bottom: 2px solid var(--ink); }
.page { max-width: 1200px; margin: 0 auto; padding: 0 32px 64px; }
.page h1 { margin: 0 0 20px; font-family: var(--narrow); font-weight: 700; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
@media (max-width: 600px) { .top, .page { padding-left: 16px; padding-right: 16px; } }

.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.col-side { flex: 2 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) { .col-main, .col-side { flex-basis: 100%; } }

.frame { aspect-ratio: 1; background: var(--sheet); }
.frame.empty { border: 3px dashed var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px; text-align: center; }
.frame.empty img { width: 34%; }
.frame.empty p { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: clamp(24px, 3vw, 34px); }
.frame img.fish { display: block; width: 100%; height: 100%; object-fit: contain; padding: 12px; }

.btn-dark {
  display: block; width: 100%; border: 0; cursor: pointer; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--green); padding: 18px; font-family: var(--narrow); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 4px;
}
.btn-dark:hover { color: #fff; }
.btn-dark:disabled { opacity: 0.35; cursor: default; }
.btn-line { display: block; width: 100%; border: 2px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer; padding: 14px; text-align: center; font-family: var(--narrow); font-weight: 700; font-size: 20px; letter-spacing: 2px; }
.btn-line:hover { background: var(--ink); color: var(--green); }
.share-box { display: flex; flex-direction: column; gap: 8px; }
.share-btns { display: flex; gap: 8px; }
.share-btns .btn-line { flex: 1; }
.share-box p { margin: 0; font-size: 14px; line-height: 1.5; text-align: center; }
.card .full { margin-top: 14px; border-top: 2px solid var(--ink); padding-top: 10px; }
.card .full .label { margin-top: 0; }
.card .fullcode { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: 20px; word-break: break-word; }
.box-dark .keep-code { font-family: var(--narrow); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); color: var(--green) !important; margin: 6px 0 10px !important; word-break: break-word; }
.keep-side { flex: 1 1 360px; display: flex; flex-direction: column; gap: 10px; }
.save-wide .keep-side form { flex: none; }
.keep-side .keep-btn { flex: none; }
.keep-btn { flex: 1 1 140px; text-align: center; text-decoration: none; font-family: var(--narrow); font-weight: 700; font-size: 18px; letter-spacing: 2px; border: 0; background: var(--green); color: var(--ink) !important; padding: 14px 16px; cursor: pointer; }
.keep-btn.alt { background: transparent; color: var(--green) !important; border: 2px solid var(--green); }
.share { margin: 0; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.8; }
.share a, .share button { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }

.card { background: #fff; border: 2px solid var(--ink); padding: 22px 24px; }
.card .card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.card .card-top span:first-child { font-family: var(--narrow); font-weight: 700; font-size: 18px; }
.card .card-top span:last-child { font-size: 12px; font-weight: 600; }
.card .label { margin: 14px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.card .code { margin: 0 0 16px; font-family: var(--narrow); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1; word-break: break-word; }
.card .row { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid #c9d9cc; }
.card .row .part { flex: 0 0 92px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.card .row .what { flex: 1; font-size: 15px; }
.card .row .what em { font-size: 13px; opacity: 0.7; }
.card .row .c { font-family: var(--narrow); font-weight: 700; font-size: 18px; }
.card .row .bar { flex: 1; height: 12px; background: #d6ead9; }

.box-dark { background: var(--ink); color: var(--sheet); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.box-dark h2 { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1; color: var(--green); }
.box-dark p { margin: 0; font-size: 15px; line-height: 1.5; }
.box-dark form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.box-dark label { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.box-dark input { font: 16px var(--body); padding: 12px; border: 0; background: var(--sheet); color: var(--ink); }
.box-dark button { font-family: var(--narrow); font-weight: 700; font-size: 18px; letter-spacing: 2px; border: 0; background: var(--green); color: var(--ink); padding: 13px 18px; cursor: pointer; }
.save-wide { margin-top: 32px; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.save-wide > div { flex: 1 1 380px; }
.save-wide form { flex: 1 1 360px; }
.note { margin: 0; font-size: 14px; line-height: 1.5; background: var(--sheet); padding: 14px 16px; }
.notice { margin-top: 16px; padding: 12px 16px; background: var(--sheet); border-left: 6px solid var(--ink); font-weight: 600; }
.notice.error { border-left-color: #c62828; }
.dev { margin: 0 0 16px; }
.dev button { background: #fee; border: 1px solid #c99; padding: 6px 10px; cursor: pointer; }

.print-guide { margin-top: 32px; background: var(--sheet); clip-path: polygon(0 0, 66% 0, 66% 36px, 100% 36px, 100% 100%, 0 100%); padding: 24px 32px 28px; }
.print-guide ol { margin: 18px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; max-width: 760px; }
.print-guide a { font-weight: 600; }
.print-guide .small { margin: 16px 0 0; font-size: 13px; opacity: 0.8; }
.shop-callout { margin-top: 32px; background: var(--ink); color: var(--sheet); padding: 24px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.shop-callout h2 { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1; color: var(--green); }
.shop-callout p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; max-width: 560px; }
.shop-callout-btn { flex: none; text-decoration: none; font-family: var(--narrow); font-weight: 700; font-size: 20px; letter-spacing: 3px; background: var(--green); color: var(--ink) !important; padding: 15px 22px; }
.shop-callout-btn:hover { background: var(--yellow); }
@media (max-width: 600px) { .shop-callout { padding: 22px 16px; } .shop-callout-btn { flex: 1 1 100%; text-align: center; } }
@media (max-width: 760px) { .print-guide { clip-path: none; padding: 24px 16px 20px; } }

.agree { margin: 0; font-size: 13px; line-height: 1.5; text-align: center; }
.agree a { font-weight: 600; }

/* generating: bare bones slide out, a real upper body slides in */
.loader { aspect-ratio: 1; background: var(--sheet); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; overflow: hidden; }
.loader .swap { position: relative; width: 38%; aspect-ratio: 0.85; }
.loader .swap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.loader p { margin: 0; font-family: var(--narrow); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); }
@keyframes dfnzOut { 0%, 15% { transform: translateX(0); opacity: 1; } 45%, 88% { transform: translateX(160%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes dfnzIn { 0%, 15% { transform: translateX(-160%); opacity: 0; } 45%, 82% { transform: translateX(0); opacity: 1; } 94%, 100% { transform: translateX(0); opacity: 0; } }
@keyframes dfnzDot { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.loader .out { animation: dfnzOut 3.2s ease-in-out infinite; will-change: transform, opacity; }
.loader .in { animation: dfnzIn 3.2s ease-in-out infinite; will-change: transform, opacity; }
.loader .dot { animation: dfnzDot 1s steps(1) infinite; }

/* plain text pages */
.prose { background: var(--sheet); padding: 28px 32px; max-width: 820px; font-size: 16px; line-height: 1.6; }
.prose h2 { font-family: var(--narrow); font-size: 26px; margin: 24px 0 8px; }
.prose h2:first-child { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .hero .heads img { animation: none; transform: translateY(130%); }
  .hero .heads img:first-child { transform: none; }
  .build .fly { animation: none; opacity: 1; }
  .loader .out { animation: none; opacity: 0; }
  .loader .in, .loader .dot { animation: none; opacity: 1; transform: none; }
}

/* print: only the species card */
@media print {
  body { background: #fff; }
  body * { visibility: hidden; }
  .card, .card * { visibility: visible; }
  .card { position: absolute; left: 0; top: 0; width: 100%; border: 2px solid #000; }
}
