:root {
    color-scheme:dark;
    --bg:#0c100f;
    --panel:#141a17;
    --gold:#d9b568;
    --text:#f4eedf;
    --muted:#adb4a8;
    --line:#3a3c2c
}
* {
    box-sizing:border-box
}
html {
    scroll-behavior:smooth;
    scroll-padding-top:96px
}
body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font:16px/1.65 system-ui,-apple-system,Segoe UI,sans-serif
}
a {
    color:inherit;
    text-decoration:none
}
button,input,select {
    font:inherit
}
button,a,input,select,summary {
    -webkit-tap-highlight-color:transparent
}
button,summary {
    cursor:pointer
}
button {
    color:inherit
}
a:hover,summary:hover {
    color:var(--gold)
}
:focus-visible {
    outline:2px solid var(--gold);
    outline-offset:5px
}
[hidden] {
    display:none!important
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%)
}
.skip {
    position:fixed;
    top:-100px;
    left:20px;
    z-index:10;
    background:var(--gold);
    color:#111;
    padding:12px
}
.skip:focus {
    top:10px
}
header {
    height:88px;
    padding:0 max(6%,calc((100vw - 1320px)/2));
    display:flex;
    align-items:center;
    gap:50px;
    border-bottom:1px solid #846a3b;
    background:#0d1412
}
.brand {
    display:flex;
    align-items:center;
    gap:15px;
    font:600 27px/1.05 Georgia,serif;
    letter-spacing:4px;
    white-space:nowrap
}
.brand small {
    display:block;
    color:var(--gold);
    font-size:13px;
    letter-spacing:4px;
    margin-top:8px
}
.bow {
    width:52px;
    height:60px;
    flex-shrink:0
}
nav {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:36px;
    flex:1;
    font-size:14px
}
nav button {
    background:none;
    border:0;
    padding:10px 0
}
nav button[aria-pressed=true] {
    color:var(--gold)
}
#favorite-count {
    font-size:11px;
    color:var(--gold);
    margin-left:6px
}
.search-shortcut {
    font-size:35px
}
.hero {
    min-height:560px;
    position:relative;
    display:flex;
    align-items:center;
    background:linear-gradient(90deg,rgba(6,14,11,.87),rgba(6,14,11,.48) 43%,rgba(6,14,11,.05) 73%),linear-gradient(0deg,#0c100f,transparent 25%),url('hero.png') center top/cover;
    border-bottom:1px solid #6e5930
}
.hero-content {
    width:1320px;
    max-width:88%;
    margin:0 auto;
    padding:65px 0 95px
}
.eyebrow {
    font-size:11px;
    letter-spacing:3px;
    font-weight:650;
    color:var(--gold);
    display:flex;
    gap:20px;
    align-items:center;
    margin:0 0 20px
}
.eyebrow span {
    width:70px;
    height:1px;
    background:#9a814b
}
h1,h2,h3 {
    font-family:Georgia,Times New Roman,serif;
    font-weight:400;
    line-height:1.12;
    margin:0
}
h1 {
    font-size:clamp(38px,4.1vw,66px);
    letter-spacing:-1.6px
}
.intro {
    color:#dddccf;
    font-size:18px;
    line-height:1.7;
    margin:25px 0 30px
}
.hero-actions {
    display:flex;
    gap:16px
}
.button {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:30px;
    padding:13px 24px;
    border-radius:2px;
    font-size:14px;
    border:1px solid transparent;
    transition:filter .2s
}
.gold {
    border:1px solid #e2c482;
    background:linear-gradient(135deg,#e7c77b,#ac7c34);
    color:#211a0d;
    box-shadow:inset 0 1px #fff4
}
.gold:hover {
    filter:brightness(1.15);
    color:#211a0d
}
.outline {
    border-color:#846c40;
    background:#10171299
}
.hero-caption {
    position:absolute;
    bottom:60px;
    right:6%;
    font-size:9px;
    letter-spacing:3px;
    color:#d6d5bf9e
}
.content {
    width:1200px;
    max-width:88%;
    margin:auto
}
.search-panel {
    position:relative;
    margin:-34px auto 0;
    z-index:1;
    display:flex;
    gap:20px;
    align-items:center;
    background:linear-gradient(130deg,#1b211c,#101714);
    border:1px solid #806c41;
    padding:13px 16px;
    box-shadow:0 0 0 6px #131914,0 0 0 7px #49432d,0 14px 50px #0008
}
.search-panel>span {
    font-size:35px;
    line-height:1;
    color:var(--muted)
}
input,select {
    color:#dddccf;
    background:transparent;
    border:0;
    min-width:0
}
input {
    flex:1;
    outline-offset:3px;
    padding:9px 0
}
input::placeholder {
    color:#9ca59b;
    font-size:14px
}
select {
    border-left:1px solid #3d4438;
    width:220px;
    padding:8px 18px;
    font-size:13px
}
select option {
    background:#141a17
}
.search-panel button {
    width:48px;
    height:46px;
    font-size:23px;
    border-radius:2px;
    flex-shrink:0
}
.family-section {
    padding:85px 0 70px
}
.section-heading {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px
}
.section-heading .eyebrow {
    margin-bottom:12px
}
h2 {
    font-size:38px
}
.result-count {
    color:var(--gold);
    font-size:13px;
    white-space:nowrap;
    margin:0 0 3px
}
.section-intro {
    color:var(--muted);
    font-size:14px;
    margin:18px 0 34px
}
#family-list {
    display:grid;
    gap:22px
}
.family-card {
    position:relative;
    display:grid;
    grid-template-columns:40% 1fr;
    min-height:245px;
    border:1px solid #414534;
    background:linear-gradient(100deg,#172019,#111814);
    overflow:hidden;
    border-radius:3px;
    transition:border-color .2s
}
.family-card:hover {
    border-color:#998452
}
.family-art {
    background-image:url('families.png');
    background-size:600% 300%;
    background-position:var(--x) var(--y);
    min-height:245px;
    position:relative
}
.family-art:after {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(90deg,transparent 60%,#141c1670)
}
.family-body {
    padding:30px 66px 28px 38px;
    align-self:start
}
.family-number {
    color:var(--gold);
    font-size:9px;
    letter-spacing:2px
}
h3 {
    font-size:34px;
    margin:10px 0
}
.family-body>p {
    color:var(--muted);
    font-size:14px;
    margin:10px 0 19px
}
.family-body>.family-english-name { margin-top: -4px; }
.family-ability a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.favorite {
    position:absolute;
    top:20px;
    right:20px;
    width:36px;
    height:36px;
    border:1px solid #5e6145;
    border-radius:50%;
    background:#101712a8;
    color:var(--gold);
    font-size:23px;
    line-height:1
}
.favorite[aria-pressed=true] {
    background:#504020
}
summary {
    list-style:none;
    display:flex;
    gap:25px;
    align-items:center;
    color:var(--gold);
    font-size:13px;
    width:fit-content
}
summary::-webkit-details-marker {
    display:none
}
details[open] summary span {
    transform:rotate(90deg)
}
.family-detail {
    border-top:1px solid var(--line);
    padding-top:10px;
    margin-top:17px;
    font-size:13px;
    color:var(--muted)
}
.family-detail p {
    margin:8px 0
}
.family-detail a {
    color:var(--gold);
    font-size:12px
}
#empty {
    padding:50px;
    text-align:center;
    border:1px solid var(--line);
    color:var(--muted)
}
#empty h3 {
    color:var(--text)
}
.handbook {
    border-top:1px solid var(--line);
    padding:65px 0 80px;
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:70px
}
.handbook .eyebrow {
    color:#9fb78a
}
.handbook p:not(.eyebrow) {
    color:var(--muted);
    font-size:14px;
    margin:0 0 18px
}
.handbook a {
    color:var(--gold);
    font-size:13px
}
.handbook small {
    display:block;
    margin-top:22px;
    font-size:11px;
    color:#869181
}
footer {
    border-top:1px solid #30382b;
    padding:35px 6%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    background:#090e0b
}
footer .brand {
    font-size:18px
}
footer .brand small {
    font-size:9px
}
footer p,footer>a:last-child {
    font-size:11px;
    color:#939f91
}
footer p {
    margin:0
}
@media(min-width:1500px) {
    .hero {
    min-height:620px
}

}
@media(max-width:760px) {
    header {
    height:auto;
    min-height:84px;
    flex-wrap:wrap;
    padding:20px 6% 12px;
    gap:18px
}
.brand {
    font-size:23px
}
.bow {
    width:40px;
    height:46px
}
nav {
    order:3;
    flex-basis:100%;
    justify-content:space-between;
    gap:12px;
    font-size:12px
}
.search-shortcut {
    margin-left:auto
}
.hero {
    min-height:520px;
    background-position:62% top
}
.hero-content {
    padding:60px 0 100px
}
.hero-caption {
    display:none
}
h1 {
    font-size:41px;
    letter-spacing:-1px
}
.intro {
    font-size:15px
}
.button {
    padding:12px 16px;
    font-size:12px;
    gap:15px
}
.hero-actions {
    gap:10px
}
.search-panel {
    flex-wrap:wrap;
    gap:9px;
    padding:12px
}
.search-panel>span {
    font-size:28px
}
input {
    width:75%;
    font-size:14px
}
select {
    order:3;
    border-left:0;
    border-top:1px solid var(--line);
    width:100%;
    padding:10px 0 0
}
.search-panel button {
    width:36px;
    height:36px
}
.family-section {
    padding-top:65px
}
h2 {
    font-size:29px
}
.section-heading {
    align-items:center
}
.result-count {
    font-size:10px
}
.section-heading .eyebrow {
    font-size:9px
}
.family-card {
    grid-template-columns:1fr
}
.family-art {
    min-height:0;
    height:230px
}
.family-art:after {
    background:linear-gradient(0deg,#141c1660,transparent 50%)
}
.family-body {
    padding:25px 25px 28px
}
.favorite {
    top:16px;
    right:16px
}
.family-number {
    font-size:8px
}
h3 {
    font-size:31px
}
.handbook {
    grid-template-columns:1fr;
    gap:28px;
    padding:45px 0
}
footer {
    align-items:start;
    flex-direction:column;
    gap:20px
}

}
@media(prefers-reduced-motion:reduce) {
    html {
    scroll-behavior:auto
}
* {
    transition:none!important
}

}

:root .family-card {
    grid-template-columns:280px 1fr;
    min-height:280px
}
:root .family-art {
    height:280px;
    min-height:0;
    align-self:start
}
@media(max-width:760px) {
    :root .family-card {
    grid-template-columns:1fr
}
:root .family-art {
    height:auto;
    aspect-ratio:1
}

}


.family-art--0  {
     --x: 0%;
     --y: 0%;
     
}

.family-art--1  {
     --x: 20%;
     --y: 0%;
     
}

.family-art--2  {
     --x: 40%;
     --y: 0%;
     
}

.family-art--3  {
     --x: 60%;
     --y: 0%;
     
}

.family-art--4  {
     --x: 80%;
     --y: 0%;
     
}

.family-art--5  {
     --x: 100%;
     --y: 0%;
     
}

.family-art--6  {
     --x: 0%;
     --y: 50%;
     
}

.family-art--7  {
     --x: 20%;
     --y: 50%;
     
}

.family-art--8  {
     --x: 40%;
     --y: 50%;
     
}

.family-art--9  {
     --x: 60%;
     --y: 50%;
     
}

.family-art--10  {
     --x: 80%;
     --y: 50%;
     
}

.family-art--11  {
     --x: 100%;
     --y: 50%;
     
}

.family-art--12  {
     --x: 0%;
     --y: 100%;
     
}

.family-art--13  {
     --x: 20%;
     --y: 100%;
     
}

.family-art--14  {
     --x: 40%;
     --y: 100%;
     
}

.family-art--15  {
     --x: 60%;
     --y: 100%;
     
}

.family-art--16  {
     --x: 80%;
     --y: 100%;
     
}

.family-art--17  {
     --x: 100%;
     --y: 100%;
     
}

/* Generated illustration matching the existing family portraits. */
:root .family-art--18 {
    background-image: url('wasps.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

:root .family-art--19 {
    background-image: url('core-hounds.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Shared navigation */
header nav { flex-wrap: wrap; gap: 12px 24px; }
header nav a[aria-current=page] { color: var(--gold); text-decoration: underline; text-underline-offset: 6px; }

/* Two families per row once desktop cards have enough room. */
@media (min-width: 1200px) {
    #family-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    :root .family-card { grid-template-columns: 38% minmax(0, 1fr); min-height: 220px; }
    :root .family-art { width: 100%; height: auto; aspect-ratio: 1; }
    .family-body { min-width: 0; padding: 20px 22px 24px; overflow-wrap: anywhere; }
    .family-body .family-number { display: block; padding-right: 44px; }
    .family-body h3 { font-size: 28px; }
    .family-number { letter-spacing: 1px; }
}

.seo-breadcrumbs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; margin: 0 0 25px; font-size: 12px; color: var(--muted); }
.seo-breadcrumbs a { color: var(--gold); }
