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

:root {
    --ember:       #E8652B;
    --ember-dark:  #C9521F;
    --flame:       #F4A623;
    --night:       #1C1410;
    --night-light: #2A1F17;
    --cream:       #F5E6D3;
    --cream-muted: #C4A882;
    --radius:      12px;
    --line:        rgba(245, 230, 211, 0.08);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--night);
    color: var(--cream);
    min-height: 100vh;
    overflow-x: hidden;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo svg { width: 36px; height: 36px; overflow: visible; }
.nav-wordmark { font-size: 1.2rem; font-weight: 700; color: var(--cream); }
.nav-wordmark span { color: var(--ember); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--cream-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--cream); }

.page-header {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 2rem 1rem;
    text-align: center;
}
.page-header h1 { font-size: 2.6rem; font-weight: 700; margin-bottom: 0.75rem; }
.page-header p { color: var(--cream-muted); font-size: 1.05rem; line-height: 1.6; }

/* ── Help hub ── */
.help-hub {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.help-card {
    display: block;
    background: var(--night-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    text-decoration: none;
    color: var(--cream);
    transition: border-color 0.2s, transform 0.15s;
}
.help-card:hover { border-color: rgba(232, 101, 43, 0.4); transform: translateY(-2px); }
.help-card h2 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.help-card p { color: var(--cream-muted); font-size: 0.9rem; line-height: 1.55; }
.help-card .more { display: inline-block; margin-top: 0.8rem; color: var(--ember); font-size: 0.85rem; font-weight: 600; }

/* ── Article ── */
.article {
    max-width: 740px;
    margin: 0 auto;
    padding: 2.5rem 2rem 5rem;
}
.crumbs { font-size: 0.85rem; color: var(--cream-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ember); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.article h1 { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.9rem; }
.article .lead { color: var(--cream-muted); font-size: 1.08rem; line-height: 1.65; margin-bottom: 2rem; }
.article h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2.4rem 0 0.8rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}
.article h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.article p, .article li { color: var(--cream-muted); font-size: 0.97rem; line-height: 1.75; }
.article p { margin-bottom: 0.9rem; }
.article strong { color: var(--cream); font-weight: 600; }
.article a { color: var(--ember); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article ol, .article ul { margin: 0.4rem 0 1.1rem 1.3rem; }
.article li { margin-bottom: 0.45rem; padding-left: 0.3rem; }
.article ol li::marker { color: var(--ember); font-weight: 600; }
.article ul li::marker { color: var(--ember); }
.article code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    background: rgba(245, 230, 211, 0.07);
    border-radius: 4px;
    padding: 0.1em 0.4em;
    color: var(--cream);
    overflow-wrap: anywhere;
}

.note {
    background: rgba(232, 101, 43, 0.08);
    border: 1px solid rgba(232, 101, 43, 0.25);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 1.2rem 0 1.4rem;
}
.note p { margin: 0; color: var(--cream); font-size: 0.93rem; }

.table-wrap { overflow-x: auto; margin: 0.8rem 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
tr:last-child td { border-bottom: none; }
th { color: var(--ember); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--night-light); }
td { color: var(--cream-muted); }
td:first-child { color: var(--cream); font-weight: 500; white-space: nowrap; }

.next {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}
.next a {
    flex: 1 1 220px;
    background: var(--night-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.9rem 1.1rem;
    color: var(--cream);
    font-weight: 500;
    font-size: 0.92rem;
}
.next a:hover { border-color: rgba(232, 101, 43, 0.4); text-decoration: none; }
.next a span { display: block; color: var(--cream-muted); font-size: 0.75rem; font-weight: 400; margin-bottom: 0.15rem; }

.contact-strip {
    background: var(--night-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}
.contact-strip h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.5rem; }
.contact-strip p { color: var(--cream-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.contact-strip a { color: var(--ember); font-weight: 600; text-decoration: none; }
.contact-strip a:hover { text-decoration: underline; }

footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    color: var(--cream-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--line);
}
footer a { color: var(--cream-muted); text-decoration: none; margin: 0 0.75rem; }
footer a:hover { color: var(--cream); }
.footer-links { margin-bottom: 0.75rem; line-height: 2; }

@media (max-width: 600px) {
    .page-header h1 { font-size: 2rem; }
    .article h1 { font-size: 1.75rem; }
    nav { flex-wrap: wrap; padding-bottom: 0.75rem; }
    .nav-links { width: 100%; gap: 0.5rem 1.1rem; flex-wrap: wrap; }
    .nav-links a { font-size: 0.85rem; }
    .article, .help-hub { padding-left: 1.25rem; padding-right: 1.25rem; }
    table { min-width: 0; font-size: 0.85rem; }
    th, td { padding: 0.6rem 0.75rem; }
    td:first-child { white-space: normal; width: 32%; }
}
