:root {
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface: #ffffff;
    --ink: #26251e;
    --body: #5a5852;
    --muted: #807d72;
    --line: #e6e5e0;
    --line-strong: #cfcdc4;
    --primary: #f54e00;
    --primary-active: #d04200;
    --thinking: #dfa88f;
    --read: #9fbbe0;
    --done: #c08532;
    --radius-card: 12px;
    --radius-button: 8px;
    --shadow: 0 1px 0 rgba(38, 37, 30, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 20;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--canvas);
    border-radius: var(--radius-button);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 247, 244, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-wrap {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--ink);
    color: var(--canvas);
    font-size: 13px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a,
.menu-toggle,
.filter-chip {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: var(--radius-button);
    padding: 9px 14px;
    background: transparent;
    color: var(--body);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a[aria-current="page"],
.site-nav a:focus-visible,
.site-nav a:hover,
.filter-chip.is-active {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.menu-toggle {
    display: none;
    border-color: var(--line-strong);
    background: var(--surface);
}

.hero {
    padding: clamp(42px, 7vw, 92px) 0 48px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 32px;
    align-items: center;
}

.hero-copy h1,
.page-title h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    font-weight: 430;
}

.lead {
    max-width: 680px;
    color: var(--body);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-notes,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-notes span {
    border-radius: 999px;
    padding: 7px 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--body);
    font-size: 0.9rem;
}

.hero-image,
.split-panel figure,
.detail-hero figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
}

.hero-image img,
.split-panel img,
.detail-hero img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.image-credit {
    margin: 0;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.intro-map,
.section-block,
.quiet-panel,
.page-title,
.material-grid,
.process-grid,
.split-panel,
.workshop-layout,
.glossary-list,
.detail-layout,
.related {
    padding-block: clamp(42px, 7vw, 80px);
}

.intro-map {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 28px;
    border-top: 1px solid var(--line);
}

.map-grid,
.entry-grid,
.material-grid,
.process-grid,
.workshop-layout,
.glossary-list,
.related-grid {
    display: grid;
    gap: 18px;
}

.map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.map-grid article,
.entry-card,
.material-grid article,
.process-grid article,
.workshop-card,
.glossary-list article,
.related-card,
.toc-card,
.quiet-panel,
.split-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.map-grid article,
.material-grid article,
.process-grid article,
.workshop-card,
.glossary-list article,
.toc-card {
    padding: 24px;
}

.map-grid span,
.workshop-card span {
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 4px 10px;
    background: var(--thinking);
    font-size: 0.78rem;
    font-weight: 700;
}

.section-head {
    max-width: 720px;
    margin-bottom: 24px;
}

h2,
h3 {
    margin: 0 0 10px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

p {
    margin: 0 0 14px;
}

.entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    overflow: hidden;
}

.entry-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.entry-card > div {
    padding: 24px 24px 24px 0;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 650;
    text-decoration: none;
}

.text-link::after {
    content: "→";
}

.quiet-panel {
    padding-inline: clamp(20px, 4vw, 40px);
}

.accordion-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

details {
    border: 1px solid var(--line);
    border-radius: var(--radius-button);
    background: var(--canvas-soft);
    padding: 16px 18px;
}

summary {
    font-weight: 650;
    cursor: pointer;
}

details p {
    margin-top: 12px;
    color: var(--body);
}

.split-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 22px;
}

.check-list {
    margin: 0;
    padding-left: 20px;
    color: var(--body);
}

.check-list li + li {
    margin-top: 10px;
}

.process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.process-grid .section-head {
    grid-column: 1 / -1;
}

.material-grid,
.glossary-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workshop-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.toc-card {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 10px;
}

.toc-card a {
    color: var(--body);
    text-decoration: none;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.detail-hero,
.article-section {
    border-bottom: 1px solid var(--line);
    padding-bottom: 28px;
}

.detail-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 430;
}

.article-section p {
    max-width: 760px;
    color: var(--body);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--body);
    text-decoration: none;
}

.related {
    border-top: 1px solid var(--line);
}

.related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    text-decoration: none;
}

.related-card small {
    color: var(--primary);
    font-weight: 650;
}

.site-footer {
    margin-top: 40px;
    padding: 56px 0;
    background: var(--ink);
    color: var(--canvas);
}

.site-footer p {
    color: #c9c6bd;
}

.site-footer .eyebrow {
    color: var(--done);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-grid nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.footer-grid a {
    color: var(--canvas);
    text-decoration: none;
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
    }

    .site-nav {
        position: absolute;
        inset: 68px 16px auto 16px;
        display: none;
        grid-template-columns: 1fr;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius-card);
        background: var(--surface);
    }

    .site-nav.is-open {
        display: grid;
    }

    .hero-grid,
    .intro-map,
    .split-panel,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .map-grid,
    .entry-grid,
    .process-grid,
    .material-grid,
    .workshop-layout,
    .glossary-list,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .entry-card {
        grid-template-columns: 1fr;
    }

    .entry-card > div {
        padding: 22px;
    }

    .toc-card {
        position: static;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 22px, 1120px);
    }

    .hero-copy h1,
    .page-title h1 {
        font-size: 2.25rem;
    }

    .nav-wrap {
        min-height: 62px;
    }

    .site-nav {
        inset: 62px 11px auto 11px;
    }
}
