@font-face {
    font-family: "Peachi";
    src: url("/assets/peachi-regular-633d3878.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Peachi";
    src: url("/assets/peachi-bold-1445368d.otf") format("opentype");
    font-weight: 700;
    font-display: swap;
}

:root {
    --bg: #fefbf3;
    --text: #2c1810;
    --text-body: #3d2e22;
    --text-muted: #a0927b;
    --accent: #d35327;
    --accent-hover: #b5441d;
    --border: #ddd4c2;
    --font-display: "Peachi", Georgia, "Times New Roman", serif;
    --font-head: Georgia, "Times New Roman", serif;
    --font-body: Georgia, "Times New Roman", serif;
}

body {
    background-color: var(--bg);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Narrow readable column */
.digest-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

/* Masthead */
.masthead {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
    margin-bottom: 0;
}

.masthead h1 {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0;
}

/* Date-in-divider */
.date-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.date-divider-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.date-divider-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

/* Fleuron divider (between stories) */
.fleuron {
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    letter-spacing: 0.4em;
    padding: 1rem 0;
}

/* Executive summary */
.executive-summary {
    font-family: var(--font-head);
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-body);
    padding: 1rem 0 1.5rem;
}

/* Table of contents */
.toc {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.toc-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.toc a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.4;
    display: block;
}

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

.toc .toc-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
    margin-right: 0.3em;
}

/* Story cards */
.story {
    margin-bottom: 0;
    padding: 2rem 0;
}

.story-position {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.story-headline {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.story-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 0.15em 0.5em;
    margin-bottom: 1rem;
}

/* TL;DR */
.story-tldr {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0.5rem 0 1rem;
}

/* Section labels (h3) */
h3.section-label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

h3.section-label::before {
    content: "\25CF";
    color: var(--accent);
    font-size: 0.9em;
    margin-right: 0.6em;
    vertical-align: middle;
}

/* Perspectives */
.perspective {
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 1rem;
}

h4.perspective-viewpoint {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
}

.perspective-summary {
    margin: 0 0 0.3rem;
}

.perspective-sources {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
}

.perspective-sources li {
    font-size: 0.85rem;
    line-height: 1.35;
    padding: 0.15rem 0;
}

.perspective-sources .source-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-right: 0.3em;
}

.perspective-sources a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.perspective-sources a:hover {
    color: var(--accent);
}

/* Transition notes */
.transition-note {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    padding: 0 0 0.5rem;
}

/* Navigation */
.digest-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 2px solid var(--text);
    margin-top: 1rem;
}

.digest-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

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

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 0;
}

.empty-state h2 {
    font-family: var(--font-head);
    color: var(--text-muted);
}

/* Archive page */
.archive-list {
    list-style: none;
    padding: 0;
}

.archive-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.archive-item a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.archive-item a:hover {
    color: var(--accent);
}

.archive-item .theme {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    text-align: right;
    flex-shrink: 1;
}

/* Links */
a {
    color: var(--accent);
}

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

/* Bootstrap overrides */
.btn-outline-secondary {
    color: var(--text);
    border-color: var(--border);
}

.btn-outline-secondary:hover {
    background-color: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
