@charset "UTF-8";
/* ==========================================================================
   China Fonts — Type Foundry UI
   A type-specimen / editorial design system.
   Palette: ink black + paper white + vermilion accent.
   No rounded "SaaS cards", no drop shadows — hairlines and typography only.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* surfaces */
    --ink: #0C0C0E;
    --ink-2: #17171A;
    --ink-soft: #2A2A2F;
    --paper: #FBFBF9;
    --surface: #FFFFFF;
    --surface-2: #F4F3EF;

    /* text */
    --text: #101014;
    --text-2: #4A4A52;
    --text-3: #7C7C86;
    --text-4: #A6A6AE;
    --on-ink: #F6F5F2;
    --on-ink-2: #A8A8B0;

    /* lines */
    --line: #E5E3DD;
    --line-2: #D5D2CA;
    --line-ink: rgba(255, 255, 255, .14);

    /* accent */
    --accent: #FF3B00;
    --accent-deep: #C82C00;
    --accent-wash: #FFF0EA;

    /* compat aliases (legacy inline styles) */
    --primary-color: #FF3B00;
    --secondary-color: #7C7C86;
    --light-color: #F4F3EF;
    --dark-color: #0C0C0E;
    --border-radius: 2px;
    --box-shadow: none;

    /* type */
    --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
        "Songti SC", "SimSun", "Times New Roman", serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;

    /* metrics */
    --header-h: 60px;
    --wrap: 1280px;
    --gut: 24px;
    --radius: 2px;

    /* motion */
    --ease: cubic-bezier(.2, .7, .3, 1);
    --fast: 120ms;
    --base: 200ms;

    color-scheme: light;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 59, 0, .12);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -.018em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.95rem); }
h3 { font-size: 1.0625rem; }
h4 { font-size: .9375rem; }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; border-style: none; }
svg { display: block; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease),
        border-color var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

ul, ol { margin: 0; padding: 0; list-style: none; }

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.5rem 0;
}

code, kbd, samp {
    font-family: var(--font-mono);
    font-size: .875em;
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: .1em .35em;
    border-radius: var(--radius);
}

/* Code chips on the ink-coloured surfaces must stay readable. */
.hero code, .hero kbd,
.site-header code,
.site-footer code, .footer-content code {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- 3. Focus & a11y ---------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius);
}

.site-header :focus-visible { outline-color: #fff; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    font-size: .875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: top var(--base) var(--ease);
}
.skip-link:focus { top: 12px; }

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

/* ---------- 4. Layout primitives ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.main-layout {
    display: block;
    padding-top: 32px;
    padding-bottom: 64px;
}

.layout-rail {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
/* <main> comes first in the DOM for heading order; the rail is placed left. */
.layout-rail > .sidebar { grid-column: 1; grid-row: 1; min-width: 0; }
.layout-rail > .main-content { grid-column: 2; grid-row: 1; }

.main-content { min-width: 0; }

.rail-block > .rail-title:first-child,
.sidebar > .rail-block:first-child > .rail-title:first-child { margin-top: 0; }

.section { margin: 0 0 64px; }
.section:last-child { margin-bottom: 0; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 14px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--ink);
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 400;
    letter-spacing: -.01em;
}

.section-sub {
    margin: 6px 0 0;
    color: var(--text-3);
    font-size: .875rem;
    max-width: 62ch;
}

.section-link {
    flex: none;
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--line-2);
    padding-bottom: 2px;
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- 5. Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--ink);
    color: var(--on-ink);
    border-bottom: 1px solid var(--line-ink);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    color: var(--on-ink);
}
.brand:hover { color: #fff; }

.brand-mark {
    width: 26px;
    height: 26px;
    flex: none;
    color: var(--accent);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--on-ink-2);
    border-left: 1px solid var(--line-ink);
    padding-left: 10px;
    margin-left: 2px;
}

.nav-main {
    /* Never shrink: a clipped nav is worse than a narrower search box. */
    flex: 0 0 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-main::-webkit-scrollbar { display: none; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    width: max-content;
}

.nav-link {
    display: block;
    padding: 7px 10px;
    font-size: .84375rem;
    color: var(--on-ink-2);
    border-radius: var(--radius);
    white-space: nowrap;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line-ink);
    border-radius: var(--radius);
    min-width: 0;
}
.header-search input {
    width: 150px;
    min-width: 28px;
    background: none;
    border: 0;
    outline: none;
    font-size: .8125rem;
    color: #fff;
}
.header-search input::placeholder { color: var(--on-ink-2); }
.header-search svg { width: 15px; height: 15px; color: var(--on-ink-2); flex: none; }
.header-search:focus-within { border-color: var(--accent); }
.header-search input:focus-visible { outline: none; }

.mobile-toggle {
    display: none;
    width: 38px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--line-ink);
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
}
.mobile-toggle svg { width: 18px; height: 18px; }

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line-ink);
    background: var(--ink);
    padding: 10px var(--gut) 20px;
    overscroll-behavior: contain;
}
.mobile-panel[data-open="true"] { display: block; }
.mobile-panel a {
    display: block;
    padding: 11px 2px;
    font-size: .9375rem;
    color: var(--on-ink-2);
    border-bottom: 1px solid var(--line-ink);
}
.mobile-panel a:hover,
.mobile-panel a[aria-current="page"] { color: #fff; }
.mobile-panel a[aria-current="page"] { border-bottom-color: var(--accent); }
.mobile-panel form { padding: 12px 0 6px; }
.mobile-panel .header-search { display: flex; background: rgba(255, 255, 255, .07); }
.mobile-panel .header-search input { width: 100%; height: auto; }

/* ---------- 6. Buttons & chips ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn svg { width: 16px; height: 16px; }

.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-sm { height: 32px; padding: 0 12px; font-size: .8125rem; }
.btn-lg { height: 52px; padding: 0 26px; font-size: .9375rem; }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 13px;
    font-size: .8125rem;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="page"],
.chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}
.chip-count {
    font-family: var(--font-mono);
    font-size: .6875rem;
    color: var(--text-4);
}
.chip[aria-current="page"] .chip-count,
.chip.is-active .chip-count { color: rgba(255, 255, 255, .6); }

/* ---------- 7. Hero ---------- */
.hero {
    background: var(--ink);
    color: var(--on-ink);
    padding: 68px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: var(--line-ink);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--on-ink-2);
    margin: 0 0 20px;
}
.hero-eyebrow b { color: var(--accent); font-weight: 600; }

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.6vw, 3.75rem);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -.025em;
    margin: 0 0 20px;
    color: #fff;
    text-wrap: balance;
}
.hero-title em {
    font-style: italic;
    color: var(--accent);
}

.hero-lead {
    font-size: 1.0625rem;
    color: var(--on-ink-2);
    max-width: 52ch;
    margin: 0 0 30px;
}

.hero-search {
    display: flex;
    gap: 8px;
    max-width: 560px;
    margin: 0 0 16px;
}
.hero-search input[type="search"],
.hero-search input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    font-size: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--line-ink);
    border-radius: var(--radius);
    outline: none;
}
.hero-search input::placeholder { color: var(--on-ink-2); }
.hero-search input:focus { border-color: var(--accent); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a {
    font-size: .8125rem;
    color: var(--on-ink-2);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    padding-bottom: 1px;
}
.hero-chips a:hover { color: #fff; border-color: var(--accent); }
.hero-chips .sep { color: rgba(255, 255, 255, .22); }

/* Specimen letterform stack */
.hero-specimen {
    display: grid;
    gap: 2px;
    border: 1px solid var(--line-ink);
    padding: 2px;
}
.hero-specimen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, .04);
    overflow: hidden;
}
.hero-specimen-row span:first-child {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.1;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-specimen-row span:last-child {
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--on-ink-2);
    flex: none;
}
.hero-specimen-row:nth-child(2) span:first-child { font-family: var(--font-sans); font-weight: 300; }
.hero-specimen-row:nth-child(3) span:first-child { font-family: var(--font-mono); font-size: 1.25rem; }
.hero-specimen-row:nth-child(4) span:first-child { font-family: var(--font-display); font-style: italic; }
.hero-specimen-row:nth-child(5) span:first-child { font-family: var(--font-sans); font-weight: 800; letter-spacing: -.04em; }

/* ---------- 8. Stat strip ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}
.stat {
    padding: 22px var(--gut);
    border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.stat-label {
    display: block;
    margin-top: 4px;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ---------- 9. Page head / breadcrumbs ---------- */
.page-head {
    padding: 30px 0 26px;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 34px;
}
.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -.02em;
}
.page-title-sub {
    margin: 10px 0 0;
    color: var(--text-3);
    font-size: .9375rem;
    max-width: 70ch;
}
.page-count {
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: .8125rem;
    color: var(--text-3);
    margin: 0 0 14px;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--text-2); }

/* ---------- 10. Category tiles ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    background: var(--surface);
}
.cat-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 26px;
    min-height: 132px;
    padding: 20px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    position: relative;
}
.cat-grid > .cat-tile:nth-child(4n) { border-right: 0; }
.cat-grid > .cat-tile:nth-last-child(-n+4) { border-bottom: 0; }
.cat-tile:hover { background: var(--surface-2); }
.cat-tile:hover .cat-name { color: var(--accent); }
.cat-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--ink);
}
.cat-en {
    display: block;
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-4);
}
.cat-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.cat-tile::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--base) var(--ease);
}
.cat-tile:hover::after { transform: scaleX(1); }

.cat-hit { position: absolute; inset: 0; z-index: 2; }

/* ---------- 11. Specimen grid & cards ---------- */
.font-grid,
.specimen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--surface);
}
.font-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.font-card,
.specimen-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    min-width: 0;
    transition: background-color var(--fast) var(--ease);
}
.font-card:hover,
.specimen-card:hover { background: var(--surface-2); }

.font-preview,
.specimen-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.font-preview img,
.specimen-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.font-info,
.specimen-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
    flex: 1 1 auto;
    min-width: 0;
}

.font-name,
.specimen-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.specimen-name a { color: inherit; }
.specimen-name a:hover { color: var(--accent); }
/* Stretched link: one anchor per card, covers the whole tile. */
.specimen-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

.font-meta,
.specimen-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.font-language { color: var(--text-2); }
.font-size::before,
.meta-sep::before { content: "·"; margin-right: 12px; color: var(--line-2); }
.font-size:first-child::before { content: none; }

.font-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink);
    width: fit-content;
    position: relative;
    z-index: 1;
}
.font-link::after { content: "→"; transition: transform var(--fast) var(--ease); }
.font-link:hover { color: var(--accent); }
.font-link:hover::after { transform: translateX(3px); }

.commercial-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    padding: 2px 8px;
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--accent-wash);
    border: 1px solid rgba(255, 59, 0, .3);
    border-radius: var(--radius);
    white-space: nowrap;
}
.badge-neutral {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--text-2);
}

/* ---------- 12. Rail (inner pages) ---------- */
.sidebar { font-size: .875rem; }

.rail-block { margin-bottom: 34px; }

.rail-title {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
}

.rail-list li + li { border-top: 1px solid var(--line); }
.rail-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-2);
}
.rail-list a:hover { color: var(--accent); }
.rail-list .rail-n {
    font-family: var(--font-mono);
    font-size: .6875rem;
    color: var(--text-4);
}

.keytags {
    display: inline-block;
    padding: 3px 9px;
    margin: 0 4px 4px 0;
    font-size: .75rem;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    line-height: 1.5;
}
.keytags:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud .keytags { margin: 0; }

/* ---------- 13. Pagination ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 34px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.pagination a:hover { color: var(--ink); border-color: var(--ink); }
.pagination .current {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
    font-weight: 600;
}
.pagination .disabled { color: var(--text-4); background: transparent; pointer-events: none; }
.pagination .gap { border-color: transparent; background: transparent; color: var(--text-4); }
.pagination-info {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* ---------- 14. Featured list ---------- */
.featured-section { margin-top: 48px; }

.featured-title {
    margin: 0 0 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 600;
}

.featured-list {
    columns: 2;
    column-gap: 40px;
}
.featured-item {
    break-inside: avoid;
    border-bottom: 1px solid var(--line);
}
.featured-item a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    font-size: .9375rem;
    color: var(--text);
}
.featured-item a:hover { color: var(--accent); }
.featured-item a span,
.featured-meta {
    flex: none;
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

/* ---------- 15. Related block ---------- */
.related-section { margin-top: 56px; }

.related-title,
.related-head {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ink);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.related-item { min-width: 0; }

.related-link { display: block; height: 100%; }

.related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    background: var(--surface);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.related-card:hover { background: var(--surface-2); }
.related-card:hover .related-name { color: var(--accent); }

.related-preview {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
}
.related-preview img { width: 100%; height: 100%; object-fit: contain; }

.related-name {
    padding: 11px 14px;
    font-size: .875rem;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 16. Related links / cross-nav ---------- */
.related-links {
    margin: 40px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
}
.related-links h3 {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.related-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.related-links li a {
    display: inline-block;
    padding: 6px 12px;
    font-size: .8125rem;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.related-links li a:hover { color: #fff; background: var(--ink); border-color: var(--ink); }

/* ---------- 17. Detail page ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    align-items: start;
}

.detail-main { min-width: 0; }

.font-header {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 32px;
}
.font-preview-large {
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.font-preview-large img { width: 100%; height: 100%; object-fit: contain; }
.font-meta { display: block; }
.font-name-large {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
}
.font-modified {
    font-size: .875rem;
    color: var(--text-3);
    line-height: 1.7;
}

.guanyufont {
    margin: 0 0 34px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
}
.guanyufont h2 {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.guanyufont p { margin: 0; color: var(--text-2); font-size: .9375rem; }

.yulantu {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    margin: 0 0 32px;
}

.font-properties {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--line);
    background: var(--surface);
    margin: 0 0 36px;
    font-size: .875rem;
}
.font-properties th,
.font-properties td {
    padding: 11px 16px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.font-properties tr:last-child th,
.font-properties tr:last-child td { border-bottom: 0; }
.font-properties th {
    width: 34%;
    font-weight: 500;
    color: var(--text-3);
    background: var(--surface-2);
    white-space: nowrap;
}
.font-properties td {
    color: var(--text);
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

/* action card */
.action-card {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    border: 1px solid var(--ink);
    background: var(--surface);
}
.action-card-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.action-card-title {
    margin: 0;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.action-card-body { padding: 20px; }

.spec-list { margin: 0 0 20px; font-size: .875rem; }
.spec-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.spec-row:last-child { border-bottom: 0; }
.spec-key { color: var(--text-3); flex: none; }
.spec-val {
    text-align: right;
    font-family: var(--font-mono);
    font-size: .8125rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.xiazai { margin: 0 0 14px; }
.xiazai h3 { display: none; }
.xiazai button { font: inherit; }

.detail-aside { min-width: 0; }

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 52px;
    font-size: .9375rem;
    font-weight: 650;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}
.download-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.download-icon { width: 18px; height: 18px; flex: none; }

.myurl {
    margin: 22px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.url-display {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 12px;
}
.url-label {
    font-family: var(--font-mono);
    font-size: .625rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-4);
}
.url-text {
    display: block;
    width: 100%;
    padding: 0 0 2px;
    font-family: var(--font-mono);
    font-size: .75rem;
    text-align: left;
    color: var(--text-2);
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--line-2);
    border-radius: 0;
    overflow-wrap: anywhere;
    cursor: pointer;
}
.url-text:hover { color: var(--accent); border-bottom-color: var(--accent); }
.url-text.copied-feedback { color: var(--accent); }

.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    cursor: pointer;
}
.copy-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy-icon { width: 15px; height: 15px; }

.copy-notification {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    font-size: .875rem;
    color: #fff;
    background: var(--ink);
    border-radius: var(--radius);
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
}
.copy-notification.show { opacity: 1; transform: translate(-50%, 0); }
.copy-notification .checkmark { width: 16px; height: 16px; color: var(--accent); }

/* ---------- 18. Preview tool ---------- */
.preview-container {
    margin: 0 0 36px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.preview-container .controls {
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
}

.form-group { margin-bottom: 16px; }
.form-group > label {
    display: block;
    margin-bottom: 7px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.preview-container textarea,
.form-control,
.preview-container input[type="number"],
.preview-container input[type="text"] {
    width: 100%;
    padding: 10px 13px;
    font-size: .9375rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.preview-container textarea { min-height: 76px; resize: vertical; }
.preview-container textarea:focus,
.form-control:focus,
.preview-container input:focus { border-color: var(--accent); }

select.form-control {
    background-color: var(--surface);
    color: var(--text);
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%237C7C86' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 11px;
}

.basic-controls {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.basic-controls .form-group { flex: 0 0 140px; margin-bottom: 0; }

.btn-generate {
    height: 40px;
    padding: 0 22px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-generate:hover { background: var(--accent); border-color: var(--accent); }

.toggle-advanced-btn {
    margin-top: 16px;
    padding: 0;
    font-size: .8125rem;
    font-weight: 600;
    color: var(--accent);
    background: none;
    border: 0;
    border-bottom: 1px solid currentColor;
    cursor: pointer;
}
.toggle-advanced-btn:hover { color: var(--accent-deep); }

.advanced-controls { display: none; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

.row.compact-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.col { min-width: 0; }
.compact-form-group { margin-bottom: 14px; }

.color-picker {
    display: flex;
    align-items: center;
    gap: 9px;
}
.color-picker input[type="color"] {
    width: 36px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: none;
    cursor: pointer;
}
.color-picker span {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--text-3);
    text-transform: uppercase;
}
.color-picker button {
    height: 32px;
    padding: 0 12px;
    font-size: .8125rem;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    cursor: pointer;
}
.color-picker button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.color-presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.color-preset {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform var(--fast) var(--ease);
}
.color-preset:hover { transform: scale(1.14); }

.color-combinations { display: flex; flex-wrap: wrap; gap: 6px; }
.color-combination {
    display: flex;
    flex-direction: column;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: none;
}
.color-combination:hover { border-color: var(--ink); }
.color-combination > * { flex: 1 1 50%; display: block; }

.form-legend {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.preview-result {
    padding: 22px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(45deg, var(--surface-2) 25%, transparent 25%) 0 0/16px 16px,
        linear-gradient(-45deg, var(--surface-2) 25%, transparent 25%) 0 8px/16px 16px,
        var(--surface);
    overflow-x: auto;
}
.preview-result p { margin: 0; color: var(--text-3); font-size: .875rem; }
.preview-result img { max-width: 100%; }

.color-modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 12, 14, .62);
    overscroll-behavior: contain;
}
.color-modal-content {
    width: 100%;
    max-width: 460px;
    max-height: 86vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--ink);
}
.color-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}
.color-modal-title {
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--text-3);
}
.color-modal-close {
    padding: 0 4px;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--text-3);
    background: none;
    border: 0;
    cursor: pointer;
}
.color-modal-close:hover { color: var(--accent); }
.color-palette {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 3px;
    padding: 16px 18px;
}
.color-palette-item {
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: var(--radius);
    cursor: pointer;
}
.color-palette-item:hover { outline: 2px solid var(--ink); outline-offset: -2px; }
.custom-color-input { padding: 0 18px 16px; }
.custom-color-input label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.custom-color-input input {
    width: 100%;
    padding: 9px 12px;
    font-family: var(--font-mono);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    outline: none;
}
.custom-color-input input:focus { border-color: var(--accent); }
.modal-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
}
.btn-confirm {
    height: 40px;
    padding: 0 24px;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
}
.btn-confirm:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- 19. Captcha modal ---------- */
#wppay-captcha-modal {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 12, 14, .66);
    overscroll-behavior: contain;
}
.wppay-modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 26px 24px 24px;
    background: var(--surface);
    border: 1px solid var(--ink);
}
.wppay-close-modal {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-3);
    cursor: pointer;
}
.wppay-close-modal:hover { color: var(--accent); }
.wppay-status-box h3 {
    margin: 0 0 18px;
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-3);
}
.captcha-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.captcha-image-container img {
    width: 120px;
    height: 40px;
    border: 1px solid var(--line-2);
    background: var(--surface);
    cursor: pointer;
}
.captcha-image-container button {
    font-size: .75rem;
    color: var(--text-3);
    background: none;
    border: 0;
    border-bottom: 1px dashed var(--line-2);
    cursor: pointer;
}
.captcha-image-container button:hover { color: var(--accent); }
#wppay-captcha-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 1.125rem;
    text-align: center;
    letter-spacing: .3em;
    font-family: var(--font-mono);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    outline: none;
    margin-bottom: 10px;
}
#wppay-captcha-input:focus { border-color: var(--accent); }
#wppay-captcha-error {
    margin: 0 0 10px;
    font-size: .8125rem;
    color: var(--accent-deep);
}
#wppay-captcha-error[hidden] { display: none; }
.wppay-modal-actions button {
    width: 100%;
    height: 48px;
    font-size: .9375rem;
    font-weight: 650;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
}
.wppay-modal-actions button:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.wppay-success-box { text-align: center; }
.wppay-success-box p { margin: 0 0 8px; font-size: .9375rem; }

/* ---------- 20. Framework bits ---------- */
.no-results,
.empty-state {
    padding: 56px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--text-3);
}
.no-results p { margin: 0; }
.empty-state h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
}
.empty-state p { max-width: 46ch; margin: 0 auto 20px; }

.notice {
    padding: 14px 18px;
    font-size: .875rem;
    color: var(--text-2);
    background: var(--accent-wash);
    border: 1px solid rgba(255, 59, 0, .25);
    border-left: 3px solid var(--accent);
    margin: 0 0 26px;
}

.search-box {
    display: flex;
    gap: 8px;
    max-width: 620px;
    margin: 0 0 28px;
}
.search-box input[type="text"],
.search-box input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    font-size: .9375rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: var(--surface);
    outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box button {
    height: 46px;
    padding: 0 22px;
    font-size: .9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
}
.search-box button:hover { background: var(--accent); border-color: var(--accent); }

.error-box {
    max-width: 640px;
    margin: 60px auto;
    padding: 30px;
    border: 1px solid var(--line);
    background: var(--surface);
}
.error-box .path {
    font-family: var(--font-mono);
    font-size: .8125rem;
    color: var(--text-3);
    overflow-wrap: anywhere;
}

/* ---------- 21. Prose (about pages) ---------- */
.prose {
    max-width: 76ch;
    font-size: 1rem;
    color: var(--text-2);
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
    margin-top: 2.4em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text);
    scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h3 {
    margin-top: 1.8em;
    font-size: 1.0625rem;
    color: var(--text);
}
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.05em;
    top: .72em;
    width: 5px;
    height: 5px;
    background: var(--accent);
}
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--accent); font-family: var(--font-mono); }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--accent); border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--accent-deep); }
.prose strong { color: var(--text); font-weight: 650; }
.prose hr { margin: 2.2em 0; }
.prose blockquote {
    margin: 0;
    padding: 4px 0 4px 20px;
    border-left: 2px solid var(--accent);
    color: var(--text-3);
}
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }

.copyright-notice {
    padding: 16px 20px;
    background: var(--accent-wash);
    border-left: 3px solid var(--accent);
    font-size: .9375rem;
    color: var(--text-2);
}

/* ---------- 22. Footer ---------- */
.site-footer {
    margin-top: 72px;
    background: var(--ink);
    color: var(--on-ink-2);
    border-top: 1px solid var(--line-ink);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
    padding: 56px var(--gut) 40px;
    max-width: var(--wrap);
    margin: 0 auto;
}

.footer-column h4 {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, .5);
}
.footer-column li + li { margin-top: 9px; }
.footer-column a { font-size: .875rem; color: var(--on-ink-2); }
.footer-column a:hover { color: #fff; }

.footer-brand { grid-column: 1; }
.footer-brand .brand-mark { color: var(--accent); }
.footer-brand-name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 12px;
}
.footer-brand p {
    font-size: .875rem;
    max-width: 34ch;
    margin: 0 0 18px;
}

.copyright {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px var(--gut) 26px;
    border-top: 1px solid var(--line-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .42);
}

/* ---------- 23. Responsive ---------- */
@media (max-width: 1400px) {
    .nav-main .nav-link { padding: 7px 8px; font-size: .8125rem; }
    .header-search input { width: 120px; }
    .brand-tag { display: none; }
}

@media (max-width: 1180px) {
    .header-search input { width: 96px; }
    .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cat-grid > .cat-tile:nth-child(4n) { border-right: 1px solid var(--line); }
    .cat-grid > .cat-tile:nth-child(3n) { border-right: 0; }
    .cat-grid > .cat-tile:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
    .cat-grid > .cat-tile:nth-last-child(-n+3) { border-bottom: 0; }
}

@media (max-width: 1060px) {
    .header-search { display: none; }
    .header-container { gap: 16px; }
}

@media (max-width: 1024px) {
    .hero { padding: 52px 0 46px; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero-specimen { display: none; }
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .layout-rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .layout-rail > .sidebar { display: none; }
    .layout-rail > .main-content { grid-column: 1 / -1; grid-row: auto; }
    .font-grid, .specimen-grid, .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .action-card { position: static; }
    .font-header { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 860px) {
    .nav-main { display: none; }
    .header-search { display: none; }
    .mobile-toggle { display: inline-flex; }
    .brand-tag { display: none; }
    .header-container { justify-content: space-between; gap: 12px; }
    .footer-content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --gut: 18px; --header-h: 56px; }
    body { font-size: 15px; }
    .hero { padding: 40px 0 36px; }
    .hero-search { flex-direction: column; }
    .hero-search .btn { width: 100%; }
    .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat { padding: 16px var(--gut); }
    .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-grid > .cat-tile:nth-child(n) { border-right: 1px solid var(--line); }
    .cat-grid > .cat-tile:nth-child(2n) { border-right: 0; }
    .cat-grid > .cat-tile:nth-last-child(-n+2) { border-bottom: 0; }
    .cat-grid > .cat-tile:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
    .cat-tile { min-height: 108px; padding: 15px; gap: 18px; }
    .cat-name { font-size: 1.0625rem; }
    .font-grid, .specimen-grid, .related-list { grid-template-columns: minmax(0, 1fr); }
    .font-preview, .specimen-thumb, .related-preview { aspect-ratio: 2 / 1; }
    .featured-list { columns: 1; }
    .font-header { grid-template-columns: minmax(0, 1fr); }
    .font-preview-large { aspect-ratio: 2 / 1; }
    .row.compact-row { grid-template-columns: minmax(0, 1fr); }
    .color-palette { grid-template-columns: repeat(8, 1fr); }
    .section { margin-bottom: 44px; }
    .pagination-info { display: none; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    .font-properties th { width: 42%; }
}

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .cat-tile::after { transform: none; }
}

/* ---------- 25. Print ---------- */
@media print {
    .site-header, .site-footer, .sidebar, .pagination, .action-card { display: none; }
    body { background: #fff; }
}
