:root {
    --bg: #f5f1e8;
    --surface: #fffaf2;
    --line: #d7ccb8;
    --ink: #2e2a24;
    --accent: #1f5c4a;
    --accent-soft: #dfeee8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Hiragino Sans", "Yu Gothic", "Yu Gothic UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, #fef7e5, transparent 30%),
        linear-gradient(180deg, #f2eee4 0%, var(--bg) 100%);
}

a {
    color: var(--accent);
}

.shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(23, 70, 56, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    display: block;
    font-size: 1.1rem;
    line-height: 1.1;
}

.brand-tagline {
    display: block;
    font-size: 0.74rem;
    font-weight: 500;
    color: #6b6459;
}

.header-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.page {
    padding: 32px 0 64px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.85);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 72px;
}

.footer-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    color: #6b6459;
}

.hero,
.section {
    margin-bottom: 40px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0 0 16px;
}

.lead {
    font-size: 1.05rem;
    max-width: 680px;
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.search-form input {
    flex: 1 1 320px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
}

.search-form button {
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    cursor: pointer;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.single-column {
    grid-template-columns: 1fr;
}

.card,
.result-item {
    display: block;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
}

.result-list {
    display: grid;
    gap: 16px;
}

.result-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.result-meta dt {
    font-size: 0.8rem;
    color: #5c564f;
}

.result-meta dd {
    margin: 4px 0 0;
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.breadcrumbs-sep {
    margin: 0 8px;
}

.stack {
    margin: 0;
    padding-left: 20px;
}

.note,
.empty-state {
    color: #61584d;
}

.static-page {
    max-width: 760px;
}

.static-page p {
    line-height: 1.8;
}

@media (max-width: 720px) {
    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
    }

    .brand {
        align-self: flex-start;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
    }
}
