:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: rgba(15, 23, 42, 0.08);
    --accent: #2563eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(980px, 92vw);
    margin: 0 auto;
}

.header {
    padding: 32px 0 20px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.title h1 {
    margin: 0;
    font-size: 40px;
    letter-spacing: -0.02em;
}

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

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.chip {
    border: 1px solid var(--border);

    color: var(--text);

    text-decoration: none;

    padding: 8px 12px;

    border-radius: 999px;

    font-size: 14px;

    background: white;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.chip:hover {
    background: #f3f4f6;
}

.btn {
    text-decoration: none;

    color: white;

    background: #111827;

    padding: 10px 14px;

    border-radius: 10px;

    font-weight: 600;

    font-size: 14px;

    transition:
        background 0.15s ease,
        transform 0.15s ease;
}

.btn:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.main {
    padding: 10px 0 40px;
    display: grid;
    gap: 14px;
}

.card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 24px rgba(0, 0, 0, 0.03);
}

h2 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: 0.01em;
}

p {
    margin: 0;
    line-height: 1.55;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    border: 1px solid var(--border);

    padding: 7px 10px;

    border-radius: 999px;

    background: #f9fafb;

    font-size: 13px;

    color: var(--text);
}

.stack {
    display: grid;
    gap: 14px;
}

.item-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.item-title {
    font-weight: 800;
}

.item-sub {
    color: var(--muted);
    font-size: 14px;
}

.item-date {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

ul {
    margin: 10px 0 0;
    padding-left: 18px;
}

li {
    margin: 6px 0;
    color: var(--text);
    line-height: 1.5;
}

a.inline {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(96, 165, 250, 0.25);
}

a.inline:hover {
    border-bottom-color: rgba(96, 165, 250, 0.6);
}

.footer {
    padding: 12px 0 34px;
    font-size: 13px;
}

@page {
    size: Letter;
    margin: 0.45in;
}

@media print {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background: #fff !important;
        color: #111 !important;
        font-size: 10px;
        line-height: 1.25;
    }

    .inline {
        display: none !important;
    }

    .actions,
    .footer {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .header {
        display: block;
        padding: 0 0 8px;
        margin-bottom: 8px;
        border-bottom: 1px solid #999;
    }

    .title h1 {
        font-size: 22px;
        margin-bottom: 2px;
    }

    .title p {
        font-size: 10px;
        line-height: 1.2;
    }

    .main {
        display: block;
        padding: 0;
    }

    .card {
        border: none;
        background: transparent !important;
        padding: 0;
        margin: 0 0 8px;
        border-radius: 0;
        break-inside: avoid;
    }

    h2 {
        font-size: 11px;
        margin: 0 0 4px;
        padding-bottom: 2px;
        border-bottom: 1px solid #bbb;
        text-transform: uppercase;
    }

    p {
        line-height: 1.3;
    }

    .pill-grid {
        display: block;
    }

    .pill {
        display: inline;
        border: none;
        padding: 0;
        margin: 0 8px 0 0;
        background: transparent;
        font-size: 10px;
    }

    .stack {
        display: block;
    }

    .item-head {
        display: flex;
        justify-content: space-between;
        gap: 8px;
        margin-top: 4px;
    }

    .item-title {
        font-size: 10.5px;
        font-weight: 700;
    }

    .item-sub,
    .item-date,
    .muted {
        font-size: 9.5px;
        color: #333 !important;
    }

    ul {
        margin: 3px 0 6px;
        padding-left: 14px;
    }

    li {
        margin: 2px 0;
        line-height: 1.25;
        color: #111 !important;
    }

    a {
        color: #111 !important;
        text-decoration: none !important;
    }
}