:root {
    --paper: #faf7f1;
    --card: #ffffff;
    --ink: #26221b;
    --muted: #6f675a;
    --accent: #9a3b1e;
    --accent-dark: #7c2f18;
    --rule: #e3dccd;
    --green: #3f7d3f;
    --yellow: #b07d10;
    --red: #a3312a;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

.container {
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

section[id] {
    scroll-margin-top: 2rem;
}

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

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

/* Header */
.site-header {
    border-bottom: 1px solid var(--rule);
    padding: 1.1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.wordmark {
    font-variant: small-caps;
    letter-spacing: 0.08em;
    font-size: 1.15rem;
    font-weight: 700;
}

.top-nav {
    display: flex;
    gap: 1.4rem;
    font-size: 0.9rem;
}

.top-nav a {
    color: var(--muted);
    text-decoration: none;
}

.top-nav a:hover {
    color: var(--accent);
}

/* Opening */
.opening {
    padding: 4.5rem 0 1rem;
}

h1 {
    font-size: 2.6rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

/* Sections */
main section {
    padding: 2.2rem 0;
}

main section + section {
    border-top: 1px solid var(--rule);
}

h2 {
    font-size: 1.05rem;
    font-variant: small-caps;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1.1rem;
}

h3 {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 700;
    margin: 1.6rem 0 0.5rem;
}

h3:first-of-type {
    margin-top: 0.4rem;
}

p + p {
    margin-top: 1rem;
}

/* CTA */
.cta-line {
    margin-top: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 1rem;
}

.btn:hover {
    background: var(--accent-dark);
    color: #fff;
}

.cta-note {
    color: var(--muted);
    font-style: italic;
    font-size: 1rem;
}

/* Traffic-light inline highlights */
.light {
    white-space: normal;
}

.light::before {
    content: '';
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    border-radius: 50%;
    margin-right: 0.3em;
    vertical-align: baseline;
}

.light.green::before { background: var(--green); }
.light.yellow::before { background: var(--yellow); }
.light.red::before { background: var(--red); }

/* AI 201 list */
.adv-list {
    list-style: none;
    margin: 1rem 0;
}

.adv-list li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.9rem;
}

.adv-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Burn list */
.burn-list {
    list-style: none;
    counter-reset: burn;
}

.burn-list li {
    counter-increment: burn;
    padding-left: 2.4rem;
    position: relative;
    margin-bottom: 1.2rem;
}

.burn-list li::before {
    content: counter(burn);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid var(--accent);
    border-radius: 50%;
    color: var(--accent);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pocket card */
.caption {
    color: var(--muted);
    font-style: italic;
    margin-bottom: 1.2rem;
}

.pocket-card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(38, 34, 27, 0.08);
    overflow: hidden;
}

.pocket-card-head {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 1.1rem;
    background: var(--ink);
    color: var(--paper);
    font-variant: small-caps;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.pocket-idea {
    padding: 0.9rem 1.1rem 0.4rem;
    font-style: italic;
    font-size: 1rem;
    color: var(--muted);
}

.pocket-card table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.pocket-card td,
.pocket-card th {
    padding: 0.55rem 0.6rem;
    vertical-align: top;
    text-align: left;
    border-top: 1px solid var(--rule);
}

.pocket-card td:first-child {
    padding-left: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    width: 2rem;
}

.pocket-card th {
    width: 11.5rem;
    font-weight: 700;
}

.pocket-card td:last-child {
    padding-right: 1.1rem;
}

/* Signature */
.signature {
    margin-top: 2.2rem;
}

.sig-name {
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.1;
    color: var(--ink);
}

.sig-role {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.2rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--rule);
    margin-top: 2rem;
    padding: 1.6rem 0 2.4rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.colophon {
    font-style: italic;
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    h1 {
        font-size: 1.9rem;
    }

    .opening {
        padding-top: 2.5rem;
    }

    .pocket-card th {
        width: auto;
    }

    .pocket-card table,
    .pocket-card tbody,
    .pocket-card tr {
        display: block;
    }

    .pocket-card tr {
        border-top: 1px solid var(--rule);
        padding: 0.55rem 1.1rem;
    }

    .pocket-card td,
    .pocket-card th {
        display: inline;
        border: none;
        padding: 0;
    }

    .pocket-card td:first-child {
        padding-left: 0;
    }

    .pocket-card th::after {
        content: ' — ';
        font-weight: 400;
    }
}
