/* Core palette and readable editorial layout */
:root {
    --berry: #C85C7A;
    --peach: #E7B7A8;
    --ink: #2B2228;
    --paper: #FBF7F5;
    --paper-soft: #F3E9E6;
    --text: #342F32;
    --muted: #746A6F;
    --amber: #D9913D;
    --white: #FFFFFF;
    --line: rgba(43, 34, 40, .14);
    --line-strong: rgba(43, 34, 40, .24);
    --shadow: 0 20px 60px rgba(43, 34, 40, .10);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --shell: min(1180px, calc(100% - 48px));
    --narrow: min(820px, calc(100% - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}
body.modal-open, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin: 0 auto; }
.shell--narrow { width: var(--narrow); margin: 0 auto; }
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 16px; top: 12px; z-index: 999;
    transform: translateY(-160%); background: var(--ink); color: var(--white);
    padding: 10px 14px; border-radius: 9px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 247, 245, .94);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(43,34,40,.05); }
.site-header.is-condensed { transform: translateY(-4px); }
.header-shell { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-lockup img { width: 52px; height: 52px; object-fit: contain; }
.brand-lockup span { display: grid; gap: 1px; }
.brand-lockup strong { color: var(--ink); font-size: 19px; letter-spacing: .04em; }
.brand-lockup small { color: var(--muted); font-size: 12px; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 5px; }
.primary-nav a { padding: 10px 11px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: background .2s, color .2s; }
.primary-nav a:hover, .primary-nav a:focus-visible { background: var(--paper-soft); color: var(--ink); }
.primary-nav a.is-active { color: var(--berry); background: rgba(200, 92, 122, .09); font-weight: 700; }
.search-trigger { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 10px 15px; cursor: pointer; }
.search-trigger:hover, .search-trigger:focus-visible { border-color: var(--berry); color: var(--berry); }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.search-modal[hidden]{
    display:none !important;
}
.search-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center; padding: 12vh 20px 20px; background: rgba(43,34,40,.55); backdrop-filter: blur(8px); }
.search-modal__panel { width: min(720px, 100%); background: var(--paper); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); position: relative; }
.search-modal__panel h2 { margin: 4px 0 20px; color: var(--ink); font-size: clamp(26px, 4vw, 38px); line-height: 1.22; }
.search-modal__close { position: absolute; right: 20px; top: 18px; border: 0; background: var(--paper-soft); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 25px; }
.search-form label { display: block; margin-bottom: 8px; font-weight: 700; color: var(--ink); }
.search-form__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search-form input { width: 100%; min-width: 0; border: 1px solid var(--line-strong); background: var(--white); padding: 13px 15px; border-radius: 12px; outline: none; }
.search-form input:focus { border-color: var(--berry); box-shadow: 0 0 0 3px rgba(200,92,122,.12); }
.search-form button { border: 0; background: var(--berry); color: var(--white); padding: 12px 20px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.search-form button:hover { filter: brightness(.96); }

.eyebrow { margin: 0 0 10px; color: var(--berry); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 20px; font-weight: 750; }
.button--primary { background: var(--berry); color: var(--white); box-shadow: 0 12px 30px rgba(200,92,122,.22); }
.button--primary:hover { transform: translateY(-1px); }
.button--text { border: 1px solid var(--line-strong); background: rgba(255,255,255,.45); }
.button--text:hover { border-color: var(--berry); color: var(--berry); }

.home-cover { padding: 72px 0 58px; overflow: hidden; }
.home-cover__layout { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-areas: "headline media" "index media"; gap: 36px 52px; align-items: start; }
.home-cover__headline { grid-area: headline; padding-top: 18px; }
.home-cover__headline h1 { margin: 0; max-width: 760px; color: var(--ink); font-size: clamp(44px, 6.3vw, 76px); line-height: 1.04; letter-spacing: -.045em; }
.home-cover__lead { margin: 24px 0 0; max-width: 720px; font-size: 19px; color: var(--muted); line-height: 1.75; }
.home-cover__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home-cover__media { grid-area: media; margin: 0; position: relative; padding: 12px; background: var(--paper-soft); border-radius: 40px 40px 40px 8px; }
.home-cover__media img { width: 100%; min-height: 560px; object-fit: cover; border-radius: 30px 30px 30px 6px; background: var(--peach); }
.home-cover__media figcaption { padding: 16px 10px 6px; color: var(--muted); font-size: 13px; }
.home-cover__index { grid-area: index; border-top: 1px solid var(--line-strong); padding-top: 19px; }
.home-cover__index > a { display: grid; grid-template-columns: 34px 1fr; grid-template-areas: "num title" "num note"; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.home-cover__index a > span { grid-area: num; color: var(--amber); font-weight: 800; }
.home-cover__index a strong { grid-area: title; color: var(--ink); }
.home-cover__index a small { grid-area: note; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.home-cover__index a:hover strong { color: var(--berry); }

.section-heading { margin-bottom: 28px; max-width: 820px; }
.section-heading h2, .content-section h2, .home-directory h2, .next-step h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.16; letter-spacing: -.025em; }
.section-heading > p:last-child, .section-intro { color: var(--muted); font-size: 17px; }
.section-heading--inline { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.section-heading--inline > p { margin: 0 0 6px; }
.home-paths, .watch-routes { padding: 72px 0; }
.home-paths { background: var(--paper-soft); }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-grid--asymmetric { grid-template-columns: 1.22fr .9fr .88fr; align-items: stretch; }
.topic-card { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; padding: 18px; }
.topic-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; background: var(--peach); margin-bottom: 18px; }
.topic-grid--asymmetric .topic-card:first-child img { aspect-ratio: 16 / 12; }
.topic-card__label { margin: 0 0 6px; color: var(--amber); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.topic-card h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.28; color: var(--ink); }
.topic-card h3 a:hover { color: var(--berry); }
.topic-card > p:last-child { margin: 0; color: var(--muted); }
.topic-grid--editorial .topic-card { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 20px 0 0; }
.topic-grid--editorial .topic-card img { border-radius: 22px 22px 22px 5px; }

.content-section { padding: 76px 0; }
.content-section--soft { background: var(--paper-soft); }
.content-section__inner { width: var(--shell); margin: 0 auto; }
.content-section h2 { max-width: 850px; }
.content-section .section-intro { max-width: 760px; margin: 16px 0 0; }
.prose-flow { max-width: 850px; display: grid; gap: 17px; margin-top: 28px; }
.prose-flow p { margin: 0; font-size: 17px; }
.section-figure { margin: 32px 0 0; max-width: 880px; }
.section-figure img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 8px; background: var(--peach); }
.detail-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--line-strong); }
.detail-list li { position: relative; padding: 18px 22px 18px 29px; border-bottom: 1px solid var(--line); color: var(--text); }
.detail-list li::before { content: ""; position: absolute; left: 5px; top: 28px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.detail-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.inline-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.inline-links a, .text-link { color: var(--berry); font-weight: 750; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.inline-links a:hover, .text-link:hover { color: var(--ink); }
.inline-links--center { justify-content: center; }
.content-section--split .content-section__inner { display: grid; grid-template-columns: .72fr 1.28fr; gap: 60px; }
.content-section--split .content-section__inner .eyebrow, .content-section--split .content-section__inner h2, .content-section--split .content-section__inner .section-intro { grid-column: 1; }
.content-section--split .content-section__inner .prose-flow, .content-section--split .content-section__inner .detail-list, .content-section--split .content-section__inner .inline-links { grid-column: 2; }
.content-section--feature .content-section__inner { display: grid; grid-template-columns: 1fr .9fr; gap: 46px; align-items: start; }
.content-section--feature .eyebrow, .content-section--feature h2, .content-section--feature .section-intro, .content-section--feature .prose-flow, .content-section--feature .detail-list, .content-section--feature .inline-links { grid-column: 1; }
.content-section--feature .section-figure { grid-column: 2; grid-row: 1 / span 6; margin: 0; position: sticky; top: 120px; }
.content-section--feature .section-figure img { min-height: 420px; }
.content-section--index .content-section__inner { max-width: 1040px; }

.home-directory { padding: 80px 0; background: var(--ink); color: rgba(255,255,255,.82); }
.home-directory h2 { color: var(--white); }
.home-directory__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.home-directory__grid > div > p:last-child { color: rgba(255,255,255,.64); font-size: 17px; }
.directory-list { display: grid; border-top: 1px solid rgba(255,255,255,.22); }
.directory-list a { display: grid; grid-template-columns: .55fr 1.45fr; gap: 22px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.directory-list strong { color: var(--white); }
.directory-list span { color: rgba(255,255,255,.64); }
.directory-list a:hover strong { color: var(--peach); }

.page-hero { padding: 54px 0 62px; border-bottom: 1px solid var(--line); }
.page-hero__grid { display: grid; grid-template-columns: 1.05fr .75fr; gap: 60px; align-items: center; }
.page-hero__content h1 { margin: 6px 0 0; color: var(--ink); font-size: clamp(42px, 6vw, 68px); line-height: 1.07; letter-spacing: -.04em; }
.page-lead { margin: 22px 0 0; max-width: 760px; color: var(--muted); font-size: 18px; }
.page-hero__visual { margin: 0; }
.page-hero__visual img { width: 100%; min-height: 340px; max-height: 460px; object-fit: cover; border-radius: 34px 34px 34px 8px; background: var(--peach); }
.page-hero--compact .page-hero__visual img { min-height: 280px; }
.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(116,106,111,.6); }
.breadcrumbs a:hover { color: var(--berry); }

.next-step { padding: 74px 0; background: var(--paper-soft); }
.next-step__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: end; }
.next-step__inner > div > p:last-child { color: var(--muted); max-width: 720px; }
.next-step__links { display: grid; gap: 10px; }
.next-step__links a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-strong); font-weight: 750; }
.next-step__links a::after { content: "→"; color: var(--berry); }
.next-step__links a:hover { color: var(--berry); }

.faq-page-section { padding: 72px 0 88px; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-question { width: 100%; border: 0; background: transparent; display: flex; justify-content: space-between; gap: 24px; align-items: center; text-align: left; padding: 20px 0; cursor: pointer; color: var(--ink); font-size: 18px; font-weight: 750; }
.faq-question span { color: var(--berry); font-size: 24px; }
.faq-answer { padding: 0 46px 22px 0; color: var(--muted); }
.faq-answer p { margin: 0; }

.search-page { padding: 76px 0 92px; }
.search-page h1, .error-page h1 { margin: 0; color: var(--ink); font-size: clamp(40px, 6vw, 66px); line-height: 1.06; letter-spacing: -.04em; }
.search-form--page { margin-top: 30px; padding: 24px; background: var(--paper-soft); border-radius: var(--radius-md); }
.search-results { margin-top: 48px; }
.search-count { color: var(--muted); font-weight: 700; }
.search-result { padding: 24px 0; border-top: 1px solid var(--line); }
.search-result h2 { margin: 0 0 7px; color: var(--ink); font-size: 24px; }
.search-result h2 a:hover { color: var(--berry); }
.search-result p { color: var(--muted); }
.empty-state { margin-top: 20px; padding: 30px; background: var(--paper-soft); border-radius: var(--radius-md); }
.empty-state h2 { margin-top: 0; color: var(--ink); }
.error-page { padding: 100px 0 120px; text-align: center; }
.error-code { margin: 0 0 6px; color: var(--berry); font-size: clamp(82px, 14vw, 150px); font-weight: 900; line-height: .9; letter-spacing: -.08em; }
.error-page .page-lead { margin-left: auto; margin-right: auto; }
.error-links { margin: 34px auto 0; max-width: 680px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-links a { border: 1px solid var(--line-strong); background: var(--white); border-radius: 999px; padding: 10px 15px; }
.error-links a:hover { border-color: var(--berry); color: var(--berry); }

.site-footer { padding: 62px 0 24px; background: #211A1F; color: rgba(255,255,255,.68); }
.footer-grid { display: grid; grid-template-columns: 1.45fr repeat(3, .75fr); gap: 44px; }
.footer-brand p { max-width: 430px; font-size: 14px; }
.brand-lockup--footer strong { color: var(--white); }
.brand-lockup--footer small { color: rgba(255,255,255,.55); }
.footer-grid h2 { color: var(--white); margin: 6px 0 12px; font-size: 15px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid > div:not(.footer-brand) a { padding: 4px 0; font-size: 14px; }
.footer-grid a:hover { color: var(--peach); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.footer-bottom p { margin: 0; }
.back-top { border: 1px solid rgba(255,255,255,.22); color: var(--white); background: transparent; border-radius: 999px; padding: 8px 12px; cursor: pointer; }

@media (max-width: 1080px) {
    :root { --shell: min(100% - 36px, 1040px); --narrow: min(100% - 36px, 800px); }
    .header-shell { grid-template-columns: auto auto 1fr auto; gap: 12px; }
    .menu-toggle { display: block; order: 2; }
    .primary-nav {
        position: fixed; left: 18px; right: 18px; top: 74px; display: none; padding: 16px;
        background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
        align-items: stretch; flex-direction: column;
    }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px 14px; }
    .search-trigger { grid-column: 4; }
    .home-cover__layout { grid-template-columns: 1fr .8fr; gap: 30px; }
    .home-cover__media img { min-height: 480px; }
    .content-section--feature .content-section__inner { grid-template-columns: 1fr .72fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / span 2; display: grid; grid-template-columns: repeat(4, auto); gap: 10px 18px; }
    .footer-grid > div:last-child h2 { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
    .home-cover { padding-top: 42px; }
    .home-cover__layout { grid-template-columns: 1fr; grid-template-areas: "headline" "media" "index"; }
    .home-cover__media img { min-height: 360px; max-height: 520px; }
    .section-heading--inline, .home-directory__grid, .next-step__inner, .page-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .topic-grid, .topic-grid--asymmetric { grid-template-columns: 1fr 1fr; }
    .topic-grid--asymmetric .topic-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
    .topic-grid--asymmetric .topic-card:first-child img { margin: 0; height: 100%; }
    .content-section--split .content-section__inner, .content-section--feature .content-section__inner { display: block; }
    .content-section--feature .section-figure { position: static; margin-top: 28px; }
    .content-section--feature .section-figure img { min-height: 0; }
    .page-hero__visual img { max-height: 420px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; display: flex; }
    .footer-grid > div:last-child h2 { grid-column: auto; }
}

@media (max-width: 600px) {
    :root { --shell: calc(100% - 28px); --narrow: calc(100% - 28px); }
    body { font-size: 15px; }
    .header-shell { min-height: 70px; grid-template-columns: 1fr auto auto; }
    .brand-lockup img { width: 44px; height: 44px; }
    .brand-lockup small { display: none; }
    .menu-toggle { order: initial; }
    .search-trigger { grid-column: auto; font-size: 0; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; }
    .search-trigger::before { content: "⌕"; font-size: 22px; }
    .primary-nav { top: 66px; left: 12px; right: 12px; }
    .home-cover__headline h1 { font-size: clamp(40px, 12vw, 56px); }
    .home-cover__lead { font-size: 17px; }
    .home-cover__actions { align-items: stretch; flex-direction: column; }
    .home-cover__media { border-radius: 28px 28px 28px 7px; }
    .home-cover__media img { min-height: 300px; border-radius: 20px 20px 20px 5px; }
    .home-paths, .watch-routes, .content-section, .home-directory, .next-step, .faq-page-section { padding: 58px 0; }
    .topic-grid, .topic-grid--asymmetric { grid-template-columns: 1fr; }
    .topic-grid--asymmetric .topic-card:first-child { grid-column: auto; display: block; }
    .topic-grid--asymmetric .topic-card:first-child img { height: auto; margin-bottom: 18px; }
    .detail-list { grid-template-columns: 1fr; }
    .detail-list li:nth-child(odd) { border-right: 0; }
    .page-hero { padding: 34px 0 46px; }
    .page-hero__content h1 { font-size: clamp(38px, 11vw, 52px); }
    .page-hero__visual img { min-height: 240px; }
    .search-form__row { grid-template-columns: 1fr; }
    .search-modal { padding-top: 8vh; }
    .search-modal__panel { padding: 28px 20px 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 375px) {
    :root { --shell: calc(100% - 22px); --narrow: calc(100% - 22px); }
    .brand-lockup strong { font-size: 17px; }
    .menu-toggle, .search-trigger { width: 40px; height: 40px; }
    .home-cover__headline h1 { font-size: 38px; }
    .section-heading h2, .content-section h2, .home-directory h2, .next-step h2 { font-size: 30px; }
    .page-hero__content h1 { font-size: 38px; }
    .home-cover__index > a { grid-template-columns: 30px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
