:root {
    --primary: #B93A4A;
    --primary-soft: #D9828D;
    --ink: #2B2528;
    --text: #332D2F;
    --muted: #756B6E;
    --background: #FFF9F7;
    --surface: #FFFFFF;
    --surface-soft: #F6ECEB;
    --accent: #E45B4F;
    --border: rgba(43, 37, 40, 0.12);
    --border-strong: rgba(43, 37, 40, 0.2);
    --shadow: 0 18px 50px rgba(79, 36, 44, 0.08);
    --shadow-soft: 0 8px 28px rgba(79, 36, 44, 0.06);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --container: 1180px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--background);
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(228, 91, 79, 0.34);
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 760;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4.9rem);
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.7rem);
}

h3 {
    font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.skip-link {
    position: fixed;
    z-index: 1200;
    left: 18px;
    top: 14px;
    transform: translateY(-180%);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    border-bottom: 1px solid transparent;
    background: rgba(255, 249, 247, 0.94);
    backdrop-filter: blur(18px);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.site-header.is-scrolled {
    border-color: var(--border);
    box-shadow: 0 8px 30px rgba(66, 32, 39, 0.06);
}

.header-inner {
    width: min(calc(100% - 48px), var(--container));
    min-height: var(--header-height);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

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

.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: .94rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    background: var(--surface-soft);
    color: var(--primary);
}

.search-trigger,
.menu-toggle,
.search-close,
.back-to-top {
    border: 0;
    cursor: pointer;
}

.search-trigger {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}

.search-trigger:hover {
    border-color: var(--primary-soft);
    color: var(--primary);
    background: #fff;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 14px;
    background: var(--surface-soft);
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 4px;
    background: var(--ink);
}

.site-main {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.home-hero {
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(380px, .8fr);
    gap: clamp(38px, 7vw, 88px);
    align-items: center;
    padding: 82px 0 72px;
}

.hero-copy {
    max-width: 720px;
}

.hero-copy h1 {
    max-width: 12.8em;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    color: var(--primary);
    font-size: .79rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-soft);
}

.lead {
    max-width: 800px;
    color: #5e5356;
    font-size: clamp(1.04rem, 1.8vw, 1.23rem);
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 760;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(228, 91, 79, 0.18);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover {
    color: #fff;
    background: #d94f44;
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(228, 91, 79, 0.22);
}

.button-secondary {
    border-color: var(--border-strong);
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

.button-secondary:hover {
    border-color: var(--primary-soft);
    background: var(--surface-soft);
    color: var(--primary);
    box-shadow: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 760;
    text-decoration: none;
}

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

.text-link span {
    transition: transform .18s ease;
}

.hero-link {
    min-height: 48px;
    padding: 0 6px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.hero-meta span,
.topic-chips a,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border: 1px solid rgba(185, 58, 74, 0.15);
    border-radius: 999px;
    background: rgba(255,255,255,.74);
    color: #6b4a50;
    font-size: .79rem;
    font-weight: 700;
}

.hero-visual {
    position: relative;
    margin: 0;
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: -24px 30px 50px -30px;
    z-index: -1;
    border-radius: 44px;
    background: var(--surface-soft);
    transform: rotate(-2.2deg);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 1.28 / 1;
    object-fit: cover;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.hero-visual figcaption {
    width: calc(100% - 46px);
    margin: -26px auto 0;
    position: relative;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.breadcrumbs {
    padding-top: 34px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .88rem;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: #b3a6a9;
}

.breadcrumbs a {
    text-decoration: none;
}

.page-intro {
    padding: 70px 0 66px;
    border-bottom: 1px solid var(--border);
}

.page-intro h1 {
    max-width: 980px;
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4.6vw, 4.35rem);
}

.page-intro .lead {
    max-width: 900px;
    margin-bottom: 0;
}

.content-section,
.related-block {
    padding: 74px 0;
    border-bottom: 1px solid var(--border);
}

.content-section.section-alt {
    position: relative;
}

.content-section.section-alt::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 14px calc((100vw - min(100vw - 48px, var(--container))) / -2);
    background: rgba(246, 236, 235, .56);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-heading h2 {
    margin-bottom: 14px;
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.prose {
    max-width: 850px;
    color: #51474a;
}

.prose p {
    margin-bottom: 18px;
}

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

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
    gap: clamp(34px, 6vw, 78px);
    align-items: center;
}

.media-frame {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.media-frame img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: #4e4447;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: rgba(185, 58, 74, .1);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 900;
}

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

.info-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.82);
    box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}

.info-card:hover {
    border-color: rgba(185, 58, 74, .26);
    box-shadow: var(--shadow-soft);
}

.info-card .tag {
    margin-bottom: 19px;
    background: var(--surface-soft);
}

.info-card h3 {
    margin-bottom: 12px;
}

.info-card p {
    margin-bottom: 20px;
    color: var(--muted);
    font-size: .96rem;
}

.info-card .text-link {
    margin-top: auto;
}

.steps {
    display: grid;
    gap: 0;
    max-width: 950px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 22px;
    padding: 0 0 34px;
}

.steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 52px;
    bottom: 0;
    width: 1px;
    background: rgba(185,58,74,.18);
}

.step-number {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(185,58,74,.2);
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    font-weight: 850;
    box-shadow: var(--shadow-soft);
}

.steps h3 {
    margin: 4px 0 8px;
}

.steps p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.notice {
    max-width: 900px;
    padding: 28px 30px;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.notice h3 {
    margin-bottom: 9px;
}

.notice p {
    margin-bottom: 0;
    color: var(--muted);
}

.related-block {
    padding-top: 70px;
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.related-list a,
.not-found-links a {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    text-decoration: none;
}

.related-list a:hover,
.not-found-links a:hover {
    border-color: rgba(185,58,74,.28);
    box-shadow: var(--shadow-soft);
}

.related-list strong,
.not-found-links strong {
    color: var(--ink);
}

.related-list span,
.not-found-links span {
    color: var(--muted);
    font-size: .9rem;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 920px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.faq-item[open] {
    border-color: rgba(185,58,74,.23);
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    position: relative;
    padding: 20px 54px 20px 22px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 740;
    list-style: none;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 500;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-answer {
    padding: 0 22px 20px;
    color: var(--muted);
}

.faq-answer p {
    margin: 0;
}

.section-cta {
    margin: 28px 0 0;
}

.search-modal[hidden] {
    display: none !important;
}

.search-modal {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 9vh 22px 30px;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 37, 40, .48);
    backdrop-filter: blur(6px);
}

.search-panel {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    padding: 34px;
    border-radius: 26px;
    background: var(--background);
    box-shadow: 0 30px 90px rgba(24, 14, 17, .2);
}

.search-panel h2 {
    margin-bottom: 22px;
}

.search-close {
    position: absolute;
    right: 18px;
    top: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--ink);
    font-size: 1.5rem;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 700;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.search-row input {
    width: 100%;
    min-height: 50px;
    padding: 10px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
}

.search-row input:focus {
    border-color: var(--primary-soft);
}

.search-page-intro .search-form-page {
    max-width: 720px;
    margin-top: 28px;
}

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-chips a {
    padding: 8px 13px;
    text-decoration: none;
}

.search-results {
    display: grid;
    gap: 14px;
    max-width: 900px;
}

.search-result {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.search-result h3 {
    margin-bottom: 8px;
}

.search-result h3 a {
    text-decoration: none;
}

.search-result p {
    margin-bottom: 13px;
    color: var(--muted);
}

.empty-state {
    max-width: 720px;
    padding: 36px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.55);
}

.empty-state p {
    color: var(--muted);
}

.not-found {
    min-height: 68vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
}

.error-code {
    margin-bottom: 4px;
    color: var(--primary-soft);
    font-size: clamp(4.4rem, 14vw, 9rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.08em;
}

.not-found h1 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.not-found > p:not(.error-code) {
    max-width: 750px;
    color: var(--muted);
    font-size: 1.05rem;
}

.not-found-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 38px;
}

.site-footer {
    margin-top: 0;
    background: var(--ink);
    color: #efe7e9;
}

.footer-grid,
.footer-bottom {
    width: min(calc(100% - 48px), var(--container));
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, .8fr);
    gap: clamp(28px, 5vw, 66px);
    padding: 64px 0 50px;
}

.brand-footer {
    color: #fff;
}

.brand-footer:hover {
    color: #fff;
}

.footer-brand p {
    max-width: 420px;
    margin-top: 18px;
    color: #bfb3b7;
    font-size: .92rem;
}

.footer-grid h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: .92rem;
    letter-spacing: 0;
}

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

.footer-grid > div:not(.footer-brand) a {
    color: #cfc4c7;
    font-size: .9rem;
    text-decoration: none;
}

.footer-grid > div:not(.footer-brand) a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom p {
    margin: 0;
    color: #a99da0;
    font-size: .84rem;
}

.back-to-top {
    padding: 8px 0;
    background: transparent;
    color: #d8cdd0;
    font-size: .84rem;
}

.back-to-top:hover {
    color: #fff;
}

@media (max-width: 1120px) {
    .header-inner {
        gap: 16px;
    }

    .primary-nav {
        gap: 1px;
    }

    .primary-nav a {
        padding-inline: 9px;
        font-size: .89rem;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .74fr);
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: 1.3fr repeat(3, .8fr);
        gap: 34px;
    }
}

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

    .header-inner {
        grid-template-columns: auto auto 1fr;
    }

    .menu-toggle {
        display: inline-block;
        order: 3;
        justify-self: end;
    }

    .search-trigger {
        order: 2;
        justify-self: end;
    }

    .primary-nav {
        position: absolute;
        left: 24px;
        right: 24px;
        top: calc(100% + 8px);
        display: none;
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 20px;
        background: rgba(255, 249, 247, .98);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-nav a {
        width: 100%;
        min-height: 46px;
        justify-content: flex-start;
        padding: 10px 13px;
        border-radius: 12px;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 64px;
    }

    .hero-copy {
        max-width: 820px;
    }

    .hero-visual {
        max-width: 760px;
    }

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

    .split-layout .media-frame {
        max-width: 760px;
    }

    .card-grid,
    .related-list,
    .not-found-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 720px) {
    :root {
        --radius-lg: 24px;
        --radius-md: 17px;
    }

    .site-main,
    .header-inner,
    .footer-grid,
    .footer-bottom {
        width: min(calc(100% - 34px), var(--container));
    }

    .header-inner {
        grid-template-columns: auto 1fr auto;
        gap: 10px;
    }

    .brand span {
        font-size: 1rem;
    }

    .brand img {
        width: 39px;
        height: 39px;
    }

    .search-trigger {
        display: none;
    }

    .menu-toggle {
        order: initial;
    }

    .primary-nav {
        left: 17px;
        right: 17px;
    }

    .home-hero {
        padding: 54px 0 58px;
        gap: 44px;
    }

    .hero-copy h1 {
        font-size: clamp(2.28rem, 11vw, 3.55rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button,
    .hero-link {
        width: 100%;
    }

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

    .hero-visual::before {
        inset: -14px 18px 36px -15px;
    }

    .hero-visual img {
        border-radius: 24px;
    }

    .hero-visual figcaption {
        width: calc(100% - 28px);
        margin-top: -18px;
        font-size: .84rem;
    }

    .breadcrumbs {
        padding-top: 24px;
    }

    .page-intro {
        padding: 48px 0 52px;
    }

    .page-intro h1 {
        font-size: clamp(2.08rem, 10vw, 3.2rem);
    }

    .content-section,
    .related-block {
        padding: 56px 0;
    }

    .content-section.section-alt::before {
        inset-inline: -17px;
    }

    .card-grid,
    .related-list,
    .not-found-links {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: 0;
        padding: 23px;
    }

    .steps li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 16px;
        padding-bottom: 28px;
    }

    .step-number {
        width: 42px;
        height: 42px;
    }

    .steps li:not(:last-child)::before {
        left: 20px;
        top: 42px;
    }

    .notice {
        padding: 24px;
    }

    .search-modal {
        padding: 5vh 14px 20px;
    }

    .search-panel {
        padding: 28px 20px 22px;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-row .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        padding-top: 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px 0;
    }
}

@media (max-width: 430px) {
    body {
        font-size: 15.5px;
    }

    .site-main,
    .header-inner,
    .footer-grid,
    .footer-bottom {
        width: min(calc(100% - 28px), var(--container));
    }

    .brand span {
        max-width: 96px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .content-section.section-alt::before {
        inset-inline: -14px;
    }

    .hero-meta {
        gap: 6px;
    }

    .hero-meta span {
        font-size: .74rem;
    }

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

    .footer-brand {
        grid-column: auto;
    }
}

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

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

.anchor-target { scroll-margin-top: 100px; }
