@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/caveat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4ead3;
  --paper-deep: #e9dec9;
  --paper-light: #faf4e6;
  --ink: #2a2824;
  --ink-soft: #625a4e;
  --pencil: #8d877c;
  --accent: #9b723f;
  --accent-deep: #7a5626;
  --accent-bright: #c89c45;
  --link: #3b656c;
  --night: #0f1520;
  --night-deep: #080c14;
  --cream: #f3ecdf;
  --amber: #f0a030;
  --wood: #6e5134;
  --wood-dark: #47331f;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Quicksand", "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper) url("../assets/art/grain.svg") repeat;
  background-size: 240px 240px;
  color: var(--ink);
  font: 500 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

p {
  margin: 0 0 1em;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 60;
  padding: 0.6em 1em;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-stuck {
  background: rgb(244 234 211 / 0.94);
  box-shadow: 0 1px 0 rgb(42 40 36 / 0.14), 0 8px 24px -18px rgb(42 40 36 / 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 30px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 30px);
}

.site-nav a {
  position: relative;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 4px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- shared bits ---------- */

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--accent-deep);
  font: 700 0.78rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 650;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.section {
  position: relative;
  padding-block: clamp(76px, 10vw, 136px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.95em 1.5em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-light);
  font: 700 1rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--accent);
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: 0 4px 0 rgb(42 40 36 / 0.16);
}

.btn--ghost:hover {
  box-shadow: 0 6px 0 rgb(42 40 36 / 0.16);
}

.btn-seed {
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: var(--accent-bright);
  transform: rotate(18deg);
}

/* A plate: bold outer rule, a band of alternating blocks, a thin inner rule. */
.plate {
  position: relative;
  border: 2.5px solid var(--ink);
  padding: 18px;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 44px) 0 0 / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 44px) 0 100% / 100% 5px no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 22px, transparent 22px 44px) 0 0 / 5px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 22px, transparent 22px 44px) 100% 0 / 5px 100% no-repeat,
    var(--paper-light);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--ink);
  pointer-events: none;
}

.plate-caption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font: 600 1.4rem/1.2 var(--font-hand);
  text-align: center;
}

.bubble {
  position: absolute;
  z-index: 6;
  padding: 0.3em 0.75em 0.42em;
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  background: var(--paper-light);
  color: var(--ink);
  font: 700 1.65rem/1 var(--font-hand);
  white-space: nowrap;
  box-shadow: 3px 4px 0 rgb(42 40 36 / 0.14);
  pointer-events: none;
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: var(--paper-light);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
}

.bubble[hidden] {
  display: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3.5vw, 48px) 0 clamp(64px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.hero-title {
  margin-bottom: 1.3rem;
  font-size: clamp(2.75rem, 6.3vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero-title em {
  position: relative;
  display: inline-block;
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
  white-space: nowrap;
}

.squiggle {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.3em;
  overflow: visible;
}

.squiggle path {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 5;
  stroke-linecap: round;
}

.lede {
  max-width: 35ch;
  margin-bottom: 1.8rem;
  font-size: clamp(1.08rem, 1.5vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.crumb-count {
  min-height: 1.6em;
  margin: 1.1rem 0 0;
  color: var(--ink-soft);
  font: 600 1.4rem/1.2 var(--font-hand);
}

.hero-stage {
  margin: 0;
}

.stage {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  container-type: size;
  background: radial-gradient(circle at 50% 36%, rgb(255 251 240 / 0.95), rgb(250 244 230 / 0) 62%);
}

.pigeon {
  overflow: visible;
  color: var(--ink);
  fill: currentColor;
}

.pigeon--hero {
  position: absolute;
  left: 9%;
  bottom: 3%;
  width: 82%;
  height: auto;
}

.stage-ground {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
}

.stage-crumbs {
  fill: var(--accent);
}

.feather {
  position: absolute;
  top: -70px;
  width: 20px;
  height: auto;
  color: var(--pencil);
  fill: currentColor;
  opacity: 0;
}

.feather--1 {
  left: 14%;
}

.feather--2 {
  left: 76%;
  width: 15px;
}

.feather--3 {
  left: 44%;
  width: 17px;
}

.feather .quill {
  fill: none;
  stroke: var(--paper-light);
  stroke-width: 2;
  stroke-linecap: round;
}

.bubble--hero {
  top: 5%;
  left: 7%;
}

.bubble--hero::after {
  right: 16px;
  transform: rotate(45deg);
}

.toy {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
}

.seed,
.crumb {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}

.seed {
  width: 12px;
  height: 8px;
  margin: -4px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: inset -2px -1px 0 rgb(42 40 36 / 0.35);
}

.seed--sun {
  width: 9px;
  height: 15px;
  margin: -7px 0 0 -4px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: linear-gradient(90deg, var(--ink) 0 34%, var(--cream) 34% 52%, var(--ink) 52% 100%);
  box-shadow: none;
}

.seed--crumb {
  width: 12px;
  height: 10px;
  border-radius: 3px 6px 2px 7px;
  background: #d8b47a;
  box-shadow: inset -2px -2px 0 rgb(122 86 38 / 0.55);
}

.crumb {
  width: 5px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 40%;
  background: var(--accent-bright);
}

.crumb:nth-child(3n) {
  background: #d8b47a;
}

.crumb:nth-child(4n) {
  background: var(--accent);
}

/* ---------- field notes ---------- */

.notes-plate {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(22px, 3.4vw, 44px);
}

.notes-figure {
  margin: 0;
}

.notes-figure svg {
  width: 100%;
  height: auto;
}

.note-line {
  fill: none;
  stroke: var(--accent-bright);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 1 0;
}

.note-anchor {
  fill: var(--accent-bright);
  stroke: var(--paper-light);
  stroke-width: 4;
}

.note-marker circle {
  fill: var(--paper-light);
  stroke: var(--ink);
  stroke-width: 6;
  transition: fill 0.2s ease;
}

.note-marker text {
  fill: var(--ink);
  font: 700 38px var(--font-body);
  text-anchor: middle;
  dominant-baseline: central;
}

.note-marker.is-active circle {
  fill: var(--accent-bright);
}

.notes-latin {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font: 600 1.45rem/1.25 var(--font-hand);
}

.notes-list {
  display: grid;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notes-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  border-radius: 10px;
}

.note-num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-light);
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.notes-list li.is-active .note-num {
  background: var(--accent-bright);
}

.note-title {
  margin: 0.05rem 0 0.2rem;
  font: 700 1.75rem/1.05 var(--font-hand);
}

.notes-list p {
  margin: 0;
}

/* ---------- a balanced diet ---------- */

.diet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 400px);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.diet-head .section-head {
  margin-bottom: 0;
}

.diet-art {
  margin: 0;
}

.diet-art img {
  width: 100%;
  height: auto;
}

.packets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.packet {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 6px 6px 12px 12px;
  background: var(--paper-light);
  box-shadow: inset 0 0 0 6px var(--paper-light), inset 0 0 0 7.5px var(--ink), 5px 7px 0 rgb(42 40 36 / 0.1);
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}

.packet::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  height: 11px;
  background: repeating-linear-gradient(90deg, rgb(42 40 36 / 0.5) 0 2px, transparent 2px 7px);
}

.packet:hover {
  transform: rotate(-1.4deg) translateY(-6px);
}

.packet-seeds {
  position: absolute;
  left: 50%;
  top: 6px;
  z-index: -1;
  width: 60px;
  height: 20px;
  margin-left: -30px;
}

.packet-seeds i {
  position: absolute;
  bottom: 0;
  width: 9px;
  height: 13px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: var(--accent-bright);
  transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.packet-seeds i:nth-child(1) {
  left: 10px;
  transform: rotate(-20deg);
}

.packet-seeds i:nth-child(2) {
  left: 25px;
  background: var(--ink);
}

.packet-seeds i:nth-child(3) {
  left: 40px;
  transform: rotate(25deg);
  background: #d8b47a;
}

.packet:hover .packet-seeds i:nth-child(1) {
  transform: translate(-4px, -16px) rotate(-35deg);
}

.packet:hover .packet-seeds i:nth-child(2) {
  transform: translateY(-22px) rotate(10deg);
}

.packet:hover .packet-seeds i:nth-child(3) {
  transform: translate(4px, -14px) rotate(40deg);
}

.packet-variety {
  margin: 0;
  color: var(--accent-deep);
  font: 700 0.7rem/1.2 var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.packet-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2em;
  margin: 0.25rem 0 0.9rem;
  font-size: 1.42rem;
  line-height: 1.1;
}

.packet-icon {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6.5px rgb(42 40 36 / 0.35);
}

.packet-icon svg {
  width: 54px;
  height: 54px;
  color: var(--ink);
}

.ic-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-fill {
  fill: currentColor;
}

.ic-paper {
  fill: var(--paper);
  stroke: currentColor;
  stroke-width: 3.5;
}

.ic-accent {
  fill: var(--accent-bright);
}

.packet-text {
  flex: 1;
  margin: 0 0 1.1rem;
  font-size: 0.99rem;
}

.packet-foot {
  width: 100%;
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1.5px dashed rgb(42 40 36 / 0.4);
  color: var(--ink-soft);
  font: 700 0.68rem/1.5 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- why a pigeon (night) ---------- */

.night {
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}

.night::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 18%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 22% 64%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 37% 12%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 48% 82%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 61% 30%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 74% 88%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.7px 1.7px at 88% 14%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 94% 58%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 15% 92%, var(--cream) 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 55% 50%, var(--cream) 50%, transparent 52%);
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 6px 1px rgb(243 236 223 / 0.6);
}

.star--1 { left: 12%; top: 26%; }
.star--2 { left: 44%; top: 16%; }
.star--3 { left: 68%; top: 72%; }
.star--4 { left: 30%; top: 84%; }
.star--5 { left: 91%; top: 36%; }

.night-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.night .kicker {
  color: var(--amber);
}

.night h2 {
  color: var(--cream);
}

.story p:not(.kicker) {
  max-width: 34ch;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.1vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}

.story .story-close {
  color: var(--amber);
  font-style: normal;
  font-weight: 600;
}

.moon {
  position: relative;
  display: grid;
  place-items: center;
  width: min(400px, 78vw);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #fffaf0, var(--cream) 55%, #d8ccb2);
  box-shadow: 0 0 0 14px rgb(243 236 223 / 0.06), 0 0 90px rgb(243 236 223 / 0.22);
}

.moon svg {
  width: 60%;
  height: auto;
  margin-top: 6%;
  color: var(--night);
  fill: currentColor;
}

/* ---------- in the nest ---------- */

.nest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

.nest-art {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.nest-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 24px;
}

.nest-button img {
  width: 100%;
  height: auto;
  transform-origin: 50% 94%;
}

.bubble--nest {
  top: 2%;
  right: -2%;
}

.bubble--nest::after {
  left: 22px;
  transform: rotate(45deg);
}

.nest-hint {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font: 600 1.3rem/1.2 var(--font-hand);
  text-align: center;
}

.egg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.egg-tag {
  position: relative;
  padding: 0.42em 0.95em 0.48em 1.75em;
  border: 2px solid var(--ink);
  border-radius: 6px 16px 16px 6px;
  background: var(--paper-light);
  font: 700 1.35rem/1 var(--font-hand);
  transform: rotate(-2deg);
}

.egg-tag::before {
  content: "";
  position: absolute;
  left: 0.6em;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}

.egg-tag:nth-child(2) {
  transform: rotate(1.5deg);
}

.egg-tag:nth-child(3) {
  transform: rotate(-0.8deg);
}

/* ---------- pigeonholes ---------- */

.holes-head {
  max-width: 680px;
  margin: 0 auto clamp(8px, 2vw, 16px);
  text-align: center;
}

.carrier {
  width: min(300px, 64%);
  margin: 0 auto -6px;
}

.carrier img {
  width: 100%;
  height: auto;
}

.cabinet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  box-shadow: inset 0 0 0 3px rgb(255 255 255 / 0.06), 0 12px 0 rgb(42 40 36 / 0.16);
  list-style: none;
}

.cubby {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--cream);
}

.hole {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 0.66;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(180deg, #1f170f, #33261a);
  box-shadow: inset 0 12px 20px rgb(0 0 0 / 0.5), inset 0 -2px 0 rgb(255 255 255 / 0.06);
}

.letter {
  position: relative;
  width: 66%;
  aspect-ratio: 1.55;
  margin-bottom: -4%;
  border-radius: 3px;
  background: var(--cream);
  box-shadow: 0 -3px 8px rgb(0 0 0 / 0.35);
  transform: translateY(26%) rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.letter::before {
  content: "";
  position: absolute;
  inset: 0 0 38% 0;
  background: #e2d7c2;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.letter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  margin: -12% 0 0 -9%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 2px rgb(0 0 0 / 0.15);
}

.cubby:nth-child(2) .letter {
  transform: translateY(30%) rotate(3deg);
}

.cubby:nth-child(3) .letter {
  transform: translateY(24%) rotate(-2deg);
}

.cubby:nth-child(4) .letter {
  transform: translateY(32%) rotate(5deg);
}

.cubby:hover .letter {
  transform: translateY(4%) rotate(-1deg);
}

.soon {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 0.3em 0.55em;
  border: 2px solid var(--amber);
  border-radius: 4px;
  color: var(--amber);
  font: 700 0.68rem/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.cubby-label {
  display: inline-block;
  margin: 12px 0 6px;
  padding: 0.28em 0.8em;
  border-radius: 3px;
  background: linear-gradient(180deg, #e0bb6a, var(--accent-bright) 55%, #a8803a);
  box-shadow: inset 0 0 0 1.5px rgb(42 40 36 / 0.55), 0 2px 0 rgb(0 0 0 / 0.3);
  color: var(--ink);
  font: 700 0.95rem/1.2 var(--font-body);
  letter-spacing: 0.04em;
}

.cubby-text {
  margin: 0 0 4px;
  color: rgb(243 236 223 / 0.85);
  font-size: 0.93rem;
  line-height: 1.45;
}

/* ---------- footer ---------- */

.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 40px;
  background: var(--night-deep);
  color: var(--cream);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-logo {
  width: 128px;
  height: auto;
  color: var(--cream);
  fill: currentColor;
}

.footer-meta {
  margin: 0;
  color: rgb(243 236 223 / 0.78);
  font-size: 0.96rem;
  text-align: right;
}

.footer-meta .footer-crumbs {
  display: block;
  color: var(--amber);
  font: 600 1.3rem/1.3 var(--font-hand);
}

/* ---------- the lost page ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 68px);
  padding-block: 40px 80px;
  text-align: center;
}

.lost-art {
  width: min(360px, 76vw);
  margin: 0 auto 1.4rem;
}

.lost h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.3rem, 5.4vw, 3.8rem);
  line-height: 1.02;
}

.lost p {
  max-width: 36ch;
  margin-inline: auto;
  margin-bottom: 1.8rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.mini-footer {
  padding: 22px 0;
  background: var(--night-deep);
  color: rgb(243 236 223 / 0.78);
  font-size: 0.92rem;
  text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .packets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cabinet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .notes-plate,
  .night-grid,
  .nest-grid,
  .diet-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-stage {
    order: -1;
    width: min(100%, 440px, 52vh);
    margin-inline: auto;
  }

  .diet-art {
    width: min(100%, 360px);
  }

  .moon {
    width: min(320px, 74vw);
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .packets {
    grid-template-columns: minmax(0, 1fr);
  }

  .cabinet {
    gap: 12px;
    padding: 12px;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-meta {
    text-align: center;
  }

  .bubble {
    font-size: 1.4rem;
  }
}

/* ---------- motion (only when the visitor is fine with it) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html:not(.still) {
    scroll-behavior: smooth;
  }

  html:not(.still) .hero-copy > * {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  html:not(.still) .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  html:not(.still) .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  html:not(.still) .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  html:not(.still) .hero-copy > :nth-child(5) { animation-delay: 0.32s; }

  html:not(.still) .hero-stage {
    animation: land 0.9s cubic-bezier(0.3, 1.35, 0.5, 1) 0.1s both;
  }

  html:not(.still) .squiggle path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 0.9s ease 0.75s forwards;
  }

  html:not(.still) .feather {
    animation: drift 17s linear infinite;
  }

  html:not(.still) .feather--2 {
    animation-duration: 22s;
    animation-delay: -9s;
  }

  html:not(.still) .feather--3 {
    animation-duration: 19.5s;
    animation-delay: -15s;
  }

  html:not(.still) .bubble.is-popping {
    animation: pop 0.4s cubic-bezier(0.3, 1.7, 0.5, 1) both;
  }

  html.js:not(.still) .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  html.js:not(.still) .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  html.js:not(.still) .packets .reveal:nth-child(2) { transition-delay: 0.08s; }
  html.js:not(.still) .packets .reveal:nth-child(3) { transition-delay: 0.16s; }
  html.js:not(.still) .packets .reveal:nth-child(4) { transition-delay: 0.24s; }

  html.js:not(.still) .note-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s ease;
  }

  html.js:not(.still) .notes-figure.is-in .note-line {
    stroke-dashoffset: 0;
  }

  html.js:not(.still) .notes-figure .note-marker,
  html.js:not(.still) .notes-figure .note-anchor {
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  html.js:not(.still) .notes-figure.is-in .note-marker,
  html.js:not(.still) .notes-figure.is-in .note-anchor {
    opacity: 1;
  }

  html.js:not(.still) .notes-figure.is-in .note-marker { transition-delay: 0.9s; }

  html:not(.still) .note-line--2 { transition-delay: 0.15s; }
  html:not(.still) .note-line--3 { transition-delay: 0.3s; }
  html:not(.still) .note-line--4 { transition-delay: 0.45s; }

  html:not(.still) .star {
    animation: twinkle 3.6s ease-in-out infinite;
  }

  html:not(.still) .star--2 { animation-delay: -1.1s; }
  html:not(.still) .star--3 { animation-delay: -2.3s; }
  html:not(.still) .star--4 { animation-delay: -0.6s; }
  html:not(.still) .star--5 { animation-delay: -2.9s; }

  html:not(.still) .moon svg {
    animation: bob 7s ease-in-out infinite;
  }

  html:not(.still) .nest-button img {
    animation: sway 6.5s ease-in-out infinite;
  }

  html:not(.still) .nest-button.is-wiggling img {
    animation: wiggle 0.7s ease-in-out;
  }

  html:not(.still) .carrier img,
  html:not(.still) .lost-art {
    animation: fly 5.5s ease-in-out infinite;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes land {
  0% { opacity: 0; transform: translateY(-36px) scale(0.96); }
  60% { opacity: 1; transform: translateY(4px) scale(1.01, 0.98); }
  100% { opacity: 1; transform: none; }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes drift {
  0% { opacity: 0; transform: translate(0, 0) rotate(-24deg); }
  8% { opacity: 0.6; }
  25% { transform: translate(22px, 30cqh) rotate(16deg); }
  50% { transform: translate(-16px, 58cqh) rotate(-14deg); }
  75% { transform: translate(18px, 86cqh) rotate(20deg); }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(0, 112cqh) rotate(-10deg); }
}

@keyframes pop {
  0% { opacity: 0; transform: scale(0.4) translateY(12px); }
  100% { opacity: 1; transform: none; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes sway {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.4deg); }
  75% { transform: rotate(1.4deg); }
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-5deg); }
  40% { transform: rotate(4.5deg); }
  60% { transform: rotate(-3deg); }
  80% { transform: rotate(1.5deg); }
}

@keyframes fly {
  0%, 100% { transform: translate(0, 0) rotate(-2deg); }
  50% { transform: translate(10px, -12px) rotate(2deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html.still *,
html.still *::before,
html.still *::after {
  animation: none !important;
  transition: none !important;
}

.packet-foot span {
  display: block;
}
