:root {
    --pooh-ink: #1e2430;
    --pooh-muted: #5e6978;
    --pooh-soft: #f7fbff;
    --pooh-white: #ffffff;
    --pooh-coral: #ef6550;
    --pooh-coral-dark: #be3f2f;
    --pooh-teal: #087f83;
    --pooh-teal-dark: #065f62;
    --pooh-yellow: #f7c948;
    --pooh-green: #53a66f;
    --pooh-blue: #4776d0;
    --pooh-border: #d9e4eb;
    --pooh-shadow: 0 18px 45px rgba(24, 38, 54, 0.12);
    --pooh-radius: 8px;
    --pooh-max: 1160px;
    --pooh-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--pooh-ink);
    background: var(--pooh-white);
    font-family: var(--pooh-font);
    font-size: 17px;
    line-height: 1.6;
}

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

a {
    color: var(--pooh-teal-dark);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--pooh-coral-dark);
}

:focus-visible {
    outline: 3px solid var(--pooh-yellow);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    background: var(--pooh-ink);
    color: var(--pooh-white);
    border-radius: var(--pooh-radius);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--pooh-border);
    backdrop-filter: blur(12px);
}

.site-header-inner,
.section-inner,
.site-footer-inner {
    width: min(var(--pooh-max), calc(100% - 40px));
    margin: 0 auto;
}

.site-header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--pooh-ink);
    text-decoration: none;
}

.site-brand-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pooh-coral), var(--pooh-yellow));
    color: var(--pooh-ink);
    font-size: 0.78rem;
    font-weight: 900;
}

.site-brand-text {
    display: grid;
    line-height: 1.2;
}

.site-brand-text strong {
    font-size: 1.03rem;
}

.site-brand-text small {
    color: var(--pooh-muted);
    font-size: 0.78rem;
}

.site-nav-list,
.footer-nav-list {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--pooh-ink);
    font-size: 0.94rem;
    font-weight: 750;
    text-decoration: none;
}

.site-nav-list a:hover {
    color: var(--pooh-teal-dark);
}

.hero-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 8% 20%, rgba(247, 201, 72, 0.32), transparent 24rem),
        linear-gradient(120deg, #ffffff 0%, #f3fbfc 70%, #fdf7e4 100%);
}

.hero-inner {
    width: min(1260px, calc(100% - 40px));
    min-height: min(760px, calc(100vh - 78px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(3.25rem, 8vw, 6.8rem) 0;
}

.hero-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(3.2rem, 8vw, 6.7rem);
    line-height: 0.96;
    font-weight: 900;
}

.hero-motto {
    margin: 1.35rem 0 0;
    color: var(--pooh-teal-dark);
    font-size: clamp(1.35rem, 3vw, 2.05rem);
    font-weight: 850;
    line-height: 1.2;
}

.hero-text {
    max-width: 620px;
    margin: 1rem 0 0;
    color: var(--pooh-muted);
    font-size: 1.16rem;
}

.hero-actions,
.pooh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button,
.pooh-button,
button.pooh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.78rem 1.15rem;
    border: 2px solid transparent;
    border-radius: var(--pooh-radius);
    font: inherit;
    font-size: 0.98rem;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.button-primary,
.pooh-button-primary,
button.pooh-button-primary {
    background: var(--pooh-coral);
    color: var(--pooh-white);
    box-shadow: 0 12px 24px rgba(239, 101, 80, 0.24);
}

.button-primary:hover,
.pooh-button-primary:hover,
button.pooh-button-primary:hover {
    background: var(--pooh-coral-dark);
    color: var(--pooh-white);
}

.button-secondary,
.pooh-button-secondary {
    background: var(--pooh-white);
    border-color: var(--pooh-border);
    color: var(--pooh-ink);
}

.button-secondary:hover,
.pooh-button-secondary:hover {
    border-color: var(--pooh-teal);
    color: var(--pooh-teal-dark);
}

.hero-media {
    position: relative;
}

.hero-media img {
    width: 100%;
    aspect-ratio: 1.16 / 1;
    object-fit: cover;
    border-radius: var(--pooh-radius);
    box-shadow: var(--pooh-shadow);
}

.hero-media::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 38%;
    height: 34%;
    border-right: 12px solid var(--pooh-yellow);
    border-bottom: 12px solid var(--pooh-teal);
    border-radius: var(--pooh-radius);
    pointer-events: none;
}

.section {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-featured {
    background: var(--pooh-white);
}

.section-categories {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.section-note {
    padding-top: 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section-kicker {
    margin: 0 0 0.55rem;
    color: var(--pooh-coral-dark);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.compact-hero h1,
.story-detail h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.05;
}

.section-heading p,
.page-hero p {
    color: var(--pooh-muted);
    font-size: 1.08rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.note-panel {
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--pooh-ink);
    color: var(--pooh-white);
    border-radius: var(--pooh-radius);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.note-panel h2,
.note-panel p {
    margin: 0;
}

.note-panel p {
    color: rgba(255, 255, 255, 0.82);
}

.page-hero {
    padding: clamp(3.8rem, 8vw, 7rem) 0;
    background:
        linear-gradient(135deg, rgba(8, 127, 131, 0.12), rgba(247, 201, 72, 0.24)),
        var(--pooh-soft);
}

.compact-hero {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.content-narrow {
    max-width: 820px;
}

.page-content h2,
.story-content h2 {
    margin-top: 2rem;
    font-size: 1.6rem;
}

.content-card {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--pooh-border);
}

.entry-meta,
.pooh-story-card-meta,
.story-meta-line {
    color: var(--pooh-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.pooh-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.pooh-story-card {
    overflow: hidden;
    background: var(--pooh-white);
    border: 1px solid var(--pooh-border);
    border-radius: var(--pooh-radius);
    box-shadow: 0 10px 26px rgba(30, 36, 48, 0.07);
}

.pooh-story-card-media {
    display: grid;
    place-items: center;
    min-height: 210px;
    background: linear-gradient(135deg, rgba(8, 127, 131, 0.16), rgba(239, 101, 80, 0.16));
    color: var(--pooh-teal-dark);
    font-weight: 900;
    text-decoration: none;
}

.pooh-story-card-media img {
    width: 100%;
    aspect-ratio: 1.35 / 1;
    object-fit: cover;
}

.pooh-story-card-body {
    padding: 1.1rem;
}

.pooh-story-card h2,
.pooh-story-card h3 {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.28rem;
    line-height: 1.18;
}

.pooh-story-card h2 a,
.pooh-story-card h3 a {
    color: var(--pooh-ink);
    text-decoration: none;
}

.pooh-story-card p {
    margin: 0;
    color: var(--pooh-muted);
    font-size: 0.98rem;
}

.pooh-category-cloud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.pooh-category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 0.95rem 1rem;
    background: var(--pooh-white);
    border: 1px solid var(--pooh-border);
    border-radius: var(--pooh-radius);
    color: var(--pooh-ink);
    font-weight: 850;
    text-decoration: none;
}

.pooh-category-link:hover {
    border-color: var(--pooh-teal);
    transform: translateY(-1px);
}

.pooh-category-link small {
    display: grid;
    place-items: center;
    min-width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(247, 201, 72, 0.35);
    color: var(--pooh-ink);
}

.form-shell {
    max-width: 920px;
}

.pooh-story-form,
.pooh-login-prompt {
    padding: clamp(1.4rem, 4vw, 2rem);
    background: var(--pooh-white);
    border: 1px solid var(--pooh-border);
    border-radius: var(--pooh-radius);
    box-shadow: 0 12px 30px rgba(30, 36, 48, 0.08);
}

.pooh-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pooh-form-row {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.pooh-form-row label {
    color: var(--pooh-ink);
    font-size: 0.95rem;
    font-weight: 850;
}

.pooh-form-row input,
.pooh-form-row textarea,
.pooh-form-row select {
    width: 100%;
    min-height: 46px;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--pooh-border);
    border-radius: var(--pooh-radius);
    background: var(--pooh-white);
    color: var(--pooh-ink);
    font: inherit;
}

.pooh-form-row textarea {
    resize: vertical;
}

.pooh-form-note,
.pooh-muted {
    color: var(--pooh-muted);
}

.pooh-notice {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--pooh-radius);
    font-weight: 750;
}

.pooh-notice-success {
    background: rgba(83, 166, 111, 0.16);
    color: #235c37;
}

.pooh-notice-error {
    background: rgba(239, 101, 80, 0.16);
    color: var(--pooh-coral-dark);
}

.pooh-empty {
    color: var(--pooh-muted);
    font-weight: 700;
}

.pooh-pagination,
.nav-links {
    display: flex;
    gap: 0.55rem;
    margin-top: 2rem;
}

.pooh-pagination a,
.pooh-pagination span,
.nav-links a,
.nav-links span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--pooh-border);
    border-radius: var(--pooh-radius);
    text-decoration: none;
}

.story-detail-header {
    padding: clamp(3.5rem, 8vw, 6.5rem) 0;
    background: linear-gradient(135deg, rgba(247, 201, 72, 0.3), rgba(8, 127, 131, 0.12));
}

.story-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.story-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.story-meta-line span {
    padding: 0.35rem 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--pooh-border);
    border-radius: 999px;
}

.story-taxonomy {
    margin-top: 1rem;
    font-weight: 800;
}

.story-detail-image img {
    width: 100%;
    aspect-ratio: 1.15 / 1;
    object-fit: cover;
    border-radius: var(--pooh-radius);
    box-shadow: var(--pooh-shadow);
}

.story-content {
    font-size: 1.08rem;
}

.story-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    margin-top: 2rem;
}

.story-gallery img {
    width: 100%;
    aspect-ratio: 1.25 / 1;
    object-fit: cover;
    border-radius: var(--pooh-radius);
}

.story-back-link {
    margin-top: 2rem;
    font-weight: 850;
}

.site-footer {
    background: var(--pooh-ink);
    color: var(--pooh-white);
}

.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    padding: 2.2rem 0;
}

.site-footer p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav-list a {
    color: var(--pooh-white);
    text-decoration: none;
}

.site-footer-small {
    grid-column: 1 / -1;
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.9rem 0;
        gap: 0.85rem;
    }

    .site-nav-list {
        flex-wrap: wrap;
    }

    .hero-inner,
    .split-section,
    .story-detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-media {
        order: -1;
    }

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

    .note-panel,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .site-header-inner,
    .section-inner,
    .site-footer-inner,
    .hero-inner {
        width: min(100% - 28px, var(--pooh-max));
    }

    .site-brand-text small {
        display: none;
    }

    .hero-copy h1 {
        font-size: clamp(2.55rem, 15vw, 4.25rem);
    }

    .hero-motto {
        font-size: 1.25rem;
    }

    .hero-media img {
        aspect-ratio: 1 / 0.86;
    }

    .pooh-story-grid,
    .pooh-category-cloud,
    .pooh-form-grid,
    .story-gallery {
        grid-template-columns: 1fr;
    }

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

    .button,
    .pooh-button,
    button.pooh-button {
        width: 100%;
    }

    .section {
        padding: 3rem 0;
    }

    .note-panel {
        padding: 1.5rem;
    }
}

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

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