:root {
  --paper: #dfd4b8;
  --paper-light: #f4f0e2;
  --ink: #1f2922;
  --muted: #596157;
  --rust: #963d2f;
  --teal: #315b45;
  --gold: #a8893e;
  --plum: #665769;
  --line: rgba(31, 41, 34, 0.32);
  --shadow: 0 16px 36px rgba(25, 38, 29, 0.2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: #273c30;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 17px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  transform: translateY(-150%); background: var(--ink); color: white;
  padding: 10px 16px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 112px; display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto; padding: 0 42px; border: 1px solid rgba(33,29,30,.2); border-bottom: 0;
  color: var(--ink); background: #ddcfac; box-shadow: 0 5px 30px rgba(17,27,21,.25);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 136px; height: 94px; padding: 0; object-fit: contain; background: transparent; border: 0; filter: none; }
.header-meta { display: flex; align-items: center; gap: 22px; }
.issue { margin: 0; color: #425345; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; }
.header-nav { display: flex; gap: 9px; }
.maker-nav { padding: 8px 12px 7px; border: 1px solid #425345; color: var(--ink); font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.maker-nav:hover, .maker-nav:focus-visible { color: var(--paper-light); background: #294735; outline: 2px solid #294735; outline-offset: 3px; }
.maker-nav[aria-current="page"] { color: var(--paper-light); background: #294735; }
.adopt-nav { border-color: #151b18; color: #151b18; background: #e1c476; box-shadow: 3px 3px 0 #425345; font-weight: 700; }
.adopt-nav:hover, .adopt-nav:focus-visible { color: #151b18; background: #f0d98b; outline-color: #151b18; }

main { max-width: 1320px; margin: 0 auto; padding: 1px 30px 0; border-inline: 1px solid rgba(33,29,30,.2); background: var(--paper); box-shadow: 0 22px 70px rgba(15,25,19,.32); }
.site-page[hidden] { display: none !important; }
.site-page.is-active { animation: page-reveal .28s ease both; }
.page-back { display: inline-flex; align-items: center; gap: 9px; margin: 26px 0 22px; padding: 8px 12px 7px; border: 1px solid var(--ink); color: var(--ink); background: rgba(244,240,226,.72); font-family: "Special Elite", monospace; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; box-shadow: 3px 3px 0 rgba(63,77,65,.25); }
.page-back:hover, .page-back:focus-visible { color: var(--paper-light); background: var(--teal); outline: 2px solid var(--ink); outline-offset: 3px; }
@keyframes page-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.hero {
  position: relative; min-height: 690px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
  gap: 58px; margin: 28px 1% 100px; padding: 72px 6% 72px 11%; overflow: hidden;
}
.hero.site-page { min-height: calc(100dvh - 170px); margin-bottom: 28px; }

.book-cover { color: var(--paper-light); border: 4px double #2f2418; border-radius: 8px 15px 15px 7px; background-color: #2d3021; background-image: linear-gradient(90deg, rgba(16,20,13,.36), transparent 12%, transparent 88%, rgba(26,17,9,.28)), linear-gradient(rgba(42,48,30,.12), rgba(26,22,14,.28)), url("assets/leather-cover-texture.webp"); background-size: cover; background-position: center; background-blend-mode: multiply, soft-light, normal; box-shadow: -12px 12px 0 #302a20, 0 26px 52px rgba(45,32,20,.36); }
.book-cover::before { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(238,210,147,.62); border-radius: 3px 11px 11px 3px; box-shadow: inset 0 0 22px rgba(17,12,7,.32), 0 0 0 1px rgba(55,35,17,.3); pointer-events: none; }
.book-cover::after { content: "✦   2026   ✦"; position: absolute; right: 34px; bottom: 24px; color: #d9b969; font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .14em; }
.cover-spine { position: absolute; inset: 0 auto 0 0; width: 70px; display: grid; place-items: center; border-right: 2px solid #17251f; background: linear-gradient(90deg, rgba(0,0,0,.2), transparent 35%, rgba(0,0,0,.22)); box-shadow: inset -8px 0 15px rgba(0,0,0,.18), 5px 0 0 rgba(218,185,105,.22); }
.cover-spine span { writing-mode: vertical-rl; transform: rotate(180deg); color: #d9b969; font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .16em; }
.cover-copy { position: relative; z-index: 1; text-align: center; }
.cover-kicker { display: table; margin: 0 auto 16px; color: #d9b969; font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.cover-logo { display: block; width: 190px; height: 174px; margin: 0 auto 10px; padding: 15px; object-fit: contain; border: 2px solid #151b18; border-radius: 50%; background: #e6d3a2; box-shadow: 5px 6px 0 #17251f; }
.cover-rule { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: min(400px, 86%); margin: 0 auto 20px; color: #d9b969; }
.cover-rule i { border-top: 1px solid currentColor; }

.eyebrow { color: var(--rust); font-family: "Roboto Condensed", Arial, sans-serif; text-transform: uppercase; letter-spacing: .15em; font-size: 13px; font-weight: 700; margin: 0 0 18px; }
h1, h2, h3, h4 { font-family: "Libre Baskerville", Georgia, serif; font-weight: 700; line-height: 1.08; }
h1 { font-size: clamp(50px, 6.4vw, 88px); letter-spacing: -.052em; max-width: 760px; margin: 0 0 28px; }
h1 em { color: var(--teal); font-style: italic; }
.book-cover h1 { margin-inline: auto; color: var(--paper-light); font-family: "IM Fell English SC", Georgia, serif; font-size: clamp(52px, 6vw, 78px); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; text-shadow: 2px 3px 0 #17251f; }
.book-cover h1 em { color: #e1c476; }
.hero-intro { max-width: 590px; color: #45514b; font-size: 18px; line-height: 1.55; margin-bottom: 34px; }
.book-cover .hero-intro { margin-inline: auto; color: #e5ddcb; font-family: "IM Fell English", Georgia, serif; }
.primary-link { display: inline-flex; gap: 20px; align-items: center; color: var(--ink); background: #e1c476; text-decoration: none; padding: 13px 18px; border: 2px solid #151b18; box-shadow: 4px 4px 0 #151b18; transition: .2s ease; }
.book-cover .primary-link { font-family: "IM Fell English", Georgia, serif; }
.primary-link:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #151b18; }
.cover-owner { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 27px 0 0; color: #e5ddcb; font-family: "IM Fell English", Georgia, serif; }
.cover-owner span { font-family: "Special Elite", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.hero-specimen { position: relative; min-height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(1.4deg); }
.cover-plate::before { content: ""; position: absolute; inset: 0 2% 3%; border: 1px solid rgba(225,196,118,.6); border-radius: 51% 49% 48% 52%; transform: rotate(-4deg); }
.hero-photo { position: relative; width: min(92%, 450px); aspect-ratio: 1; overflow: hidden; border: 3px solid #151b18; border-radius: 50%; background: var(--paper-light); padding: 9px; box-shadow: 7px 8px 0 #17251f, 0 18px 34px rgba(0,0,0,.25); }
.hero-photo::after { content: ""; position: absolute; inset: 9px; z-index: 2; border-radius: 50%; background: url("assets/vintage-photo-overlay.png") center / cover; opacity: .58; mix-blend-mode: multiply; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; object-position: center; filter: sepia(.22) saturate(.8) contrast(1.04); transform: scale(1.04) translateY(2%); }
.hero-specimen > p { position: relative; display: flex; width: 82%; justify-content: space-between; gap: 15px; border-top: 1px solid #d9b969; margin: 16px 0 0; padding-top: 10px; color: #f4ead5; font-family: "IM Fell English", Georgia, serif; }
.hero-specimen > p span { color: #d8d0c0; font-size: 12px; }
.specimen-tag { position: absolute; right: 2%; top: 8%; z-index: 2; color: var(--ink); background: #e1c476; border: 2px solid #151b18; padding: 6px 9px; font-family: "Special Elite", monospace; font-size: 10px; transform: rotate(4deg); box-shadow: 3px 3px 0 #151b18; }

h2 { font-size: clamp(38px, 5vw, 62px); letter-spacing: -.04em; margin: 0; }
.map-section { min-height: calc(100vh - 113px); padding: 0 4% 70px; scroll-margin-top: 24px; }
.map-heading, .directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.map-instruction { max-width: 260px; margin: 0 0 7px; padding-left: 18px; border-left: 3px solid var(--teal); color: var(--muted); font-size: 17px; line-height: 1.45; transform: none; }
.map-paper { position: relative; isolation: isolate; padding: 46px; overflow: hidden; border: 2px solid var(--ink); background-color: #d5c59e; background-image: linear-gradient(rgba(244,240,226,.16), rgba(211,195,154,.1)), url("assets/field-map-background-relief.webp"); background-size: cover; background-position: center; box-shadow: 7px 8px 0 #9c8757, var(--shadow); transform: none; }
.map-paper::before, .map-paper::after { content: ""; position: absolute; z-index: 5; width: 104px; height: 27px; background: rgba(222,205,163,.76); border: 1px solid rgba(79,65,42,.2); transform: rotate(-4deg); }
.map-paper::before { left: 8%; top: -12px; }
.map-paper::after { right: 7%; bottom: -10px; transform: rotate(3deg); }
.habitat-map { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px 28px; align-items: stretch; padding: 36px 28px; }
.map-territory { position: relative; min-width: 0; display: block; overflow: visible; padding: 8px; border: 2px solid #27382e; border-radius: 0; color: var(--ink); background: rgba(247,243,231,.96); text-align: left; cursor: pointer; box-shadow: 4px 5px 0 color-mix(in srgb, var(--realm-color) 48%, #c7b488); transition: transform .2s ease, box-shadow .2s ease; }
.territory-card-inner { display: grid; grid-template-rows: 148px 1fr; min-height: 100%; }
.map-territory::before { content: ""; position: absolute; inset: 5px; border: 1px dashed color-mix(in srgb, var(--realm-color) 60%, #5d513d); border-radius: 5px; pointer-events: none; }
.map-territory:hover, .map-territory:focus-visible { z-index: 8; transform: translateY(-5px) rotate(0deg); box-shadow: 9px 11px 0 color-mix(in srgb, var(--realm-color) 62%, #d8c49a); outline: 3px solid #fffdf9; outline-offset: 3px; }
.territory-stompling { grid-column: 1 / 3; transform: none; }
.territory-burrowfolk { grid-column: 3 / 5; transform: none; }
.territory-brineborn { grid-column: 5 / 7; transform: none; }
.territory-netherkin { grid-column: 2 / 4; transform: none; }
.territory-arboral { grid-column: 4 / 6; transform: none; }
.territory-photo { position: relative; display: block; overflow: hidden; border: 2px solid #231f1c; border-radius: 4px 7px 3px 8px; background-image: var(--realm-image); background-size: cover; background-position: center; }
.territory-photo::after { content: ""; position: absolute; inset: 0; z-index: 2; background: url("assets/vintage-photo-overlay.png") center / cover; opacity: .64; mix-blend-mode: multiply; pointer-events: none; }
.territory-stompling .territory-photo { background-position: center 18%; }
.territory-motion { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.territory-motion img, .territory-motion i { position: absolute; display: block; }
.woodland-leaf { left: -15%; width: 11%; height: auto; filter: drop-shadow(0 1px 1px rgba(38,27,16,.32)); }
.leaf-1 { bottom: 5%; animation: leaf-drift-low 11.8s linear -1.5s infinite; }
.leaf-2 { bottom: 13%; width: 9%; animation: leaf-drift-high 14.3s linear -9s infinite; }
.leaf-3 { bottom: 8%; width: 10%; animation: leaf-drift-low 13.1s linear -6.4s infinite; }
.leaf-4 { bottom: 18%; width: 8%; animation: leaf-drift-high 12.4s linear -3.8s infinite; }
.leaf-5 { bottom: 4%; width: 9%; animation: leaf-drift-low 15.2s linear -11.2s infinite; }
.leaf-6 { bottom: 11%; width: 10%; animation: leaf-drift-high 13.7s linear -7.5s infinite; }
.meadow-dandelion { left: 5%; bottom: -4%; height: 58%; width: auto; transform-origin: 50% 100%; filter: drop-shadow(0 1px 2px rgba(55,47,25,.32)); animation: dandelion-grow-once 5.4s ease-out forwards; }
.dandelion-seed { left: 13%; top: 46%; width: 7.5%; height: auto; opacity: 0; filter: drop-shadow(0 1px 2px rgba(55,47,25,.34)); }
.seed-1 { animation: seed-release-a 18s linear 0s infinite; }
.seed-2 { width: 7%; animation: seed-release-b 18s linear .22s infinite; }
.seed-3 { width: 9%; animation: seed-release-c 18s linear .42s infinite; }
.deep-fish { width: 36%; left: -40%; top: 30%; animation: deep-swim 18s linear infinite; }
.water-bubble { bottom: -18px; border: 1px solid rgba(218,247,255,.88); border-radius: 50%; background: radial-gradient(circle at 31% 27%, rgba(255,255,255,.88) 0 8%, rgba(151,221,235,.3) 15% 45%, rgba(33,117,145,.18) 67%, transparent 70%); box-shadow: inset -2px -2px 3px rgba(24,83,107,.25), 0 0 3px rgba(204,244,255,.5); animation: bubble-rise 8.5s linear infinite; }
.bubble-1 { left: 11%; width: 10px; height: 10px; animation-delay: -1s; }
.bubble-2 { left: 23%; width: 15px; height: 15px; animation-delay: -6.2s; animation-duration: 10.2s; }
.bubble-3 { left: 36%; width: 7px; height: 7px; animation-delay: -3.4s; animation-duration: 7.8s; }
.bubble-4 { left: 48%; width: 12px; height: 12px; animation-delay: -8s; animation-duration: 11s; }
.bubble-5 { left: 58%; width: 8px; height: 8px; animation-delay: -4.8s; animation-duration: 8.8s; }
.bubble-6 { left: 67%; width: 17px; height: 17px; animation-delay: -2.2s; animation-duration: 11.8s; }
.bubble-7 { left: 76%; width: 9px; height: 9px; animation-delay: -7.1s; animation-duration: 9.4s; }
.bubble-8 { left: 85%; width: 13px; height: 13px; animation-delay: -5.5s; animation-duration: 10.7s; }
.bubble-9 { left: 92%; width: 6px; height: 6px; animation-delay: -3s; animation-duration: 7.4s; }
.cave-glow { width: 23px; height: 23px; border-radius: 50%; background: radial-gradient(circle, rgba(255,250,211,.96) 0 10%, rgba(244,211,255,.62) 24%, rgba(163,101,214,.24) 47%, transparent 72%); filter: drop-shadow(0 0 5px rgba(244,211,255,.86)) drop-shadow(0 0 10px rgba(163,101,214,.58)); animation: cave-twinkle 4.8s ease-in-out infinite; }
.cave-glow::before { content: ""; position: absolute; inset: 3px; background: rgba(255,246,194,.92); clip-path: polygon(50% 0, 58% 40%, 83% 17%, 64% 43%, 100% 50%, 64% 57%, 83% 83%, 58% 60%, 50% 100%, 42% 60%, 17% 83%, 36% 57%, 0 50%, 36% 43%, 17% 17%, 42% 40%); filter: blur(.7px); }
.cave-glow-1 { left: 22%; top: 29%; }
.cave-glow-2 { left: 48%; top: 62%; animation-delay: -1.7s; animation-duration: 5.6s; }
.cave-glow-3 { left: 73%; top: 22%; animation-delay: -3.1s; animation-duration: 4.2s; }
.cave-glow-4 { left: 84%; top: 69%; width: 12px; height: 12px; animation-delay: -2.3s; animation-duration: 5.1s; }
.cave-glow-5 { left: 36%; top: 16%; width: 10px; height: 10px; animation-delay: -4s; animation-duration: 4.6s; }
.glade-dapple { inset: -18%; background: radial-gradient(ellipse at 22% 28%, rgba(255,250,192,.98) 0 7%, transparent 18%), radial-gradient(ellipse at 71% 27%, rgba(255,251,196,.92) 0 9%, transparent 22%), radial-gradient(ellipse at 54% 72%, rgba(240,249,173,.94) 0 8%, transparent 20%), radial-gradient(ellipse at 36% 55%, rgba(255,255,218,.86) 0 6%, transparent 17%); filter: blur(3px); mix-blend-mode: screen; animation: glade-light 8s ease-in-out infinite alternate; }
.glade-beam { inset: -30%; background: linear-gradient(112deg, transparent 0 24%, rgba(255,250,196,.38) 30%, transparent 38%, transparent 52%, rgba(248,255,196,.3) 59%, transparent 67%); mix-blend-mode: screen; animation: glade-beam-drift 11s ease-in-out infinite alternate; }
@keyframes leaf-drift-low { 0% { transform: translate3d(0,0,0) rotate(0deg); } 35% { transform: translate3d(520%, -18%,0) rotate(210deg); } 68% { transform: translate3d(1020%, 11%,0) rotate(455deg); } 100% { transform: translate3d(1650%, -9%,0) rotate(720deg); } }
@keyframes leaf-drift-high { 0% { transform: translate3d(0,0,0) rotate(-20deg); } 29% { transform: translate3d(470%, 20%,0) rotate(170deg); } 61% { transform: translate3d(970%, -22%,0) rotate(390deg); } 100% { transform: translate3d(1650%, 8%,0) rotate(680deg); } }
@keyframes dandelion-grow-once {
  0%, 16% { transform: translateY(5px) scale(.08); opacity: 0; }
  30% { transform: translateY(4px) scale(.2); opacity: .36; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes seed-release-a { 0%, 52% { opacity: 0; transform: translate3d(0,0,0) rotate(-16deg); } 54% { opacity: 1; transform: translate3d(0,0,0) rotate(-16deg); } 69% { opacity: 1; transform: translate3d(420%,-40%,0) rotate(18deg); } 84% { opacity: 1; transform: translate3d(880%,15%,0) rotate(-9deg); } 100% { opacity: 1; transform: translate3d(1420%,-32%,0) rotate(24deg); } }
@keyframes seed-release-b { 0%, 52% { opacity: 0; transform: translate3d(0,0,0) rotate(12deg); } 54% { opacity: 1; transform: translate3d(0,0,0) rotate(12deg); } 68% { opacity: 1; transform: translate3d(380%,28%,0) rotate(-20deg); } 83% { opacity: 1; transform: translate3d(850%,-34%,0) rotate(15deg); } 100% { opacity: 1; transform: translate3d(1500%,12%,0) rotate(-24deg); } }
@keyframes seed-release-c { 0%, 53% { opacity: 0; transform: translate3d(0,0,0) rotate(-4deg); } 55% { opacity: 1; transform: translate3d(0,0,0) rotate(-4deg); } 70% { opacity: 1; transform: translate3d(460%,-18%,0) rotate(25deg); } 86% { opacity: 1; transform: translate3d(940%,34%,0) rotate(-14deg); } 100% { opacity: 1; transform: translate3d(1350%,-21%,0) rotate(19deg); } }
@keyframes deep-swim {
  0% { transform: translate3d(0,8%,0); }
  100% { transform: translate3d(390%,-7%,0); }
}
@keyframes bubble-rise { 0% { transform: translate3d(0,0,0) scale(.88); opacity: 1; } 55% { transform: translate3d(8px,-92px,0) scale(1); opacity: 1; } 88% { opacity: 1; } 100% { transform: translate3d(-4px,-182px,0) scale(1.08); opacity: 0; } }
@keyframes cave-twinkle { 0%, 100% { opacity: .16; transform: scale(.35) rotate(0deg); } 44% { opacity: 1; transform: scale(1.18) rotate(20deg); } 58% { opacity: .36; transform: scale(.62) rotate(34deg); } }
@keyframes glade-light { from { transform: translate3d(-5%,-4%,0) scale(1); opacity: .7; } to { transform: translate3d(8%,6%,0) scale(1.1); opacity: 1; } }
@keyframes glade-beam-drift { from { transform: translate3d(-8%,-3%,0) rotate(-2deg); opacity: .58; } to { transform: translate3d(8%,5%,0) rotate(2deg); opacity: .9; } }
.family-track-layer { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.map-footprint-trail { position: absolute; inset: 0; }
.map-footprint-trail img { position: absolute; left: var(--track-x); top: var(--track-y); width: clamp(12px, 1.4vw, 18px); height: auto; opacity: 0; filter: sepia(.18); transform: translate(-50%,-50%) rotate(var(--track-turn)) scale(.82); animation: footprint-appears 9.6s ease-in-out forwards; animation-delay: calc(var(--track-step) * .45s); }
.brine-family-bubble { position: absolute; left: var(--bubble-x); top: var(--bubble-start); width: var(--bubble-size); height: var(--bubble-size); border: 1px solid rgba(53,112,136,.6); border-radius: 50%; opacity: 0; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.69) 0 10%, rgba(142,204,216,.14) 18% 62%, transparent 67%); box-shadow: inset -1px -1px 2px rgba(53,112,136,.16); animation: brine-family-bubble-rise var(--bubble-duration) linear forwards; animation-delay: calc(var(--bubble-step) * .48s); }
@keyframes footprint-appears {
  0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--track-turn)) scale(.72); }
  12% { opacity: .23; transform: translate(-50%,-50%) rotate(var(--track-turn)) scale(.9); }
  68% { opacity: .17; }
  100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--track-turn)) scale(.9); }
}
@keyframes brine-family-bubble-rise {
  0% { top: var(--bubble-start); opacity: 0; transform: translateX(0) scale(.72); }
  10% { opacity: .27; }
  82% { opacity: .2; }
  100% { top: var(--bubble-end); opacity: 0; transform: translateX(var(--bubble-drift)) scale(1.08); }
}
.territory-number { position: absolute; z-index: 4; top: 10px; left: 10px; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: #f8efd9; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 11px; font-weight: 700; box-shadow: 2px 2px 0 var(--realm-color); }
.family-adopt-stamp { position: absolute; z-index: 4; right: 8px; top: 9px; padding: 7px 10px 5px; border: 3px double #1f2922; color: #1f2922; background: #e1c476; box-shadow: 2px 3px 0 rgba(21,27,24,.75); font-family: "Special Elite", monospace; font-size: 10px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; transform: rotate(3deg); }
.territory-copy { position: relative; z-index: 2; display: flex; flex-direction: column; padding: 16px 15px 14px; }
.territory-copy small { color: #526052; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.territory-copy strong { margin: 5px 0 8px; font-family: "Libre Baskerville", Georgia, serif; font-size: 31px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.territory-copy span { max-width: 100%; font-size: 16px; line-height: 1.4; }
.territory-copy em { margin-top: auto; padding-top: 12px; color: color-mix(in srgb, var(--realm-color) 78%, #402f25); font-family: "Roboto Condensed", Arial, sans-serif; font-size: 11px; font-weight: 700; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.map-compass { display: none; position: absolute; z-index: 6; top: 45%; left: 1.8%; flex-direction: column; align-items: center; color: var(--ink); font-family: "Special Elite", monospace; transform: rotate(-5deg); }
.map-compass b { font-size: 11px; }
.map-compass span { font-size: 42px; line-height: .8; }
.map-compass small { margin-top: 8px; font-size: 8px; letter-spacing: .08em; }
.map-footnote { margin: 22px 4% 0 auto; width: max-content; max-width: 86%; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 16px; font-style: italic; transform: none; }

.directory { position: relative; isolation: isolate; min-height: calc(100vh - 113px); padding: 0 4% 90px; overflow: hidden; border-top: 9px solid #2e5943; background: rgba(244,240,226,.82); }
.directory-heading { align-items: center; }
.result-count { margin: -14px 0 30px; color: var(--muted); font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.search-box { display: flex; align-items: center; gap: 10px; background: var(--paper-light); border: 1px solid var(--line); padding: 0 14px; }
.search-box svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 13px 0; }
.search-box:focus-within { border-color: var(--teal); outline: 2px solid rgba(36,118,117,.18); }
.index-search { width: min(390px, 100%); border: 2px solid var(--ink); box-shadow: 4px 4px 0 #decda7; }
.family-chapters { display: flex; flex-direction: column; gap: 22px; }
.family-chapter { overflow: hidden; border: 2px solid #2a392f; background: var(--paper-light); box-shadow: 5px 5px 0 color-mix(in srgb, var(--family-color) 35%, #a99569); scroll-margin-top: 24px; }
.family-chapter summary { position: relative; min-height: 230px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; overflow: hidden; padding: 34px 40px; color: var(--paper-light); background-image: linear-gradient(90deg, rgba(48,38,25,.92), rgba(48,38,25,.58) 55%, rgba(48,38,25,.38)), var(--chapter-image); background-size: cover; background-position: center; cursor: pointer; list-style: none; }
#family-stompling summary { background-position: center 18%; }
.family-chapter summary::before { content: ""; position: absolute; inset: 0; z-index: 0; background: url("assets/vintage-photo-overlay.png") center / cover; opacity: .46; mix-blend-mode: multiply; pointer-events: none; }
.family-chapter summary::-webkit-details-marker { display: none; }
.family-chapter summary::after { content: ""; position: absolute; inset: 13px; border: 1px dashed rgba(255,255,255,.65); pointer-events: none; }
.chapter-tab { position: relative; z-index: 1; padding: 7px 10px; border: 2px solid #f2e6bd; color: #f2e6bd; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .12em; transform: none; }
.chapter-title { position: relative; z-index: 1; display: flex; flex-direction: column; }
.chapter-title small { color: #f0e5ca; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.chapter-title strong { margin: 6px 0; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(43px, 5vw, 63px); font-weight: 700; line-height: 1; }
.chapter-title em { color: #f3d787; font-size: 17px; font-style: normal; }
.chapter-toggle { position: relative; z-index: 1; text-align: right; font-family: "Special Elite", monospace; font-size: 9px; line-height: 1.45; letter-spacing: .08em; }
.chapter-toggle b { display: inline-grid; place-items: center; width: 35px; height: 35px; margin-left: 9px; border: 2px solid white; border-radius: 50%; font-size: 22px; transition: transform .2s ease; }
.family-chapter[open] .chapter-toggle b { transform: rotate(45deg); }
.directory .family-chapter summary { cursor: default; }
.chapter-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 2px solid var(--ink); background: color-mix(in srgb, var(--family-color) 16%, var(--paper-light)); }
.chapter-intro p { margin: 0; padding: 23px 30px; font-size: 18px; line-height: 1.5; }
.chapter-intro p + p { border-left: 1px dashed rgba(33,29,30,.4); }
.chapter-intro b { font-family: "Roboto Condensed", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.specimen-list { padding: 12px 30px 24px; background: #f7f4e9; }
.specimen-row { border-bottom: 1px dashed rgba(33,29,30,.4); }
.specimen-row:last-child { border-bottom: 0; }
.specimen-row button, .specimen-record-link { position: relative; width: 100%; display: grid; grid-template-columns: 156px 1fr; gap: 28px; align-items: center; padding: 20px 8px; border: 0; color: inherit; background: transparent; text-align: left; text-decoration: none; cursor: pointer; }
.specimen-row button:hover .specimen-thumb, .specimen-record-link:hover .specimen-thumb { transform: rotate(-2deg) scale(1.03); box-shadow: 5px 5px 0 var(--family-color); }
.specimen-row button:hover h4, .specimen-record-link:hover h2, .specimen-record-link:hover h4 { color: color-mix(in srgb, var(--family-color) 80%, #111); }
.specimen-portrait { width: 144px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.specimen-thumb { position: relative; width: 132px; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--ink); border-radius: 50%; box-shadow: 4px 4px 0 color-mix(in srgb, var(--family-color) 45%, white); transition: .2s ease; }
.specimen-thumb::after { content: ""; position: absolute; inset: 0; z-index: 1; background: url("assets/vintage-photo-overlay.png") center / cover; opacity: .58; mix-blend-mode: multiply; pointer-events: none; }
.specimen-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; filter: sepia(.22) saturate(.8) contrast(1.04); }
.specimen-number { display: block; padding: 5px 8px 4px; border: 1px solid var(--ink); background: var(--paper-light); font-family: "Roboto Condensed", Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; transform: none; box-shadow: 2px 2px 0 color-mix(in srgb, var(--family-color) 40%, var(--paper-light)); }
.specimen-copy { min-width: 0; }
.specimen-row.is-adopted button, .specimen-row.is-adopted .specimen-record-link { grid-template-columns: 156px minmax(0, 1fr) minmax(190px, 250px); }
.directory-adopted-stamp { position: relative; z-index: 2; grid-column: 3; justify-self: center; padding: 7px 15px 5px; border: 3px double var(--rust); color: var(--rust); background: rgba(244,240,226,.88); font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(29px, 4vw, 48px); font-weight: 700; line-height: 1; letter-spacing: .04em; text-align: center; text-shadow: .5px .5px 0 rgba(143,79,53,.22); transform: rotate(-7deg); box-shadow: 0 0 0 2px rgba(143,79,53,.12); pointer-events: none; }
.directory-available-label { grid-column: 3; justify-self: center; padding: 7px 12px 5px; border: 2px solid var(--ink); color: var(--ink); background: #e1c476; box-shadow: 3px 3px 0 color-mix(in srgb, var(--family-color) 55%, white); font-family: "Special Elite", monospace; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; transform: rotate(2deg); }
.specimen-meta { display: flex; gap: 14px; color: var(--muted); font-family: "Special Elite", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.specimen-meta span + span::before { content: "✦"; margin-right: 14px; color: var(--family-color); }
.specimen-copy h2, .specimen-copy h4 { margin: 6px 0 8px; font-family: "Libre Baskerville", Georgia, serif; font-size: 30px; font-weight: 700; line-height: 1.1; transition: color .2s ease; }
.specimen-copy p { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.specimen-link { display: block; margin-top: 9px; color: var(--rust); font-family: "Special Elite", monospace; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.empty-state { text-align: center; padding: 75px 20px; border: 1px dashed var(--line); }
.empty-state > span { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--ink); font-family: "Libre Baskerville", Georgia, serif; font-size: 28px; }
.empty-state h3 { font-size: 30px; margin: 15px 0 0; }
.empty-state p { color: var(--muted); }
.empty-state button { border: 1px solid var(--ink); background: var(--ink); color: white; padding: 10px 14px; cursor: pointer; }

.maker-entry { padding: 92px 4% 105px; scroll-margin-top: 24px; border-top: 9px solid #704033; background: rgba(235,224,196,.76); }
.about-page .maker-entry { padding-bottom: 46px; }
.maker-paper { position: relative; padding: 34px 42px 38px; overflow: hidden; border: 2px solid #5d482f; background-color: #dcc79a; background-image: radial-gradient(circle at 14% 21%, rgba(89,55,25,.09) 0 1px, transparent 2px), radial-gradient(circle at 78% 72%, rgba(89,55,25,.07) 0 1px, transparent 2px), linear-gradient(rgba(255,255,255,.22), rgba(102,61,24,.04)); background-size: 31px 33px, 41px 39px, auto; box-shadow: 7px 8px 0 #9c8757, inset 0 0 52px rgba(81,50,24,.12); }
.maker-paper::before, .maker-paper::after { content: "❦   ·   ✦   ·   ❦   ·   ✦   ·   ❦"; position: absolute; z-index: 0; left: 42px; right: 42px; color: #8f6b32; font-family: "IM Fell English", Georgia, serif; font-size: 15px; letter-spacing: .22em; text-align: center; pointer-events: none; }
.maker-paper::before { top: 7px; }
.maker-paper::after { bottom: 7px; transform: rotate(180deg); }
.maker-paper > * { position: relative; z-index: 1; }
.maker-ledger-head { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0 13px; border-bottom: 3px double var(--ink); color: #5f513e; font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.maker-ledger-head span:last-child { color: var(--rust); }
.maker-entry-head { padding: 24px 0 19px; border-bottom: 1px solid rgba(44,37,29,.34); }
.maker-entry-head .eyebrow { margin-bottom: 8px; }
.maker-entry-head h2 { color: var(--teal); font-family: "IM Fell English SC", Georgia, serif; font-size: clamp(48px, 6vw, 76px); font-weight: 400; letter-spacing: -.025em; }
.maker-entry-head > p:last-child { margin: 5px 0 0; color: #695a45; font-family: "Special Elite", monospace; font-size: 13px; letter-spacing: .07em; }
.maker-story { padding: 27px 0 8px; font-family: "IM Fell English", Georgia, serif; font-size: 19px; line-height: 1.58; }
.maker-story::after { content: ""; display: block; clear: both; }
.maker-portrait-block { position: relative; z-index: 3; float: left; width: min(42%, 430px); margin: 2px 34px 20px 0; }
.maker-portrait-block img { display: block; width: 100%; height: auto; border: 1px solid #5d482f; box-shadow: 6px 7px 0 rgba(87,61,33,.2); transform: rotate(-.65deg); }
.maker-portrait-block figcaption { display: table; margin: 14px auto 0; padding: 6px 12px 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); color: #665640; font-family: "Special Elite", monospace; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.maker-story blockquote { position: relative; z-index: 1; margin: 0 0 21px; padding: 14px 18px; border-top: 1px solid #a17c3a; border-bottom: 1px solid #a17c3a; color: var(--teal); background: rgba(248,238,209,.35); font-family: "IM Fell English", Georgia, serif; font-size: 23px; font-style: italic; line-height: 1.35; }
.maker-story blockquote::before { content: "“"; position: absolute; left: 3px; top: -7px; color: var(--rust); font-size: 38px; }
.maker-story > h3, .maker-mission h3 { display: table; margin: 17px 0 13px; padding: 7px 15px 5px; border: 1px solid var(--ink); color: var(--ink); background: rgba(189,156,94,.42); font-family: "Special Elite", monospace; font-size: 13px; font-weight: 500; letter-spacing: .09em; line-height: 1.2; text-transform: uppercase; transform: rotate(-.35deg); }
.maker-story > p { margin: 0 0 14px; }
.maker-story > p::before { content: "✦"; margin-right: 8px; color: var(--gold); font-size: 12px; }
.maker-mission { margin: 20px 0 15px; padding: 15px 18px 16px; border: 1px solid var(--rust); background: rgba(150,61,47,.045); }
.maker-mission h3 { margin-top: -30px; color: var(--paper-light); background: var(--rust); transform: rotate(.25deg); }
.maker-mission p { margin: 0; }
.maker-field-notes { display: flex; flex-wrap: wrap; gap: 9px 25px; margin: 17px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(44,37,29,.38); list-style: none; color: #665640; font-family: "Special Elite", monospace; font-size: 12px; letter-spacing: .03em; }
.maker-field-notes li::before { content: "✦"; margin-right: 8px; color: var(--gold); }
.maker-field-notes strong { color: var(--ink); font-weight: 500; text-transform: uppercase; }
.maker-contact { clear: both; display: grid; gap: 24px; margin-top: 24px; padding-top: 22px; border-top: 3px double var(--ink); }
.maker-contact .eyebrow { margin-bottom: 7px; }
.maker-contact h3 { margin: 0 0 5px; color: var(--teal); font-family: "IM Fell English SC", Georgia, serif; font-size: 31px; font-weight: 400; }
.maker-contact p:last-child { margin: 0; color: #665640; font-size: 15px; }
.maker-email { display: inline-block; margin-top: 5px; color: var(--rust); font-family: "Libre Baskerville", Georgia, serif; font-size: 14px; font-weight: 700; letter-spacing: -.025em; line-height: 1.35; overflow-wrap: anywhere; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.dispatch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dispatch-card { position: relative; min-height: 210px; display: flex; flex-direction: column; justify-content: center; padding: 30px 82px 30px 32px; overflow: hidden; border: 2px solid var(--ink); color: var(--paper-light); background: #4d5a49; box-shadow: 5px 6px 0 rgba(56,41,28,.46); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.dispatch-card::after { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(241,226,189,.55); pointer-events: none; }
.dispatch-card:hover, .dispatch-card:focus-visible { transform: translate(-3px,-3px) rotate(-.35deg); box-shadow: 9px 10px 0 rgba(56,41,28,.46); outline: 3px solid var(--paper-light); outline-offset: 3px; }
.dispatch-etsy { background: #7b4532; }
.dispatch-card small { position: relative; z-index: 1; color: #e3c978; font-family: "Special Elite", monospace; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.dispatch-card strong { position: relative; z-index: 1; margin: 8px 0; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(27px, 3vw, 38px); font-weight: 700; line-height: 1.08; }
.dispatch-card em { position: relative; z-index: 1; max-width: 470px; color: #eee4ce; font-size: 16px; font-style: normal; line-height: 1.45; }
.dispatch-mark { position: absolute; z-index: 1; right: 26px; top: 50%; color: rgba(231,204,132,.82); font-family: "Libre Baskerville", Georgia, serif; font-size: 54px; transform: translateY(-50%) rotate(9deg); }

.field-notes { margin: 0 4% 90px; padding: 55px 5%; color: var(--paper-light); background: #294735; display: grid; grid-template-columns: 1fr 1fr auto; gap: 45px; align-items: center; }
.field-notes h2 { max-width: 470px; font-size: clamp(36px, 4vw, 52px); }
.field-notes > p { color: #cfd6ce; max-width: 520px; }
.stamp { width: 132px; height: 132px; border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -7px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gold); transform: rotate(7deg); text-align: center; line-height: 1.35; }
.stamp span { font-size: 9px; letter-spacing: .12em; }
.stamp strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 17px; }

footer { max-width: 1160px; margin: 0 auto; padding: 25px 30px 36px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
footer p { margin: 0; }

.profile-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: var(--paper-light); box-shadow: none; }
.profile-dialog::backdrop { background: rgba(16, 24, 21, .7); backdrop-filter: blur(3px); }
.dialog-close { position: fixed; z-index: 5; width: 46px; height: 46px; right: 24px; top: 24px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-family: "Libre Baskerville", Georgia, serif; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.profile { position: relative; min-height: 720px; padding: 26px 32px 24px; background-color: var(--paper-light); background-image: linear-gradient(90deg, transparent 0, transparent 31px, rgba(150,61,47,.18) 31px, rgba(150,61,47,.18) 33px, transparent 33px), repeating-linear-gradient(0deg, rgba(47,66,53,.045) 0, rgba(47,66,53,.045) 1px, transparent 1px, transparent 29px); }
.profile::before { content: ""; position: absolute; inset: 12px; border: 2px solid var(--ink); border-radius: 14px 18px 13px 20px; pointer-events: none; }
.profile::after { content: "NATURAL HISTORY RECORD · 2026"; position: absolute; top: 34px; left: 49px; color: var(--teal); font-family: "Roboto Condensed", Arial, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .14em; transform: none; pointer-events: none; }
.adopted-stamp { position: relative; z-index: 3; width: max-content; max-width: calc(100% - 110px); display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 13px; margin: 1px auto 12px; padding: 7px 18px 6px; border: 3px double var(--rust); color: var(--rust); background: rgba(241,226,189,.9); font-family: "Special Elite", monospace; text-align: center; text-transform: uppercase; transform: rotate(-1.4deg); box-shadow: 0 0 0 2px rgba(143,79,53,.16); }
.adopted-stamp span, .adopted-stamp small { font-size: 9px; letter-spacing: .09em; }
.adopted-stamp strong { padding: 0 13px; border-inline: 1px solid currentColor; font-size: 22px; line-height: 1.1; letter-spacing: .13em; }
.available-adopt-cta { position: relative; z-index: 3; width: min(760px, calc(100% - 110px)); display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 3px 22px; align-items: center; margin: 4px auto 18px; padding: 16px 22px 15px; border: 2px solid #151b18; color: #151b18; background: #e1c476; box-shadow: 5px 5px 0 #425345; text-decoration: none; transform: rotate(-.35deg); transition: transform .2s ease, box-shadow .2s ease; }
.available-adopt-cta:hover, .available-adopt-cta:focus-visible { transform: translate(-2px,-2px) rotate(-.35deg); box-shadow: 6px 6px 0 #425345; outline: 2px solid #151b18; outline-offset: 3px; }
.available-adopt-cta.is-adopted { background: #e8e1cf; }
.available-adopt-cta span { grid-column: 1; font-family: "Special Elite", monospace; font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.available-adopt-cta strong { grid-column: 1; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; }
.available-adopt-cta b { grid-column: 2; grid-row: 1 / 3; font-size: 34px; }
.profile-pager { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 18px; width: min(1040px, calc(100% - 110px)); margin: 4px auto 15px; padding: 9px 0 13px; border-bottom: 1px solid rgba(31,41,34,.35); }
.profile-pager button, .profile-pager > a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--ink); color: var(--ink); background: rgba(244,240,226,.88); text-align: left; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 color-mix(in srgb, var(--profile-color) 38%, var(--paper-light)); }
.profile-pager button:last-child, .profile-pager > a:last-child { grid-template-columns: 1fr auto; text-align: right; }
.profile-pager button:hover, .profile-pager button:focus-visible, .profile-pager > a:hover, .profile-pager > a:focus-visible { color: var(--paper-light); background: var(--teal); outline: 2px solid var(--ink); outline-offset: 3px; }
.profile-pager button > span, .profile-pager > a > span { grid-row: 1 / 3; font-size: 26px; line-height: 1; }
.profile-pager button:last-child > span, .profile-pager > a:last-child > span { grid-column: 2; }
.profile-pager small, .profile-pager strong { grid-column: 2; min-width: 0; }
.profile-pager button:last-child small, .profile-pager button:last-child strong, .profile-pager > a:last-child small, .profile-pager > a:last-child strong { grid-column: 1; }
.profile-pager small, .profile-pager-status small { font-family: "Special Elite", monospace; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.profile-pager strong { overflow: hidden; font-family: "Libre Baskerville", Georgia, serif; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.profile-pager-status { display: flex; flex-direction: column; align-items: center; color: var(--muted); text-align: center; white-space: nowrap; }
.profile-pager-status strong { color: var(--ink); font-family: "Libre Baskerville", Georgia, serif; font-size: 17px; }
.profile-masthead { position: relative; text-align: center; padding: 2px 70px 18px; }
.profile-logo { width: 92px; height: 74px; object-fit: contain; mix-blend-mode: multiply; }
.entry-ribbon { display: table; margin: -4px auto 9px; padding: 6px 22px; color: #f7f4e8; background: #315b45; border: 1px solid var(--ink); border-radius: 0; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transform: none; }
.profile-masthead h1, .profile-masthead h2 { max-width: none; margin: 4px auto; font-family: "Libre Baskerville", Georgia, serif; font-size: clamp(50px, 7vw, 88px); font-weight: 700; letter-spacing: -.03em; text-align: center; text-transform: uppercase; }
.classification { margin: 4px 0 0; font-size: 20px; }
.classification span { color: var(--profile-color); padding: 0 8px; }
.journal-divider { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 10px; margin: -4px auto 30px; width: min(780px, 82%); color: var(--profile-color); }
.journal-divider i { height: 0; border-top: 2px dashed currentColor; }
.journal-divider b { color: var(--ink); font-family: "Special Elite", monospace; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.journal-divider span { font-family: "Libre Baskerville", Georgia, serif; font-size: 20px; text-shadow: 1px 1px 0 var(--ink); }
.profile-sheet { display: grid; grid-template-columns: minmax(250px,.9fr) minmax(420px,1.42fr) minmax(260px,.95fr); gap: 22px; align-items: start; }
.profile-column { display: flex; flex-direction: column; gap: 32px; }
.note-card { position: relative; padding: 30px 22px 22px; border: 1px solid #425345; border-radius: 0; background: rgba(249,247,238,.96); box-shadow: 3px 3px 0 color-mix(in srgb, var(--profile-color) 28%, var(--paper-light)); transform: none; }
.note-card::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; border-bottom: 1px dashed color-mix(in srgb, var(--profile-color) 50%, transparent); pointer-events: none; }
.profile-column-right .note-card { transform: none; }
.note-card h2, .note-card h3 { display: table; margin: -44px 0 18px -10px; padding: 7px 16px; border: 0; color: #f7f4e8; background: #315b45; font-family: "Roboto Condensed", Arial, sans-serif; font-size: 13px; font-weight: 700; line-height: 1.25; letter-spacing: .11em; text-align: left; text-transform: uppercase; transform: none; }
.note-card h2::before, .note-card h2::after, .note-card h3::before, .note-card h3::after { content: ""; }
.note-card h2::before, .note-card h3::before { margin-right: 8px; }
.note-card h2::after, .note-card h3::after { margin-left: 8px; }
.note-card p { margin: 0; font-size: 18px; line-height: 1.58; letter-spacing: .012em; }
.story-card p + p { margin-top: 13px; padding-top: 13px; border-top: 1px dashed rgba(33,29,30,.3); }
.intro-card { margin-top: 24px; }
.intro-card p { font-size: 19px; line-height: 1.55; }
.profile-specimen { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1; margin: 0; justify-self: center; overflow: hidden; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper-light); box-shadow: 7px 7px 0 color-mix(in srgb, var(--profile-color) 55%, var(--paper-light)); }
.profile-specimen::before { content: ""; position: absolute; inset: 0; z-index: 1; background: url("assets/vintage-photo-overlay.png") center / cover; opacity: .55; mix-blend-mode: multiply; pointer-events: none; }
.profile-specimen::after { content: ""; position: absolute; inset: 9px; z-index: 1; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; pointer-events: none; }
.profile-specimen img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; filter: sepia(.2) saturate(.82) contrast(1.04); }
.doodle { display: none; }
.doodle-one { top: 12px; left: 17px; transform: rotate(-12deg); }
.doodle-two { right: 20px; bottom: 20px; transform: rotate(8deg); }
.vitals { margin-top: 24px; }
.vitals dl { margin: 0; }
.vitals dl div { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px dashed rgba(33,29,30,.35); font-size: 18px; line-height: 1.45; }
.vitals dl div::before { content: "✦"; position: absolute; left: 0; top: 11px; color: var(--profile-color); font-size: 11px; }
.vitals dl div:last-child { border-bottom: 0; }
.vitals dt { display: inline; font-family: "Special Elite", monospace; font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.vitals dt::after { content: ": "; }
.vitals dd { display: inline; margin: 0; }
.profile-lower { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 22px; margin-top: 45px; }
.profile-lower .note-card:nth-child(2), .profile-lower .note-card:nth-child(3) { transform: none; }
.field-bullets { margin: 0; padding: 0; list-style: none; }
.field-bullets li { position: relative; padding: 8px 0 9px 24px; font-size: 18px; line-height: 1.5; letter-spacing: .012em; }
.field-bullets li + li { border-top: 1px dotted rgba(33,29,30,.35); }
.field-bullets li::before { content: "✦"; position: absolute; left: 1px; top: 10px; color: var(--profile-color); font-family: "Libre Baskerville", Georgia, serif; font-size: 13px; text-shadow: .5px .5px 0 var(--ink); }
.journal-divider-bottom { margin: 30px auto 14px; }
.profile-actions { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 42px auto 22px; width: min(900px, 92%); }
.profile-actions a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px 18px; align-items: center; padding: 17px 20px; border: 2px solid var(--ink); color: var(--ink); background: color-mix(in srgb, var(--profile-color) 28%, var(--paper-light)); box-shadow: 4px 4px 0 color-mix(in srgb, var(--profile-color) 54%, var(--paper-light)); text-decoration: none; transition: transform .2s ease; }
.profile-actions a:hover, .profile-actions a:focus-visible { transform: translate(-2px,-2px); outline: 2px solid var(--ink); outline-offset: 3px; }
.profile-actions small { grid-column: 1; font-family: "Special Elite", monospace; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.profile-actions strong { grid-column: 1; font-family: "Libre Baskerville", Georgia, serif; font-size: 18px; font-weight: 700; }
.profile-actions span { grid-column: 2; grid-row: 1 / 3; font-size: 26px; }
.profile-footer { position: relative; max-width: none; margin: 24px 0 0; padding: 11px 18px; border: 2px solid var(--ink); border-radius: 0; background: color-mix(in srgb, var(--profile-color) 24%, white); display: flex; align-items: center; justify-content: space-between; gap: 15px; color: var(--ink); font-family: "Roboto Condensed", Arial, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .07em; }
.profile-footer strong { font-family: "Libre Baskerville", Georgia, serif; font-size: 17px; font-weight: 700; }

.seo-record-page { background: var(--paper-light); }
.standalone-record { padding: 28px 2.5% 60px; }
.standalone-profile { width: min(1440px, 100%); margin: 0 auto; box-shadow: 0 12px 35px rgba(31,41,34,.12); }
.standalone-profile .classification a { color: inherit; text-decoration-color: var(--profile-color); text-underline-offset: 4px; }
.seo-adopted-stamp { margin-top: 3px; }
.standalone-family-directory { min-height: calc(100vh - 113px); padding-top: 34px; }
.seo-back-link { display: inline-flex; margin-bottom: 25px; text-decoration: none; }
.seo-family-header { position: relative; min-height: 230px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; overflow: hidden; padding: 34px 40px; color: var(--paper-light); background-image: linear-gradient(90deg, rgba(48,38,25,.92), rgba(48,38,25,.58) 55%, rgba(48,38,25,.38)), var(--chapter-image); background-size: cover; background-position: center; }
.seo-family-header::after { content: ""; position: absolute; inset: 13px; border: 1px dashed rgba(255,255,255,.65); pointer-events: none; }
#family-stompling .seo-family-header { background-position: center 18%; }
.seo-family-header .chapter-tab, .seo-family-header .chapter-title { position: relative; z-index: 1; }
.standalone-family-directory .specimen-row:not(.is-adopted) .specimen-record-link { grid-template-columns: 156px minmax(0, 1fr) minmax(105px, 140px); }
.seo-site-footer a { color: inherit; }

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

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .hero-specimen { width: min(620px, 100%); min-height: 470px; margin-inline: auto; }
  .map-heading, .directory-heading { align-items: start; flex-direction: column; }
  .habitat-map { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .map-territory { position: relative; inset: auto; width: auto; height: auto; min-height: 370px; transform: rotate(0); }
  .territory-stompling, .territory-burrowfolk, .territory-brineborn, .territory-netherkin { grid-column: auto; }
  .territory-arboral { grid-column: 1 / -1; width: min(54%, 560px); justify-self: center; }
  .map-compass { display: none; }
  .index-search { width: min(520px, 100%); }
  .family-chapter summary { min-height: 210px; }
  .field-notes { grid-template-columns: 1fr 1fr; }
  .stamp { grid-column: 2; justify-self: end; }
  .profile-sheet { grid-template-columns: 1fr 1.25fr; }
  .profile-specimen { align-self: start; }
  .profile-column-right { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .profile-lower { grid-template-columns: 1fr; }
  .specimen-row.is-adopted button, .specimen-row.is-adopted .specimen-record-link { grid-template-columns: 156px minmax(0, 1fr) 170px; gap: 20px; }
  .directory-adopted-stamp { font-size: 33px; }
  .maker-contact { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 620px) {
  body { font-size: 17px; }
  .site-header { min-height: 88px; padding-inline: 12px; }
  .brand img { width: 88px; height: 68px; }
  main { padding-inline: 12px; }
  .issue { display: none; }
  .header-meta { gap: 0; }
  .header-nav { gap: 5px; }
  .maker-nav { padding: 7px 8px 6px; font-size: 9px; }
  .hero { margin: 16px 0 75px; padding: 58px 22px 48px 58px; min-height: 0; }
  .cover-spine { width: 40px; }
  .cover-spine span { font-size: 8px; }
  .cover-logo { width: 154px; height: 142px; padding: 12px; }
  .book-cover h1 { font-size: 48px; }
  .book-cover::before { inset: 10px; }
  .book-cover::after { display: none; }
  h1 { font-size: 50px; }
  .hero-specimen { min-height: 390px; margin-top: 10px; }
  .hero-photo { width: 94%; }
  .hero-specimen > p { width: 94%; flex-direction: column; gap: 2px; }
  .map-section, .directory { padding-inline: 4px; }
  .map-heading, .directory-heading { margin-inline: 8px; }
  .map-paper { padding: 18px; }
  .habitat-map { grid-template-columns: 1fr; }
  .map-territory, .territory-arboral { grid-column: auto; width: 100%; height: auto; min-height: 390px; }
  .territory-copy strong { font-size: 39px; }
  .territory-copy span { font-size: 17px; }
  .map-footnote { width: auto; max-width: none; margin-inline: 15px; }
  .directory { padding-top: 0; }
  .maker-entry { padding: 66px 4px 75px; }
  .maker-paper { padding: 29px 21px 34px; }
  .maker-paper::before, .maker-paper::after { left: 20px; right: 20px; letter-spacing: .06em; }
  .maker-ledger-head { flex-direction: column; gap: 5px; }
  .maker-entry-head h2 { font-size: 50px; }
  .maker-story { font-size: 18px; }
  .maker-portrait-block { float: none; width: min(100%, 430px); margin: 0 auto 27px; }
  .maker-story blockquote { font-size: 21px; }
  .dispatch-cards { grid-template-columns: 1fr; }
  .family-chapter summary { min-height: 230px; grid-template-columns: 1fr auto; padding: 32px 25px; }
  .chapter-tab { position: absolute; top: 26px; left: 25px; }
  .chapter-title { padding-top: 35px; }
  .chapter-title strong { font-size: 56px; }
  .chapter-toggle { font-size: 0; }
  .chapter-toggle b { margin: 0; }
  .chapter-intro { grid-template-columns: 1fr; }
  .chapter-intro p + p { border-left: 0; border-top: 1px dashed rgba(33,29,30,.4); }
  .specimen-list { padding-inline: 15px; }
  .specimen-row button, .specimen-record-link { grid-template-columns: 106px 1fr; gap: 16px; padding-block: 18px; }
  .specimen-portrait { width: 102px; }
  .specimen-thumb { width: 92px; }
  .specimen-copy h2, .specimen-copy h4 { font-size: 32px; }
  .specimen-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 16px; }
  .specimen-row.is-adopted button, .specimen-row.is-adopted .specimen-record-link, .standalone-family-directory .specimen-row:not(.is-adopted) .specimen-record-link { grid-template-columns: 106px minmax(0, 1fr); gap: 16px; }
  .directory-available-label { grid-column: 2; justify-self: start; }
  .directory-adopted-stamp { grid-column: 2; justify-self: start; margin-top: -7px; padding: 5px 10px 3px; font-size: 25px; transform: rotate(-4deg); }
  .specimen-meta span:last-child { display: none; }
  .field-notes { margin: 0 0 60px; padding: 42px 28px; grid-template-columns: 1fr; gap: 15px; }
  .stamp { grid-column: auto; justify-self: start; margin-top: 18px; }
  footer { margin-inline: 18px; padding-inline: 0; flex-direction: column; }
  .profile-dialog { width: 100vw; height: 100dvh; max-height: none; }
  .dialog-close { right: 17px; top: 17px; }
  .profile { padding: 22px 18px 18px; }
  .profile::before { inset: 7px; }
  .profile-masthead { padding-inline: 35px; }
  .adopted-stamp { max-width: calc(100% - 60px); grid-template-columns: 1fr; gap: 4px; margin-top: 4px; }
  .adopted-stamp strong { padding: 3px 0; border-inline: 0; border-block: 1px solid currentColor; }
  .available-adopt-cta { width: calc(100% - 60px); margin-top: 4px; }
  .profile-pager { grid-template-columns: 1fr 1fr; width: calc(100% - 34px); gap: 9px; margin-top: 58px; }
  .profile-pager-status { grid-column: 1 / -1; grid-row: 1; }
  .profile-pager button, .profile-pager > a { grid-row: 2; }
  .profile-pager strong { font-size: 12px; }
  .profile-logo { width: 75px; height: 60px; }
  .profile-masthead h1, .profile-masthead h2 { font-size: clamp(48px, 17vw, 76px); overflow-wrap: anywhere; }
  .standalone-record { padding: 12px 0 35px; }
  .standalone-family-directory { padding-top: 18px; }
  .seo-family-header { min-height: 230px; grid-template-columns: 1fr; padding: 32px 25px; }
  .classification { font-size: 17px; }
  .journal-divider { width: 92%; margin-bottom: 28px; }
  .journal-divider b { font-size: 9px; }
  .profile-sheet { grid-template-columns: 1fr; }
  .profile-specimen { grid-row: 1; width: min(100%, 520px); justify-self: center; }
  .profile-column-left { grid-row: 2; }
  .profile-column-right { grid-column: auto; display: flex; }
  .intro-card, .vitals { margin-top: 22px; }
  .note-card p, .field-bullets li, .vitals dl div { font-size: 17px; }
  .profile-footer { flex-direction: column; text-align: center; border-radius: 18px; }
  .profile-actions { grid-template-columns: 1fr; width: 94%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .territory-motion, .family-track-layer { display: none !important; }
}
