/*
 * Isim Atlasi — public interface
 * A quiet, editorial etymology atlas built for long-form Turkish reading.
 */

:root {
    --paper: #f6f0e6;
    --paper-deep: #eee4d5;
    --surface: #fffdf8;
    --surface-soft: #fbf6ed;
    --ink: #173f36;
    --ink-deep: #0f302a;
    --ink-soft: #31584f;
    --text: #283833;
    --muted: #68756f;
    --line: #dcd3c5;
    --line-dark: rgba(23, 63, 54, .18);
    --apricot: #e9a078;
    --apricot-soft: #f5d3bd;
    --apricot-pale: #fbe9dc;
    --sage: #a9b9a9;
    --rose: #c98d86;
    --blue: #7899a2;
    --white: #fff;
    --danger: #9d3f36;
    --success: #26684e;
    --shadow-sm: 0 10px 30px rgba(31, 45, 39, .06);
    --shadow-md: 0 22px 60px rgba(19, 48, 42, .11);
    --shadow-lg: 0 35px 90px rgba(8, 33, 28, .22);
    --radius-sm: .65rem;
    --radius-md: 1.05rem;
    --radius-lg: 1.6rem;
    --radius-xl: 2.2rem;
    --container: 1220px;
    --narrow: 820px;
    --header-height: 84px;
    --ease: cubic-bezier(.2, .75, .25, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 1.5rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--paper);
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: var(--ink-deep);
    background: var(--apricot-soft);
}

body.nav-open,
body.search-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
h4,
ol,
ul,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-weight: 600;
    line-height: 1.02;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--apricot);
    outline-offset: 4px;
}

input:focus-visible {
    outline-offset: 0;
}

.container {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
}

.narrow-container {
    width: min(calc(100% - 3rem), var(--narrow));
}

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

.skip-link {
    position: fixed;
    z-index: 10000;
    top: .75rem;
    left: .75rem;
    padding: .7rem 1rem;
    border-radius: .5rem;
    color: var(--white);
    background: var(--ink-deep);
    font-size: .84rem;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .8rem;
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(255, 255, 255, .72);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .78rem 1.25rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--white);
    background: var(--ink);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .25s var(--ease), background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.button:hover {
    border-color: var(--ink-deep);
    background: var(--ink-deep);
    box-shadow: 0 10px 24px rgba(15, 48, 42, .16);
    transform: translateY(-2px);
}

.button--light {
    border-color: var(--surface);
    color: var(--ink-deep);
    background: var(--surface);
}

.button--light:hover {
    border-color: var(--white);
    color: var(--ink-deep);
    background: var(--white);
}

.button--ghost,
.button--ghost-dark {
    color: var(--ink);
    background: transparent;
}

.button--ghost:hover,
.button--ghost-dark:hover {
    color: var(--white);
}

.button--ghost-light {
    border-color: rgba(255, 255, 255, .35);
    color: var(--white);
    background: transparent;
}

.button--ghost-light:hover {
    border-color: var(--white);
    color: var(--ink-deep);
    background: var(--white);
}

.button--apricot {
    border-color: var(--apricot);
    color: var(--ink-deep);
    background: var(--apricot);
}

.button--apricot:hover {
    border-color: #f1b08a;
    color: var(--ink-deep);
    background: #f1b08a;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.text-link span {
    font-size: 1.15em;
    transition: transform .25s var(--ease);
}

.text-link:hover span {
    transform: translateX(.3rem);
}

/* Header */
.site-ribbon {
    position: relative;
    z-index: 60;
    color: rgba(255, 255, 255, .78);
    background: var(--ink-deep);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.ribbon-inner {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ribbon-inner > span {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.ribbon-inner a {
    color: var(--apricot-soft);
    transition: color .2s ease;
}

.ribbon-inner a:hover {
    color: var(--white);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #80bd99;
    box-shadow: 0 0 0 4px rgba(128, 189, 153, .12);
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(23, 63, 54, .09);
    background: rgba(246, 240, 230, .94);
    backdrop-filter: blur(18px) saturate(120%);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.site-header.is-scrolled,
.site-header[data-scrolled="true"] {
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 12px 35px rgba(18, 48, 41, .08);
}

.header-inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .75rem;
}

.brand-mark {
    display: inline-grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50% 50% 50% 14%;
    color: var(--paper);
    background: var(--ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .06);
    transform: rotate(-3deg);
    transition: transform .3s var(--ease), background-color .3s ease;
}

.brand:hover .brand-mark {
    background: var(--ink-deep);
    transform: rotate(3deg);
}

.brand-copy {
    display: grid;
    line-height: 1;
}

.brand-copy strong {
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.brand-copy small {
    margin-top: .32rem;
    color: var(--muted);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: clamp(.65rem, 1.5vw, 1.55rem);
}

.main-nav a {
    position: relative;
    padding-block: .6rem;
    color: var(--ink-soft);
    font-size: .77rem;
    font-weight: 800;
    white-space: nowrap;
}

.main-nav a:not(.nav-random)::after {
    position: absolute;
    right: 0;
    bottom: .35rem;
    left: 0;
    height: 1px;
    background: var(--apricot);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav .nav-random {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .78rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    background: rgba(255, 255, 255, .3);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.main-nav .nav-random:hover {
    border-color: var(--apricot);
    background: var(--apricot-pale);
    transform: translateY(-1px);
}

.header-search-button {
    display: inline-flex;
    min-width: 74px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .5rem .75rem;
    border: 0;
    border-radius: 999px;
    color: var(--surface);
    background: var(--ink);
    font-size: .75rem;
    font-weight: 800;
    transition: background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}

.header-search-button span:first-child {
    font-size: 1.2rem;
    line-height: 1;
}

.header-search-button:hover {
    background: var(--ink-deep);
    box-shadow: 0 8px 18px rgba(15, 48, 42, .18);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    background: transparent;
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-open > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open > span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle.is-open > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.public-flash {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-sm);
    color: var(--ink-deep);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    font-size: .82rem;
    font-weight: 700;
}

.public-flash--success {
    border-color: rgba(38, 104, 78, .25);
    color: var(--success);
    background: #edf6ef;
}

.public-flash--error,
.public-flash--danger {
    border-color: rgba(157, 63, 54, .22);
    color: var(--danger);
    background: #fff2ef;
}

.public-flash--info {
    border-color: rgba(120, 153, 162, .3);
    background: #eff6f7;
}

/* Search */
.global-search {
    position: relative;
    display: flex;
    min-height: 60px;
    align-items: center;
    border: 1px solid rgba(23, 63, 54, .15);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 16px 44px rgba(8, 30, 26, .12);
}

.global-search > span {
    flex: 0 0 auto;
    padding-left: 1.25rem;
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
}

.global-search input {
    min-width: 0;
    flex: 1;
    align-self: stretch;
    padding: 0 .9rem;
    border: 0;
    outline: 0;
    color: var(--ink-deep);
    background: transparent;
    font-size: .92rem;
    font-weight: 700;
}

.global-search input::placeholder {
    color: #8a948f;
    font-weight: 500;
    opacity: 1;
}

.global-search button {
    min-height: 46px;
    margin-right: 7px;
    padding: .7rem 1.2rem;
    border: 0;
    border-radius: 999px;
    color: var(--white);
    background: var(--ink);
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background-color .2s ease, transform .2s var(--ease);
}

.global-search button:hover {
    background: var(--ink-deep);
    transform: translateX(-2px);
}

.global-search:focus-within {
    border-color: var(--apricot);
    box-shadow: 0 0 0 4px rgba(233, 160, 120, .18), 0 18px 48px rgba(8, 30, 26, .14);
}

.autocomplete-results {
    position: absolute;
    z-index: 15;
    top: calc(100% + .65rem);
    right: 0;
    left: 0;
    max-height: min(360px, 50vh);
    overflow-y: auto;
    padding: .4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.autocomplete-results a,
.autocomplete-results button,
.autocomplete-results > div {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0;
    padding: .7rem .85rem;
    border: 0;
    border-radius: .65rem;
    color: var(--ink-deep);
    background: transparent;
    font-size: .8rem;
    font-weight: 700;
    text-align: left;
}

.autocomplete-results a:hover,
.autocomplete-results button:hover,
.autocomplete-results [aria-selected="true"],
.autocomplete-results .autocomplete-item.is-active {
    background: var(--apricot-pale);
    transform: none;
}

.autocomplete-results small,
.autocomplete-results span:last-child {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 600;
}

.search-overlay {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: start center;
    overflow-y: auto;
    padding: clamp(5rem, 13vh, 9rem) 1.5rem 2rem;
    background: rgba(9, 37, 31, .86);
    backdrop-filter: blur(15px);
    animation: overlay-in .24s ease both;
}

.search-overlay.is-open {
    display: grid;
}

.search-dialog {
    position: relative;
    width: min(720px, 100%);
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-xl);
    background: var(--paper);
    box-shadow: var(--shadow-lg);
    animation: dialog-in .35s var(--ease) both;
}

.search-dialog h2 {
    max-width: 560px;
    margin-bottom: 1.6rem;
    font-size: clamp(2.2rem, 6vw, 4rem);
}

.search-close {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    font-size: 1.55rem;
    line-height: 1;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.search-close:hover {
    color: var(--white);
    background: var(--ink);
    transform: rotate(5deg);
}

.search-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.search-shortcuts a {
    padding: .33rem .65rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--ink);
    transition: background-color .2s ease, border-color .2s ease;
}

.search-shortcuts a:hover {
    border-color: var(--apricot);
    background: var(--apricot-pale);
}

@keyframes overlay-in {
    from { opacity: 0; }
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
}

/* Footer and consent */
.site-footer {
    padding: 5rem 0 1.5rem;
    color: rgba(255, 255, 255, .68);
    background: var(--ink-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(270px, 1.8fr) repeat(3, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
}

.brand--footer .brand-mark {
    color: var(--ink-deep);
    background: var(--apricot);
}

.brand--footer .brand-copy strong {
    color: var(--white);
}

.brand--footer .brand-copy small {
    color: rgba(255, 255, 255, .52);
}

.footer-brand p {
    max-width: 320px;
    margin: 1.25rem 0 0;
    font-size: .77rem;
    line-height: 1.8;
}

.footer-grid > div:not(.footer-brand) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
}

.footer-grid h2 {
    margin-bottom: .75rem;
    color: var(--apricot-soft);
    font-family: "Manrope", sans-serif;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) a,
.link-button {
    padding: .1rem 0;
    border: 0;
    color: rgba(255, 255, 255, .7);
    background: none;
    font-size: .76rem;
    font-weight: 600;
    text-align: left;
    transition: color .2s ease, transform .2s ease;
}

.footer-grid > div:not(.footer-brand) a:hover,
.link-button:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    margin-top: 4rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    justify-content: space-between;
    gap: 1.5rem;
    color: rgba(255, 255, 255, .42);
    font-size: .63rem;
}

.cookie-banner {
    position: fixed;
    z-index: 600;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    display: flex;
    width: min(920px, calc(100% - 2.5rem));
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, .75);
    background: #102f29;
    box-shadow: var(--shadow-lg);
    animation: cookie-in .4s var(--ease) both;
}

.cookie-banner strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--white);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
}

.cookie-banner p {
    max-width: 600px;
    margin: 0;
    font-size: .7rem;
    line-height: 1.55;
}

.cookie-banner a {
    color: var(--apricot-soft);
    font-size: .65rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: .6rem;
}

.cookie-actions .button--ghost {
    border-color: rgba(255, 255, 255, .3);
    color: var(--white);
}

.cookie-actions .button {
    min-height: 42px;
    border-color: var(--apricot);
    color: var(--ink-deep);
    background: var(--apricot);
    font-size: .7rem;
}

.cookie-actions .button--ghost {
    color: var(--white);
    background: transparent;
}

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(25px); }
}

/* Shared sections */
.section {
    position: relative;
    padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section--paper {
    background: var(--surface);
}

.section--tint {
    background: var(--paper-deep);
}

.section-heading {
    display: flex;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.section-heading p {
    max-width: 610px;
    margin: .9rem auto 0;
    color: var(--muted);
    font-size: .9rem;
}

.section-heading--center {
    justify-content: center;
    text-align: center;
}

.section-heading--center > div {
    max-width: 720px;
}

/* Home hero */
.home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 0;
    color: rgba(255, 255, 255, .72);
    background:
        radial-gradient(circle at 82% 20%, rgba(233, 160, 120, .16), transparent 30%),
        linear-gradient(135deg, #173f36 0%, #0d3029 68%, #0a2923 100%);
}

.home-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .07;
    background-image: linear-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .6) 1px, transparent 1px);
    background-size: 72px 72px;
    content: "";
    mask-image: linear-gradient(to right, transparent, #000 55%, #000);
}

.hero-orb {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb--one {
    top: -220px;
    right: -140px;
    width: 570px;
    height: 570px;
}

.hero-orb--two {
    bottom: -300px;
    left: -230px;
    width: 520px;
    height: 520px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-bottom: 4rem;
}

.hero-copy h1 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: clamp(3.4rem, 6.7vw, 6.65rem);
    font-weight: 500;
    letter-spacing: -.035em;
}

.hero-copy h1 em {
    color: var(--apricot);
    font-weight: 500;
}

.hero-copy > p {
    max-width: 610px;
    margin-bottom: 2rem;
    font-size: clamp(.92rem, 1.4vw, 1.06rem);
    line-height: 1.8;
}

.hero-search {
    width: min(100%, 600px);
}

.hero-suggestions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin-top: 1.05rem;
    color: rgba(255, 255, 255, .45);
    font-size: .68rem;
    font-weight: 700;
}

.hero-suggestions a {
    color: rgba(255, 255, 255, .76);
    text-decoration: underline;
    text-decoration-color: rgba(233, 160, 120, .45);
    text-underline-offset: 4px;
    transition: color .2s ease;
}

.hero-suggestions a:hover {
    color: var(--apricot-soft);
}

.hero-atlas {
    position: relative;
    display: grid;
    width: min(100%, 520px);
    aspect-ratio: 1;
    place-items: center;
    justify-self: end;
}

.atlas-rings,
.atlas-rings span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
}

.atlas-rings {
    animation: slow-spin 40s linear infinite;
}

.atlas-rings::before,
.atlas-rings::after {
    position: absolute;
    border-radius: 50%;
    background: var(--apricot);
    box-shadow: 0 0 25px rgba(233, 160, 120, .48);
    content: "";
}

.atlas-rings::before {
    top: 12%;
    left: 16%;
    width: 8px;
    height: 8px;
}

.atlas-rings::after {
    right: 10%;
    bottom: 25%;
    width: 5px;
    height: 5px;
}

.atlas-rings span:nth-child(1) { inset: 8%; }
.atlas-rings span:nth-child(2) { inset: 19%; border-style: dashed; }
.atlas-rings span:nth-child(3) { inset: 31%; }

.atlas-word {
    position: relative;
    z-index: 2;
    display: flex;
    width: 58%;
    aspect-ratio: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    text-align: center;
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, .035), 0 30px 80px rgba(0, 0, 0, .12);
    backdrop-filter: blur(6px);
}

.atlas-word small {
    color: var(--apricot-soft);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.atlas-word strong {
    max-width: 100%;
    margin: .5rem 0;
    overflow: hidden;
    color: var(--white);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4.6rem);
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
}

.atlas-word p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, .55);
    font-size: .65rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.floating-letter {
    position: absolute;
    color: rgba(255, 255, 255, .2);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    animation: float-letter 5s ease-in-out infinite;
}

.floating-letter--a { top: 8%; right: 27%; }
.floating-letter--i { right: 6%; bottom: 32%; animation-delay: -1.5s; }
.floating-letter--z { bottom: 7%; left: 26%; animation-delay: -3s; }

.atlas-note {
    position: absolute;
    padding: .27rem .65rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 999px;
    color: rgba(255, 255, 255, .48);
    background: rgba(8, 35, 29, .55);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.atlas-note--origin { top: 31%; left: 1%; }
.atlas-note--meaning { right: 0; bottom: 22%; }

@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes float-letter { 50% { transform: translateY(-9px); } }

.hero-stats {
    position: relative;
    z-index: 3;
    display: grid;
    min-height: 104px;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .11);
}

.hero-stats > div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .6rem;
}

.hero-stats strong {
    color: var(--white);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
}

.hero-stats span {
    color: rgba(255, 255, 255, .48);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hero-stats i {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, .12);
}

/* Name cards */
.name-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.name-card {
    position: relative;
    display: flex;
    min-height: 285px;
    overflow: hidden;
    flex-direction: column;
    padding: clamp(1.4rem, 2.5vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s var(--ease);
}

.name-card::after {
    position: absolute;
    right: -38px;
    bottom: -44px;
    width: 120px;
    height: 120px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    content: "";
    transition: transform .4s var(--ease), border-color .3s ease;
}

.name-card:hover {
    border-color: rgba(23, 63, 54, .28);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.name-card:hover::after {
    border-color: var(--apricot);
    transform: scale(1.22);
}

.name-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.name-initial {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50% 50% 50% 13px;
    color: var(--ink);
    background: var(--paper-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.gender-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .6rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, .38);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.gender-chip::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--sage);
    content: "";
}

.gender-chip--female::before { background: var(--rose); }
.gender-chip--male::before { background: var(--blue); }
.gender-chip--unisex::before { background: var(--apricot); }

.name-card h3 {
    margin: 1.4rem 0 .7rem;
    font-size: clamp(2rem, 3.2vw, 2.7rem);
}

.name-card h3 a::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
}

.name-card p {
    display: -webkit-box;
    margin-bottom: 1.4rem;
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.name-card-meta {
    display: flex;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: .64rem;
    font-weight: 700;
}

.name-card-meta > span {
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.name-card-meta a {
    position: relative;
    z-index: 2;
    color: var(--ink);
    font-weight: 800;
}

.name-card-meta a span {
    display: inline-block;
    transition: transform .25s ease;
}

.name-card:hover .name-card-meta a span {
    transform: translateX(4px);
}

.name-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.name-grid--compact .name-card {
    min-height: 255px;
}

.name-grid--compact .name-card h3 {
    font-size: 2.15rem;
}

/* Home discovery blocks */
.category-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.category-card {
    position: relative;
    display: flex;
    min-height: 330px;
    overflow: hidden;
    align-items: flex-end;
    padding: clamp(1.6rem, 4vw, 3rem);
    border: 1px solid rgba(23, 63, 54, .13);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}

.category-card:hover {
    border-color: rgba(23, 63, 54, .28);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.category-card > div {
    position: relative;
    z-index: 2;
    max-width: 66%;
}

.category-card small {
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.category-card h3 {
    margin: .55rem 0 .6rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.category-card p {
    margin-bottom: 1.2rem;
    color: var(--muted);
    font-size: .78rem;
}

.category-card strong {
    color: var(--ink);
    font-size: .72rem;
    font-weight: 800;
}

.category-symbol {
    position: absolute;
    top: 50%;
    right: 7%;
    color: rgba(23, 63, 54, .08);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(8rem, 19vw, 15rem);
    font-weight: 600;
    line-height: 1;
    transform: translateY(-50%);
    transition: color .35s ease, transform .5s var(--ease);
}

.category-card:hover .category-symbol {
    color: rgba(23, 63, 54, .13);
    transform: translateY(-50%) rotate(-4deg) scale(1.04);
}

.category-count {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    padding: .32rem .65rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: .58rem;
    font-weight: 800;
}

.category-card--female { background: #f8ece8; }
.category-card--male { background: #e8f0ef; }
.category-card--unisex { background: #f8f2df; }
.category-card--random {
    color: rgba(255, 255, 255, .72);
    background: var(--ink);
}

.category-card--random h3,
.category-card--random strong { color: var(--white); }
.category-card--random small,
.category-card--random p { color: rgba(255, 255, 255, .6); }
.category-card--random .category-symbol { color: rgba(233, 160, 120, .22); }
.category-card--random:hover .category-symbol { color: rgba(233, 160, 120, .32); }

.alphabet-section {
    color: rgba(255, 255, 255, .68);
    background: var(--ink);
}

.alphabet-layout {
    display: grid;
    grid-template-columns: minmax(270px, .72fr) 1.4fr;
    align-items: center;
    gap: clamp(3rem, 9vw, 8rem);
}

.alphabet-copy h2 {
    margin-bottom: 1.2rem;
    color: var(--white);
    font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.alphabet-copy p {
    max-width: 400px;
    margin-bottom: 1.8rem;
    font-size: .85rem;
}

.alphabet-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: .45rem;
}

.alphabet-grid a {
    display: grid;
    aspect-ratio: 1;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .65rem;
    color: rgba(255, 255, 255, .83);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 600;
    transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s var(--ease);
}

.alphabet-grid a:hover {
    border-color: var(--apricot);
    color: var(--ink-deep);
    background: var(--apricot);
    transform: translateY(-3px) rotate(-2deg);
}

.split-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: start;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.popular-list {
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.popular-list li {
    position: relative;
    display: grid;
    min-height: 90px;
    grid-template-columns: 38px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    transition: padding .25s var(--ease), background-color .25s ease;
}

.popular-list li:hover {
    padding-inline: .55rem;
    background: var(--surface-soft);
}

.popular-list li > span {
    color: var(--apricot);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1rem;
}

.popular-list a {
    display: grid;
    min-width: 0;
}

.popular-list a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.popular-list strong {
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
}

.popular-list small {
    overflow: hidden;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popular-list em {
    color: var(--muted);
    font-size: .63rem;
    font-style: normal;
    font-weight: 700;
}

.popular-list b {
    color: var(--ink);
    font-weight: 500;
    transition: transform .25s ease;
}

.popular-list li:hover b {
    transform: translateX(4px);
}

.origin-panel {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, .66);
    background: var(--ink);
}

.origin-panel::after {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.origin-panel h2 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.origin-panel > p {
    margin-bottom: 1.7rem;
    font-size: .78rem;
}

.origin-cloud {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.origin-cloud a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .7rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    font-size: .68rem;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.origin-cloud a:hover {
    border-color: var(--apricot);
    color: var(--ink-deep);
    background: var(--apricot);
}

.origin-cloud small {
    color: inherit;
    opacity: .58;
}

.trust-section {
    overflow: hidden;
    background: var(--paper);
}

.trust-grid {
    display: grid;
    grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 9vw, 8rem);
}

.trust-heading {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
}

.trust-heading h2 {
    margin-bottom: 1.35rem;
    font-size: clamp(3rem, 5.8vw, 5.4rem);
}

.trust-heading h2 em {
    color: var(--apricot);
    font-weight: 500;
}

.trust-heading p {
    max-width: 475px;
    color: var(--muted);
    font-size: .86rem;
}

.trust-points {
    border-top: 1px solid var(--line);
}

.trust-points article {
    display: grid;
    min-height: 175px;
    grid-template-columns: 54px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.trust-points article > span {
    color: var(--apricot);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1rem;
}

.trust-points h3 {
    margin-bottom: .65rem;
    font-size: 1.75rem;
}

.trust-points p {
    max-width: 530px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: .8rem;
}

/* Breadcrumbs and directory */
.breadcrumbs {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: .55rem;
    margin-bottom: 2.4rem;
    color: rgba(255, 255, 255, .5);
    font-size: .66rem;
    font-weight: 700;
    white-space: nowrap;
}

.breadcrumbs a {
    color: rgba(255, 255, 255, .76);
    transition: color .2s ease;
}

.breadcrumbs a:hover {
    color: var(--apricot-soft);
}

.breadcrumbs span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-hero,
.static-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, .68);
    background:
        radial-gradient(circle at 82% 25%, rgba(233, 160, 120, .14), transparent 28%),
        var(--ink);
}

.directory-hero::after,
.static-hero::after,
.detail-hero::after {
    position: absolute;
    right: -140px;
    bottom: -280px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    box-shadow: inset 0 0 0 70px rgba(255, 255, 255, .018), inset 0 0 0 140px rgba(255, 255, 255, .018);
    content: "";
    pointer-events: none;
}

.directory-hero {
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.directory-hero h1 {
    max-width: 780px;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: clamp(3.1rem, 7vw, 6.5rem);
}

.directory-hero > .container > p {
    max-width: 660px;
    margin-bottom: 1.8rem;
    font-size: .88rem;
}

.directory-search {
    z-index: 2;
    width: min(650px, 100%);
}

.directory-body {
    padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(5rem, 9vw, 8rem);
    background: var(--surface);
}

.directory-toolbar {
    display: flex;
    margin-bottom: 1.25rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.directory-toolbar strong {
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.55rem;
    font-weight: 600;
}

.directory-links {
    display: flex;
    gap: .4rem;
}

.directory-links a {
    padding: .38rem .75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--surface-soft);
    font-size: .65rem;
    font-weight: 800;
    transition: border-color .2s ease, background-color .2s ease;
}

.directory-links a:hover {
    border-color: var(--apricot);
    background: var(--apricot-pale);
}

.alphabet-strip {
    display: flex;
    overflow-x: auto;
    margin-bottom: 2.4rem;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    gap: .18rem;
    background: var(--surface-soft);
    scrollbar-width: thin;
    scrollbar-color: var(--apricot) transparent;
}

.alphabet-strip a {
    display: grid;
    min-width: 34px;
    height: 36px;
    place-items: center;
    border-radius: .55rem;
    color: var(--ink-soft);
    font-family: "Newsreader", Georgia, serif;
    font-size: .9rem;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.alphabet-strip a:hover,
.alphabet-strip a.active {
    color: var(--white);
    background: var(--ink);
    transform: translateY(-1px);
}

.directory-grid {
    margin-top: 0;
}

/* Search page and empty state */
.search-page {
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
    text-align: center;
    background: var(--paper);
}

.search-page h1 {
    margin-bottom: 1.6rem;
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.page-search {
    width: min(700px, 100%);
    margin-inline: auto;
}

.search-summary {
    margin-top: 1rem;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.search-summary strong {
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.1rem;
}

.empty-state {
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    text-align: center;
}

.empty-state > span {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--apricot);
    font-family: "Newsreader", Georgia, serif;
    font-size: 2rem;
}

.empty-state h2 {
    margin-bottom: .75rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.empty-state p {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    color: var(--muted);
    font-size: .82rem;
}

.empty-state > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

/* Pagination */
.pagination {
    display: grid;
    margin-top: 3rem;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}

.pagination-arrow {
    color: var(--ink);
    font-size: .72rem;
    font-weight: 800;
}

.pagination-arrow:last-child {
    justify-self: end;
}

.pagination-pages {
    display: flex;
    gap: .3rem;
}

.pagination-pages a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink-soft);
    font-size: .7rem;
    font-weight: 800;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.pagination-pages a:hover,
.pagination-pages a.active {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}

/* Name detail */
.detail-hero {
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 7rem);
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .65fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7rem);
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.2rem;
}

.detail-badges .gender-chip,
.detail-badges > a {
    border-color: rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .76);
    background: rgba(255, 255, 255, .06);
}

.detail-badges > a {
    padding: .3rem .65rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    transition: border-color .2s ease, color .2s ease;
}

.detail-badges > a:hover {
    border-color: var(--apricot);
    color: var(--apricot-soft);
}

.detail-hero h1 {
    margin-bottom: 1.15rem;
    color: var(--white);
    font-size: clamp(3.3rem, 7vw, 6.8rem);
    font-weight: 500;
    letter-spacing: -.025em;
}

.detail-hero h1 span {
    color: var(--apricot);
}

.detail-deck {
    max-width: 690px;
    margin-bottom: 1.6rem;
    font-size: .88rem;
}

.detail-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.icon-button {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: var(--white);
    background: transparent;
    font-size: 1.15rem;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease;
}

.icon-button:hover,
.icon-button.is-active,
.icon-button.is-favorite {
    border-color: var(--apricot);
    color: var(--ink-deep);
    background: var(--apricot);
    transform: translateY(-2px);
}

.detail-monogram {
    position: relative;
    display: grid;
    width: min(100%, 350px);
    aspect-ratio: 1;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
}

.detail-monogram::before,
.detail-monogram::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    content: "";
}

.detail-monogram::before { inset: 11%; }
.detail-monogram::after { inset: 24%; border-style: dashed; }

.detail-monogram > span {
    position: relative;
    z-index: 2;
    color: rgba(233, 160, 120, .92);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(8rem, 18vw, 13rem);
    font-weight: 500;
    line-height: 1;
}

.detail-monogram small {
    position: absolute;
    z-index: 3;
    bottom: 16%;
    padding: .3rem .7rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: rgba(255, 255, 255, .65);
    background: rgba(15, 48, 42, .75);
    font-size: .57rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.detail-monogram i {
    position: absolute;
    top: 10%;
    right: 17%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--apricot);
    box-shadow: 0 0 0 5px rgba(233, 160, 120, .12);
}

.detail-content-section {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    background: var(--surface);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: clamp(3rem, 7vw, 6rem);
}

.name-article {
    min-width: 0;
}

.meaning-answer {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.8rem;
    padding: clamp(1.7rem, 5vw, 3rem);
    border: 1px solid rgba(23, 63, 54, .14);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.meaning-answer::after {
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 270px;
    height: 270px;
    border: 1px solid rgba(23, 63, 54, .08);
    border-radius: 50%;
    content: "";
}

.answer-mark {
    position: absolute;
    top: -.45rem;
    right: 1.2rem;
    color: rgba(233, 160, 120, .23);
    font-family: "Newsreader", Georgia, serif;
    font-size: 8rem;
    line-height: 1;
}

.meaning-answer > span {
    position: relative;
    z-index: 1;
    color: var(--ink-soft);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.meaning-answer h2 {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: .65rem 0 .9rem;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    line-height: 1.13;
}

.meaning-answer p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: .76rem;
}

.article-toc {
    display: flex;
    overflow-x: auto;
    margin: 2rem 0 1rem;
    padding: .75rem .9rem;
    border-block: 1px solid var(--line);
    align-items: center;
    gap: .9rem;
    color: var(--muted);
    font-size: .65rem;
    white-space: nowrap;
    scrollbar-width: thin;
}

.article-toc strong {
    color: var(--ink-deep);
    font-weight: 800;
}

.article-toc a {
    position: relative;
    padding-left: .9rem;
    font-weight: 700;
}

.article-toc a::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--apricot);
    content: "";
}

.article-toc a:hover {
    color: var(--ink);
}

.article-section {
    position: relative;
    padding: clamp(2.7rem, 6vw, 4.6rem) 0;
    border-bottom: 1px solid var(--line);
}

.section-number {
    display: block;
    margin-bottom: .8rem;
    color: var(--apricot);
    font-family: "Newsreader", Georgia, serif;
    font-size: .92rem;
}

.article-section h2 {
    max-width: 720px;
    margin-bottom: 1.4rem;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

.article-section p {
    max-width: 760px;
    margin-bottom: 1.25rem;
    color: #3f4d48;
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(1.15rem, 2vw, 1.32rem);
    font-weight: 500;
    line-height: 1.8;
}

.article-section p:last-child {
    margin-bottom: 0;
}

.etymology-route {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.8rem;
    align-items: center;
    gap: .65rem;
}

.etymology-route span,
.etymology-route strong {
    padding: .55rem .8rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--ink-soft);
    background: var(--paper);
    font-size: .68rem;
    font-weight: 800;
}

.etymology-route strong {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}

.etymology-route i {
    color: var(--apricot);
    font-style: normal;
}

.inline-note {
    display: flex;
    width: fit-content;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    align-items: center;
    background: var(--paper);
    font-size: .68rem;
}

.inline-note strong {
    padding: .55rem .8rem;
    color: var(--white);
    background: var(--ink);
}

.inline-note span {
    padding: .55rem .9rem;
    color: var(--ink-soft);
    font-weight: 700;
}

.interpretation-section {
    margin-top: 2.5rem;
    padding: clamp(2rem, 5vw, 3rem);
    border: 1px solid #e6d9ca;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.interpretation-section + .article-section {
    border-top: 0;
}

.interpretation-label {
    display: inline-flex;
    margin-bottom: .8rem;
    padding: .32rem .62rem;
    border-radius: 999px;
    color: #735a45;
    background: var(--apricot-pale);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.letter-list {
    display: grid;
    margin: 2rem 0 0;
    padding: 0;
    gap: .65rem;
    list-style: none;
}

.letter-list li {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 1rem;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
}

.letter-list li > span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50% 50% 50% 13px;
    color: var(--white);
    background: var(--ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
}

.letter-list p {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: .75rem;
    line-height: 1.65;
}

.source-box {
    display: grid;
    margin: clamp(3rem, 7vw, 5rem) 0;
    grid-template-columns: 58px 1fr;
    gap: 1.4rem;
    padding: clamp(1.6rem, 5vw, 2.7rem);
    border: 1px solid rgba(23, 63, 54, .17);
    border-radius: var(--radius-lg);
    background: #eef2ea;
}

.source-box > div:first-child span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--ink);
    font-size: 1.1rem;
}

.source-box small {
    color: var(--ink-soft);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.source-box h2 {
    margin: .4rem 0 .8rem;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.source-box p {
    margin-bottom: .7rem;
    color: var(--ink-soft);
    font-size: .75rem;
}

.source-box .source-meta {
    margin: 1rem 0 0;
    padding-top: .85rem;
    border-top: 1px solid rgba(23, 63, 54, .13);
    color: var(--muted);
    font-size: .61rem;
    font-weight: 700;
}

.faq-section {
    padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}

.faq-section > h2 {
    margin-bottom: 1.8rem;
    font-size: clamp(2.2rem, 4.7vw, 3.7rem);
}

.faq-section details {
    border-top: 1px solid var(--line);
}

.faq-section details:last-child {
    border-bottom: 1px solid var(--line);
}

.faq-section summary {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.faq-section details[open] summary span {
    color: var(--white);
    background: var(--ink);
    transform: rotate(45deg);
}

.faq-section details p {
    max-width: 700px;
    padding: 0 3rem 1.4rem 0;
    color: var(--muted);
    font-size: .78rem;
}

.helpful-box {
    display: flex;
    padding: 1.3rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--surface-soft);
}

.helpful-box > div {
    display: grid;
}

.helpful-box strong {
    color: var(--ink-deep);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
}

.helpful-box span {
    color: var(--muted);
    font-size: .62rem;
}

.helpful-box form {
    display: flex;
    gap: .5rem;
}

.helpful-box button {
    min-height: 38px;
    padding: .55rem .8rem;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    color: var(--ink);
    background: var(--surface);
    font-size: .65rem;
    font-weight: 800;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.helpful-box button:hover,
.helpful-box button.is-selected {
    border-color: var(--ink);
    color: var(--white);
    background: var(--ink);
}

.detail-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    display: grid;
    gap: 1rem;
}

.fact-card,
.sidebar-tools,
.editor-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.fact-card,
.sidebar-tools {
    padding: 1.5rem;
}

.fact-card h2,
.sidebar-tools h2 {
    margin-bottom: 1rem;
    font-size: 1.55rem;
    line-height: 1.12;
}

.fact-card dl {
    margin: 0;
}

.fact-card dl > div {
    display: flex;
    min-height: 43px;
    border-top: 1px solid var(--line);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .67rem;
}

.fact-card dt {
    color: var(--muted);
    font-weight: 600;
}

.fact-card dd {
    margin: 0;
    color: var(--ink-deep);
    font-weight: 800;
    text-align: right;
}

.fact-card dd a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--apricot);
    text-underline-offset: 3px;
}

.sidebar-tools {
    color: rgba(255, 255, 255, .65);
    background: var(--ink);
}

.sidebar-tools h2 {
    color: var(--white);
}

.sidebar-tools p {
    margin-bottom: 1rem;
    font-size: .68rem;
}

.sidebar-tools button {
    display: flex;
    width: 100%;
    min-height: 42px;
    margin-top: .5rem;
    padding: .65rem .8rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: .65rem;
    align-items: center;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .04);
    font-size: .68rem;
    font-weight: 800;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.sidebar-tools button:hover,
.sidebar-tools button.is-active,
.sidebar-tools button.is-favorite {
    border-color: var(--apricot);
    color: var(--ink-deep);
    background: var(--apricot);
}

.editor-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: center;
    gap: .85rem;
    padding: 1rem;
}

.editor-card > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--ink);
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.2rem;
}

.editor-card > div {
    display: grid;
    min-width: 0;
}

.editor-card small {
    color: var(--muted);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.editor-card strong {
    overflow: hidden;
    color: var(--ink-deep);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editor-card a {
    color: var(--ink-soft);
    font-size: .56rem;
    font-weight: 700;
}

.editor-card a:hover {
    color: var(--apricot);
}

.related-section {
    background: var(--paper);
}

/* AdSense: fixed visual reservations reduce cumulative layout shift. */
.ad-space {
    position: relative;
    display: grid;
    min-height: 250px;
    margin: 2.5rem 0;
    overflow: hidden;
    place-items: center;
    border: 1px dashed #d6cbbc;
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: #faf6ee;
}

.detail-sidebar .ad-space {
    min-height: 280px;
    margin: 0;
}

.ad-space.ad-error {
    min-height: 90px;
    border-style: solid;
    opacity: .65;
}

.ad-label {
    position: absolute;
    top: .5rem;
    left: 50%;
    color: #969c98;
    font-size: .52rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.adsbygoogle {
    width: 100%;
    min-height: 90px;
}

/* Static content */
.static-hero {
    padding: clamp(4rem, 9vw, 7rem) 0;
    text-align: center;
}

.static-hero .narrow-container {
    position: relative;
    z-index: 2;
}

.static-hero h1 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.static-hero p {
    max-width: 650px;
    margin-inline: auto;
    font-size: .9rem;
}

.static-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: clamp(3rem, 8vw, 7rem);
}

.prose {
    min-width: 0;
    color: #3f4d48;
    font-family: "Newsreader", Georgia, serif;
    font-size: 1.18rem;
    line-height: 1.82;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 2.4em;
    margin-bottom: .7em;
}

.prose h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.prose h3 { font-size: 1.8rem; }
.prose h4 { font-size: 1.35rem; }

.prose p,
.prose ul,
.prose ol {
    max-width: 780px;
    margin-bottom: 1.2em;
}

.prose li + li {
    margin-top: .4rem;
}

.prose a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--apricot);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.prose blockquote {
    margin: 2rem 0;
    padding: 1.3rem 1.6rem;
    border-left: 3px solid var(--apricot);
    color: var(--ink-soft);
    background: var(--paper);
}

.prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: "Manrope", sans-serif;
    font-size: .75rem;
}

.prose th,
.prose td {
    padding: .75rem;
    border: 1px solid var(--line);
    text-align: left;
}

.prose th {
    color: var(--ink-deep);
    background: var(--paper);
}

.static-aside {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
}

.static-aside .brand-mark {
    margin-bottom: 1.2rem;
}

.static-aside h2 {
    margin-bottom: .8rem;
    font-size: 2rem;
}

.static-aside p {
    color: var(--muted);
    font-size: .72rem;
}

/* Error page */
.error-page {
    position: relative;
    display: grid;
    min-height: min(780px, calc(100vh - 118px));
    overflow: hidden;
    place-items: center;
    padding: 5rem 0;
    color: rgba(255, 255, 255, .68);
    text-align: center;
    background: var(--ink);
}

.error-page::before,
.error-page::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}

.error-page::before {
    width: 580px;
    height: 580px;
}

.error-page::after {
    width: 390px;
    height: 390px;
}

.error-page .container {
    position: relative;
    z-index: 2;
}

.error-code {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    color: rgba(233, 160, 120, .09);
    font-family: "Newsreader", Georgia, serif;
    font-size: clamp(12rem, 35vw, 30rem);
    font-weight: 700;
    line-height: .75;
    transform: translate(-50%, -50%);
}

.error-page h1 {
    max-width: 820px;
    margin: 0 auto 1.2rem;
    color: var(--white);
    font-size: clamp(3.2rem, 8vw, 7rem);
}

.error-page p {
    max-width: 620px;
    margin: 0 auto 1.8rem;
    font-size: .86rem;
}

.error-page .container > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

/* Responsive */
@media (max-width: 1120px) {
    :root { --header-height: 76px; }

    .header-inner { gap: 1rem; }
    .main-nav { gap: .7rem; }
    .main-nav a { font-size: .7rem; }
    .main-nav .nav-random { display: none; }

    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(330px, .8fr);
        gap: 2.5rem;
    }

    .hero-atlas { width: min(100%, 430px); }
    .name-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; }
}

@media (max-width: 900px) {
    .container,
    .narrow-container {
        width: min(calc(100% - 2rem), var(--container));
    }

    .site-ribbon { display: none; }

    .header-inner {
        min-height: 72px;
    }

    .nav-toggle {
        display: block;
        order: 3;
    }

    .header-search-button {
        min-width: 44px;
        margin-left: auto;
        order: 2;
    }

    .header-search-button span:last-child { display: none; }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        margin: 0;
        padding: .75rem 1rem 1rem;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        background: rgba(255, 253, 248, .98);
        box-shadow: var(--shadow-md);
    }

    .main-nav.is-open,
    .main-nav[data-open="true"],
    .nav-open .main-nav {
        display: flex;
        animation: mobile-nav-in .22s var(--ease) both;
    }

    .main-nav a,
    .main-nav .nav-random {
        display: flex;
        min-height: 46px;
        padding: .65rem .75rem;
        align-items: center;
        border: 0;
        border-radius: .6rem;
        font-size: .77rem;
    }

    .main-nav a:hover {
        background: var(--paper);
    }

    .main-nav a::after { display: none; }

    @keyframes mobile-nav-in {
        from { opacity: 0; transform: translateY(-8px); }
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding-bottom: 1rem;
        text-align: center;
    }

    .hero-copy > p,
    .hero-search {
        margin-inline: auto;
    }

    .hero-suggestions { justify-content: center; }

    .hero-atlas {
        width: min(75vw, 450px);
        justify-self: center;
        margin-bottom: 2rem;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        padding-block: 1.2rem;
        gap: .7rem;
    }

    .hero-stats i { display: none; }
    .hero-stats > div { flex-direction: column; align-items: center; gap: .1rem; }

    .name-grid,
    .name-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card { min-height: 300px; }

    .alphabet-layout,
    .split-showcase,
    .trust-grid,
    .static-layout {
        grid-template-columns: 1fr;
    }

    .alphabet-copy { text-align: center; }
    .alphabet-copy p { margin-inline: auto; }
    .alphabet-grid { max-width: 680px; margin-inline: auto; }

    .origin-panel,
    .trust-heading,
    .static-aside {
        position: relative;
        top: auto;
    }

    .detail-hero-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 2rem; }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-sidebar .ad-space,
    .detail-sidebar .editor-card {
        min-height: auto;
        grid-column: 1 / -1;
    }

    .static-aside {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
    }

    .static-aside .brand-mark { grid-row: 1 / 4; }

    .footer-grid {
        grid-template-columns: 1.6fr repeat(2, 1fr);
    }

    .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 640px) {
    :root { --header-height: 70px; }

    body { font-size: 15px; }

    .container,
    .narrow-container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .brand-copy small { display: none; }
    .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 1.35rem; }
    .brand-copy strong { font-size: 1.1rem; }
    .header-inner { gap: .65rem; }
    .header-search-button,
    .nav-toggle { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }

    .section { padding: 4.25rem 0; }

    .section-heading {
        display: block;
        margin-bottom: 1.7rem;
    }

    .section-heading .text-link { margin-top: 1rem; }

    .home-hero { padding-top: 3.5rem; }
    .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.6rem); }
    .hero-copy h1 br { display: none; }

    .global-search { min-height: 54px; border-radius: 1rem; }
    .global-search > span { padding-left: .9rem; font-size: 1.25rem; }
    .global-search input { padding-inline: .65rem; font-size: .83rem; }
    .global-search button { min-height: 42px; margin-right: 5px; padding-inline: .85rem; }
    .hero-search button { font-size: 0; }
    .hero-search button::after { content: "Bul"; font-size: .72rem; }

    .hero-atlas { width: min(92vw, 390px); }
    .atlas-note { display: none; }
    .atlas-word { width: 61%; padding: 1.3rem; }
    .atlas-word strong { font-size: clamp(2.3rem, 11vw, 3.5rem); }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        min-height: 0;
    }

    .hero-stats > div { min-height: 70px; justify-content: center; }

    .name-grid,
    .name-grid--compact {
        grid-template-columns: 1fr;
    }

    .name-card,
    .name-grid--compact .name-card {
        min-height: 240px;
        padding: 1.3rem;
    }

    .name-card h3,
    .name-grid--compact .name-card h3 { font-size: 2.2rem; }

    .category-bento { grid-template-columns: 1fr; }
    .category-card { min-height: 270px; }
    .category-card > div { max-width: 75%; }
    .category-card h3 { font-size: 2.7rem; }
    .category-symbol { font-size: 9rem; }

    .alphabet-layout { gap: 2.5rem; }
    .alphabet-copy h2 { font-size: 3.5rem; }
    .alphabet-grid { grid-template-columns: repeat(6, 1fr); gap: .32rem; }

    .popular-list li {
        grid-template-columns: 30px minmax(0, 1fr) 20px;
        gap: .65rem;
    }

    .popular-list em { display: none; }
    .popular-list strong { font-size: 1.4rem; }

    .origin-panel { padding: 1.7rem; }

    .trust-points article {
        grid-template-columns: 36px 1fr;
        gap: .75rem;
    }

    .breadcrumbs { margin-bottom: 1.6rem; }
    .directory-hero,
    .detail-hero { padding-top: 1.5rem; }

    .directory-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .directory-links { width: 100%; }
    .directory-links a { flex: 1; text-align: center; }
    .alphabet-strip { margin-right: -.625rem; margin-left: -.625rem; border-radius: 0; border-inline: 0; }

    .pagination { grid-template-columns: 1fr 1fr; }
    .pagination-pages { grid-row: 1; grid-column: 1 / -1; justify-content: center; }
    .pagination-arrow { grid-row: 2; }

    .detail-hero-grid { grid-template-columns: 1fr; }
    .detail-hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
    .detail-hero h1 br { display: none; }
    .detail-monogram { display: none; }

    .detail-actions { flex-wrap: wrap; }
    .detail-actions .button { flex: 1; }

    .meaning-answer { padding: 1.5rem; }
    .meaning-answer h2 { font-size: 2.2rem; }
    .answer-mark { font-size: 6rem; }

    .article-section { padding: 3rem 0; }
    .article-section h2 { font-size: 2.25rem; }
    .article-section p { font-size: 1.12rem; line-height: 1.75; }

    .etymology-route { gap: .4rem; }
    .etymology-route span,
    .etymology-route strong { padding: .45rem .6rem; font-size: .6rem; }

    .interpretation-section { margin-top: 2rem; padding: 1.35rem; }
    .interpretation-section .section-number { margin-top: .5rem; }

    .source-box { grid-template-columns: 1fr; gap: 1rem; }

    .faq-section summary { min-height: 68px; font-size: 1.13rem; }
    .faq-section details p { padding-right: 0; }

    .helpful-box { align-items: stretch; flex-direction: column; }
    .helpful-box form { display: grid; grid-template-columns: 1fr 1fr; }

    .detail-sidebar { grid-template-columns: 1fr; }
    .detail-sidebar .ad-space,
    .detail-sidebar .editor-card { grid-column: auto; }

    .static-aside { display: block; }
    .prose { font-size: 1.08rem; }

    .search-dialog { padding: 3.5rem 1rem 1.5rem; border-radius: 1.3rem; }
    .search-dialog h2 { font-size: 2.5rem; }
    .search-dialog .global-search button { padding-inline: .7rem; }
    .search-shortcuts > span { width: 100%; }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.2rem 1.3rem;
    }

    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { margin-top: 3rem; flex-direction: column; gap: .5rem; }

    .cookie-banner {
        right: .65rem;
        bottom: .65rem;
        left: .65rem;
        width: calc(100% - 1.3rem);
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-actions .button { padding-inline: .55rem; }

    .error-page .container > div:last-child { flex-direction: column; align-items: stretch; }
}

@media (max-width: 390px) {
    .brand-copy strong { font-size: 1rem; }
    .header-inner { gap: .4rem; }
    .alphabet-grid { grid-template-columns: repeat(5, 1fr); }
    .category-card > div { max-width: 82%; }
    .cookie-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .site-ribbon,
    .site-header,
    .site-footer,
    .detail-actions,
    .article-toc,
    .detail-sidebar,
    .related-section,
    .helpful-box,
    .cookie-banner,
    .ad-space {
        display: none !important;
    }

    body,
    .detail-content-section,
    .detail-hero {
        color: #111;
        background: #fff;
    }

    .detail-hero {
        padding: 1rem 0 2rem;
    }

    .detail-hero h1,
    .detail-hero h1 span {
        color: #111;
    }

    .detail-layout { display: block; }
    .article-section { break-inside: avoid; }
}

/* Accessibility and progressive-enhancement safeguards */
:focus-visible {
    outline-color: var(--ink);
}

.global-search input::placeholder {
    color: #66766f;
}

.footer-bottom {
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
}

[data-pronounce].is-speaking {
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .2);
}

[data-share].is-complete {
    color: var(--ink-deep);
    background: var(--apricot-soft);
}

@media (max-width: 899px) {
    html:not(.js) .header-inner {
        flex-wrap: wrap;
    }

    html:not(.js) .nav-toggle,
    html:not(.js) .header-search-button {
        display: none;
    }

    html:not(.js) .main-nav {
        position: static;
        display: flex;
        flex: 1 0 100%;
        padding: .5rem 0 0;
        border: 0;
        box-shadow: none;
    }
}
