:root {
    --bg-top: #f8f5ee;
    --bg-bottom: #f2ecdf;
    --bg-deep: #e6dfd0;
    --ink: #18322b;
    --ink-soft: #557167;
    --ink-strong: #0f201b;
    --paper: #fff9ec;
    --paper-soft: #f2ebd7;
    --paper-line: rgba(24, 50, 43, 0.12);
    --mint: #78e8b6;
    --mint-soft: #cffff0;
    --aqua: #98ecef;
    --gold: #ddb654;
    --gold-soft: #f6df8d;
    --charcoal: #202528;
    --shadow: 0 26px 70px rgba(2, 8, 6, 0.24);
    --shadow-soft: 0 12px 28px rgba(2, 8, 6, 0.18);
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", "Nimbus Sans", sans-serif;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at 16% 10%, rgba(120, 232, 182, 0.12), transparent 18%),
        radial-gradient(circle at 83% 12%, rgba(152, 236, 239, 0.12), transparent 20%),
        radial-gradient(circle at 52% 0%, rgba(246, 223, 141, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.1;
    background: url("./brand/incara.png") center center / clamp(560px, 64vw, 1040px) no-repeat;
}

body > * {
    position: relative;
    z-index: 1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; }

@keyframes drift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes glowPulse {
    0% { opacity: 0.65; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 0.65; transform: scale(0.98); }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.container { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }
.container--narrow { width: min(760px, calc(100% - 32px)); }

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(22px);
    background: rgba(255, 252, 246, 0.96);
    border-bottom: 1px solid rgba(24, 50, 43, 0.08);
}

.topbar__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand__mark {
    width: 114px;
    height: 114px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand__badge {
    width: 114px;
    height: 114px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #b67f2c);
}

.brand__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.brand__title {
    font-size: clamp(1.7rem, 2.6vw, 1.95rem);
    font-weight: 800;
    color: var(--ink-strong);
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand__sub {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.25;
    white-space: pre-line;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--ink-soft);
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav a:hover,
.nav a.is-active {
    color: var(--ink-strong);
    background: rgba(120, 232, 182, 0.08);
    border-color: rgba(24, 50, 43, 0.1);
}

.nav a.nav__logout {
    color: #8f2d20;
    border-color: rgba(143, 45, 32, 0.14);
    background: rgba(143, 45, 32, 0.05);
}

.nav a.nav__logout:hover {
    color: #742215;
    background: rgba(143, 45, 32, 0.1);
    border-color: rgba(143, 45, 32, 0.2);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.lang-switcher .label { margin: 0; color: var(--ink-soft); }

.password-field {
    position: relative;
}

.password-field__input {
    padding-right: 96px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 1px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 252, 246, 0.92);
    color: var(--ink-soft);
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--ink-strong);
    border-color: rgba(24, 50, 43, 0.18);
}

.top-ad { padding-top: 18px; }

.site-shell {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 170px;
    gap: 24px;
    align-items: start;
}

.site-shell--left-side { grid-template-columns: 170px minmax(0, 1fr); }
.site-shell--right-side { grid-template-columns: minmax(0, 1fr) 170px; }
.site-shell--no-sides { grid-template-columns: minmax(0, 1fr); }
.site-main { min-width: 0; }
.side-ad { position: sticky; top: 104px; }

.ad-live {
    min-height: 120px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 232, 182, 0.14);
    box-shadow: var(--shadow-soft);
}

.ad-live--left,
.ad-live--right { min-height: 340px; }

.ad-live--between_cards {
    min-height: 138px;
    padding: 20px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 252, 244, 0.94), rgba(244, 236, 215, 0.9));
    border: 1px solid rgba(24, 50, 43, 0.1);
}

.hero {
    padding: 32px 0 18px;
}

.hero-brand {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.card,
.panel {
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 248, 233, 0.08);
    background: linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(242, 235, 215, 0.95));
    box-shadow: var(--shadow);
    color: var(--ink);
}

.hero__card,
.hero-brand__mascot,
.spotlight-ribbon,
.finder-shell,
.latest-panel,
.creator-callout {
    position: relative;
    overflow: hidden;
}

.hero__card,
.hero-brand__mascot,
.spotlight-ribbon,
.latest-panel,
.creator-callout {
    padding: 28px;
}

.hero-brand__story {
    padding: 36px;
    position: relative;
    overflow: hidden;
    color: #f5fff9;
    background:
        radial-gradient(circle at 18% 20%, rgba(120, 232, 182, 0.22), transparent 30%),
        radial-gradient(circle at 82% 16%, rgba(246, 223, 141, 0.15), transparent 24%),
        linear-gradient(160deg, rgba(10, 27, 22, 0.95), rgba(18, 54, 45, 0.95));
    border: 1px solid rgba(120, 232, 182, 0.16);
}

.hero-brand__story::after,
.hero-brand__story::before,
.hero-brand__mascot::after,
.spotlight-ribbon::after,
.creator-callout::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-brand__story::after {
    width: 220px;
    height: 220px;
    right: -40px;
    top: -80px;
    background: radial-gradient(circle, rgba(246, 223, 141, 0.24), transparent 68%);
    animation: drift 8s ease-in-out infinite;
}

.hero-brand__story::before {
    width: 300px;
    height: 300px;
    left: -110px;
    bottom: -130px;
    background: radial-gradient(circle, rgba(120, 232, 182, 0.18), transparent 70%);
    animation: glowPulse 10s ease-in-out infinite;
}

.hero-brand__mascot {
    display: grid;
    align-content: space-between;
    gap: 12px;
    background:
        radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 42%),
        linear-gradient(180deg, rgba(255, 252, 242, 0.98), rgba(232, 251, 244, 0.94));
    border: 1px solid rgba(120, 232, 182, 0.22);
}

.hero-brand__glow {
    position: absolute;
    inset: 12% 16% auto 16%;
    height: 48%;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(120, 232, 182, 0.35), rgba(152, 236, 239, 0.08) 55%, transparent 72%);
    filter: blur(10px);
    animation: glowPulse 7s ease-in-out infinite;
}

.hero-brand__mascot::after {
    width: 220px;
    height: 220px;
    right: -70px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(221, 182, 84, 0.22), transparent 68%);
    animation: drift 10s ease-in-out infinite;
}

.hero-brand__image {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    margin: 0 auto;
    filter: drop-shadow(0 20px 36px rgba(11, 33, 26, 0.18));
}

.hero-brand__caption {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.hero-brand__caption h2 {
    margin: 0;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: -0.03em;
    color: var(--ink-strong);
}

.hero-brand__caption p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(24, 50, 43, 0.06);
    border: 1px solid rgba(24, 50, 43, 0.08);
    color: var(--ink-soft);
}

.eyebrow--glow,
.hero-brand__story .eyebrow,
.spotlight-ribbon .eyebrow,
.section-head .eyebrow {
    background: rgba(120, 232, 182, 0.12);
    border-color: rgba(120, 232, 182, 0.18);
    color: #dffcef;
}

.badge {
    background: rgba(24, 50, 43, 0.08);
    color: var(--ink-soft);
}

.badge--warm {
    background: rgba(221, 182, 84, 0.18);
    border-color: rgba(221, 182, 84, 0.24);
    color: #87631b;
}

.page-title,
.hero-brand__story h1,
.spotlight-ribbon__copy h2 {
    margin: 0 0 14px;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.page-title {
    font-size: clamp(1.9rem, 4vw, 2.85rem);
    color: var(--ink-strong);
}

.page-title--sm {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.hero-brand__story h1 {
    font-size: clamp(2.8rem, 6vw, 5.1rem);
    color: #fff7eb;
}

.card .page-title,
.panel .page-title,
.finder-shell__intro .page-title,
.latest-panel .page-title,
.creator-callout .page-title,
.hero__card .page-title {
    color: var(--ink-strong);
}

.lead {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.76;
}

.lead--xl {
    max-width: 58ch;
    font-size: 1.08rem;
}

.hero-brand__story .lead,
.spotlight-ribbon__copy .lead {
    color: rgba(240, 255, 246, 0.84);
}

.hero-actions,
.font-card__actions,
.detail-actions,
.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.upload-progress {
    display: grid;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(2, 8, 6, 0.08);
}

.upload-progress[hidden] {
    display: none !important;
}

.upload-progress__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.upload-progress__status {
    font-weight: 700;
    color: var(--ink-strong);
}

.upload-progress__percent {
    font-weight: 800;
    color: var(--ink-soft);
}

.upload-progress__track {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(24, 50, 43, 0.09);
}

.upload-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--gold), var(--mint));
    box-shadow: 0 8px 18px rgba(221, 182, 84, 0.22);
    transition: width 0.2s ease;
}

.upload-progress[data-stage="processing"] .upload-progress__status {
    color: var(--ink-strong);
}

.upload-progress[data-stage="processing"] .upload-progress__percent {
    color: var(--ink-strong);
}

.upload-progress[data-stage="processing"] .upload-progress__bar {
    background: linear-gradient(90deg, var(--gold) 0%, var(--mint) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    animation: upload-progress-processing 1.1s linear infinite;
}

.upload-progress[data-stage="failed"] .upload-progress__status,
.upload-progress[data-stage="failed"] .upload-progress__percent {
    color: #9f3c36;
}

.upload-progress[data-stage="failed"] .upload-progress__bar {
    background: linear-gradient(135deg, #d96d66, #b6453d);
    box-shadow: 0 8px 18px rgba(185, 69, 61, 0.18);
    animation: none;
}

@keyframes upload-progress-processing {
    0% { background-position: 200% 0; }
    100% { background-position: 0 0; }
}

.hero-chip-row,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.chip-row--soft { margin-top: 14px; }

.hero-chip,
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-strong);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero-brand__story .hero-chip,
.hero-brand__story .filter-chip {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(120, 232, 182, 0.16);
    color: #f3fff8;
}

.filter-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 50, 43, 0.22);
    box-shadow: 0 10px 24px rgba(2, 8, 6, 0.12);
}

.filter-chip span {
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.hero-brand__story .filter-chip span {
    color: rgba(240, 255, 246, 0.78);
}

.filter-chip--ghost {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f1fff7;
}

.hero-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.hero-kpi,
.stat {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(24, 50, 43, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.hero-brand__story .hero-kpi {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(120, 232, 182, 0.14);
}

.hero-kpi strong,
.stat strong {
    display: block;
    font-size: 1.48rem;
    margin-bottom: 6px;
}

.hero-kpi span,
.stat span {
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.hero-brand__story .hero-kpi strong {
    color: #fff7eb;
}

.hero-brand__story .hero-kpi span {
    color: rgba(240, 255, 246, 0.72);
}

.catalog-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 8px 2px 0;
}

.catalog-header__intro {
    max-width: 780px;
}

.catalog-header__row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.catalog-header__title {
    margin: 10px 0 12px;
    color: var(--ink-strong);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.25rem, 2.3vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

body.lang-en .catalog-header__title {
    white-space: nowrap;
}

.catalog-header__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--ink-soft);
}

.catalog-header__stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(24, 50, 43, 0.08);
}

.catalog-header__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.catalog-header__actions--inline {
    justify-content: flex-start;
    margin: 0;
}

.taxonomy-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0;
    border: 2px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 0;
    box-shadow: var(--shadow-soft);
}

.taxonomy-board__group {
    padding: 10px 12px 14px;
    border-right: 1px dashed rgba(24, 50, 43, 0.12);
}

.taxonomy-board__group:nth-child(8n) {
    border-right: 0;
}

.taxonomy-board__group:last-child {
    border-right: 0;
}

.taxonomy-board__title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: var(--ink-strong);
    font-weight: 800;
    font-size: 0.92rem;
}

.taxonomy-board__title em {
    font-style: normal;
    font-size: 0.8rem;
    opacity: 0.8;
}

.taxonomy-board__links {
    display: grid;
    gap: 4px;
}

.taxonomy-board__links a {
    color: var(--ink-strong);
    font-size: 0.92rem;
    line-height: 1.35;
}

.taxonomy-board__links a:hover {
    text-decoration: underline;
}

.font-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.font-feed-ad {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    margin: 6px 0 2px;
}

.font-feed-ad__label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.font-card--feed {
    padding-top: 0;
}

.font-card__ribbon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin: 0 -18px 12px;
    padding: 8px 14px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    color: var(--ink-strong);
    font-weight: 800;
    font-size: 0.92rem;
}

.font-card__ribbon em {
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 0.84;
}

.font-preview--feed {
    height: 90px;
    min-height: 90px;
    background: #fff;
    object-fit: contain;
}

.font-card__meta--feed {
    min-height: 0;
}

.spotlight-ribbon {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
    background:
        radial-gradient(circle at 18% 18%, rgba(120, 232, 182, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(8, 24, 20, 0.96), rgba(19, 54, 45, 0.94));
    border: 1px solid rgba(120, 232, 182, 0.14);
    color: #f5fff9;
}

.spotlight-ribbon::after {
    width: 260px;
    height: 260px;
    top: -110px;
    right: -70px;
    background: radial-gradient(circle, rgba(221, 182, 84, 0.18), transparent 70%);
    animation: drift 10s ease-in-out infinite;
}

.spotlight-ribbon__copy {
    display: grid;
    align-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.spotlight-ribbon__preview {
    position: relative;
    z-index: 1;
}

.hero-stage {
    padding: 22px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(24, 50, 43, 0.08);
    background: linear-gradient(180deg, rgba(255, 252, 243, 0.98), rgba(235, 247, 242, 0.94));
    color: var(--ink);
}

.hero-stage__top,
.font-card__top,
.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.hero-stage h2 {
    margin: 0 0 10px;
    color: var(--ink-strong);
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
}

.hero-stage__top p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.6;
}

.hero-stage__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.hero-stage__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.95rem;
}

.hero-stage__facts span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
}

.section {
    padding: 18px 0 42px;
}

.section--tight {
    padding-top: 10px;
    padding-bottom: 20px;
}

.section-head {
    margin-bottom: 18px;
}

.section-head__meta {
    color: var(--ink-soft);
    font-size: 0.95rem;
    padding-top: 12px;
}

.finder-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 28px 26px 24px;
}

.finder-shell__intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.finder-shell__title {
    margin: 0;
    white-space: nowrap;
    line-height: 1.04;
}

.finder-shell__summary {
    margin: 0;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(24, 50, 43, 0.1);
    background: rgba(255, 255, 255, 0.42);
    color: var(--ink-soft);
    white-space: nowrap;
}

.finder-shell__summary strong {
    color: var(--ink-strong);
    font-size: 1.28rem;
    margin-right: 6px;
}

.toolbar {
    display: grid;
    gap: 16px;
}

.auth-sso {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.sso-buttons {
    display: grid;
    gap: 12px;
}

.button-secondary--sso {
    width: 100%;
    justify-content: flex-start;
    padding: 16px 20px;
    border-radius: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.button--sso-primary {
    width: 100%;
    justify-content: flex-start;
    padding: 18px 22px;
    border-radius: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.sso-button__title {
    font-size: 1rem;
    font-weight: 800;
}

.sso-button__note {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.45;
}

.sso-button__note--dark {
    color: rgba(17, 36, 30, 0.82);
}

.auth-divider {
    position: relative;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid rgba(24, 50, 43, 0.12);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    background: rgba(249, 244, 231, 0.92);
    color: var(--ink-soft);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.auth-note-card,
.legacy-auth {
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 255, 255, 0.82);
}

.auth-note-card {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
}

.auth-note-card h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--ink-strong);
}

.legacy-auth {
    margin-top: 10px;
}

.toolbar--finder { align-content: stretch; }

.toolbar__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 14px;
    align-items: end;
}

.toolbar__row--wide {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 0.9fr) minmax(0, 0.9fr) auto auto auto;
}

.toolbar__row--detail {
    grid-template-columns: 1.4fr 0.8fr auto auto;
}

.toolbar__row--submit {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full { grid-column: 1 / -1; }

.label {
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 700;
}

.input,
.input-color,
.file-input,
.textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    color: var(--ink-strong);
    border-radius: 18px;
    border: 1px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.input--small {
    min-height: 46px;
    padding: 10px 14px;
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.input:focus,
.input-color:focus,
.file-input:focus,
.textarea:focus {
    border-color: rgba(120, 232, 182, 0.48);
    box-shadow: 0 0 0 4px rgba(120, 232, 182, 0.12);
}

.input-color { padding: 10px; }
.textarea { resize: vertical; min-height: 140px; }

.button,
.button-secondary,
.button-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 20px;
    border: 0;
    border-radius: 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.button:hover,
.button-secondary:hover,
.button-danger:hover {
    transform: translateY(-1px);
}

.button {
    color: #11241e;
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    box-shadow: 0 16px 32px rgba(221, 182, 84, 0.22);
}

.button-secondary {
    color: var(--ink-strong);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(24, 50, 43, 0.12);
}

.button-danger {
    color: #fff;
    background: linear-gradient(135deg, #d75b58, #ad342f);
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.font-card__actions .button,
.font-card__actions .button-secondary,
.font-card__actions .button-danger {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 15px;
    font-size: 0.94rem;
}

.curation-grid,
.grid,
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.font-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px;
    animation: rise 0.42s ease-out;
}

.font-card:hover,
.category-spotlight:hover,
.latest-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 74px rgba(2, 8, 6, 0.2);
}

.font-card__name {
    font-size: 1.16rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.font-preview {
    width: 100%;
    min-height: 140px;
    margin-top: 14px;
    border-radius: 20px;
    border: 1px solid rgba(24, 50, 43, 0.08);
    background: linear-gradient(180deg, #fffdf8, #eef8f1);
    object-fit: cover;
}

.font-preview--hero {
    min-height: 220px;
}

.font-preview--detail {
    margin-top: 18px;
    min-height: 200px;
}

.font-preview--compact {
    min-height: 110px;
}

.font-card__meta {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    line-height: 1.4;
}

.font-card__meta > div {
    min-width: 0;
}

.font-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    flex-wrap: wrap;
}

.font-card__footer .font-card__meta {
    flex: 1 1 220px;
    margin-top: 0;
}

.font-card__aside {
    display: grid;
    justify-items: end;
    align-content: end;
    gap: 8px;
    margin-left: auto;
}

.font-card__stats {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 12px;
    flex-wrap: wrap;
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.35;
}

.font-card__stats span {
    white-space: nowrap;
}

.font-card__stats strong {
    color: var(--ink-strong);
}

.font-card__actions--compact {
    margin-top: 0;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.font-card__actions--compact .button,
.font-card__actions--compact .button-secondary,
.font-card__actions--compact .button-danger {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 0.66rem;
}

.font-card--feature .font-card__meta {
    min-width: 0;
}

.font-card--feature .font-card__footer {
    margin-top: 14px;
    padding-top: 0;
    align-items: flex-start;
}

.font-card--feature .font-card__aside {
    align-content: start;
    gap: 8px;
}

.category-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-spotlight {
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-spotlight__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.category-spotlight__title {
    display: inline-block;
    margin: 14px 0 10px;
    font-size: 1.48rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink-strong);
}

.category-spotlight p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.7;
}

.sample-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sample-row span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(24, 50, 43, 0.06);
    font-size: 0.88rem;
}

.category-spotlight__lead {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(24, 50, 43, 0.08);
    display: grid;
    gap: 6px;
}

.category-spotlight__lead strong {
    color: var(--ink-soft);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.editorial-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
}

.latest-panel,
.creator-callout {
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(242, 246, 238, 0.95));
}

.creator-callout {
    background:
        radial-gradient(circle at 82% 20%, rgba(120, 232, 182, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(255, 249, 236, 0.98), rgba(242, 246, 238, 0.95));
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.latest-card {
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(24, 50, 43, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.notice,
.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(120, 232, 182, 0.12);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
}

.alert--success {
    border-color: rgba(120, 232, 182, 0.26);
    background: rgba(120, 232, 182, 0.14);
}

.alert--error {
    border-color: rgba(215, 91, 88, 0.24);
    background: rgba(215, 91, 88, 0.12);
}

.meta-table {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.meta-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(24, 50, 43, 0.08);
}

.meta-row:last-child { border-bottom: 0; }

.meta-label {
    color: var(--ink-soft);
    font-weight: 700;
}

.taxonomy-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.taxonomy-card {
    padding: 16px;
    border: 1px solid rgba(24, 50, 43, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
}

.taxonomy-card__title {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    font-weight: 800;
    margin-bottom: 10px;
}

.taxonomy-card__title span,
.taxonomy-card__subs a span {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.taxonomy-card__subs {
    display: grid;
    gap: 8px;
}

.taxonomy-card__subs a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    padding: 5px 0;
    border-top: 1px dashed rgba(24, 50, 43, 0.08);
}

.taxonomy-card__subs a:first-child { border-top: 0; }

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.pagination a,
.pagination span {
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(24, 50, 43, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink-soft);
}

.pagination .is-current {
    background: rgba(120, 232, 182, 0.16);
    border-color: rgba(120, 232, 182, 0.28);
    color: var(--ink-strong);
}

.admin-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.table-wrap { overflow: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(24, 50, 43, 0.08);
    vertical-align: top;
}

.table th {
    color: var(--ink-soft);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.muted { color: var(--ink-soft); }

.empty {
    padding: 34px;
    text-align: center;
    color: var(--ink-soft);
}

.error-list {
    margin: 12px 0 0 18px;
    padding: 0;
}

.trait-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(24, 50, 43, 0.1);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    cursor: pointer;
}

.trait-pill input,
.checkbox-row input {
    margin: 0;
}

.checkbox-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-soft);
}

.footer {
    padding: 30px 0 44px;
    color: var(--ink-soft);
}

.footer__inner {
    padding-top: 22px;
    border-top: 1px solid rgba(24, 50, 43, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__link {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.footer__link:hover,
.footer__link:focus-visible {
    text-decoration: underline;
}

.policy-shell {
    max-width: 980px;
    display: grid;
    gap: 20px;
}

.policy-card {
    padding: 28px;
}

.policy-card h2,
.policy-card h3 {
    margin: 0 0 12px;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.policy-card h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

.policy-card h3 {
    font-size: 1.2rem;
}

.policy-card a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.policy-card a:hover,
.policy-card a:focus-visible {
    text-decoration: underline;
}

.policy-text {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.75;
}

.policy-list {
    margin: 0;
    padding-left: 20px;
    color: var(--ink-soft);
    line-height: 1.75;
}

.policy-list li + li {
    margin-top: 10px;
}

.policy-stack {
    display: grid;
    gap: 18px;
}

body.lang-ar {
    font-family: Tahoma, Arial, sans-serif;
}

@media (max-width: 1380px) {
    .site-shell,
    .site-shell--left-side,
    .site-shell--right-side,
    .site-shell--no-sides {
        grid-template-columns: minmax(0, 1fr);
    }

    .side-ad { position: static; }
}

@media (max-width: 1180px) {
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }

    body.lang-en .catalog-header__title {
        white-space: normal;
    }

    .hero-brand,
    .spotlight-ribbon,
    .finder-shell,
    .font-feed-grid,
    .category-spotlight-grid,
    .curation-grid,
    .library-grid,
    .grid,
    .taxonomy-grid,
    .editorial-split,
    .admin-layout,
    .hero-kpis,
    .toolbar__row--wide,
    .toolbar__row--submit,
    .latest-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .taxonomy-board__group {
        border-right: 1px dashed rgba(24, 50, 43, 0.12);
        border-bottom: 1px dashed rgba(24, 50, 43, 0.12);
    }

    .taxonomy-board__group:nth-child(4n) {
        border-right: 0;
    }

    .taxonomy-board__group:nth-last-child(-n + 4) {
        border-bottom: 0;
    }

    .topbar__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .finder-shell {
        grid-template-columns: 1fr;
    }

    .finder-shell__intro {
        flex-direction: column;
        align-items: flex-start;
    }

    .finder-shell__title,
    body.lang-en .finder-shell__title {
        white-space: normal;
    }

    .nav { justify-content: flex-start; }
    .lang-switcher { justify-self: start; }
}

@media (max-width: 860px) {
    body::before {
        background-size: clamp(440px, 96vw, 680px);
    }

    .hero-brand,
    .spotlight-ribbon,
    .finder-shell,
    .font-feed-grid,
    .category-spotlight-grid,
    .curation-grid,
    .library-grid,
    .grid,
    .taxonomy-grid,
    .editorial-split,
    .admin-layout,
    .hero-kpis,
    .toolbar__row,
    .toolbar__row--wide,
    .toolbar__row--detail,
    .toolbar__row--submit,
    .latest-grid,
    .meta-row,
    .topbar__inner {
        grid-template-columns: 1fr;
        display: grid;
    }

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

    .hero-brand__story,
    .hero-brand__mascot,
    .spotlight-ribbon,
    .hero__card,
    .latest-panel,
    .creator-callout,
    .finder-shell {
        padding: 22px;
    }

    .hero-brand__story h1 {
        font-size: clamp(2.3rem, 10vw, 3.5rem);
    }

    .brand {
        align-items: flex-start;
    }

    .brand__mark,
    .brand__badge {
        width: 88px;
        height: 88px;
    }

    .brand__title {
        font-size: 1.55rem;
    }

    .nav,
    .lang-switcher {
        width: 100%;
        justify-content: flex-start;
    }

    .taxonomy-board__group {
        border-right: 1px dashed rgba(24, 50, 43, 0.12);
        border-bottom: 1px dashed rgba(24, 50, 43, 0.12);
    }

    .taxonomy-board__group:nth-child(2n) {
        border-right: 0;
    }

    .taxonomy-board__group:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .taxonomy-board__group:last-child {
        border-bottom: 0;
    }

    .checkbox-row { flex-wrap: wrap; }
}
