/* ==========================================================================
   字集 · Readability & cohesion pass
   Loaded after the visual system. Larger type, calmer surfaces and plain
   language helpers for first-time and non-technical visitors.
   ========================================================================== */

:root {
    --radius: 12px;
    --surface: #fffdf8;
    --surface-soft: #f8f3ea;
    --clay-strong: #b33e24;
    --shadow-soft: 0 8px 24px rgba(23, 23, 19, 0.05);
    --shadow-lift: 0 16px 38px rgba(23, 23, 19, 0.10);
}

body {
    font-size: 16px;
    line-height: 1.72;
}

body::after {
    opacity: 0.07;
}

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

/* Readable micro labels -------------------------------------------------- */
.eyebrow,
.section-kicker,
.section-number {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.04em;
    text-transform: none;
}

.eyebrow--light {
    color: rgba(250, 247, 241, 0.72);
}

.eyebrow__mark .icon {
    width: 15px;
    height: 15px;
}

/* Buttons and text links ------------------------------------------------ */
.button {
    min-height: 50px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.button--small {
    min-height: 42px;
    padding: 0 16px;
    font-size: 14px;
}

.button--large {
    min-height: 56px;
    padding: 0 26px;
    font-size: 16px;
}

.button--clay {
    background: var(--clay-strong);
    border-color: var(--clay-strong);
}

.button--clay:hover {
    background: var(--ink);
    border-color: var(--ink);
}

.button .icon {
    width: 17px;
    height: 17px;
}

.text-link {
    font-size: 14px;
    font-weight: 600;
}

.tag {
    padding: 4px 10px;
    border-radius: 7px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.5;
    letter-spacing: 0;
}

/* Header ---------------------------------------------------------------- */
.site-header {
    background: var(--paper);
    box-shadow: 0 6px 20px rgba(23, 23, 19, 0.035);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site-header__inner {
    min-height: 76px;
    gap: 20px;
}

.brand__mark {
    width: 42px;
    height: 42px;
    font-size: 21px;
}

.brand__type strong {
    font-size: 23px;
}

.brand__type span {
    font-size: 12px;
    letter-spacing: 0.1em;
}

.site-nav {
    gap: clamp(17px, 2.2vw, 32px);
}

.nav-link {
    min-height: 44px;
    padding: 12px 0;
    gap: 7px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.nav-link .icon {
    width: 14px;
    height: 14px;
}

.header-search {
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.header-search:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--ink);
}

.header-search .icon {
    width: 16px;
    height: 16px;
}

.nav-toggle {
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
}

.nav-dropdown {
    width: 570px;
    padding: 22px;
    border-color: var(--line);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(23, 23, 19, 0.14);
}

.nav-dropdown__label {
    padding: 0 8px 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.nav-dropdown__grid a {
    grid-template-columns: 42px 1fr;
    padding: 14px 12px;
    border-radius: 10px;
}

.nav-dropdown__grid a > span {
    font-size: 25px;
}

.nav-dropdown__grid strong {
    font-size: 15.5px;
    line-height: 1.5;
}

.nav-dropdown__grid small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: 0;
    text-transform: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Footer ---------------------------------------------------------------- */
.site-footer--compact {
    padding: 38px 0 28px;
}

.compact-footer__main {
    gap: 32px;
    padding-bottom: 24px;
}

.compact-footer__nav {
    gap: 12px 24px;
}

.compact-footer__nav a {
    padding: 4px 0;
    color: rgba(250, 247, 241, 0.76);
    font-size: 14px;
    font-weight: 500;
}

.compact-footer__legal {
    padding-top: 20px;
    color: rgba(250, 247, 241, 0.55);
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.7;
    letter-spacing: 0;
}

/* Catalog intro and one clear control panel ----------------------------- */
.catalog-head {
    padding: clamp(30px, 3.6vw, 48px) 0 0;
}

.catalog-head__row {
    align-items: flex-end;
    gap: 36px;
}

.catalog-head__title h1 {
    align-items: center;
    gap: 13px;
    margin-top: 0;
    font-size: clamp(40px, 4.4vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.catalog-total {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
}

.catalog-head__intro {
    max-width: 430px;
    padding-bottom: 4px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.75;
    text-align: right;
}

.catalog-tools {
    margin-top: 25px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.catalog-tools .catalog-search {
    display: flex;
    margin: 0;
    padding: 5px 5px 5px 16px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--paper-light);
    box-shadow: none;
}

.catalog-tools .catalog-search:focus-within {
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(179, 62, 36, 0.10);
    transform: none;
}

.catalog-search__icon .icon {
    width: 20px;
    height: 20px;
}

.catalog-tools .catalog-search input[type="search"] {
    height: 48px;
    font-size: 16px;
}

.catalog-tools .catalog-search .button {
    min-height: 46px;
    padding-inline: 18px;
    border-radius: 8px;
    font-size: 14.5px;
}

.catalog-search__clear {
    width: 38px;
    height: 38px;
    background: var(--paper-deep);
}

.catalog-search__clear .icon {
    width: 14px;
    height: 14px;
}

.catalog-tools .filter-bar {
    position: static;
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 16px 0 0;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.filter-group {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.filter-group__label {
    padding-top: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
}

.filter-group__label .icon {
    width: 14px;
    height: 14px;
}

.filter-chips {
    gap: 8px;
}

.filter-chip {
    min-height: 40px;
    padding: 0 15px;
    border-color: var(--line);
    background: var(--paper-light);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    gap: 7px;
}

.filter-chip:hover {
    border-color: var(--line-strong);
    background: var(--surface-soft);
    color: var(--ink);
}

.filter-chip.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper-light);
}

.filter-chip__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--paper-deep);
    color: #5f5a50;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.filter-chip.is-active .filter-chip__count {
    background: rgba(250, 247, 241, 0.17);
    color: var(--paper-light);
}

.sort-group {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-top: 0;
}

.sort-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.sort-link:hover {
    background: var(--surface-soft);
    color: var(--ink);
}

.sort-link.is-active {
    background: var(--paper-deep);
    color: var(--ink);
    font-weight: 600;
}

.sort-link.is-active::after {
    display: none;
}

.catalog-tools__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
}

.catalog-tools__foot p {
    line-height: 1.7;
}

.catalog-tools__foot a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(23, 23, 19, 0.25);
    text-underline-offset: 3px;
}

.catalog-tools__foot a:hover {
    color: var(--clay-strong);
    text-decoration-color: currentColor;
}

.catalog-tools__reset {
    flex: none;
}

/* Results and cards ---------------------------------------------------- */
.library-body {
    padding: 34px 0 clamp(72px, 8vw, 110px);
}

.results-meta {
    padding: 0 2px 22px;
    color: var(--muted);
    font-size: 15px;
}

.results-meta p {
    gap: 4px;
}

.results-meta strong {
    color: var(--ink);
    font-weight: 600;
}

.results-meta__order {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13.5px;
    letter-spacing: 0;
}

.font-grid--library {
    gap: 26px;
}

.font-card {
    border-color: var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(23, 23, 19, 0.035);
}

.font-card::after {
    display: none;
}

.font-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
    transform: translateY(-3px);
}

.font-card__top {
    min-height: 54px;
    padding: 0 20px;
}

.font-card__downloads {
    gap: 6px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0;
    white-space: nowrap;
}

.font-card__downloads .icon {
    width: 15px;
    height: 15px;
}

.font-card__stage {
    min-height: 240px;
    padding: 20px;
}

.font-card__grid {
    opacity: 0.06;
}

.font-card__stage::after {
    opacity: 0.12;
}

.font-card__specimen {
    font-size: clamp(80px, 8.4vw, 112px);
    line-height: 0.88;
}

.font-card__body {
    padding: 20px 20px 17px;
}

.font-card__heading {
    align-items: flex-start;
}

.font-card__heading h3 {
    font-size: 27px;
    line-height: 1.25;
}

.font-card__go {
    display: none;
}

.font-card__family {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.font-card__footer {
    gap: 14px;
    margin-top: 18px;
    padding-top: 15px;
}

.font-card__formats {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.font-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

.font-card__cta .icon {
    width: 15px;
    height: 15px;
    transition: transform 0.2s var(--ease);
}

.font-card:hover .font-card__cta {
    color: var(--clay-strong);
}

.font-card:hover .font-card__cta .icon {
    transform: translateX(3px);
}

.pagination {
    gap: 12px;
    margin-top: 52px;
}

.pagination__step {
    width: 44px;
    height: 44px;
}

.pagination__page {
    min-width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: var(--font-sans);
    font-size: 14px;
}

.empty-state {
    min-height: 360px;
    border-radius: 18px;
    background: var(--surface);
}

.empty-state h2,
.empty-state h3 {
    font-size: clamp(30px, 3.5vw, 40px);
}

.empty-state > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 15px;
}

/* Detail page ---------------------------------------------------------- */
.detail-intro {
    padding-top: 30px;
}

.breadcrumbs {
    gap: 7px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 14px;
    letter-spacing: 0;
}

.breadcrumbs > span {
    opacity: 0.55;
}

.detail-intro__grid {
    margin-top: clamp(34px, 4.6vw, 54px);
}

.detail-title {
    margin-top: 15px;
    font-size: clamp(56px, 8.5vw, 124px);
    line-height: 0.96;
    letter-spacing: -0.045em;
}

.detail-family-line {
    margin-top: 17px;
    color: var(--muted);
    font-size: 16px;
}

.detail-help-line {
    margin-top: 11px;
    font-size: 14.5px;
}

.detail-help-line a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--clay-strong);
    font-weight: 600;
    border-bottom: 1px solid rgba(179, 62, 36, 0.25);
    padding-bottom: 2px;
}

.detail-help-line a:hover {
    border-color: currentColor;
}

.detail-intro__aside {
    gap: 22px;
}

.detail-download-badge {
    gap: 2px;
    min-width: 118px;
    padding-right: 22px;
}

.detail-download-badge > span {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

.detail-download-badge strong {
    font-size: 38px;
}

.detail-download-badge small {
    color: var(--muted);
    font-size: 12.5px;
}

.detail-meta {
    margin-top: clamp(34px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    overflow: hidden;
}

.detail-meta > div {
    padding: 18px 20px;
    border-color: var(--line);
}

.detail-meta dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
}

.detail-meta dd {
    font-size: 15.5px;
    line-height: 1.55;
}

.detail-meta dd small {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
}

.detail-meta__formats {
    gap: 8px;
}

.detail-meta__formats span {
    color: #a79e92;
    font-family: var(--font-sans);
    font-size: 13px;
}

.detail-meta__formats span.is-available {
    font-weight: 600;
}

/* Preview */
.preview-section {
    padding-top: clamp(44px, 5vw, 64px);
}

.preview-panel {
    border-color: var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.preview-panel__head {
    padding: 22px 24px;
}

.preview-panel__head h2 {
    margin-top: 5px;
    font-size: 23px;
    font-weight: 600;
}

.preview-panel__head h2 span {
    margin-left: 4px;
    font-size: 14.5px;
}

.theme-switch {
    padding: 4px;
}

.theme-switch__button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13.5px;
}

.preview-stage {
    margin: 16px;
    border-radius: 14px;
    min-height: 390px;
}

.preview-stage__label,
.preview-stage__corner {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0.02em;
    opacity: 0.62;
}

.preview-stage[data-theme="ink"] .preview-stage__label,
.preview-stage[data-theme="ink"] .preview-stage__corner {
    color: rgba(250, 247, 241, 0.62);
}

.preview-controls {
    gap: 24px;
    padding: 5px 24px 24px;
}

.preview-control label,
.preview-control .preview-presets__label {
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0;
}

.preview-input-wrap input {
    height: 48px;
    border-color: var(--line);
    border-radius: 9px;
    font-size: 16px;
}

.preview-input-count {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12px;
}

.preview-range-label output {
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
}

.preview-presets {
    gap: 7px;
}

.preview-presets button {
    min-height: 38px;
    padding: 8px 13px;
    color: var(--muted);
    font-size: 13px;
}

.noscript-note {
    font-size: 14px;
}

/* Story */
.detail-body {
    padding: clamp(58px, 7vw, 92px) 0;
}

.detail-content-grid {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: clamp(40px, 5vw, 72px);
}

.detail-story > h2 {
    font-size: clamp(34px, 3.7vw, 44px);
}

.detail-description {
    margin-top: 22px;
    color: #514d45;
    font-size: 16px;
    line-height: 1.9;
}

.character-sampler__head {
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: 0;
}

.type-notes {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 42px;
    border: 0;
}

.type-notes > div,
.type-notes > div + div,
.type-notes > div:last-child {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.type-notes__num {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
}

.type-notes h3 {
    margin-top: 9px;
    font-size: 17px;
}

.type-notes p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

/* Download panel */
.download-panel {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
}

.download-panel::after {
    border-color: var(--line);
    opacity: 0.7;
}

.download-panel__head {
    padding-bottom: 20px;
    border-color: var(--line);
}

.download-panel__head h2 {
    margin-top: 8px;
    color: var(--ink);
    font-size: 31px;
}

.download-panel__head > p:last-child {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.download-options {
    gap: 8px;
    padding: 16px 0;
}

.download-option {
    gap: 12px;
    min-height: 76px;
    padding: 11px 12px;
    border-color: var(--line);
    border-radius: 12px;
    background: var(--paper-light);
    color: var(--ink);
}

a.download-option:hover {
    border-color: var(--line-strong);
    background: var(--white);
    color: var(--ink);
    transform: none;
}

.download-option--accent {
    border-color: #e3b7ab;
    background: #fcf0ec;
}

.download-option__tag {
    width: 52px;
    height: 44px;
    border-color: var(--line-strong);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
    opacity: 1;
}

.download-option__body {
    gap: 3px;
}

.download-option__body strong {
    font-size: 16px;
    font-weight: 600;
}

.download-option__body small {
    color: var(--muted);
    font-size: 13px;
}

a.download-option:hover .download-option__body small {
    color: var(--muted);
}

.download-option__icon {
    width: 34px;
    height: 34px;
    background: var(--paper);
    color: var(--ink);
}

.download-option__icon .icon {
    width: 16px;
    height: 16px;
}

a.download-option:hover .download-option__icon {
    background: var(--ink);
    color: var(--paper-light);
}

.download-option--disabled {
    opacity: 0.45;
}

.download-note {
    gap: 9px;
    padding: 14px 0 16px;
    border-color: var(--line);
    color: var(--muted);
}

.download-note .icon {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    color: var(--clay-strong);
}

.download-note p {
    font-size: 13.5px;
    line-height: 1.7;
}

.download-note a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.download-note a:hover {
    color: var(--clay-strong);
}

.download-panel__footer {
    border-color: var(--line);
}

.download-panel__footer div span {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: 0;
}

.download-panel__footer div strong {
    color: var(--ink);
    font-size: 27px;
}

.download-panel__footer > a {
    border-color: var(--line-strong);
    color: var(--muted);
    font-size: 13.5px;
}

/* Related */
.related-section__head {
    align-items: flex-end;
    gap: 24px;
}

.related-section__head h2 {
    font-size: clamp(32px, 3.8vw, 46px);
}

.related-section__head .text-link {
    font-size: 14px;
}

/* About --------------------------------------------------------------- */
.about-hero__aside p {
    font-size: 16px;
    line-height: 1.9;
}

.about-stats span {
    font-size: 13px;
    letter-spacing: 0;
}

.about-stats strong {
    font-size: 44px;
}

.about-story__content h2 {
    font-size: clamp(34px, 4vw, 46px);
}

.about-story__columns p {
    font-size: 16px;
    line-height: 1.9;
}

.about-section-head > p {
    font-size: 15px;
}

.principle-grid {
    gap: 14px;
    border: 0;
}

.principle-grid article,
.principle-grid article + article,
.principle-grid article:last-child {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.principle-grid article > span {
    font-family: var(--font-sans);
    font-size: 12.5px;
}

.principle-grid h3 {
    font-size: 18px;
}

.principle-grid p {
    font-size: 14.5px;
    line-height: 1.8;
}

.about-format__intro > p:last-of-type {
    font-size: 15px;
    line-height: 1.85;
}

.about-format__help {
    margin-top: 18px;
}

.format-card {
    border-radius: 14px;
}

.format-card__tag {
    font-family: var(--font-sans);
    font-size: 13px;
}

.format-card h3 {
    font-size: 20px;
}

.format-card p {
    font-size: 14.5px;
    line-height: 1.8;
}

.format-card__meta {
    font-family: var(--font-sans);
    font-size: 12.5px;
    letter-spacing: 0;
}

.about-license__grid > div:last-child > p {
    font-size: 16px;
    line-height: 1.9;
}

.about-colophon {
    gap: 22px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.7;
    letter-spacing: 0;
}

.about-colophon > span {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 0;
}

/* Help page ----------------------------------------------------------- */
.help-hero {
    padding: clamp(36px, 4.6vw, 58px) 0 28px;
}

.help-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-top: 12px;
}

.help-hero__copy h1 {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.2vw, 66px);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.help-hero__copy p {
    max-width: 660px;
    margin-top: 20px;
    color: #514d45;
    font-size: 17px;
    line-height: 1.85;
}

.help-hero__button {
    flex: none;
    margin-bottom: 6px;
}

.help-section {
    padding: 38px 0;
}

.help-section--steps {
    padding-top: 22px;
}

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

.help-section__head {
    max-width: 760px;
    margin-bottom: 24px;
}

.help-section__head h2 {
    margin-top: 4px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.help-section__head > p:last-child {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.help-section--soft .help-section__head > p:last-child {
    color: #5f5a50;
}

.help-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.help-step {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.help-step__num {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--clay-strong);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.help-step h2 {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
}

.help-step p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.help-os-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.help-os {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.help-os__badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--paper-deep);
    color: #5f5a50;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.help-os h3 {
    margin-top: 12px;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.3;
}

.help-list {
    margin: 14px 0 0;
    padding-left: 1.35em;
    list-style: decimal;
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.8;
}

.help-list li + li {
    margin-top: 9px;
}

.help-list strong {
    font-weight: 600;
}

.help-os__note {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.help-format-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 920px;
}

.help-format {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.help-format--recommended {
    border-color: #dfb8ae;
    background: #fdf2ee;
}

.help-format__tag {
    display: grid;
    place-items: center;
    flex: none;
    width: 66px;
    height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
}

.help-format--recommended .help-format__tag {
    border-color: var(--clay-strong);
    color: var(--clay-strong);
}

.help-format h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.help-format h3 span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 5px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--clay-strong);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    vertical-align: 1px;
}

.help-format p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

.help-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 940px;
}

.help-faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.help-faq summary {
    padding: 17px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.help-faq summary::marker {
    color: var(--clay-strong);
}

.help-faq p {
    padding: 0 20px 19px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
}

.help-end {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.help-end p {
    font-size: 18px;
    font-weight: 600;
}

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
    .detail-meta {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-meta > div:nth-child(3n + 1) {
        border-left: 0;
    }

    .detail-meta > div:nth-child(n + 4) {
        border-top: 1px solid var(--line);
    }

    .detail-content-grid {
        grid-template-columns: minmax(0, 1fr) 350px;
    }
}

@media (max-width: 960px) {
    .site-header__inner {
        min-height: 70px;
    }

    .nav-toggle {
        min-width: 42px;
        min-height: 42px;
    }

    .site-nav {
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 16px var(--gutter) 24px;
    }

    .site-header__actions {
        gap: 10px;
    }

    .header-search {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        border-color: var(--line-strong);
        border-radius: 50%;
    }

    .header-search span {
        display: none;
    }

    .header-search .icon {
        width: 18px;
        height: 18px;
    }

    .nav-link {
        min-height: 0;
        padding: 16px 0;
        font-size: 16px;
    }

    .nav-dropdown {
        width: auto;
        padding: 3px 0 15px;
    }

    .nav-dropdown__grid a {
        padding: 12px 10px;
    }

    .nav-dropdown__grid small {
        -webkit-line-clamp: 2;
    }

    .catalog-head__row {
        display: block;
    }

    .catalog-head__intro {
        max-width: 620px;
        margin-top: 14px;
        text-align: left;
    }

    .catalog-tools .filter-bar {
        display: block;
    }

    .filter-group {
        display: block;
    }

    .filter-group__label {
        display: block;
        margin-bottom: 9px;
    }

    .filter-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 0 6px;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .sort-group {
        margin-top: 13px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
    }

    .detail-content-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .download-panel {
        position: relative;
        top: 0;
    }

    .help-hero__inner {
        display: block;
    }

    .help-hero__button {
        margin-top: 22px;
        margin-bottom: 0;
    }

    .help-steps {
        grid-template-columns: 1fr;
    }

    .help-step {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 14px;
        padding: 20px;
    }

    .help-step__num {
        grid-row: 1 / 3;
    }

    .help-step h2 {
        margin-top: 0;
    }

    .help-step p {
        grid-column: 2;
    }
}

@media (max-width: 900px) {
    .catalog-head__title h1 {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .catalog-total {
        min-height: 30px;
        font-size: 13.5px;
    }

    .catalog-tools {
        padding: 15px;
    }

    .compact-footer__main {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .compact-footer__nav {
        justify-content: flex-start;
    }

    .compact-footer__legal {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .compact-footer__legal span {
        text-align: left;
    }

    .detail-intro__aside {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .help-os-grid {
        grid-template-columns: 1fr;
    }

    .help-end {
        align-items: flex-start;
        flex-direction: column;
    }

    .help-end .button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .catalog-head {
        padding-top: 24px;
    }

    .catalog-head__title h1 {
        font-size: clamp(38px, 11vw, 48px);
    }

    .catalog-head__intro {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.7;
    }

    .catalog-tools {
        margin-top: 19px;
        padding: 13px;
        border-radius: 16px;
    }

    .catalog-tools .catalog-search {
        display: flex;
        gap: 7px;
        padding: 5px 5px 5px 13px;
    }

    .catalog-search__icon .icon {
        width: 18px;
        height: 18px;
    }

    .catalog-tools .catalog-search input[type="search"] {
        height: 46px;
        font-size: 16px;
    }

    .catalog-tools .catalog-search .button {
        min-height: 44px;
        padding-inline: 12px;
        font-size: 14px;
    }

    .catalog-search__clear {
        width: 36px;
        height: 36px;
    }

    .catalog-tools .filter-bar {
        margin-top: 14px;
        padding-top: 14px;
    }

    .filter-chip {
        min-height: 40px;
        padding: 0 13px;
        font-size: 13.5px;
    }

    .sort-group {
        align-items: center;
    }

    .sort-group .filter-group__label {
        margin-bottom: 0;
        margin-right: 2px;
    }

    .sort-link {
        min-height: 38px;
        padding: 0 9px;
        font-size: 13.5px;
    }

    .catalog-tools__foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    .library-body {
        padding-top: 25px;
    }

    .results-meta {
        align-items: flex-start;
        padding: 0 1px 18px;
        font-size: 14px;
    }

    .results-meta__order {
        display: none;
    }

    .font-grid--library {
        gap: 20px;
    }

    .font-card__top {
        min-height: 52px;
        padding: 0 17px;
    }

    .font-card__downloads {
        font-size: 12.5px;
    }

    .font-card__stage {
        min-height: 230px;
        padding: 18px;
    }

    .font-card__specimen {
        font-size: 100px;
    }

    .font-card__body {
        padding: 18px 17px 15px;
    }

    .font-card__heading h3 {
        font-size: 26px;
    }

    .font-card__family {
        font-size: 13.5px;
    }

    .font-card__footer {
        margin-top: 15px;
        padding-top: 14px;
    }

    .font-card__cta {
        font-size: 13.5px;
    }

    .pagination {
        margin-top: 38px;
    }

    .detail-intro {
        padding-top: 22px;
    }

    .breadcrumbs {
        font-size: 13px;
        line-height: 1.6;
    }

    .detail-intro__grid {
        margin-top: 30px;
    }

    .detail-title {
        font-size: clamp(48px, 14vw, 76px);
    }

    .detail-family-line {
        font-size: 14px;
    }

    .detail-help-line {
        font-size: 14px;
    }

    .detail-intro__aside {
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin-top: 22px;
        padding-top: 17px;
    }

    .detail-intro__aside .button {
        min-height: 50px;
        padding-inline: 18px;
        font-size: 14.5px;
    }

    .detail-download-badge {
        padding-right: 16px;
    }

    .detail-download-badge strong {
        font-size: 29px;
    }

    .detail-meta {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 28px;
    }

    .detail-meta > div {
        padding: 15px 14px !important;
        border-top: 1px solid var(--line);
        border-left: 1px solid var(--line) !important;
    }

    .detail-meta > div:nth-child(odd) {
        padding-left: 14px !important;
        border-left: 0 !important;
    }

    .detail-meta > div:nth-child(-n + 2) {
        border-top: 0;
    }

    .preview-section {
        padding-top: 38px;
    }

    .preview-panel__head {
        padding: 18px 17px;
    }

    .preview-panel__head h2 {
        font-size: 21px;
    }

    .preview-panel__head h2 span {
        display: block;
        margin: 3px 0 0;
        font-size: 13.5px;
    }

    .theme-switch {
        margin-top: 13px;
    }

    .theme-switch__button {
        min-height: 36px;
        font-size: 13px;
    }

    .preview-stage {
        min-height: 280px;
        margin: 10px;
/* Placeholders carry instructions, so keep them above the usual faint tint. */
.catalog-tools .catalog-search input::placeholder,
.preview-input-wrap input::placeholder {
    color: #756f65;
    opacity: 1;
}
