* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #12120f;
    --bg-elevated: rgba(17, 17, 17, 0.92);
    --border: #2a2820;
    --text: #e0e0e0;
    --text-dim: #888;
    --accent: #d4c5a9;
    --accent-dim: #8a7d5a;
    --highlight: #c5a84e;
    --green: #4ade80;
    --green-dim: #166534;
    --red: #c94a4a;
    --red-dim: #7a1a1a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    flex: 1;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-label {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--accent-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h1 strong {
    font-weight: 600;
    color: var(--accent);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-dim);
}

/* Content sections */
.section {
    margin-bottom: 2.5rem;
}

.section h2 {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.section p:last-child { margin-bottom: 0; }

.section strong { color: var(--accent); }
.section em { color: var(--text-dim); font-style: italic; }

.dim { color: var(--text-dim); }

/* Pull quote */
.pull-quote {
    border-left: 3px solid var(--accent-dim);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--bg-elevated);
    border-radius: 0 4px 4px 0;
}

.pull-quote p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 0;
}

/* Five S's */
.five-s-list {
    list-style: none;
    margin: 1.25rem 0;
}

.five-s-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    margin-bottom: 0.35rem;
    border-radius: 4px;
}

.five-s-item.floor {
    border-left: 3px solid var(--accent);
}

.five-s-item.crime {
    border-left: 3px solid var(--red-dim);
    opacity: 0.75;
}

.five-s-word {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    min-width: 4.5rem;
    color: var(--accent);
}

.five-s-item.crime .five-s-word {
    color: var(--red);
}

.five-s-note {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.five-s-divider {
    text-align: center;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0.5rem 0;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    margin: 0.35rem 0;
}

/* Stat cards */
.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* Info cards */
.info-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}

.info-card h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 0;
}

.info-card.highlight {
    border-left: 3px solid var(--highlight);
}

.info-card.highlight h3 { color: var(--highlight); }

.info-card.green {
    border-left: 3px solid var(--green-dim);
}

.info-card.green h3 { color: var(--green); }

/* Resource list */
.resource-list {
    list-style: none;
}

.resource-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.resource-list li:last-child { border-bottom: none; }

.resource-list a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.resource-list a:hover { color: var(--text); }

.resource-list .resource-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

/* CTA */
.cta-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 6px;
}

.cta-section p {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.cta-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.cta-btn span { margin-left: 0.4rem; }

.next-step-block {
    border-left: 3px solid var(--accent-dim);
    padding-left: 1.25rem;
}

.next-step-block p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
    .container { padding: 1.5rem 1rem; }
    h1 { font-size: 1.4rem; }
    .stat-row { grid-template-columns: 1fr; }
    .five-s-item { gap: 0.75rem; }
    .five-s-word { min-width: 4rem; }
}

/* ── In-page table of contents (2026-07-09) ── */
.toc {
    margin: 1.75rem auto 0;
    max-width: 720px;
    padding: 0.9rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    align-items: center;
}

.toc-label {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-right: 0.4rem;
}

.toc a {
    font-size: 0.8rem;
    color: var(--accent-dim);
    text-decoration: none;
    white-space: nowrap;
}

.toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}
