/* ==========================================================================
   International Stallion Guide — 2026
   Palette: forest ink, parchment, burnished brass. Motif: the pedigree bracket.
   ========================================================================== */

:root {
  --ink: #16241f;
  --ink-2: #213129;
  --ink-3: #2d4238;
  --paper: #f6f2ea;
  --paper-2: #eee7da;
  --card: #fffdf9;
  --line: #e0d7c8;
  --line-2: #c8baa3;
  --text: #1b2320;
  --muted: #69685f;
  --brass: #94632d;
  --brass-2: #c39152;
  --brass-soft: #f1e4cf;
  --sire: #24463b;
  --dam: #8b4935;
  --ok: #2f6b4a;
  --warn: #8b5a12;
  --err: #9a2f22;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --r: 3px;
  --shadow: 0 1px 2px rgba(22, 36, 31, .06), 0 8px 24px -12px rgba(22, 36, 31, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .18em; }
a:hover { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--ink); color: #fff; padding: .6em 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.eyebrow { font: 600 .74rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1rem; }
.lede { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  font: 600 .95rem/1 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #f6f2ea; border: 1px solid var(--ink); border-radius: var(--r);
  padding: .95em 1.5em; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .7em 1.1em; font-size: .88rem; }
.btn-brass { background: var(--brass); border-color: var(--brass); }
.btn-brass:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { background: #f6f2ea; color: var(--ink); border-color: #f6f2ea; }
.btn-light:hover { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); }
.btn-link { background: none; border: 0; padding: 0; color: var(--brass); font-weight: 600; text-decoration: underline; cursor: pointer; font: inherit; }
.arrow::after { content: "→"; transition: transform .18s; }
.arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header.is-dark { background: var(--ink); border-color: rgba(255,255,255,.08); color: #efe8db; }
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); flex: none; }
.is-dark .logo, .logo-light { color: #f3ebdd; }
.logo-mark { width: 38px; height: 38px; color: var(--ink); }
.is-dark .logo-mark, .logo-light .logo-mark { color: var(--brass); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font: 600 1.32rem/1 var(--serif); letter-spacing: -.01em; }
.logo-sub { font: 500 .62rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-top: .4em; }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav a:not(.btn) { display: block; padding: .55em .8em; font-size: .93rem; font-weight: 500; text-decoration: none; border-radius: var(--r); }
.site-nav a:not(.btn):hover { background: rgba(148, 99, 45, .1); color: inherit; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.is-dark .btn-sm { background: var(--brass); border-color: var(--brass); }
.is-dark .btn-sm:hover { background: #f6f2ea; color: var(--ink); border-color: #f6f2ea; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; border-radius: var(--r); cursor: pointer; position: relative; color: inherit; }
.nav-toggle span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .2s, top .2s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.flash { padding: .9rem 0; font-weight: 500; border-bottom: 1px solid var(--line); }
.flash-ok { background: #e3efe6; color: var(--ok); }
.flash-err { background: #f6e1dc; color: var(--err); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: #efe8db; overflow: hidden; isolation: isolate; }
.hero::before { /* pedigree bracket lattice */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cpath d='M20 80h50M70 40v80M70 40h50M70 120h50M120 20v40M120 100v40M120 20h50M120 60h50M120 100h50M120 140h50' fill='none' stroke='%23c39152' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 240px 160px;
  mask-image: linear-gradient(100deg, transparent 20%, #000 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; align-items: center; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero h1 { color: #f8f2e6; font-weight: 400; max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--brass-2); }
.hero .lede { color: #c9c3b6; font-size: 1.2rem; }
.hero .eyebrow { color: var(--brass-2); }
.search { display: flex; margin: 2rem 0 1.25rem; max-width: 560px; background: #fffdf9; border-radius: var(--r); box-shadow: 0 18px 50px -20px rgba(0,0,0,.6); }
.search input { flex: 1; min-width: 0; border: 0; background: none; padding: 1.15em 1.2em; font: 400 1.02rem var(--sans); color: var(--text); }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: 0 0 0 2px var(--brass-2), 0 18px 50px -20px rgba(0,0,0,.6); }
.search .btn { margin: 6px; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .9rem; color: #a9a497; }
.quick a { color: #efe8db; text-decoration: none; border: 1px solid rgba(239,232,219,.22); padding: .38em .85em; border-radius: var(--r); }
.quick a:hover { border-color: var(--brass-2); color: var(--brass-2); }

.cover { position: relative; justify-self: end; width: min(420px, 100%); }
.cover-card { background: #fffdf9; color: var(--text); border-radius: var(--r); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); padding: 10px 10px 0; transform: rotate(1.2deg); transition: transform .4s; }
.cover-card:hover { transform: rotate(0); }
.cover-card img, .cover-card .plate { width: 100%; aspect-ratio: 400 / 278; object-fit: cover; }
.cover-body { padding: 1.1rem .6rem 1.2rem; display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: end; }
.cover-body h2 { font-size: 1.65rem; margin: 0; } .cover-body h2 a { text-decoration: none; }
.cover-body p { margin: 0; font-size: .9rem; color: var(--muted); grid-column: 1; }
.cover-fee { grid-column: 2; grid-row: 1 / span 2; text-align: right; font: 500 .8rem/1.3 var(--sans); color: var(--muted); }
.cover-fee strong { display: block; font: 500 1.2rem var(--serif); color: var(--text); }
.cover-label { position: absolute; top: -14px; left: 22px; z-index: 2; background: var(--brass); color: #fff; font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: .7em 1em; border-radius: var(--r); }
.cover-under { position: absolute; inset: 18px -14px -14px 14px; background: var(--ink-3); border-radius: var(--r); transform: rotate(-2.5deg); z-index: -1; }

.statbar { border-top: 1px solid rgba(239,232,219,.12); }
.statbar ul { list-style: none; margin: 0; padding: 1.4rem 0; display: flex; flex-wrap: wrap; gap: 1rem 3rem; color: #b9b3a5; font-size: .92rem; }
.statbar strong { font: 500 1.5rem/1 var(--serif); color: #f6f0e3; margin-right: .4rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #e9e2d4; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.4rem; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: .6rem 0 0; color: var(--muted); max-width: 54ch; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 2.2rem 1.6rem; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.card-featured, .card-premier { border-color: color-mix(in srgb, var(--brass-2) 55%, var(--line)); }
.card-media { position: relative; display: block; overflow: hidden; border-radius: var(--r) var(--r) 0 0; background: var(--paper-2); }
.card-media img, .card-media .plate { width: 100%; aspect-ratio: 400 / 278; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-media .tag { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 .45rem; }
.card-title { font-size: 1.5rem; margin: 0 0 .25rem; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card-facts { margin: 0; font-size: .9rem; color: var(--muted); }
.card-blood { margin: .5rem 0 0; font: italic 400 1rem/1.35 var(--serif); color: var(--ink-3); }
.card-meta { margin: auto 0 0; padding-top: 1rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; font-size: .86rem; }
.card-meta > div:only-child { grid-column: 1 / -1; }
.card-meta dt { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-meta dd { margin: .15rem 0 0; font-weight: 500; }
.card-meta div:last-child:not(:only-child) { text-align: right; }

.tag { display: inline-block; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: .55em .8em; border-radius: var(--r); background: var(--paper-2); color: var(--ink); }
.tag-featured { background: #fffdf9; color: var(--brass); box-shadow: inset 0 0 0 1px var(--brass-2); }
.tag-premier { background: var(--brass); color: #fff; }
.tag-verified { background: #e2eee6; color: var(--ok); }
.tag-ink { background: var(--ink); color: #f1eadc; }

/* Name-plate shown when a stallion has no photo yet */
.plate { position: relative; display: grid; place-content: center; text-align: center; background: var(--ink-2); color: #e7dfcf; overflow: hidden; }
.plate::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(195,145,82,.35); }
.plate-mark { position: absolute; right: -10px; bottom: -6px; width: 55%; color: rgba(195,145,82,.18); }
.plate-initials { font: 400 3.3rem/1 var(--serif); color: var(--brass-2); }
.plate-name { font: 500 1.05rem/1.2 var(--serif); margin-top: .5rem; padding: 0 1.5rem; }
.plate-note { font: 600 .6rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .55; margin-top: .9rem; }
.plate.tone-1 { background: #2a2620; } .plate.tone-1 .plate-initials { color: #d0a46a; }
.plate.tone-2 { background: #3a2824; } .plate.tone-2 .plate-initials { color: #d9a98a; }
.plate-hero .plate-initials { font-size: 5.5rem; }
.plate-hero .plate-name { font-size: 1.5rem; }

/* ---------- Home blocks ---------- */
.disc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.disc { position: relative; padding: 2rem 1.6rem 1.8rem; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background .2s; }
.disc:hover { background: var(--card); color: inherit; }
.disc svg { width: 42px; height: 42px; color: var(--brass); margin-bottom: 2.2rem; }
.disc h3 { font-size: 1.55rem; margin: 0 0 .2rem; }
.disc p { margin: 0; color: var(--muted); font-size: .92rem; }
.disc .arrow { position: absolute; top: 2rem; right: 1.6rem; color: var(--brass); }

.feature-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 2rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin: .7rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }
.section-ink .ticks li::before { border-color: var(--brass-2); }
.section-ink h2 { color: #f6f0e3; }
.section-ink .lede, .section-ink .muted { color: #b9b3a5; }
.section-ink .pedigree { --pn-bg: #fffdf9; color: var(--text); }
.showcase { background: var(--card); border-radius: var(--r); padding: clamp(1rem, 2.5vw, 2rem); box-shadow: 0 30px 70px -35px rgba(0,0,0,.65); }
.showcase-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: 2.6rem; }
.showcase-head .ticks { margin-top: 0; }
@media (max-width: 980px) { .showcase-head { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: baseline; gap: .5em; text-decoration: none; background: var(--card); border: 1px solid var(--line); padding: .55em .95em; border-radius: var(--r); font-weight: 500; font-size: .95rem; }
.chips a:hover { border-color: var(--brass-2); color: var(--brass); }
.chips small { color: var(--muted); font-weight: 400; }

.az { columns: 4 200px; column-gap: 2rem; list-style: none; padding: 0; margin: 0; }
.az li { break-inside: avoid; padding: .45rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.az a { font-weight: 500; text-decoration: none; }
.az span { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.owner-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; align-items: center; }
.plan-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(239,232,219,.14); border: 1px solid rgba(239,232,219,.14); }
.plan-mini div { background: var(--ink); padding: 1.6rem 1.3rem; }
.plan-mini h3 { font-size: 1.2rem; color: #f6f0e3; margin: 0 0 .3rem; }
.plan-mini .price { font: 500 1.9rem/1.1 var(--serif); color: var(--brass-2); margin: .6rem 0 .5rem; }
.plan-mini p { font-size: .88rem; color: #b9b3a5; margin: 0; }

/* ---------- Page header / breadcrumbs ---------- */
.page-head { padding: 2.2rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: .4rem 0 .6rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.crumbs a { text-decoration: none; }

/* ---------- Directory ---------- */
.dir { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 0 5rem; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters details { border: 0; }
.filters summary { display: none; }
.filters h2 { font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.fgroup { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.fgroup legend, .fgroup > label:first-child { font-weight: 600; font-size: .9rem; margin-bottom: .6rem; display: block; padding: 0; }
fieldset.fgroup { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 1.1rem 0; min-width: 0; }
fieldset.fgroup legend { float: left; width: 100%; }
fieldset.fgroup legend + * { clear: left; }
.fopt { display: flex; align-items: center; gap: .55rem; font-size: .93rem; padding: .22rem 0; cursor: pointer; }
.fopt input { accent-color: var(--ink); width: 16px; height: 16px; }
.fopt small { margin-left: auto; color: var(--muted); }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--text); }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.active-filters a { font-size: .82rem; text-decoration: none; background: var(--ink); color: #f6f0e3; padding: .35em .7em; border-radius: var(--r); }
.active-filters a::after { content: " ×"; opacity: .7; }
.empty { padding: 4rem 2rem; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); }
.intro-copy { max-width: 70ch; color: var(--muted); }

/* ---------- Forms (shared) ---------- */
.field { display: block; margin-bottom: 1.1rem; }
.field > span, .label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field small, .hint { display: block; color: var(--muted); font-size: .82rem; margin-top: .3rem; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=search], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--text); background: #fffdf9;
  border: 1px solid var(--line-2); border-radius: var(--r); padding: .72em .85em; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(195,145,82,.22); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316241f' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9em center; padding-right: 2.2em; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 1.1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; cursor: pointer; }
.checks input { accent-color: var(--ink); width: 17px; height: 17px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-section { padding: 2rem 0; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section > h2 { font-size: 1.45rem; margin-bottom: .3rem; }
.form-section > p { color: var(--muted); font-size: .93rem; }
.errors { background: #f6e1dc; color: var(--err); padding: 1rem 1.2rem; border-radius: var(--r); margin-bottom: 1.4rem; }
.errors ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 75px); }
.auth-art { background: var(--ink); color: #e9e2d4; padding: clamp(2.5rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; opacity: .6; background: inherit; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cpath d='M20 80h50M70 40v80M70 40h50M70 120h50M120 20v40M120 100v40M120 20h50M120 60h50M120 100h50M120 140h50' fill='none' stroke='%23c39152' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E"); }
.auth-art > * { position: relative; }
.auth-art h1 { color: #f6f0e3; font-weight: 400; font-size: clamp(2rem, 3.5vw, 3rem); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: clamp(2rem, 5vw, 4rem) 1.25rem; }
.auth-form form { width: min(420px, 100%); }

/* ---------- Stallion page ---------- */
.st-head { padding: 1.8rem 0 2.2rem; }
.st-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-top: 1.4rem; }
.st-title h1 { margin: 0; }
.st-aka { font: italic 400 1.35rem var(--serif); color: var(--muted); margin: .3rem 0 0; }
.st-facts { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 1rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.st-facts li strong { color: var(--text); font-weight: 600; }
.st-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.st-blood { font: italic 400 clamp(1.15rem, 2vw, 1.45rem)/1.35 var(--serif); color: var(--ink-3); margin: .7rem 0 0; }
.st-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 3rem; align-items: start; padding-bottom: 3.5rem; }
.gallery-main { position: relative; margin: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; }
.gallery-main img, .gallery-main .plate { width: 100%; aspect-ratio: 400 / 278; object-fit: cover; }
.gallery-main figcaption { padding: .7rem 0 0; font-size: .86rem; color: var(--muted); background: var(--paper); }
.gallery-main button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; margin-top: .9rem; list-style: none; padding: 0; }
.thumbs button { all: unset; cursor: pointer; display: block; border-radius: var(--r); overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; }
.thumbs button[aria-current="true"] { outline-color: var(--brass); }
.thumbs img { aspect-ratio: 400 / 278; object-fit: cover; width: 100%; }

.panel { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.panel-fee { padding: 1.6rem 1.6rem 1.3rem; border-bottom: 1px solid var(--line); }
.panel-fee .label { font: 600 .7rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.panel-fee .fee { font: 500 2.2rem/1.1 var(--serif); margin: .45rem 0 .3rem; }
.panel-fee p { margin: 0; color: var(--muted); font-size: .9rem; }
.panel dl { margin: 0; padding: .5rem 1.6rem; }
.panel dl div { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.panel dl div:last-child { border-bottom: 0; }
.panel dt { color: var(--muted); }
.panel dd { margin: 0; font-weight: 500; }
.semen { display: flex; flex-wrap: wrap; gap: .35rem; }
.semen span { font-size: .8rem; font-weight: 600; background: var(--paper-2); padding: .3em .6em; border-radius: var(--r); }
.panel-actions { padding: 1.3rem 1.6rem 1.6rem; display: grid; gap: .6rem; border-top: 1px solid var(--line); }
.panel-actions .btn { width: 100%; }
.panel-note { padding: 0 1.6rem 1.4rem; margin: 0; font-size: .8rem; color: var(--muted); }

.st-section { padding: clamp(3rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
.st-section > .wrap > header { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.st-section h2 { margin: 0; }
.st-story { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 4rem; }
.prose p { font-size: 1.06rem; line-height: 1.75; }
.prose p:first-child { font: 400 1.3rem/1.55 var(--serif); color: var(--ink-2); }
.honours { list-style: none; padding: 0; margin: 0; counter-reset: h; }
.honours li { position: relative; padding: .9rem 0 .9rem 2.4rem; border-bottom: 1px solid var(--line); font-size: .97rem; }
.honours li::before { counter-increment: h; content: counter(h, decimal-leading-zero); position: absolute; left: 0; top: .95rem; font: 500 .85rem var(--serif); color: var(--brass); }
.aside-box { background: var(--paper-2); padding: 1.4rem 1.5rem; border-radius: var(--r); margin-top: 2rem; font-size: .93rem; }
.aside-box h3 { font-size: 1.1rem; }
.aside-box dl { margin: 0; } .aside-box dt { font-weight: 600; margin-top: .6rem; } .aside-box dd { margin: 0; color: var(--muted); }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video button:hover img { opacity: 1; }
.video .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: rgba(22,36,31,.85); display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255,255,255,.12); }
.video .play::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 1.4rem; }

.claim { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; background: var(--brass-soft); border: 1px solid #e3cfae; border-radius: var(--r); padding: 1.5rem 1.8rem; }
.claim h2 { font-size: 1.35rem; margin: 0 0 .2rem; }
.claim p { margin: 0; color: #6b5537; }
.source-line { font-size: .82rem; color: var(--muted); margin-top: 1.5rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,18,16,.94); display: none; place-items: center; padding: 3rem 1rem; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; width: auto; max-width: min(1100px, 100%); }
.lightbox p { color: #d8d1c2; text-align: center; margin-top: 1rem; font-size: .92rem; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lb-close { top: 1.2rem; right: 1.2rem; } .lb-prev { left: 1.2rem; top: 50%; } .lb-next { right: 1.2rem; top: 50%; }

/* ==========================================================================
   Pedigree chart — bracket tree. Subject → parents → grandparents → great-grandparents
   ========================================================================== */
.pedigree { --gap: 26px; --pn-bg: var(--card); font-size: .95rem; overflow-x: auto; padding-bottom: .5rem; }
.ped-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-bottom: .8rem; padding-left: calc(180px + var(--gap)); min-width: 860px; }
.ped-cols span { font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pt { display: flex; align-items: center; position: relative; }
.pt-root { min-width: 860px; }
.pc { display: flex; flex-direction: column; justify-content: center; flex: 1; padding-left: var(--gap); position: relative; }
.pc > .pt { flex: 1; padding: 4px 0; }
.pc > .pt::before { content: ""; position: absolute; left: calc(var(--gap) / -2); width: calc(var(--gap) / 2); top: 50%; border-top: 1px solid var(--line-2); }
.pc > .pt::after { content: ""; position: absolute; left: calc(var(--gap) / -2); border-left: 1px solid var(--line-2); }
.pc > .pt:first-child::after { top: 50%; bottom: 0; }
.pc > .pt:last-child::after { top: 0; bottom: 50%; }
.pn { position: relative; flex: 0 0 auto; width: 100%; background: var(--pn-bg); border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--r); padding: .55rem .8rem .6rem; line-height: 1.25; }
.pt-root > .pn.g0 { flex: 0 0 180px; }
.pt > .pn.g1 { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); }
.pt > .pn.g2 { flex: 0 0 calc((100% - var(--gap)) / 2); }
.pt > .pn.g3 { flex: 1 1 auto; }
.pt:has(> .pc) > .pn::after { content: ""; position: absolute; right: calc(var(--gap) / -2 - 1px); width: calc(var(--gap) / 2); top: 50%; border-top: 1px solid var(--line-2); }
.pn.m { border-left-color: var(--sire); }
.pn.f { border-left-color: var(--dam); }
.pn.unknown { background: transparent; border-style: dashed; border-left-style: solid; }
.pn.unknown .pn-name { color: var(--muted); font-weight: 400; font-style: italic; font-family: var(--sans); font-size: .85rem; }
.pn-label { display: block; font: 600 .6rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.pn-name { font: 500 1rem/1.25 var(--serif); color: var(--text); text-decoration: none; }
a.pn-name { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .2s, color .2s; }
a.pn-name:hover { color: var(--brass); background-size: 100% 1px; }
.pn-tag { font: 600 .66rem/1 var(--sans); letter-spacing: .06em; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: .2em .4em; border-radius: 2px; vertical-align: 2px; white-space: nowrap; }
.pn-sub { display: block; font-size: .78rem; color: #c9c1b1; margin-top: .3rem; }
.pn.g0 { background: var(--ink); border-color: var(--ink); color: #f6f0e3; padding: 1rem; }
.pn.g0 .pn-name { color: #f8f2e6; font-size: 1.3rem; }
.pn.g0 .pn-label { color: var(--brass-2); }
.pn.g1 { padding: .8rem .95rem; }
.pn.g1 .pn-name { font-size: 1.22rem; }
.pn.g2 .pn-name { font-size: 1.06rem; }
.pn.g3 { padding: .4rem .7rem .45rem; }
.pn.g3 .pn-label { display: none; }
.pn.g3 .pn-name { font-size: .95rem; }
.ped-legend { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.ped-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: .45rem; vertical-align: -1px; }
.ped-legend .lm::before { background: var(--sire); } .ped-legend .lf::before { background: var(--dam); }
.ped-summary { font-size: .95rem; color: var(--muted); max-width: 75ch; margin-top: 1.2rem; }

/* ---------- Plans page ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); }
.plan { padding: 2.2rem 2rem 2.4rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.plan:last-child { border-right: 0; }
.plan-pop { background: var(--ink); color: #e9e2d4; margin: -1px; border-radius: var(--r); }
.plan-pop h3, .plan-pop .price { color: #f8f2e6; }
.plan-pop .ticks li::before { border-color: var(--brass-2); }
.plan-pop .muted { color: #b9b3a5; }
.plan .ribbon { position: absolute; top: -12px; left: 2rem; }
.plan h3 { font-size: 1.6rem; margin: 0; }
.price { font: 400 3rem/1 var(--serif); margin: 1.2rem 0 .3rem; }
.price small { font: 400 .95rem var(--sans); color: var(--muted); }
.plan .ticks { flex: 1; font-size: .95rem; }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font: 500 1.15rem var(--serif); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--brass); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* ---------- Dashboard / admin ---------- */
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; padding: 2.5rem 0 1.5rem; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th { text-align: left; font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
table.data td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data select { width: auto; padding: .4em 2em .4em .6em; font-size: .88rem; }
.status { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: .45em .65em; border-radius: var(--r); background: var(--paper-2); }
.status-published { background: #e2eee6; color: var(--ok); }
.status-pending { background: #f5e9cf; color: var(--warn); }
.status-draft, .status-archived { background: #ece9e4; color: var(--muted); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line-2); margin-bottom: 1.6rem; }
.tabs a { padding: .7rem 1.1rem; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--brass); }
.thumb-sm { width: 64px; aspect-ratio: 400/278; object-fit: cover; border-radius: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.photo-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem; font-size: .85rem; }
.photo-item img { aspect-ratio: 400/278; object-fit: cover; width: 100%; margin-bottom: .5rem; }
.photo-item input { font-size: .85rem; padding: .45em .6em; margin-bottom: .4rem; }
.ped-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem 1rem; align-items: center; }
.ped-form .pf { display: flex; flex-direction: column; justify-content: center; }
.ped-form .pf span { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.ped-form .pf.m input { border-left: 3px solid var(--sire); } .ped-form .pf.f input { border-left: 3px solid var(--dam); }
.sticky-save { position: sticky; bottom: 0; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 1rem 0; margin-top: 2rem; display: flex; gap: 1rem; align-items: center; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9b3a5; font-size: .93rem; padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand p { max-width: 34ch; margin-top: 1.2rem; }
.site-footer h2 { font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .45rem 0; }
.site-footer a:not(.btn) { color: #e3dccd; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--brass-2); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(239,232,219,.1); padding: 1.6rem 0 2rem; font-size: .82rem; }
.footer-base p { margin: 0; max-width: 80ch; }

.error-page { padding: 6rem 0; }
.prose-page { padding: 3rem 0 5rem; }
.prose-page h2 { margin-top: 2.2rem; font-size: 1.7rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .site-nav a:not(.btn) { padding: .5em .55em; font-size: .88rem; }
  .st-main { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 2rem; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); }
  .is-dark .site-nav { background: var(--ink); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav a:not(.btn) { padding: .85em .3em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .is-dark .site-nav a:not(.btn) { border-color: rgba(255,255,255,.08); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--brass); }
  .nav-side { margin-top: .8rem; } .nav-side .btn { width: 100%; padding: 1em; }
  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .cover { justify-self: start; width: min(400px, 92%); margin-left: 6px; }
  .feature-split, .owner-cta, .st-story { grid-template-columns: 1fr; gap: 2.5rem; }
  .disc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dir { grid-template-columns: 1fr; gap: 1.2rem; padding-top: 1.4rem; }
  .filters { position: static; }
  .filters summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none; font-weight: 600; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r); }
  .filters summary::after { content: "+"; color: var(--brass); }
  .filters details[open] summary::after { content: "–"; }
  .filters details > div { padding: .5rem 0; }
  .filters h2 { display: none; }
  .st-main { grid-template-columns: 1fr; }
  .panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-art { padding: 2.5rem 1.25rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section-head { flex-direction: column; align-items: start; }
  .plan-mini { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .ped-form { grid-template-columns: 1fr; }
  .st-title { flex-direction: column; align-items: start; }

  /* Pedigree becomes an indented family list on phones */
  .pedigree { overflow: visible; }
  .ped-cols { display: none; }
  .pt, .pt-root { display: block; min-width: 0; }
  .pt > .pn.g1, .pt > .pn.g2, .pt > .pn.g3, .pt-root > .pn.g0 { width: 100%; flex: none; }
  .pt:has(> .pc) > .pn::after { display: none; }
  .pc { padding-left: 18px; margin-left: 10px; border-left: 1px solid var(--line-2); padding-top: 6px; }
  .pc > .pt { padding: 5px 0; }
  .pc > .pt::before { left: -18px; width: 14px; top: 1.45rem; }
  .pc > .pt::after { display: none; }
  .pn.g3 .pn-label { display: block; }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--wrap), 100% - 2rem); }
  .header-inner { gap: 1rem; min-height: 64px; }
  .logo-sub { display: none; }
  .search { flex-direction: column; }
  .search .btn { margin: 0 6px 6px; }
  .disc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .panel dl div { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .panel-actions, .claim, .videos, .thumbs, .related { display: none !important; }
  .pedigree { overflow: visible; } .pt-root { min-width: 0; }
  body { background: #fff; }
}

/* ---------- The printed guide (history) ---------- */
.history-head { padding: 1.6rem 0 2.2rem; max-width: 780px; }
.history-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin: 0 0 1rem; }
.history-hero { margin: 0 0 1rem; background: linear-gradient(180deg, #f3eee4, #e9e0cf); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.history-hero img { display: block; width: 100%; max-width: 1800px; height: auto; margin: 0 auto; }
.history-hero figcaption { font-size: .85rem; color: var(--muted); padding: .8rem 0; }
.editions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.edition { display: grid; grid-template-columns: 120px 1fr; gap: 1.1rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; }
.edition-cover img, .edition-plate { display: block; width: 120px; aspect-ratio: 202 / 285; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 22px -12px rgba(22,36,31,.55); }
.edition-plate { padding: .6rem; }
.edition-plate .plate-initials { font-size: 1.35rem; letter-spacing: .02em; }
.edition-plate .plate-name { font-size: .78rem; padding: 0; margin-top: .3rem; }
.edition-plate .plate-note { font-size: .45rem; margin-top: .45rem; }
.edition-body h3 { font-size: 1.35rem; margin: .1rem 0 .35rem; }
.edition-label { font: 600 .68rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 .45rem; }
.edition-sires { list-style: none; margin: 0 0 .7rem; padding: 0; display: flex; flex-wrap: wrap; gap: .15rem .55rem; font-size: .88rem; line-height: 1.45; }
.edition-sires li:not(:last-child)::after { content: "·"; margin-left: .55rem; color: var(--line-2); }
.edition-links { margin: 0; font-size: .86rem; font-weight: 600; }
.book-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.book-pages figure, .book-sample { margin: 0; }
.book-pages img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 16px 30px -18px rgba(22,36,31,.6); transition: transform .2s; }
.book-pages a:hover img { transform: translateY(-3px); }
.book-pages figcaption, .book-sample figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.book-sample { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 1.2rem; margin-top: 2.4rem; }
.book-sample img { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 16px 30px -18px rgba(22,36,31,.6); }
.book-sample figcaption { grid-column: 1 / -1; }
@media (max-width: 1000px) { .editions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .book-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .editions { grid-template-columns: 1fr; } .edition { grid-template-columns: 96px 1fr; } .edition-cover img, .edition-plate { width: 96px; } }
