@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
    color-scheme: light;
    --story-bg: #f7f6f1;
    --story-surface: #ffffff;
    --story-surface-soft: #efede6;
    --story-ink: #111111;
    --story-ink-soft: rgba(17, 17, 17, 0.7);
    --story-line: rgba(17, 17, 17, 0.16);
    --story-line-strong: rgba(17, 17, 17, 0.4);
    --story-accent: #81efb5;
    --story-accent-strong: #58d792;
    --story-tint: #d5c0f7;
    --story-signal: #f07a61;
    --story-dark: #111111;
    --story-dark-soft: #1b1b1b;
    --story-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
    --story-width: min(1280px, calc(100vw - 48px));
    --story-font: "Space Grotesk", "Avenir Next", sans-serif;
    --story-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--story-bg);
    color: var(--story-ink);
    font-family: var(--story-font);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

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

code {
    font-family: var(--story-mono);
    font-size: 0.92em;
}

::selection {
    background: var(--story-ink);
    color: #ffffff;
}

:focus-visible {
    outline: 2px solid var(--story-ink);
    outline-offset: 3px;
}

.story-page {
    background:
        linear-gradient(90deg, transparent 31px, var(--story-line) 31px, var(--story-line) 32px, transparent 32px),
        linear-gradient(180deg, transparent 61px, var(--story-line) 61px, var(--story-line) 62px, transparent 62px),
        var(--story-bg);
}

.notice-strip {
    min-height: 24px;
    padding: 4px 16px;
    border-bottom: 1px solid var(--story-line-strong);
    background: var(--story-signal);
    color: rgba(17, 17, 17, 0.9);
    font-family: var(--story-mono);
    font-size: 0.76rem;
    line-height: 1.3;
    text-align: center;
}

.project-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
    padding: 0 28px;
    border-bottom: 1px solid var(--story-line-strong);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
}

.project-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.project-brand-mark {
    font-family: var(--story-mono);
    font-size: 1.25rem;
    line-height: 1;
}

.project-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.project-nav a,
.project-header-link {
    font-size: 0.92rem;
    color: var(--story-ink-soft);
}

.project-nav a:hover,
.project-nav a:focus-visible,
.project-header-link:hover,
.project-header-link:focus-visible {
    color: var(--story-ink);
}

.project-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.76rem 1.28rem;
    border-radius: 999px;
    border: 1px solid var(--story-line-strong);
    font-size: 0.92rem;
    font-weight: 600;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease;
}

.button {
    background: var(--story-accent);
}

.button:hover,
.button:focus-visible,
.button-secondary:hover,
.button-secondary:focus-visible {
    transform: translateY(-1px);
}

.button:hover,
.button:focus-visible {
    background: var(--story-accent-strong);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.8);
}

.story-main {
    width: var(--story-width);
    margin: 0 auto;
    padding-bottom: 72px;
}

@keyframes story-rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    border-left: 1px solid var(--story-line-strong);
    border-right: 1px solid var(--story-line-strong);
    border-bottom: 1px solid var(--story-line-strong);
    background: var(--story-tint);
}

.hero-inner {
    padding: 78px 56px 56px;
}

.hero-copy {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
    animation: story-rise 560ms ease both;
}

.hero-kicker,
.section-index,
.board-label,
.footer-label {
    font-family: var(--story-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--story-ink-soft);
}

.hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 5.75rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 500;
}

.hero-summary {
    max-width: 760px;
    margin: 28px auto 0;
    font-size: clamp(1.18rem, 2.2vw, 1.7rem);
    line-height: 1.45;
    color: rgba(17, 17, 17, 0.88);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.hero-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    margin-top: 54px;
    border: 1px solid var(--story-line-strong);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--story-shadow);
    animation: story-rise 640ms 100ms ease both;
}

.hero-board-panel {
    padding: 24px;
    min-height: 240px;
}

.hero-board-panel + .hero-board-panel {
    border-left: 1px solid var(--story-line-strong);
}

.board-label {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--story-ink-soft);
}

.board-list {
    display: grid;
    gap: 14px;
}

.board-list div {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--story-line);
}

.board-list dt {
    margin-bottom: 6px;
    font-family: var(--story-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--story-ink-soft);
}

.board-list dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.board-points {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.board-points li {
    padding: 14px 0;
    border-bottom: 1px solid var(--story-line);
    font-size: 1rem;
}

.story-section {
    border-left: 1px solid var(--story-line-strong);
    border-right: 1px solid var(--story-line-strong);
    border-bottom: 1px solid var(--story-line-strong);
    background: #ffffff;
}

.story-section.section-soft {
    background: var(--story-surface-soft);
}

.story-section.section-dark {
    background: var(--story-dark);
    color: #ffffff;
}

.story-section.section-dark .section-index,
.story-section.section-dark .section-intro,
.story-section.section-dark .story-card p,
.story-section.section-dark .story-card li,
.story-section.section-dark .story-card .note-text,
.story-section.section-dark details p,
.story-section.section-dark .cta-support {
    color: rgba(255, 255, 255, 0.78);
}

.section-inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    padding: 64px 56px;
}

.section-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-index {
    color: var(--story-ink-soft);
}

.section-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 500;
}

.section-intro {
    margin: 0;
    font-size: 1.05rem;
    color: var(--story-ink-soft);
}

.story-prose {
    display: grid;
    gap: 18px;
    max-width: 760px;
    font-size: 1.06rem;
}

.story-prose p {
    margin: 0;
}

.card-grid {
    display: grid;
    gap: 18px;
}

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

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

.story-card {
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--story-line-strong);
    background: rgba(255, 255, 255, 0.7);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.section-dark .story-card {
    background: var(--story-dark-soft);
    border-color: rgba(255, 255, 255, 0.12);
}

.story-card .card-label {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--story-mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--story-ink-soft);
}

.section-dark .story-card .card-label {
    color: rgba(255, 255, 255, 0.55);
}

.story-card h3 {
    margin: 0;
    font-size: 1.28rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 600;
}

.story-card p {
    margin: 12px 0 0;
    font-size: 0.98rem;
    color: var(--story-ink-soft);
}

.story-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--story-ink-soft);
}

.story-card li + li {
    margin-top: 10px;
}

.note-grid {
    display: grid;
    gap: 18px;
}

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

.note-card {
    padding: 18px 20px;
    border: 1px solid var(--story-line-strong);
    background: rgba(255, 255, 255, 0.72);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.note-card .note-label {
    display: inline-block;
    margin-bottom: 10px;
    font-family: var(--story-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--story-ink-soft);
}

.note-card h3 {
    margin: 0;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
}

.note-card .note-text {
    margin-top: 10px;
    color: var(--story-ink-soft);
}

.faq-grid {
    display: grid;
    gap: 14px;
}

.faq-grid details {
    border: 1px solid var(--story-line-strong);
    background: rgba(255, 255, 255, 0.72);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.story-card:hover,
.story-card:focus-within,
.note-card:hover,
.note-card:focus-within,
.faq-grid details:hover,
.faq-grid details:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
    border-color: rgba(17, 17, 17, 0.28);
}

.section-dark .story-card:hover,
.section-dark .story-card:focus-within {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.faq-grid summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 20px;
    font-size: 1.04rem;
    font-weight: 600;
}

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

.faq-grid details p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--story-ink-soft);
}

.cta-panel {
    display: grid;
    gap: 18px;
    padding: 56px;
    background: #78d4e3;
    color: var(--story-ink);
}

.cta-panel h2 {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    font-weight: 500;
}

.cta-panel p {
    max-width: 720px;
    margin: 0;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.cta-support {
    font-size: 0.98rem;
    color: var(--story-ink-soft);
}

.story-footer {
    border-left: 1px solid var(--story-line-strong);
    border-right: 1px solid var(--story-line-strong);
    border-bottom: 1px solid var(--story-line-strong);
    background: var(--story-dark);
    color: #ffffff;
}

.story-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
}

.story-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    font-weight: 600;
}

.story-footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.story-footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

.story-footer-links a:hover,
.story-footer-links a:focus-visible {
    color: #ffffff;
}

@media (max-width: 980px) {
    .project-header {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .project-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
    }

    .hero-inner,
    .section-inner,
    .cta-panel {
        padding-inline: 28px;
    }

    .hero-board,
    .section-inner,
    .card-grid.columns-3,
    .note-grid.columns-3 {
        grid-template-columns: 1fr;
    }

    .hero-board-panel + .hero-board-panel {
        border-left: 0;
        border-top: 1px solid var(--story-line-strong);
    }

    .card-grid.columns-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    :root {
        --story-width: min(100vw, calc(100vw - 16px));
    }

    .story-page {
        background: var(--story-bg);
    }

    .notice-strip {
        padding-inline: 10px;
        font-size: 0.7rem;
    }

    .project-header {
        min-height: 58px;
        padding: 10px 14px;
        gap: 10px;
    }

    .project-brand {
        font-size: 0.96rem;
    }

    .project-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .project-header-link {
        font-size: 0.84rem;
    }

    .button,
    .button-secondary {
        min-height: 40px;
        padding: 0.68rem 1rem;
        font-size: 0.84rem;
    }

    .story-main {
        padding-bottom: 28px;
    }

    .hero,
    .story-section,
    .story-footer {
        border-left: 0;
        border-right: 0;
    }

    .hero-inner {
        padding: 44px 16px 20px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .hero-summary {
        margin-top: 20px;
        font-size: 1.02rem;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .hero-board {
        margin-top: 28px;
    }

    .hero-board-panel {
        min-height: 0;
        padding: 16px;
    }

    .section-inner {
        gap: 16px;
        padding: 34px 16px;
    }

    .section-title {
        font-size: 2.15rem;
    }

    .story-prose,
    .story-card p,
    .story-card li,
    .note-card .note-text,
    .faq-grid details p,
    .cta-panel p {
        font-size: 0.96rem;
    }

    .story-card,
    .note-card {
        padding: 16px;
    }

    .faq-grid summary {
        padding: 16px;
        font-size: 0.98rem;
    }

    .faq-grid details p {
        padding: 0 16px 16px;
    }

    .cta-panel {
        padding: 34px 16px;
    }

    .cta-panel h2 {
        max-width: none;
        font-size: 2.5rem;
    }

    .story-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
}

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