@font-face { font-family: 'Postcard Lora'; src: url('/assets/lora.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Postcard Manrope'; src: url('/assets/manrope.ttf') format('truetype'); font-weight: 400 800; font-display: swap; }
:root {
    color-scheme: light;
    --paper: #fdfaf7;
    --white: #fffdfb;
    --ink: #292227;
    --muted: #6f6468;
    --wine: #792c42;
    --wine-dark: #622036;
    --line: #e8dedc;
    --pink: #f5e9e8;
    --sans: Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 2.65vw, 2.15rem); }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.wrap { width: min(100% - 80px, 1240px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 3; left: 1rem; top: 1rem; background: white; padding: .5rem 1rem; }
.header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; width: fit-content; gap: 11px; align-items: center; font: 600 1.43rem/1 var(--sans); }
.brand-mark { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid #e7d7d8; border-radius: 50%; color: var(--wine); background: var(--pink); }
.header nav { display: flex; gap: clamp(16px, 2.8vw, 40px); }
.header nav a, .favorites-link { white-space: nowrap; font-size: .94rem; font-weight: 600; }
.header nav a { position: relative; padding-block: 25px; color: #5a4f54; }
.header nav a[aria-current], .header nav a:hover, .favorites-link:hover { color: var(--wine); }
.header nav a[aria-current]::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--wine); }
.favorites-link { justify-self: end; display: flex; align-items: center; gap: 7px; padding: 8px 0 8px 8px; }
.favorites-link svg { color: var(--wine); }
.favorites-link b { min-width: 19px; padding-inline: 4px; text-align: center; border-radius: 10px; color: var(--wine); background: var(--pink); font-size: .78rem; }
.hero { margin-top: 31px; }
.hero-main { display: grid; grid-template-columns: 1.03fr .97fr; overflow: hidden; border-radius: 24px; min-height: 434px; background: #f4e8e5; isolation: isolate; }
.hero-copy { min-width: 0; align-self: center; padding: clamp(29px, 4vw, 58px); padding-right: 32px; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--wine); font-size: .87rem; letter-spacing: .045em; font-weight: 650; }
.eyebrow span { width: 16px; height: 1px; background: currentColor; }
.hero h1 { margin: 17px 0 18px; font-size: clamp(2.75rem, 4.8vw, 4.6rem); line-height: 1.06; }
.hero h1 em { color: var(--wine); font-weight: inherit; }
.hero p { max-width: 38ch; color: #625259; }
.hero-art { position: relative; min-height: 100%; overflow: hidden; background: #e8cbc5; }
.hero-art img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 50% 78%; }
.search-box { display: flex; align-items: stretch; gap: 7px; }
.hero-search { position: relative; margin-top: 25px; padding: 6px; border: 1px solid #e8d8d5; border-radius: 11px; background: var(--white); box-shadow: 0 5px 16px #54252b0a; }
.search-box label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding-left: 10px; color: var(--wine); }
.search-box input { width: 100%; padding: 9px 4px; color: var(--ink); min-width: 0; border: 0; outline: none; background: transparent; }
.search-box:focus-within { outline: 2px solid var(--wine); outline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 8px; border: 1px solid transparent; padding: 9px 17px; font-size: .92rem; font-weight: 650; line-height: 1.25; white-space: nowrap; }
.primary { background: var(--wine); color: white; }
.primary:hover { background: var(--wine-dark); }
.outline { border-color: var(--line); background: var(--white); color: var(--wine); }
.outline:hover { border-color: #c49ba7; }
.quick-search { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: .86rem; }
.quick-search span { color: var(--muted); margin-right: 3px; }
.quick-search a, .tags a { border: 1px solid #e7d7d8; border-radius: 5px; padding: 3px 10px; color: var(--wine); background: #fffdf952; }
.quick-search a:hover, .tags a:hover { background: var(--white); }
.alphabet-section { margin-top: 32px; padding: 18px 22px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.alphabet-head, .results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.results-head { align-items: center; }
.alphabet-head h2 { font-size: 1.28rem; }
.alphabet-head span, .results-head span { color: var(--muted); font-size: .88rem; }
.alphabet { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
.alphabet a { display: grid; place-items: center; border: 1px solid var(--line); background: var(--white); border-radius: 6px; min-width: 0; min-height: 34px; font-size: .85rem; font-weight: 600; line-height: 1; }
.alphabet a:hover { color: var(--wine); border-color: #c49ba7; }
.alphabet [aria-current] { color: white; background: var(--wine); border-color: var(--wine); }
.alphabet [aria-current]:hover { color: white; }
.home-section { margin-top: 47px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head p { margin-top: 7px; }
.text-link { color: var(--wine); text-decoration: underline; text-decoration-color: #bf9ca5; text-underline-offset: .25em; }
.text-link:hover { text-decoration-color: var(--wine); }
.external-link > svg { margin-inline-start: .25em; vertical-align: -.12em; }
.section-head > a { flex: 0 0 auto; font-size: .9rem; font-weight: 650; }
.name-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 14px; }
.name-card { display: grid; align-content: start; gap: 6px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; background: var(--white); padding: 17px 18px; }
.name-card:hover { border-color: #d9b8bf; }
.name-card-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; }
.name-title { color: var(--ink); font: 400 clamp(1.27rem, 2vw, 1.8rem)/1.15 var(--sans); overflow-wrap: anywhere; }
.name-title:hover { color: var(--wine); }
.name-grid-compact .name-title { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: var(--white); }
.save svg { display: block; transform: translateY(.65px); }
.save:hover, .save[aria-pressed='true'] { border-color: #d8b0bb; background: #faeff0; }
.save[aria-pressed='true'] svg { fill: currentColor; }
.origin { color: var(--wine); font-size: .81rem; text-transform: lowercase; }
.name-card p { font-size: .9rem; line-height: 1.48; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.collection-card { min-height: 180px; display: flex; flex-direction: column; align-items: start; gap: 7px; padding: 17px 19px; border: 1px solid #e7dddc; border-radius: 12px; background: #f7eaea; }
.collection-card.leaf { background: #edf0e9; }
.collection-card.globe { background: #f1edf5; }
.collection-card.type { background: #f4ede5; }
.collection-card:hover { border-color: #c69ea7; }
.collection-icon { display: grid; place-items: center; width: 37px; height: 37px; margin-bottom: 2px; border-radius: 9px; color: var(--wine); background: #ffffffa0; }
.collection-card strong { font: 600 1.27rem/1.13 var(--sans); }
.collection-card span:not(.collection-icon) { color: var(--muted); font-size: .9rem; }
.collection-card small { color: var(--wine); margin-top: auto; font-size: .82rem; }
.choose-banner { display: flex; align-items: center; justify-content: space-between; gap: 25px; border-radius: 15px; padding: clamp(24px, 4vw, 48px); background: var(--pink); }
.choose-banner p { margin-top: 9px; }
.footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; gap: 15px 24px; flex-wrap: wrap; align-items: center; min-height: 105px; padding-block: 17px; }
.footer .brand { font-size: 1.2rem; }
.footer .brand-mark { width: 31px; height: 31px; }
.footer span:not(.brand span), .footer nav { color: var(--muted); font-size: .9rem; }
.footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 12px 19px; }
.footer nav a:hover { color: var(--wine); }
.page { padding-top: 34px; min-height: 54vh; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: .88rem; }
.crumb a:hover { color: var(--wine); text-decoration: underline; }
.page-intro { margin: 5px 0 24px; }
.page h1 { font-size: clamp(2.35rem, 5.2vw, 4.3rem); }
.page-intro p { margin-top: 10px; font-size: 1.05rem; }
.filter-panel, .fit { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.filter-panel label, .fit label, .suggest label { display: grid; gap: 5px; font-size: .88rem; font-weight: 650; }
.filter-panel .filter-query { flex: 1; min-width: min(100%, 190px); }
.filter-panel .ranking-region { width: min(100%, 320px); min-width: 0; }
.ranking-heading { margin-top: 26px; }
.ranking-heading p { margin-top: 5px; }
.filter-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.name-scopes { margin-bottom: 12px; }
.name-scopes a { padding: 6px 11px; }
.name-scopes [aria-current='page'], .name-scopes [aria-current='page']:hover { color: white; background: var(--wine); border-color: var(--wine); }
.filter-panel input, .filter-panel select, .fit input, .suggest input, .suggest textarea { width: 100%; min-height: 42px; padding: 7px 11px; border-radius: 7px; border: 1px solid #d9cccc; color: var(--ink); background-color: white; font-size: 1rem; font-weight: 400; }
.filter-panel select { padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: right 15px center, right 10px center; background-repeat: no-repeat; }
.catalog-alphabet { margin: 18px 0 26px; }
.fit { align-items: end; margin: 0 0 27px; background: #f7eeeb; }
.fit label { max-width: 100%; flex: 1 1 145px; }
.fit h2 { display: flex; align-items: center; min-height: 42px; font: 600 1.2rem/1.25 var(--sans); }
.fit-result { flex: 0 0 100%; display: grid; align-items: center; justify-items: center; gap: 8px; min-width: 0; padding-top: 8px; border-top: 1px solid var(--line); }
.fit-format { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.fit-format button { border: 0; border-radius: 5px; min-height: 30px; padding: 4px 8px; font-size: .78rem; background: transparent; color: var(--muted); }
.fit-format button:hover { color: var(--wine); }
.fit-format button[aria-pressed="true"] { background: var(--pink); color: var(--wine-dark); }
.fit-format button:focus-visible { outline-offset: -2px; }
.fit output { font: 500 1.3rem/1.35 var(--sans); color: var(--wine); text-align: center; overflow-wrap: anywhere; }
@media (min-width: 851px) {
    .fit-result { grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr) minmax(16rem, 1fr); }
    .fit output { grid-column: 2; }
    .fit-format { grid-column: 3; justify-self: end; }
}
@media (pointer: coarse) {
    .fit-format button { min-height: 44px; }
}
.pagination { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.empty { border: 1px solid var(--line); padding: 20px; border-radius: 10px; background: var(--white); }
.detail-hero { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: clamp(25px, 4vw, 52px); border-radius: 19px; background: var(--pink) linear-gradient(110deg, #f5e9e8b3, #f5e9e83b); background-image: linear-gradient(110deg, #f5e9e8b3, #f5e9e83b), url('/assets/name-paper.jpg'); background-position: center; background-size: cover; }
.detail-hero h1 { overflow-wrap: anywhere; }
.detail-hero .eyebrow { margin-bottom: 9px; }
.detail-hero p { max-width: 60ch; margin-top: 11px; }
.detail-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail-actions .save { width: 43px; height: 43px; margin: 0; }
.postcard-dialog { width: min(92vw, 820px); max-height: 90dvh; overflow: auto; color: var(--ink); background: var(--paper); padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.postcard-dialog::backdrop { background: #33202788; }
.postcard-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.postcard-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--wine); }
.postcard-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.postcard-preview { --preview-height: min(62dvh, 510px); min-width: 0; align-self: start; display: grid; place-items: center; padding: 10px; border-radius: 10px; background: #f5e9e8; }
.postcard-preview canvas { display: block; width: min(100%, var(--preview-height)); aspect-ratio: 1; }
.postcard-preview[data-format="story"] canvas { width: min(100%, calc(var(--preview-height) * .5625)); aspect-ratio: 9 / 16; }
.postcard-settings { min-width: 0; }
.postcard-settings fieldset { display: grid; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; }
.postcard-settings legend { margin-bottom: 8px; font-weight: 650; }
.postcard-settings label { border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.postcard-settings label span { display: inline-block; color: var(--muted); font-size: .82rem; margin-left: 4px; }
.postcard-settings input { accent-color: var(--wine); }
.postcard-settings .postcard-palettes { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
.postcard-palettes label { display: flex; align-items: center; gap: 6px; background: var(--swatch); }
.postcard-palettes label:has(:checked) { border-color: var(--swatch-border); box-shadow: inset 0 0 0 1px var(--swatch-border); }
.postcard-palettes label span { color: var(--ink); margin-left: 0; }
.postcard-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.postcard-actions .button { flex: 1; min-width: 0; padding-inline: 8px; white-space: normal; }
.postcard-actions .button svg { flex-shrink: 0; }
.postcard-actions [data-postcard-copy] { flex-basis: 100%; }
.postcard-dialog button:disabled { opacity: .54; cursor: wait; }
.postcard-status { margin-top: 7px; font-size: .9rem; }
@media (max-width: 650px) {
    .postcard-dialog { padding: 14px; }
    .postcard-layout { grid-template-columns: 1fr; gap: 12px; }
    .postcard-preview { --preview-height: 45dvh; }
}
.detail-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 18px; }
.detail-toc { margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
    html:has(.detail-toc) { scroll-behavior: smooth; }
}
.detail-side { display: grid; gap: 12px; }
.detail-side-toc, .detail-side-names { display: none; }
@media (max-width: 800px) {
    .detail-side:not(:has(.detail-side-collections)) { display: none; }
}
@media (min-width: 801px) {
    .detail-toc.tags { display: none; }
    .detail-columns { grid-template-columns: minmax(0, 1fr) minmax(225px, 300px); column-gap: clamp(24px, 3vw, 36px); }
    .detail-side { position: sticky; top: 18px; align-self: start; max-height: calc(100dvh - 36px); overflow-y: auto; padding: 4px; }
    .detail-side-toc, .detail-side-names { display: block; }
}
.detail-main section { scroll-margin-top: 15px; }
.detail-main h3 { margin: 20px 0 8px; }
.article-topics { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.article-topics summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 9px; cursor: pointer; color: var(--wine); font-weight: 600; list-style: none; }
.article-topics summary::-webkit-details-marker { display: none; }
.article-topics summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.article-topics summary:hover, .article-topics[open] summary { background: var(--pink); }
.article-topics[open] summary { border-radius: 9px 9px 0 0; }
.article-topics[open] summary::after { transform: translateY(2px) rotate(225deg); }
.article-topics ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 4px 10px; padding: 9px; margin: 0; list-style: none; }
.article-topics li a { display: block; padding: 7px 9px; border-radius: 6px; line-height: 1.35; text-decoration: none; }
.article-topics li a:hover { background: var(--pink); text-decoration: underline; }
#history h3[id] { scroll-margin-top: 15px; }
.detail-main p + p { margin-top: 10px; }
.name-facts { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr); gap: 6px 15px; margin: 0 0 13px; }
.name-facts dt { color: var(--muted); }
.name-facts dd { margin: 0; overflow-wrap: anywhere; }
.pairings, .short-forms { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 12px 0 0; }
.pairings li, .short-forms li { border-radius: 6px; padding: 4px 10px; background: var(--pink); }
.fit-link { margin-top: 14px; }
.fit select { min-height: 42px; padding: 7px 11px; border-radius: 7px; border: 1px solid #d9cccc; color: var(--ink); background: white; }
.choose-tools, .tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.invite-panel { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--pink); }
.invite-panel .tool-actions { margin-bottom: 0; }
.tool-actions .button { white-space: normal; text-align: center; }
.vote-form { margin-top: 25px; }
.vote-form fieldset { min-width: 0; border: 0; padding: 0; }
.vote-form legend { margin-bottom: 10px; font-weight: 650; }
.vote-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.vote-options label { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.vote-options input { accent-color: var(--wine); }
.vote-form > p { margin: 15px 0; }
.full-name-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); }
.full-name-option .name-title { font-size: 1.55rem; }
.full-name-initials { color: var(--wine); font-size: .81rem; }
.full-name-more { display: flex; margin: 20px auto 0; }
.analytics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.analytics-card { display: grid; align-content: start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.analytics-card:hover { border-color: #cc9faa; }
.analytics-card > span { color: var(--wine); font-size: .82rem; font-weight: 650; }
.analytics-card h3 { font-size: clamp(1.55rem, 2.7vw, 2.2rem); }
.analytics-card p { font-size: .9rem; }
.analytics-hero { padding: clamp(22px, 4vw, 52px); border-radius: 19px; background: var(--pink) url('/assets/name-paper.jpg') center / cover; }
.page .analytics-hero h1 { margin-block: 10px; font-size: clamp(2.3rem, 5vw, 4rem); }
.analytics-reading { margin: 25px 0; }
.analytics-reading h2 { margin: 23px 0 10px; }
.analytics-reading p { max-width: 74ch; margin-bottom: 10px; }
.analytics-table th[scope='row'] { min-width: 125px; }
.analytics-table ul { padding-left: 18px; margin: 0; }
.analytics-table li + li { margin-top: 7px; }
.analytics-examples span, .analytics-original { display: block; font-size: .87rem; color: var(--muted); }
.analytics-examples { min-width: 200px; }
.detail-main section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail-main > section:first-child { padding-top: 8px; }
.detail-main h2, .detail-side h2, .reading h2 { margin-bottom: 10px; }
.name-numbers { width: min(100%, 29rem); padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.name-numbers-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.name-numbers-main h2 { margin: 0; }
.name-number-value { display: grid; flex: none; place-items: center; width: 1.65em; height: 1.65em; border-radius: 12px; background: var(--wine); color: white; font: 600 2.7rem/1 var(--sans); }
.lucky-number-values { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.lucky-number-values strong { color: var(--ink); }
.detail-side section, .detail-side-toc { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.detail-side h2 { font-size: 1.4rem; }
.detail-side-links { display: grid; gap: 2px; }
.detail-side-links a { padding: 5px 8px; border-radius: 6px; color: var(--wine); font-size: .92rem; }
.detail-side-links a:hover { text-decoration: underline; }
.detail-side-links [aria-current="location"] { background: var(--pink); color: var(--wine-dark); }
.related-list, .people-list { list-style: none; margin: 0; padding: 0; }
.related-list li, .people-list li { padding: 9px 0; border-top: 1px solid var(--line); }
.related-list li { padding-bottom: 3px; }
.related-list span { display: block; color: var(--muted); font-size: .83rem; }
.people-list li { display: flex; gap: 12px; align-items: center; }
.portrait-credits { margin-top: 12px; color: var(--muted); font-size: .82rem; }
.portrait-file-credit { overflow-wrap: anywhere; }
.person-mark { display: grid; place-items: center; width: 72px; height: 72px; flex: 0 0 72px; border-radius: 14px; overflow: hidden; background: var(--pink); color: var(--wine); font-size: 1.5rem; }
.person-mark img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; font-size: .88rem; }
.correction { margin-top: 20px; }
.related-grid { margin-top: 35px; }
.table-scroll { overflow-x: auto; width: 100%; margin-block: 12px; }
.data-table { border-collapse: collapse; background: var(--white); text-align: left; width: 100%; }
.data-table td, .data-table th { min-width: 100px; padding: 11px 13px; border: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--wine); background: #f7efed; }
.comparison { margin-block: 15px; }
.comparison .data-table td { min-width: 130px; }
.reading { max-width: 720px; }
.reading p + p { margin-top: 8px; }
.suggest { margin-top: 30px; scroll-margin-top: 16px; }
.suggest form { display: grid; gap: 12px; width: min(100%, 540px); }
.suggest button { justify-self: start; }
.inbox-list { display: grid; gap: 12px; max-width: 850px; }
.inbox-message { padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); overflow-wrap: anywhere; }
.inbox-meta { color: var(--muted); font-size: .85rem; }
.inbox-message p { margin-top: 10px; white-space: pre-wrap; }
.inbox-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.notice { background: var(--pink); color: var(--wine); padding: 10px 13px; margin-block: 12px; border-radius: 7px; }
.favorite-row { display: flex; flex-wrap: wrap; gap: 9px 18px; padding: 14px 3px; border-bottom: 1px solid var(--line); align-items: center; }
.favorite-row a { font: 500 1.43rem var(--sans); min-width: min(100%, 150px); }
.favorite-row label { margin-left: auto; }
.favorite-row input { accent-color: var(--wine); }
[data-compare] { margin-block: 20px; }
.site-notices { position: fixed; inset: auto clamp(12px, 3vw, 24px) clamp(12px, 3vw, 24px); z-index: 2; display: grid; gap: 8px; pointer-events: none; }
.toast { justify-self: end; max-width: 100%; border-radius: 9px; padding: 11px 16px; color: white; background: var(--wine-dark); box-shadow: 0 6px 30px #5324292b; }
.cookie-notice { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: min(100%, 35rem); padding: 12px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 30px #5324292b; pointer-events: auto; }
.cookie-notice p { flex: 1 1 145px; font-size: .9rem; }
@media (max-width: 600px) {
    .cookie-notice { justify-self: center; }
}
@media (min-width: 600px) {
    .alphabet { grid-template-columns: repeat(16, minmax(0, 1fr)); }
}
@media (min-width: 800px) {
    .alphabet { display: flex; gap: clamp(2px, .35vw, 6px); }
    .alphabet a { flex: 1; }
    .alphabet .alphabet-all { flex: 0 0 44px; }
}
@media (max-width: 1020px) {
    .wrap { width: min(100% - 48px, 1240px); }
    .header-inner { gap: 16px; }
    .header nav { gap: 12px; }
    .hero-main { grid-template-columns: 1.15fr .85fr; min-height: 393px; }
    .hero-copy { padding: 32px; }
    .name-grid, .collection-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    .fit h2 { flex-basis: 100%; min-height: 0; }
    .header-inner { padding-top: 12px; grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
    .header nav { grid-row: 2; grid-column: 1 / -1; overflow-x: auto; gap: 17px; }
    .header nav a { padding-block: 9px; font-size: .86rem; }
}
@media (max-width: 720px) {
    .wrap { width: calc(100% - 30px); }
    .hero { margin-top: 18px; }
    .hero-main { grid-template-columns: 1fr; border-radius: 16px; }
    .hero-copy { padding: 26px 20px; }
    .hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
    .hero-art { min-height: 190px; }
    .hero-art img { object-position: 50% 80%; }
    .alphabet-section { margin-top: 21px; padding: 13px; }
    .home-section { margin-top: 30px; }
    .footer { margin-top: 35px; }
    .footer nav { margin-left: 0; }
    .section-head { align-items: start; }
    .name-grid, .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .analytics-grid { grid-template-columns: 1fr; gap: 9px; }
    .full-name-grid { grid-template-columns: 1fr; }
    .name-card, .collection-card { padding: 12px; }
    .name-card p, .collection-card span:not(.collection-icon) { font-size: .86rem; }
    .choose-banner, .detail-hero { flex-direction: column; align-items: start; }
    .detail-actions { justify-content: start; }
    .page { padding-top: 20px; }
}
@media (max-width: 365px) {
    .favorites-link span, .quick-search span { display: none; }
    .search-box .button { padding-inline: 10px; }
    .name-grid { grid-template-columns: 1fr; }
}
