:root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --ink: #1c1c1f;
    --muted: #5f5f68;
    --line: #e4e0d7;
    --accent: #2f6f5e;
    --accent-dark: #245546;
    --accent-soft: #e8f1ee;
    --notice-bg: #fff6e5;
    --notice-line: #f0d9a8;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

a:focus-visible,
.button:focus-visible {
    outline: 3px solid rgba(47, 111, 94, 0.35);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap {
    width: min(72rem, 100% - 3rem);
    margin-inline: auto;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.9rem;
}

.brand {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 1.25rem;
}

nav a {
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--ink);
}

main {
    padding-block: 3rem 4rem;
}

.hero {
    max-width: 46rem;
    padding-block: 2rem 1rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

h3 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.lede {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1.2rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 650;
    text-decoration: none;
}

.button:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

.button-secondary {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
}

.button-secondary:hover {
    background: var(--surface);
    color: var(--ink);
}

.section {
    margin-top: 3.5rem;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.steps li::before {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 750;
    counter-increment: step;
    content: counter(step);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
}

.card {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

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

.card h3 a:hover {
    color: var(--accent);
}

.pitch {
    margin: 0.25rem 0 0.75rem;
    color: var(--muted);
}

.card-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-quiet {
    background: #f0eee8;
    color: var(--muted);
}

.listing-header {
    max-width: 50rem;
}

.listing-body {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.listing-main section {
    margin-bottom: 2rem;
}

.listing-main p {
    color: #2b2b30;
}

.brief h2 {
    margin-top: 1.6rem;
}

.brief h2:first-child {
    margin-top: 0;
}

.brief h3,
.brief h4 {
    margin-top: 1.6rem;
}

.brief h2 + h3 {
    margin-top: 0.6rem;
}

.brief h4 {
    font-size: 1.05rem;
}

.brief ul,
.brief ol {
    padding-left: 1.25rem;
}

.guide-body {
    max-width: 46rem;
    margin-top: 2rem;
}

.guide-body h2 {
    margin-top: 2.2rem;
}

.guide-body h2:first-child {
    margin-top: 0;
}

.guide-body h3 {
    margin-top: 1.6rem;
}

.guide-body p,
.guide-body li {
    color: #2b2b30;
}

.guide-body ul,
.guide-body ol {
    padding-left: 1.3rem;
}

.guide-body li {
    margin-bottom: 0.35rem;
}

code {
    padding: 0.12rem 0.35rem;
    border-radius: 5px;
    background: #f0eee8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}

.listing-aside {
    position: sticky;
    top: 5rem;
    height: fit-content;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.listing-aside h2 {
    margin-top: 1.5rem;
    font-size: 1.05rem;
}

.listing-aside h2:first-child {
    margin-top: 0;
}

.facts {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem 1rem;
    margin: 0;
    font-size: 0.92rem;
}

.facts dt {
    color: var(--muted);
}

.facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.links {
    margin: 0;
    padding-left: 1.1rem;
}

.interest {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.notice {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--notice-line);
    border-radius: var(--radius);
    background: var(--notice-bg);
    color: #5c4310;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.note {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.site-footer {
    padding-block: 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0.25rem 0;
}

@media (max-width: 760px) {
    .listing-body {
        grid-template-columns: 1fr;
    }

    .listing-aside {
        position: static;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }
}

@media (max-width: 560px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
