:root {
    --ink: #1c1915;
    --muted: #5e584f;
    --line: #e4dccd;
    --paper: #f6f1e8;
    --card: #fffdf8;
    --green: #1f4d3a;
    --green-soft: #e5f0ea;
    --amber: #8a5a12;
    --amber-soft: #f8efd8;
    --bad: #8d2f2f;
    --bad-soft: #f8e6e4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.5 "Segoe UI", sans-serif;
}

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

h1, h2, h3 { font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }

h1 { margin: 0 0 0.4rem; font-size: 2rem; }

h2 { margin: 2rem 0 0.8rem; font-size: 1.35rem; }

h3 { margin: 0; font-size: 1.05rem; }

p { margin: 0.4rem 0; }

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    background: var(--green);
    color: #f6f1e8;
}

.brand { color: inherit; font-weight: 650; text-decoration: none; }

.top-side { display: flex; align-items: center; gap: 1rem; font-size: 0.92rem; }

.linkish {
    background: transparent;
    color: inherit;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

main { width: min(1080px, calc(100% - 2rem)); margin: 1.5rem auto 3rem; }

.kicker { color: var(--muted); margin-bottom: 0.3rem; }

.lead { max-width: 68ch; color: var(--muted); }

.meta { color: var(--muted); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
}

.cards { display: grid; gap: 1rem; margin-top: 1.4rem; }

.specialty { display: block; color: inherit; text-decoration: none; }
.specialty:hover { border-color: var(--green); }
.eyebrow { color: var(--green); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }

.stats { display: flex; flex-wrap: wrap; gap: 0.7rem 1.2rem; padding: 0; margin: 0.9rem 0 0; list-style: none; color: var(--muted); }
.stats strong { color: var(--ink); }
.stats.inline { margin-top: 1rem; }

.stack { display: grid; gap: 0.7rem; }
.finding h3 { margin: 0.35rem 0; }
.finding-problem { border-left: 4px solid var(--amber); }
.finding-note { border-left: 4px solid var(--green); }

.tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--amber);
}
.finding-note .tag { color: var(--green); }

.requirements { padding-left: 1.2rem; }
.requirements li { margin: 0.8rem 0; }
.source { color: var(--muted); font-size: 0.92rem; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.filter { color: var(--muted); font-size: 0.92rem; }
.filter input, .form input {
    display: block;
    margin-top: 0.25rem;
    width: 16rem;
    max-width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font: inherit;
}

.crew { margin: 1.3rem 0 0.4rem; }
.crew span { color: var(--muted); font-weight: 400; font-size: 0.92rem; }

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.people a {
    display: grid;
    grid-template-columns: minmax(16rem, 1.4fr) minmax(14rem, 1.2fr) auto;
    gap: 0.6rem 1rem;
    align-items: center;
    padding: 0.75rem 0.9rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
}
.people a:hover { border-color: var(--green); }
.person-name { font-weight: 650; }
.person-meta { color: var(--muted); }

.pill {
    justify-self: end;
    background: #efeae2;
    color: var(--muted);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.82rem;
    white-space: nowrap;
}
.pill.ok { background: var(--green-soft); color: var(--green); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

.note { color: var(--muted); max-width: 75ch; }
.warning { background: var(--amber-soft); }

.facts { padding-left: 1.1rem; }
.facts li { margin: 0.2rem 0; }

.checks { width: 100%; border-collapse: collapse; background: var(--card); }
.checks th, .checks td { text-align: left; vertical-align: top; padding: 0.8rem; border-bottom: 1px solid var(--line); }
.checks th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.checks td span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.2rem; }
.checks .pill { display: inline-block; justify-self: auto; }

.fold { margin-top: 1.4rem; }
.fold summary { cursor: pointer; font-weight: 650; font-size: 1.15rem; }
.fold[open] summary { margin-bottom: 0.6rem; }

.plan { max-width: 75ch; padding-left: 1.2rem; }
.plan li { margin: 0.55rem 0; }

.login { width: min(32rem, 100%); margin: 2rem auto; }
.form { display: grid; gap: 0.8rem; margin-top: 1rem; }
.form label { display: grid; gap: 0.25rem; }
.form input { width: 100%; }
.form-actions { position: relative; }
.form button, button {
    background: var(--green);
    color: white;
    border: 0;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font: inherit;
    cursor: pointer;
}
.error { color: var(--bad); margin: 0; }

@media (max-width: 800px) {
    .people a { grid-template-columns: 1fr; }
    .pill { justify-self: start; }
    .section-head { display: block; }
}
