/* ============================================================
   IoPet · Felis Pixella · A Field Guide
   Light theme, paper aesthetic. No SaaS Slop.
   ============================================================ */

:root {
  /* Paper system — OKLCH, tinted toward warm */
  --paper:        oklch(96% 0.018 80);   /* base vellum */
  --paper-deep:   oklch(92% 0.025 78);   /* shadow / inset */
  --paper-edge:   oklch(85% 0.035 75);   /* hard edge */
  --paper-fold:   oklch(78% 0.045 70);   /* darker crease */

  /* Ink hierarchy */
  --ink:          oklch(22% 0.035 55);   /* main text — deep brown-black */
  --ink-muted:    oklch(38% 0.030 55);   /* secondary text */
  --ink-faint:    oklch(55% 0.025 55);   /* meta, captions */

  /* Field-guide accents */
  --moss:         oklch(48% 0.075 130);  /* botanical green — links */
  --moss-deep:    oklch(38% 0.065 130);  /* hovered link */
  --stamp-red:    oklch(42% 0.155 25);   /* primary CTA, rarity stamps */
  --stamp-red-deep:oklch(34% 0.140 25);
  --aged-gold:    oklch(63% 0.130 78);   /* legendary */
  --aged-gold-deep:oklch(50% 0.120 75);
  --faded-blue:   oklch(42% 0.075 245);  /* note ink, common stamp */

  /* Typography */
  --display: 'IM Fell English', 'IM Fell English SC', Georgia, serif;
  --body:    'EB Garamond', Georgia, serif;
  --pixel:   'Silkscreen', 'Courier New', monospace;
  --hand:    'Caveat', cursive;

  /* Modular scale (1.333 — perfect fourth) */
  --fs-xs:  0.75rem;
  --fs-sm:  0.875rem;
  --fs-base: 1.125rem;     /* slightly larger for serif body */
  --fs-lg:  1.5rem;
  --fs-xl:  2rem;
  --fs-2xl: 2.667rem;
  --fs-3xl: clamp(4.5rem, 11vw, 9rem);

  /* 4pt rhythm */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  20px;
  --space-lg:  32px;
  --space-xl:  56px;
  --space-2xl: 96px;

  /* Page constraints — single book "开本" */
  --measure: 62ch;
  --max:    1680px;
}

/* ===== Reset / base ===== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background:
    /* Subtle vertical paper spine glow */
    radial-gradient(ellipse 90% 80% at 50% 0%, oklch(98% 0.012 82) 0%, var(--paper) 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern", "liga", "dlig";
}

/* Paper grain — sits over everything, very faint */
.paper-grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  z-index: 100;
}

/* ============================================================
   PAGE CHROME — side margins on wide screens
   ============================================================ */
.page-chrome {
  display: none;
  position: fixed;
  top: 0; bottom: 0;
  width: 200px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-md);
  padding: 50px 0 40px;
  color: var(--ink-faint);
  overflow: hidden;
}
.chrome__top,
.chrome__verses,
.chrome__bottom { flex-shrink: 0; }
.chrome__vine { flex: 1 1 auto; min-height: 0; }
.chrome__top,
.chrome__verses,
.chrome__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.chrome__verses {
  gap: var(--space-md);
}
.page-chrome--left  { left: 0; }
.page-chrome--right { right: 0; }

@media (max-width: 2099px) {
  .page-chrome { display: none; }
}

/* Crest — top seal */
.chrome__crest {
  width: 56px;
  height: 56px;
  color: var(--stamp-red);
  opacity: 0.75;
}

/* Decorative band — horizontal hairline w/ centered flourish */
.chrome__band {
  width: 110px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  opacity: 0.7;
}
.chrome__band::before,
.chrome__band::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
}
.chrome__band-glyph {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

/* Tail piece — bottom flourish */
.chrome__tail {
  width: 80px;
  height: 28px;
  color: var(--ink-muted);
  opacity: 0.7;
  margin-top: var(--space-md);
}

.chrome__page-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-faint);
  letter-spacing: 0.2em;
}
.chrome__edition {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  border-top: 1px solid var(--paper-fold);
  padding-top: 8px;
  width: 60px;
  text-align: center;
}

.chrome__vine {
  width: 60px;
  height: 100%;
  max-height: 420px;
  min-height: 180px;
}
.chrome__vine--mirror { transform: scaleX(-1); }

.chrome__verse {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  text-transform: uppercase;
  opacity: 0.85;
}
.chrome__verse--cn {
  text-transform: none;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: normal;
}
/* Both margins: text reads top-to-bottom (writing-mode: vertical-rl handles it) */

a {
  color: var(--moss);
  text-decoration: none;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  border-bottom: 1px solid currentColor;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}
a:hover { color: var(--moss-deep); border-color: var(--moss-deep); }

em { font-style: italic; }

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  border-bottom: 2px solid var(--ink);
  padding: var(--space-md) 0 var(--space-md);
  background: linear-gradient(to bottom, oklch(93% 0.030 80), transparent);
  position: relative;
}
.masthead > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}
.masthead::after {
  content: "";
  position: absolute;
  bottom: -7px; left: 0; right: 0;
  border-bottom: 1px solid var(--ink);
}

.masthead__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-top: 4px double var(--ink);
  border-bottom: 4px double var(--ink);
  padding: 10px 0 8px;
  position: relative;
}
.masthead__line::before,
.masthead__line::after {
  content: "❦";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--stamp-red);
  font-size: 0.9em;
  background: var(--paper);
  padding: 0 8px;
}
.masthead__line::before { left: 25%; }
.masthead__line::after  { left: 75%; }

.masthead__title {
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink);
  letter-spacing: 0.06em;
  text-transform: none;
  font-feature-settings: "smcp", "onum";
}

.masthead__nav {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-md);
  font-family: var(--display);
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
}
.masthead__nav a {
  border: none;
  color: var(--ink);
  font-style: italic;
}
.masthead__nav a:hover {
  color: var(--stamp-red);
}
.masthead__nav .dot {
  color: var(--paper-fold);
  font-size: 0.6em;
}
.masthead__nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 5px 14px 4px;
  font-style: normal !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
}
.masthead__nav-cta:hover {
  background: var(--stamp-red);
  color: var(--paper) !important;
}

/* ============================================================
   HERO — opened-book spread
   ============================================================ */
.hero {
  max-width: var(--max);
  margin: var(--space-xl) auto var(--space-2xl);
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 240px 1fr 420px;
  gap: var(--space-xl);
  position: relative;
  align-items: start;
}

/* Left margin — marginalia + verification stamp */
.hero__margin {
  text-align: right;
  padding-right: var(--space-md);
  padding-top: var(--space-lg);
  position: relative;
  border-right: 1px dashed var(--paper-fold);
}

.margin-note {
  font-family: var(--hand);
  color: var(--faded-blue);
  font-size: 1.35rem;
  line-height: 1.35;
  margin: 0 0 var(--space-sm);
  transform: rotate(-1.2deg);
  letter-spacing: 0.01em;
}
.margin-note--scribble {
  margin-top: var(--space-md);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--stamp-red);
  transform: rotate(1.4deg);
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  display: inline-block;
}
.margin-stamp {
  margin-top: var(--space-md);
  display: flex;
  justify-content: flex-end;
  color: var(--stamp-red);
  opacity: 0.85;
  transform: rotate(-8deg);
}
.margin-stamp .seal {
  width: 124px;
  height: 124px;
  filter: drop-shadow(0 1px 0 oklch(85% 0.08 25 / 0.4));
}

/* Right side — main content */
.hero__main {
  padding-top: var(--space-md);
}

.eyebrow {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin: 0 0 var(--space-xs);
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--display);
  font-size: var(--fs-3xl);
  line-height: 0.92;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
  font-weight: normal;
  letter-spacing: -0.01em;
}
.hero__title-script {
  font-style: italic;
  color: var(--stamp-red);
}

.hero__latin {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink-muted);
  margin: 0 0 var(--space-xl);
  letter-spacing: 0.02em;
}

/* Specimen plate — now stands on its own as right column */
.plate {
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--paper-deep);
  border: 1px solid var(--paper-fold);
  padding: var(--space-md);
  position: relative;
  box-shadow:
    0 1px 0 var(--paper-edge),
    0 12px 28px -14px oklch(30% 0.06 60 / 0.35);
  /* Slight tilt — like glued slightly crooked into the book */
  transform: rotate(0.6deg);
}
.plate::before {
  /* Inner paper mat */
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--paper-edge);
  pointer-events: none;
}
.plate::after {
  /* Tape-pieces holding the specimen card down */
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 64px;
  height: 22px;
  background: oklch(82% 0.04 80 / 0.55);
  border-left: 1px solid oklch(75% 0.05 70 / 0.5);
  border-right: 1px solid oklch(75% 0.05 70 / 0.5);
}

.plate__frame {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--paper-fold);
  display: grid;
  place-items: center;
  padding: var(--space-sm);
  /* Subtle vignette inside frame */
  background:
    radial-gradient(ellipse 100% 100% at 50% 45%, var(--paper) 50%, oklch(86% 0.030 78) 100%),
    var(--paper);
}

.plate__cat {
  width: 92%;
  height: 92%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
}

.plate__ornament {
  position: absolute;
  width: 32px;
  height: 32px;
  color: var(--ink-muted);
}
.plate__ornament--tl { top: -1px; left: -1px; }
.plate__ornament--tr { top: -1px; right: -1px; }
.plate__ornament--bl { bottom: -1px; left: -1px; }
.plate__ornament--br { bottom: -1px; right: -1px; }

.plate__caption {
  font-family: var(--display);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  text-align: center;
  border-top: 1px dashed var(--paper-fold);
  padding-top: var(--space-sm);
}
.plate__name {
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink);
}
.plate__meta {
  font-size: var(--fs-xs);
  color: var(--ink-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lead {
  font-family: var(--body);
  font-size: var(--fs-lg);
  line-height: 1.6;
  max-width: 56ch;
  color: var(--ink);
  margin: 0 0 var(--space-lg);
}
.lead::first-letter {
  font-family: var(--display);
  font-size: 2.6em;
  float: left;
  line-height: 0.85;
  padding: 6px 8px 0 0;
  color: var(--stamp-red);
  font-style: italic;
  font-feature-settings: "swsh", "calt";
}
.lead em {
  color: var(--stamp-red);
  font-weight: 500;
}
.emph-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--stamp-red);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--stamp-red);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* Vital-stats specimen table — adds "繁茂" density */
.vitals {
  margin: 0 0 var(--space-lg);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: var(--space-sm) 0;
  position: relative;
}
.vitals::before, .vitals::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.4;
}
.vitals::before { top: -3px; }
.vitals::after  { bottom: -3px; }

.vital {
  padding: var(--space-xs) var(--space-sm);
  border-right: 1px dashed var(--paper-fold);
}
.vital:last-child { border-right: none; }

.vital__label {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.vital__value {
  font-family: var(--display);
  font-size: var(--fs-base);
  color: var(--ink);
  margin: 0;
  letter-spacing: 0.02em;
}
.vital__value em {
  color: var(--stamp-red);
}
.vital--accent {
  background:
    repeating-linear-gradient(135deg,
      transparent 0 6px,
      oklch(88% 0.04 78 / 0.35) 6px 7px);
}
.vital--accent .vital__label {
  color: var(--stamp-red);
  font-weight: 500;
}
.vital--accent .vital__value em {
  font-size: 1.18em;
}

/* CTAs as wax stamps */
.cta-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.btn {
  font-family: var(--display);
  font-size: var(--fs-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  border-bottom: none;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.btn--primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 30% 25%, oklch(48% 0.16 28) 0%, transparent 60%),
    var(--stamp-red);
  color: var(--paper) !important;
  padding: 18px 44px 16px;
  position: relative;
  /* Wax-seal-ish irregular border */
  clip-path: polygon(
    2% 14%, 7% 4%, 18% 0%, 50% 5%, 82% 0%, 93% 4%, 98% 14%,
    100% 50%, 96% 88%, 90% 96%, 78% 100%, 50% 94%, 22% 100%, 10% 96%, 4% 88%, 0% 50%
  );
  text-shadow: 0 1px 1px oklch(20% 0.12 25 / 0.6);
  filter: drop-shadow(0 4px 6px oklch(30% 0.12 30 / 0.35));
}
.btn--primary::before {
  content: "";
  position: absolute;
  top: 8px; left: 12px;
  width: 22px; height: 14px;
  background: radial-gradient(ellipse, oklch(75% 0.06 30 / 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.btn--primary:hover {
  filter: drop-shadow(0 2px 3px oklch(30% 0.12 30 / 0.5));
  transform: translate(-1px, -2px) rotate(-0.6deg);
}
.btn--primary:active {
  transform: translate(0, 1px);
  filter: drop-shadow(0 1px 2px oklch(30% 0.12 30 / 0.55));
}
.btn__inner {
  font-size: var(--fs-lg);
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1;
}
.btn__price {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  margin-top: 4px;
  opacity: 0.85;
  text-transform: uppercase;
}

.btn--ghost {
  background: transparent;
  color: var(--ink) !important;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  font-style: italic;
  font-size: var(--fs-base);
  text-decoration: none;
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.cta-note {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-faint);
  font-size: var(--fs-sm);
  margin: var(--space-xs) 0 0;
  letter-spacing: 0.05em;
}
.cta-note__link {
  color: var(--ink-muted);
  border-bottom-color: var(--ink-faint);
}

/* ============================================================
   ORNATE RULE
   ============================================================ */
.rule {
  border: none;
  margin: var(--space-2xl) auto;
  max-width: var(--max);
  height: 28px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 28' preserveAspectRatio='none'><path d='M 30 14 L 270 14' stroke='%23332014' stroke-width='1' fill='none'/><path d='M 330 14 L 570 14' stroke='%23332014' stroke-width='1' fill='none'/><circle cx='300' cy='14' r='4' fill='none' stroke='%23332014' stroke-width='1'/><circle cx='300' cy='14' r='1.5' fill='%23332014'/><path d='M 280 14 Q 290 4 300 14 Q 310 24 320 14' stroke='%23332014' stroke-width='0.8' fill='none'/><circle cx='25' cy='14' r='2' fill='%23332014'/><circle cx='575' cy='14' r='2' fill='%23332014'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   NOTES section — about
   ============================================================ */
.notes {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section-title {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-2xl);
  text-align: center;
  margin: 0 0 var(--space-xl);
  color: var(--ink);
  font-weight: normal;
  position: relative;
  letter-spacing: 0.04em;
}
.section-title span {
  background: var(--paper);
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}
.section-title span::before,
.section-title span::after {
  content: "❦";
  display: inline-block;
  font-size: 0.6em;
  color: var(--stamp-red);
  margin: 0 var(--space-sm);
  vertical-align: 0.18em;
  opacity: 0.85;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: 50%;
  border-top: 1px solid var(--ink-faint);
  z-index: 0;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%;
  top: 50%;
  border-top: 1px solid var(--ink-faint);
  z-index: 0;
  transform: translateY(2px);
  opacity: 0.5;
}

.notes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
}

.note {
  position: relative;
  padding: var(--space-lg) var(--space-md) var(--space-md);
}
.note + .note {
  border-left: 1px dashed var(--paper-fold);
}
.note__num {
  font-family: var(--display);
  font-style: italic;
  font-size: 4rem;
  color: var(--stamp-red);
  display: inline-block;
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.95;
  position: relative;
  padding: 0 var(--space-md) 0 0;
}
.note__num::before {
  /* Botanical sprig — left of Roman numeral */
  content: "";
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 32px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'><path d='M 12 30 Q 12 18 12 4' stroke='%234A6A3A' stroke-width='1' fill='none'/><path d='M 12 22 Q 6 20 4 14 Q 8 18 12 20' fill='%234A6A3A' opacity='0.8'/><path d='M 12 16 Q 18 14 20 8 Q 16 12 12 14' fill='%234A6A3A' opacity='0.8'/><path d='M 12 10 Q 8 8 6 2 Q 10 6 12 8' fill='%234A6A3A' opacity='0.7'/><circle cx='12' cy='4' r='1.5' fill='%23A52A1A' opacity='0.6'/></svg>") no-repeat center / contain;
}
.note h3 {
  font-family: var(--display);
  font-size: var(--fs-lg);
  font-weight: normal;
  margin: 0 0 var(--space-sm);
  color: var(--ink);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.note h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 8px;
  margin-top: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 8'><path d='M 0 4 Q 8 0 16 4 Q 24 8 32 4' stroke='%23332014' stroke-width='0.7' fill='none'/></svg>") no-repeat center / contain;
}
.note p {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
  max-width: 36ch;
}

/* ============================================================
   SPECIMENS row
   ============================================================ */
.specimens {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-2xl);
}

.specimens__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.specimen {
  background: var(--paper-deep);
  border: 1px solid var(--paper-fold);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
  box-shadow:
    0 1px 0 var(--paper-edge),
    0 8px 18px -10px oklch(30% 0.06 60 / 0.30);
}
.specimen::before {
  /* Inner mat */
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--paper-edge);
  pointer-events: none;
}
.specimen::after {
  /* Tape strip on top */
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 56px;
  height: 18px;
  background: oklch(82% 0.04 80 / 0.55);
  border-left: 1px solid oklch(75% 0.05 70 / 0.5);
  border-right: 1px solid oklch(75% 0.05 70 / 0.5);
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}
/* Different tilts per card for hand-pasted feel */
.specimen:nth-child(1) { transform: rotate(-1.4deg); }
.specimen:nth-child(2) { transform: rotate(0.8deg); }
.specimen:nth-child(3) { transform: rotate(-0.5deg); }
.specimen:nth-child(4) { transform: rotate(1.1deg); }
.specimen:nth-child(5) { transform: rotate(-0.9deg); }

.specimen:hover {
  transform: translate(-1px, -3px) rotate(-0.3deg) !important;
  box-shadow:
    0 1px 0 var(--paper-edge),
    0 16px 30px -16px oklch(30% 0.06 60 / 0.5);
  z-index: 1;
}

.specimen__plate {
  background: var(--paper);
  border: 1px solid var(--paper-fold);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: var(--space-md);
}
.specimen__plate svg,
.specimen__plate img {
  width: 70%;
  height: 70%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  object-fit: contain;
  /* sprite gif 透明边距大、cat 实际只占像素 ~50%，再 scale 1.7 让猫充满 plate */
  transform: scale(1.7);
  transform-origin: center;
}

.specimen__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 0 var(--space-xs);
}
.specimen__name {
  font-family: var(--display);
  font-size: var(--fs-base);
  margin: 0;
  color: var(--ink);
  font-style: italic;
}
.specimen__pop {
  font-family: var(--body);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  margin: 0;
}
.specimen__no {
  font-family: var(--pixel);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
  padding: 3px 7px 2px;
  border: 1px solid var(--paper-fold);
  background: var(--paper);
  align-self: flex-start;
  margin-bottom: 4px;
  /* slightly off the printed grid, like a hand-stamped serial */
  transform: rotate(-1.2deg);
}
.specimen__note {
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--faded-blue);
  margin: 4px 0 0;
  letter-spacing: 0.005em;
  opacity: 0.92;
}

.specimens__footnote {
  font-family: var(--display);
  font-style: italic;
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--fs-base);
  margin: var(--space-lg) 0 0;
  letter-spacing: 0.02em;
}
.specimens__footnote em {
  color: var(--stamp-red);
  font-weight: 500;
  font-style: italic;
}

/* ============================================================
   PANEL — single-column centered (gacha, download)
   ============================================================ */
.panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
.panel__inner {
  max-width: 62ch;
  margin: 0 auto;
}
.panel .lead {
  max-width: none;
  margin-bottom: var(--space-md);
}
.panel__body {
  font-family: var(--body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0 0 var(--space-md);
}
.panel__body em {
  color: var(--stamp-red);
  font-weight: 500;
  font-style: italic;
}
.panel .cta-row {
  justify-content: center;
  margin-top: var(--space-lg);
}
.panel .cta-note {
  text-align: center;
  margin-top: var(--space-sm);
}

/* ============================================================
   COLOPHON / FOOTER
   ============================================================ */
.colophon {
  border-top: 1px solid var(--ink);
  margin-top: var(--space-2xl);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  background: linear-gradient(to top, oklch(94% 0.025 80), transparent);
}
.colophon__line {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed var(--paper-fold);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.colophon__edition {
  font-style: normal;
  font-family: var(--pixel);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}
.colophon__legal {
  max-width: var(--max);
  margin: 0 auto;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
}
.colophon__legal a {
  border: none;
  color: var(--ink-faint);
  margin-right: 4px;
}
.colophon__legal a:hover {
  color: var(--ink);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 180px 1fr;
    gap: var(--space-md);
  }
  .plate {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: var(--space-lg) auto 0;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 var(--space-md);
  }
  .hero__margin {
    text-align: left;
    padding-right: 0;
    border-right: none;
    border-bottom: 1px dashed var(--paper-fold);
    padding-bottom: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: flex-start;
  }
  .margin-note { transform: none; }
  .margin-note--scribble { transform: rotate(0.5deg); }
  .margin-stamp { margin-top: 0; }
  .plate { grid-column: 1; max-width: 100%; }
  .masthead { padding: var(--space-md); }
  .masthead__line { font-size: 10px; letter-spacing: 0.12em; }
  .notes, .specimens, .panel { padding-left: var(--space-md); padding-right: var(--space-md); }
  .vitals { grid-template-columns: 1fr 1fr; }
}

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