/* TASK-017: håndskrifts-webfont til sparsomme redaktionelle håndmærker (fx læsefremgangs-ringen). Caveat, SIL Open Font License 1.1. */
@font-face {
    font-family: "Atlas Hand";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/atlas-hand-400.woff2") format("woff2");
}

@font-face {
    font-family: "Atlas Hand";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/atlas-hand-700.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --bg: #f5efe5;
    --bg-elevated: rgba(250, 246, 239, 0.88);
    --surface: #fffaf2;
    --surface-strong: #eadfce;
    --text: #1d2b3a;
    --text-muted: #596575;
    --accent: #c95c4d;
    --accent-strong: #9e4037;
    --primary-bg: #9e4037;
    --primary-text: #fffaf2;
    --accent-soft: rgba(201, 92, 77, 0.13);
    --border: rgba(104, 85, 66, 0.23);
    --shadow: 0 16px 36px rgba(57, 43, 30, 0.08);
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --radius-sm: 0.75rem;
    --max-width: 72rem;
    --transition: 180ms ease;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #17232e;
        --bg-elevated: rgba(25, 38, 49, 0.88);
        --surface: #20303d;
        --surface-strong: #304251;
        --text: #f8f0e5;
        --text-muted: #c6c2b9;
        --accent: #ee8977;
        --accent-strong: #ffc0b0;
        --primary-bg: #f3aa9b;
        --primary-text: #1d2b3a;
        --accent-soft: rgba(238, 137, 119, 0.18);
        --border: rgba(240, 222, 195, 0.2);
        --shadow: 0 20px 44px rgba(5, 12, 18, 0.34);
    }
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5efe5;
    --bg-elevated: rgba(250, 246, 239, 0.88);
    --surface: #fffaf2;
    --surface-strong: #eadfce;
    --text: #1d2b3a;
    --text-muted: #596575;
    --accent: #c95c4d;
    --accent-strong: #9e4037;
    --primary-bg: #9e4037;
    --primary-text: #fffaf2;
    --accent-soft: rgba(201, 92, 77, 0.13);
    --border: rgba(104, 85, 66, 0.23);
    --shadow: 0 16px 36px rgba(57, 43, 30, 0.08);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #17232e;
    --bg-elevated: rgba(25, 38, 49, 0.88);
    --surface: #20303d;
    --surface-strong: #304251;
    --text: #f8f0e5;
    --text-muted: #c6c2b9;
    --accent: #ee8977;
    --accent-strong: #ffc0b0;
    --primary-bg: #f3aa9b;
    --primary-text: #1d2b3a;
    --accent-soft: rgba(238, 137, 119, 0.18);
    --border: rgba(240, 222, 195, 0.2);
    --shadow: 0 20px 44px rgba(5, 12, 18, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    background: radial-gradient(circle at top, rgba(201, 92, 77, 0.1), transparent 34%), var(--bg);
    color: var(--text);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: transparent;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

p {
    color: var(--text-muted);
    line-height: 1.65;
}

.layout-shell {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 0.75rem;
    padding: 0.8rem;
    display: grid;
    gap: 0.75rem;
    background: var(--bg-elevated);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius-lg) + 0.25rem);
    box-shadow: var(--shadow);
}

.brand-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-link strong,
.brand-link small {
    display: block;
}

.brand-link small {
    color: var(--text-muted);
}

.brand-mark {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-grid;
    place-items: center;
    border-radius: 0.9rem;
    background: var(--primary-bg);
    color: var(--primary-text);
    font-weight: 800;
}

.site-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.1rem 0.15rem 0.3rem;
    margin-inline: -0.15rem;
    scrollbar-width: thin;
}

.nav-link,
.theme-toggle,
.button {
    border-radius: 999px;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.nav-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-strong);
    border-color: transparent;
    background: var(--accent-soft);
}

.theme-toggle {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0.7rem 1rem;
    min-height: 2.75rem;
    cursor: pointer;
    font-weight: 700;
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

:where(a, button, summary):focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.site-main {
    padding: 1.5rem 0;
}

.hero,
.section-grid,
.section-stack,
.pack-list,
.article-page,
.feed {
    display: grid;
    gap: 1rem;
}

.hero {
    align-items: stretch;
}

.hero__copy,
.hero__panel,
.surface-card,
.page-header,
.site-footer {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero__copy,
.hero__panel,
.surface-card,
.page-header,
.site-footer {
    padding: 1.25rem;
}

.hero__copy h1,
.page-header h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.hero__lede {
    font-size: 1.05rem;
    max-width: 38rem;
}

.eyebrow,
.card-kicker,
.panel__label {
    display: inline-flex;
    margin-bottom: 0.85rem;
    color: var(--accent-strong);
    background: var(--accent-soft);
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.15rem;
    border: 1px solid transparent;
    font-weight: 700;
}

.button--primary {
    background: var(--primary-bg);
    color: var(--primary-text);
}

.button--secondary {
    background: var(--surface);
    border-color: var(--border);
}

.hero__panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.hero__panel h2,
.surface-card h2,
.timeline h3 {
    margin-bottom: 0.6rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.stat-grid div {
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-strong) 55%, transparent);
}

.stat-grid dt {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.stat-grid dd {
    margin: 0;
    font-weight: 700;
}

.section-heading {
    max-width: 40rem;
}

.feed {
    max-width: 48rem;
    margin: 0 auto;
}

.pack-page {
    display: grid;
    gap: 1rem;
    max-width: 48rem;
    margin: 0 auto;
}

.feed h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.85rem;
}

.feed-list {
    display: grid;
    gap: 0.85rem;
}

.article-card {
    display: grid;
    gap: 0.7rem;
    padding: 1.15rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.article-card__details {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.45rem;
}

.reading-status-badge {
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: var(--surface-strong);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.article-card .card-kicker {
    margin: 0;
}

.article-card h2,
.article-card p {
    margin: 0;
}

.article-card h2 {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.timeline {
    display: grid;
    gap: 0.85rem;
}

.timeline article {
    padding: 1rem 1rem 1rem 1.15rem;
    border-left: 4px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow);
}

.surface-card--feature {
    background: linear-gradient(180deg, var(--accent-soft), var(--surface));
}

.pack-card {
    display: grid;
    gap: 0.2rem;
}

.pack-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.pack-card__action {
    margin-top: 0.6rem;
    color: var(--accent-strong);
    font-weight: 700;
}

.site-footer {
    margin-top: 0.5rem;
}

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

h1:focus {
    outline: none;
}

.article-page {
    align-items: start;
}

.article-hero,
.article-body,
.article-sources {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.article-hero {
    display: grid;
    gap: 1rem;
}

.article-hero h1,
.article-sources h2 {
    margin-bottom: 0;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.article-pill,
.article-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-strong) 45%, transparent);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.article-hook {
    font-size: 1.125rem;
    color: var(--text);
    max-width: 42rem;
}

.article-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.article-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    gap: 0.75rem 1rem;
}

.article-bookmark,
.article-reading-status {
    display: grid;
    justify-items: start;
    gap: 0.4rem;
}

.bookmark-status,
.reading-status-message {
    min-height: 1.3rem;
    margin: 0;
    font-size: 0.9rem;
}

.reading-progress {
    display: grid;
    gap: 0.4rem;
    max-width: 18rem;
}

.reading-progress__label {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.reading-progress progress {
    width: 100%;
    height: 0.35rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    accent-color: var(--accent);
}

.reading-progress progress::-webkit-progress-bar {
    background: var(--surface-strong);
}

.reading-progress progress::-webkit-progress-value {
    background: var(--accent);
}

.reading-progress progress::-moz-progress-bar {
    background: var(--accent);
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article-body h1 {
    font-size: 1.75rem;
}

.article-body h2 {
    margin-top: 1.75rem;
    font-size: 1.35rem;
}

.article-body p,
.article-body li {
    color: var(--text);
    line-height: 1.75;
}

.article-body blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.1rem;
    border-inline-start: 0.3rem solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface));
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--surface) 65%, transparent);
}

.article-body blockquote p {
    margin: 0;
    color: var(--text);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.6;
}

.article-body ul,
.article-error-list,
.source-list {
    padding-left: 1.2rem;
}

.article-body li + li,
.source-list li + li,
.article-error-list li + li {
    margin-top: 0.55rem;
}

.article-body a,
.source-list a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.article-body code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.45rem;
    background: color-mix(in srgb, var(--surface-strong) 55%, transparent);
    font-size: 0.92em;
}

.article-illustration {
    margin: 2rem 0;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-strong) 35%, transparent);
}

.article-illustration__graphic {
    display: block;
    width: 100%;
    max-width: 22rem;
    height: auto;
    margin: 0 auto;
    overflow: visible;
}

.article-illustration__panel {
    stroke: var(--text-muted);
    stroke-width: 2;
}

.article-illustration__panel--influence {
    fill: color-mix(in srgb, var(--accent-soft) 65%, var(--surface));
}

.article-illustration__panel--outside {
    fill: var(--surface);
    stroke-dasharray: 7 5;
}

.article-illustration__eyebrow,
.article-illustration__heading,
.article-illustration__label,
.article-illustration__divider-label {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    fill: var(--text);
}

.article-illustration__eyebrow {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.article-illustration__heading {
    font-size: 19px;
    font-weight: 800;
}

.article-illustration__label {
    font-size: 14px;
}

.article-illustration__divider {
    stroke: var(--text-muted);
    stroke-width: 2;
}

.article-illustration__divider-label {
    fill: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-anchor: middle;
}

.article-illustration figcaption,
.article-illustration__alternative {
    margin: 0.9rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.article-illustration__alternative {
    padding-top: 0.9rem;
    border-top: 1px solid var(--border);
}

.article-illustration__alternative strong {
    color: var(--text);
}

.article-metadata-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 0;
}

.article-metadata-grid div {
    padding: 0.85rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-strong) 55%, transparent);
}

.article-metadata-grid dt {
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.article-metadata-grid dd {
    margin: 0;
    font-weight: 700;
}

.article-transparency {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--surface-strong) 42%, var(--surface));
}

.article-transparency summary {
    display: grid;
    gap: 0.2rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    list-style: none;
}

.article-transparency summary::-webkit-details-marker {
    display: none;
}

.article-transparency summary::after {
    content: "+";
    position: absolute;
    inset-inline-end: 1.25rem;
    top: 50%;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 500;
    transform: translateY(-50%);
}

.article-transparency[open] summary::after {
    content: "−";
}

.article-transparency summary {
    position: relative;
    padding-inline-end: 3.5rem;
}

.article-transparency__eyebrow {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-transparency__title {
    color: var(--text);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-weight: 700;
}

.article-transparency__content {
    padding: 0 1.25rem 1.25rem;
}

.article-reading-action {
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-reading-status--end {
    width: 100%;
}

.article-reading-status--end .button {
    width: 100%;
    min-height: 2.75rem;
}

.article-next {
    display: grid;
    gap: 0.85rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, var(--accent-soft), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.article-next h2,
.article-next p {
    margin: 0;
}

.article-next__link {
    justify-self: start;
    min-height: 2.75rem;
}

.saved-page,
.saved-list {
    display: grid;
    gap: 1rem;
}

.saved-page {
    max-width: 48rem;
    margin: 0 auto;
}

.saved-article {
    display: grid;
    gap: 0.75rem;
}

.saved-article h2,
.saved-article__meta {
    margin: 0;
}

.saved-article h2 {
    font-size: 1.2rem;
    line-height: 1.25;
}

.saved-article h2 a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 0.18rem;
}

.saved-article h2 a:hover,
.saved-article h2 a:focus-visible {
    color: var(--accent-strong);
    text-decoration-color: currentColor;
}

.saved-article__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.saved-article__actions {
    display: flex;
}

.saved-empty h2 {
    margin-bottom: 0.6rem;
}

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

@media (min-width: 48rem) {
    .layout-shell {
        width: min(calc(100% - 3rem), var(--max-width));
        padding-bottom: 3rem;
    }

    .hero {
        grid-template-columns: 1.4fr 1fr;
    }

    .section-grid,
    .pack-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pack-list--single {
        grid-template-columns: minmax(0, 30rem);
    }

    .site-header {
        padding: 1.1rem 1.25rem;
    }

    .brand-block {
        align-items: center;
    }

    .site-nav {
        overflow-x: visible;
        padding-bottom: 0;
    }

    .article-page {
        gap: 1.25rem;
    }

    .article-hero,
    .article-body,
    .article-sources,
    .article-reading-action,
    .article-next {
        padding: 1.5rem;
    }

    .article-reading-status--end .button {
        width: auto;
    }

    .article-metadata-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-transparency summary {
        padding: 1.25rem 1.5rem;
        padding-inline-end: 4rem;
    }

    .article-transparency summary::after {
        inset-inline-end: 1.5rem;
    }

    .article-transparency__content {
        padding: 0 1.5rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* TASK-015: mockup-nær editorial ramme. Eksisterende komponenter og handlinger bevares. */
:root {
    --editorial-navy: #172a38;
    --editorial-navy-muted: #29404e;
    --editorial-paper: #f6f0e6;
    --editorial-paper-strong: #fffaf2;
    --editorial-sand: #e7dac5;
    --editorial-coral: #c95c4d;
    --editorial-sage: #dbe5d6;
    --editorial-inverse: #fffaf2;
}

body {
    background: var(--editorial-paper);
}

.layout-shell {
    width: min(100%, 88rem);
    max-width: none;
    padding: 0 1rem 2rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    gap: 0.7rem;
    margin: 0 -1rem 1.75rem;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 0 0 1.1rem 1.1rem;
    background: var(--editorial-navy);
    box-shadow: 0 0.4rem 1.5rem rgb(23 42 56 / 18%);
}

.brand-link,
.brand-link strong,
.brand-link small {
    color: var(--editorial-inverse);
}

.brand-link small {
    color: rgb(255 250 242 / 74%);
}

.brand-mark {
    background: #ef9789;
    color: #172a38;
}

.theme-toggle {
    border-color: rgb(255 250 242 / 45%);
    background: rgb(255 250 242 / 10%);
    color: var(--editorial-inverse);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--editorial-inverse);
    background: rgb(255 250 242 / 20%);
}

.site-header :focus-visible,
.mobile-bottom-nav :focus-visible {
    outline-color: #ffd7cf;
    outline-offset: 0.2rem;
}

.site-nav {
    gap: 0.2rem;
}

.nav-link {
    border-color: rgb(255 250 242 / 24%);
    background: transparent;
    color: rgb(255 250 242 / 78%);
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--editorial-inverse);
    background: rgb(255 250 242 / 14%);
}

.site-main {
    display: grid;
    gap: 1.5rem;
}

.page-header,
.section-heading {
    max-width: 44rem;
}

.page-header,
.section-heading,
.surface-card,
.article-hero,
.article-body,
.article-sources,
.article-reading-action,
.article-next,
.article-transparency,
.article-rail__card {
    border-color: rgb(84 67 45 / 18%);
    box-shadow: 0 0.35rem 1.3rem rgb(68 53 33 / 8%);
}

.page-header,
.section-heading {
    padding-block: 0.65rem;
}

.page-header h1,
.section-heading h1,
.article-hero h1 {
    color: var(--text);
    letter-spacing: -0.035em;
}

.feed,
.pack-page,
.saved-page {
    gap: 1.4rem;
}

.feed-list,
.saved-list {
    gap: 1rem;
}

.article-card,
.pack-card,
.saved-article {
    position: relative;
    overflow: hidden;
    min-height: 11.5rem;
    padding: 1.35rem;
    border: 1px solid rgb(84 67 45 / 18%);
    border-radius: 1.15rem;
    background: var(--editorial-paper-strong);
    box-shadow: 0 0.35rem 1.3rem rgb(68 53 33 / 8%);
}

.article-card::before,
.pack-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.35rem;
    background: var(--editorial-coral);
    content: "";
}

.article-card:hover,
.article-card:focus-visible,
.pack-card:hover,
.pack-card:focus-visible {
    border-color: var(--accent-strong);
    box-shadow: 0 0.65rem 1.75rem rgb(68 53 33 / 14%);
    transform: translateY(-0.15rem);
}

.article-card h2,
.pack-card h2 {
    max-width: 24ch;
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 1.08;
}

.article-card p,
.pack-card p {
    max-width: 55ch;
    font-size: 1rem;
}

.saved-article {
    min-height: 0;
}

.pack-list--single {
    max-width: 42rem;
}

.article-page {
    display: block;
    max-width: 76rem;
}

.article-main-column {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.article-hero {
    padding: 1.4rem;
    border-radius: 1.15rem;
    background: linear-gradient(135deg, var(--editorial-paper-strong), #efe2cf);
}

.article-hero h1 {
    max-width: 17ch;
    font-size: clamp(2.25rem, 10vw, 4.5rem);
    line-height: 0.98;
}

.article-hook {
    max-width: 43rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    line-height: 1.45;
}

.article-actions {
    gap: 0.65rem;
}

.article-actions .button {
    width: 100%;
}

.article-body,
.article-sources,
.article-reading-action,
.article-next {
    padding: 1.4rem;
    border-radius: 1.15rem;
    background: var(--surface);
}

.article-body {
    font-family: Georgia, "Times New Roman", serif;
}

.article-body h2,
.article-body h3 {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.article-body p,
.article-body li {
    max-width: 67ch;
    font-size: 1.08rem;
    line-height: 1.7;
}

.article-body blockquote,
.article-callout {
    border-color: var(--editorial-coral);
    background: var(--editorial-sage);
    color: var(--text);
}

.article-sources .section-heading {
    padding: 0;
}

.article-transparency {
    border-radius: 1.15rem;
    background: var(--surface);
}

.article-reading-action {
    background: linear-gradient(135deg, var(--editorial-sage), var(--surface));
}

.article-next {
    border: 0;
    background: var(--editorial-navy);
    color: var(--editorial-inverse);
}

.article-next h2,
.article-next p,
.article-next .eyebrow {
    color: inherit;
}

.article-next .button--primary {
    background: #ef9789;
    color: #172a38;
}

.article-rail {
    display: none;
}

.article-rail__card {
    display: grid;
    gap: 0.75rem;
    padding: 1.1rem;
    border: 1px solid rgb(84 67 45 / 18%);
    border-radius: 1rem;
    background: var(--surface);
}

.article-rail__card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.article-rail__metadata {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.article-rail__metadata div {
    display: grid;
    gap: 0.1rem;
}

.article-rail__metadata dt {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.article-rail__metadata dd {
    margin: 0;
    font-weight: 700;
}

.site-footer {
    margin-top: 1rem;
    border-radius: 1rem;
    background: var(--editorial-navy);
    color: rgb(255 250 242 / 76%);
}

.mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    min-height: 4.65rem;
    padding: 0.45rem max(0.45rem, env(safe-area-inset-right)) calc(0.45rem + env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
    border-top: 1px solid rgb(255 250 242 / 18%);
    background: var(--editorial-navy);
    box-shadow: 0 -0.35rem 1.2rem rgb(23 42 56 / 24%);
}

.mobile-bottom-nav__link {
    display: grid;
    place-items: center;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.2rem;
    border-radius: 0.65rem;
    color: rgb(255 250 242 / 72%);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}

.mobile-bottom-nav__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.mobile-bottom-nav__link.active,
.mobile-bottom-nav__link:hover {
    background: rgb(255 250 242 / 12%);
    color: var(--editorial-inverse);
}

@media (max-width: 47.99rem) {
    body {
        padding-bottom: calc(5.2rem + env(safe-area-inset-bottom));
    }

    .site-nav {
        display: none;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .brand-link small {
        display: none;
    }
}

@media (min-width: 48rem) {
    .layout-shell {
        width: min(calc(100% - 3rem), 88rem);
        padding-bottom: 3rem;
    }

    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        margin-inline: 0;
        padding: 0.95rem 1.3rem;
        border-radius: 0 0 1.25rem 1.25rem;
    }

    .brand-block {
        display: contents;
    }

    .brand-link {
        grid-column: 1;
    }

    .theme-toggle {
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .mobile-bottom-nav {
        display: none;
    }

    .feed-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-actions {
        display: flex;
    }

    .article-actions .button {
        width: auto;
    }
}

@media (min-width: 68rem) {
    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .site-nav {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
    }

    .theme-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .article-page {
        display: grid;
        grid-template-columns: minmax(0, 47rem) minmax(15rem, 19rem);
        justify-content: space-between;
        gap: 2rem;
        align-items: start;
    }

    .article-rail {
        display: grid;
        position: sticky;
        top: 6.2rem;
        gap: 0.75rem;
    }

    .article-main-column {
        gap: 1.25rem;
    }

    .article-hero,
    .article-body,
    .article-sources,
    .article-reading-action,
    .article-next {
        padding: 2rem;
    }

    .article-card,
    .pack-card {
        min-height: 13rem;
        padding: 1.65rem;
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --editorial-paper: #17232e;
        --editorial-paper-strong: #20303d;
        --editorial-sand: #304251;
        --editorial-sage: #263b42;
        --editorial-hero-start: #2a3d48;
        --editorial-hero-end: #20303d;
    }
}

:root[data-theme="dark"] {
    --editorial-paper: #17232e;
    --editorial-paper-strong: #20303d;
    --editorial-sand: #304251;
    --editorial-sage: #263b42;
    --editorial-hero-start: #2a3d48;
    --editorial-hero-end: #20303d;
}

.article-hero {
    background: linear-gradient(135deg, var(--editorial-hero-start, var(--editorial-paper-strong)), var(--editorial-hero-end, #efe2cf));
}

/* TASK-015 design-lock: explicit mobile modules and a quiet desktop reading frame. */
:root {
    --editorial-inverse: #fffaf2;
    --editorial-figure: #e5edf0;
    --editorial-callout: #f8eee6;
    --editorial-rule: rgb(39 50 64 / 13%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --editorial-figure: #2a3d48;
        --editorial-callout: #263b42;
        --editorial-rule: rgb(248 240 229 / 16%);
    }
}

:root[data-theme="dark"] {
    --editorial-figure: #2a3d48;
    --editorial-callout: #263b42;
    --editorial-rule: rgb(248 240 229 / 16%);
}

body {
    background: var(--editorial-paper);
}

.layout-shell {
    width: min(100%, 90rem);
    padding: 0 1rem 2.25rem;
}

.site-header {
    min-height: 4.8rem;
    margin: 0 -1rem 1.8rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 0 0 1.35rem 1.35rem;
    background: var(--editorial-navy);
    box-shadow: 0 0.65rem 1.8rem rgb(12 28 44 / 18%);
}

.brand-mark {
    display: none;
}

.brand-link {
    gap: 0;
}

.brand-link strong {
    color: #ef9789;
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.045em;
}

.brand-link small {
    display: none;
}

.theme-toggle {
    min-width: 3rem;
    padding-inline: 0.85rem;
    border-color: rgb(255 250 242 / 38%);
    color: var(--editorial-inverse);
}

.theme-toggle::before {
    content: "☼";
    font-size: 1.15rem;
}

.theme-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.article-page,
.feed,
.pack-page,
.saved-page {
    max-width: 48rem;
    margin-inline: auto;
}

.page-header,
.section-heading {
    padding: 0.25rem 0 0.85rem;
}

.page-header h1,
.section-heading h1,
.article-hero h1 {
    max-width: 13ch;
    color: var(--text);
    font-size: clamp(2.4rem, 10vw, 4.4rem);
    line-height: 0.98;
}

.page-header p,
.section-heading p {
    max-width: 36rem;
    font-size: 1.05rem;
}

.eyebrow,
.card-kicker {
    color: var(--accent-strong);
    letter-spacing: 0.08em;
}

.feed-list,
.saved-list,
.pack-list {
    gap: 1.15rem;
}

.article-card,
.pack-card,
.saved-article,
.saved-empty {
    min-height: 13.5rem;
    padding: 1.5rem;
    border: 1px solid var(--editorial-rule);
    border-radius: 1.45rem;
    background: var(--editorial-paper-strong);
    box-shadow: 0 0.8rem 2rem rgb(42 36 27 / 7%);
}

.article-card::before,
.pack-card::before {
    top: 1.3rem;
    bottom: 1.3rem;
    width: 0.28rem;
    border-radius: 999px;
}

.article-card h2,
.pack-card h2,
.saved-article h2 {
    max-width: 20ch;
    margin: 1.1rem 0 0.65rem;
    color: var(--text);
    font-size: clamp(1.75rem, 6vw, 2.55rem);
    line-height: 1.02;
}

.article-card p,
.pack-card p,
.saved-article p {
    margin-bottom: 0;
    font-size: 1.02rem;
}

.article-hero {
    padding: 0.4rem 0 0.7rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.article-hero__meta {
    gap: 0.6rem;
}

.article-pill {
    border-color: var(--editorial-rule);
    background: color-mix(in srgb, var(--editorial-paper-strong) 78%, transparent);
    color: var(--text-muted);
}

.article-hero h1 {
    margin: 1.2rem 0 1rem;
}

.article-hook {
    max-width: 31rem;
    color: var(--text);
    font-size: clamp(1.2rem, 4.7vw, 1.5rem);
    line-height: 1.43;
}

.article-tag-list {
    margin-top: 1.2rem;
}

.article-tag {
    border-color: var(--editorial-rule);
    background: transparent;
    color: var(--text-muted);
}

.article-actions {
    margin-top: 1.35rem;
}

.article-actions .button {
    min-height: 2.9rem;
    border-color: var(--editorial-rule);
    background: var(--editorial-paper-strong);
    color: var(--text);
}

.reading-progress {
    margin-top: 1.35rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    background: color-mix(in srgb, var(--editorial-paper-strong) 64%, transparent);
}

.article-illustration-module {
    margin: 1rem 0 1.35rem;
    padding: 1rem;
    border: 1px solid var(--editorial-rule);
    border-radius: 1.45rem;
    background: var(--editorial-figure);
    box-shadow: 0 0.8rem 2.1rem rgb(42 36 27 / 8%);
}

.article-illustration-module .article-illustration {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.article-illustration-module .article-illustration__graphic {
    max-width: 27rem;
}

.article-illustration-module .article-illustration__panel--influence {
    fill: color-mix(in srgb, var(--editorial-paper-strong) 66%, var(--accent-soft));
}

.article-illustration-module .article-illustration__panel--outside {
    fill: color-mix(in srgb, var(--editorial-figure) 78%, var(--editorial-paper-strong));
}

.article-body,
.article-sources,
.article-reading-action,
.article-next,
.article-transparency {
    border: 1px solid var(--editorial-rule);
    border-radius: 1.45rem;
    box-shadow: 0 0.8rem 2rem rgb(42 36 27 / 7%);
}

.article-body {
    padding: 1.5rem;
    background: var(--editorial-paper-strong);
}

.article-body h1 {
    color: var(--text);
    font-size: clamp(1.9rem, 7vw, 2.7rem);
    line-height: 1.08;
}

.article-body h2 {
    margin-top: 2.5rem;
    color: var(--text);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.65rem;
}

.article-body p,
.article-body li {
    color: var(--text);
    font-size: 1.12rem;
    line-height: 1.72;
}

.article-body strong,
.article-body a {
    color: var(--accent-strong);
}

.article-callout {
    position: relative;
    display: grid;
    gap: 0.55rem;
    margin: 1.15rem 0;
    padding: 1.55rem 1.5rem 1.45rem 4rem;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--editorial-rule));
    border-radius: 1.45rem;
    background: var(--editorial-callout);
}

.article-callout::before {
    position: absolute;
    top: 1.05rem;
    left: 1.35rem;
    color: var(--accent);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 4rem;
    line-height: 1;
    content: "“";
}

.article-callout__eyebrow {
    color: var(--accent-strong);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.article-callout p {
    margin: 0;
    color: var(--text);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.22rem;
    font-style: italic;
    line-height: 1.4;
}

.article-sources {
    padding: 1.5rem;
    background: var(--editorial-paper-strong);
}

.article-sources .section-heading {
    padding: 0;
}

.source-list li {
    padding-block: 0.7rem;
    border-bottom: 1px solid var(--editorial-rule);
}

.article-transparency {
    overflow: clip;
    background: var(--editorial-paper-strong);
}

.article-transparency summary {
    min-height: 5.6rem;
    align-content: center;
    padding-left: 4.6rem;
}

.article-transparency summary::before {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid var(--editorial-rule);
    border-radius: 50%;
    color: var(--accent-strong);
    content: "⌁";
    font-size: 1.4rem;
    transform: translateY(-50%);
}

.article-reading-action {
    padding: 1.1rem;
    background: color-mix(in srgb, var(--editorial-callout) 62%, var(--editorial-paper-strong));
}

.article-reading-status--end .button {
    min-height: 3.1rem;
}

.article-next {
    padding: 1.55rem;
    border: 0;
    background: var(--editorial-navy);
    color: var(--editorial-inverse);
    box-shadow: 0 1rem 2.4rem rgb(12 28 44 / 20%);
}

.article-next h2,
.article-next p,
.article-next .eyebrow {
    color: inherit;
}

.article-next .button--primary {
    background: #ef9789;
    color: #172a38;
}

.site-footer {
    margin-top: 2rem;
    padding: 1.3rem;
    border-radius: 1.25rem;
}

.mobile-bottom-nav {
    min-height: 5.2rem;
    padding-top: 0.55rem;
    border-radius: 1.35rem 1.35rem 0 0;
    background: var(--editorial-navy);
}

.mobile-bottom-nav__link {
    min-height: 4rem;
    color: rgb(255 250 242 / 76%);
    font-size: 0.73rem;
}

.mobile-bottom-nav__link.active,
.mobile-bottom-nav__link:hover {
    color: #ef9789;
}

@media (min-width: 48rem) {
    .layout-shell {
        width: min(calc(100% - 3rem), 90rem);
        padding-bottom: 3rem;
    }

    .site-header {
        margin-inline: 0;
        border-radius: 0 0 1.35rem 1.35rem;
    }

    .article-card,
    .pack-card,
    .saved-article,
    .saved-empty {
        padding: 1.75rem;
    }

    .article-hero,
    .article-body,
    .article-sources,
    .article-reading-action,
    .article-next {
        padding: 2rem;
    }

    .article-illustration-module {
        padding: 1.6rem;
    }
}

@media (min-width: 72rem) {
    .site-header {
        min-height: 4.5rem;
    }

    .article-page {
        display: grid;
        grid-template-columns: 11.5rem minmax(0, 46rem);
        max-width: 70rem;
        gap: 4.5rem;
        align-items: start;
    }

    .article-main-column {
        grid-column: 2;
        gap: 1.45rem;
    }

    .article-rail {
        display: grid;
        position: sticky;
        top: 6.25rem;
        grid-column: 1;
        grid-row: 1;
        gap: 0.9rem;
    }

    .article-rail__card {
        padding: 1rem;
        border-color: var(--editorial-rule);
        border-radius: 1rem;
        background: transparent;
        box-shadow: none;
    }

    .article-rail__card h2 {
        font-family: Georgia, Cambria, "Times New Roman", serif;
    }

    .article-hero {
        padding-top: 1.25rem;
    }

    .article-hero h1 {
        max-width: 12ch;
        font-size: clamp(3.6rem, 5.4vw, 5.25rem);
    }

    .article-illustration-module {
        margin-top: 0;
    }
}

/* TASK-016: Contemporary Field Notebook. Content is the surface; UI stays in the margins. */
/* TASK-017: højere farvekontrast (målt WCAG mod papir) + håndskrifts- og sketchy-tokens. */
:root {
    --notebook-navy: #102d4b;
    --notebook-paper: #f3ece0;
    --notebook-sheet: #fffaf0;
    --notebook-ink: #16222c;
    --notebook-muted: #4b5661;
    --notebook-rule: rgb(22 34 44 / 20%);
    --notebook-apricot: #b8371f;
    --notebook-sage: #3f6b30;
    --notebook-blue: #dcebed;
    --notebook-note: #edf0df;
    --notebook-pen: #1f4f68;
    --notebook-marker: #96291a;
    --notebook-hand-font: "Atlas Hand", cursive;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --notebook-paper: #121e2b;
        --notebook-sheet: #192b3b;
        --notebook-ink: #f8f0e5;
        --notebook-muted: #d0d3c8;
        --notebook-rule: rgb(248 240 229 / 22%);
        --notebook-apricot: #ffad8f;
        --notebook-sage: #c4d08c;
        --notebook-blue: #29485a;
        --notebook-note: #233b3d;
        --notebook-pen: #8fc3e0;
        --notebook-marker: #ff9478;
    }
}

:root[data-theme="dark"] {
    --notebook-paper: #121e2b;
    --notebook-sheet: #192b3b;
    --notebook-ink: #f8f0e5;
    --notebook-muted: #d0d3c8;
    --notebook-rule: rgb(248 240 229 / 22%);
    --notebook-apricot: #ffad8f;
    --notebook-sage: #c4d08c;
    --notebook-blue: #29485a;
    --notebook-note: #233b3d;
    --notebook-pen: #8fc3e0;
    --notebook-marker: #ff9478;
}

html,
body {
    background: var(--notebook-paper);
    color: var(--notebook-ink);
}

body,
.article-body,
.article-hook,
.article-callout p {
    color: var(--notebook-ink);
}

p,
.article-body p,
.article-body li,
.article-card p,
.pack-card p,
.saved-article p {
    color: var(--notebook-muted);
}

.layout-shell {
    width: min(100%, 94rem);
    padding: 0 1.1rem 2rem;
}

.site-header {
    position: sticky;
    min-height: 4.35rem;
    margin: 0 -1.1rem 1.5rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 0;
    background: var(--notebook-navy);
    box-shadow: none;
}

.brand-link strong {
    color: var(--editorial-inverse);
    font-size: 1.9rem;
    font-weight: 500;
}

.brand-link small {
    color: rgb(255 250 242 / 72%);
}

.theme-toggle {
    display: inline-flex;
    min-width: auto;
    min-height: 2.4rem;
    gap: 0.35rem;
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid rgb(255 250 242 / 60%);
    border-radius: 0;
    background: transparent;
    color: var(--editorial-inverse);
    font-size: 0.82rem;
}

.theme-toggle::before {
    content: none;
}

.theme-toggle__label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.site-nav {
    gap: 1.15rem;
}

.nav-link {
    min-height: 2.2rem;
    padding: 0.2rem 0;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: rgb(255 250 242 / 78%);
    font-size: 0.88rem;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    border-bottom-color: var(--notebook-apricot);
    background: transparent;
    color: var(--editorial-inverse);
}

.site-main {
    gap: 1.8rem;
}

.page-header,
.section-heading {
    max-width: 44rem;
    padding: 0.4rem 0 1rem;
    border-bottom: 1px solid var(--notebook-rule);
}

.page-header h1,
.section-heading h1,
.article-hero h1 {
    color: var(--notebook-ink);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    letter-spacing: -0.035em;
}

.eyebrow,
.card-kicker,
.article-callout__eyebrow {
    color: var(--notebook-sage);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
}

.feed,
.pack-page,
.saved-page {
    max-width: 58rem;
}

.feed-list,
.saved-list,
.pack-list {
    gap: 0;
    border-top: 1px solid var(--notebook-rule);
}

.article-card,
.pack-card,
.saved-article,
.saved-empty {
    min-height: 0;
    padding: 1.4rem 0 1.55rem 1rem;
    border: 0;
    border-bottom: 1px solid var(--notebook-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.article-card::before,
.pack-card::before {
    top: 1.45rem;
    bottom: auto;
    width: 0.3rem;
    height: 2.9rem;
    border-radius: 0;
    background: var(--notebook-apricot);
}

.article-card:hover,
.article-card:focus-visible,
.pack-card:hover,
.pack-card:focus-visible {
    border-color: var(--notebook-rule);
    background: color-mix(in srgb, var(--notebook-blue) 34%, transparent);
    box-shadow: none;
    transform: none;
}

.article-card h2,
.pack-card h2,
.saved-article h2 {
    max-width: 24ch;
    margin: 0.85rem 0 0.45rem;
    color: var(--notebook-ink);
    font-size: clamp(1.5rem, 6vw, 2.3rem);
    line-height: 1.05;
}

.article-card::after,
.pack-card::after {
    display: block;
    margin-top: 1rem;
    color: var(--notebook-apricot);
    content: "Læs noten →";
    font-size: 0.88rem;
    font-weight: 750;
}

.pack-card__action {
    color: var(--notebook-apricot);
}

.article-page,
.feed,
.pack-page,
.saved-page {
    max-width: 46rem;
}

.article-index,
.article-notes-rail {
    display: none;
}

.article-main-column {
    gap: 2rem;
}

.article-hero {
    position: relative;
    padding: 0.2rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* TASK-017: sparsomt håndskrevet "journal"-mærke — brug højst én pr. artikel. Swoosh under ét eller flere ord, tegnet med det samme feTurbulence-filter som læse-ringen. */
.hand-underline {
    position: relative;
    white-space: nowrap;
}

.hand-underline::after {
    content: "";
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: -0.24em;
    height: 0.5em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2 12 Q30 4 50 11 T98 9' fill='none' stroke='%231f4f68' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    filter: url(#atlas-sketchy);
    pointer-events: none;
}

.postit {
    position: absolute;
    top: -0.6rem;
    right: 0;
    z-index: 1;
    max-width: 11rem;
    padding: 0.55rem 0.7rem 0.7rem;
    box-shadow: 2px 4px 8px rgb(0 0 0 / 18%);
    color: #3a2f10;
    font-family: var(--notebook-hand-font);
    font-size: 1.05rem;
    line-height: 1.2;
    transform: rotate(-3deg);
}

.postit--yellow {
    background: #f2ce5c;
}

.hand-margin-note {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    max-width: 9rem;
    padding: 0.2rem 0.5rem;
    background: rgb(22 34 44 / 55%);
    color: #fbf7ef;
    font-family: var(--notebook-hand-font);
    font-size: 1rem;
    line-height: 1.15;
    text-align: right;
}

@media (max-width: 47.9375rem) {
    .postit {
        top: 0.6rem;
        right: 0.6rem;
    }
}

.notebook-backlink {
    display: inline-block;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid currentColor;
    color: var(--notebook-muted);
    font-size: 0.86rem;
    text-decoration: none;
}

.article-hero__meta {
    gap: 0.65rem;
}

.article-pill,
.article-tag {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--notebook-muted);
    font-size: 0.78rem;
}

.article-pill::before {
    padding-right: 0.35rem;
    color: var(--notebook-apricot);
    content: "•";
}

.article-hero h1 {
    max-width: 13ch;
    margin: 1rem 0 0.85rem;
    font-size: clamp(2.55rem, 11vw, 4.75rem);
    line-height: 0.94;
}

.article-hook {
    max-width: 36rem;
    margin-bottom: 1.2rem;
    color: var(--notebook-ink);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: clamp(1.17rem, 4.5vw, 1.43rem);
    font-style: italic;
    line-height: 1.48;
}

.article-tag-list {
    gap: 0.2rem 0.7rem;
    margin-top: 0.65rem;
}

.article-tag:not(:last-child)::after {
    padding-left: 0.7rem;
    color: var(--notebook-apricot);
    content: "·";
}

.article-actions {
    gap: 0.6rem 1.2rem;
    margin-top: 1.15rem;
}

.article-actions .button,
.article-reading-action .button,
.article-next .button {
    width: auto;
    min-height: auto;
    padding: 0.1rem 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: var(--notebook-apricot);
    font-size: 0.9rem;
    font-weight: 750;
}

.article-actions .button::after,
.article-reading-action .button::after,
.article-next .button::after {
    padding-left: 0.35rem;
    content: "→";
}

.bookmark-status,
.reading-status-message {
    color: var(--notebook-muted);
    font-size: 0.78rem;
}

.reading-progress {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    max-width: 22rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--notebook-rule);
    border-radius: 0;
    background: transparent;
}

.reading-progress__ring {
    flex: none;
}

.reading-progress__ring-track {
    fill: none;
    stroke: var(--notebook-rule);
    stroke-width: 4;
}

.reading-progress__ring-fill {
    fill: none;
    stroke: var(--notebook-apricot);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 113.097;
    stroke-dashoffset: 113.097;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    filter: url(#atlas-sketchy-lg);
    transition: stroke-dashoffset 120ms linear;
}

@media (prefers-reduced-motion: reduce) {
    .reading-progress__ring-fill {
        transition: none;
    }
}

.reading-progress__text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.reading-progress__label {
    font-family: var(--notebook-hand-font);
    color: var(--notebook-marker);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.reading-progress__caption {
    color: var(--notebook-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.article-hero-photo {
    position: relative;
    margin: 0 0 1.5rem;
}

.article-hero-photo img {
    display: block;
    width: 100%;
    height: 16rem;
    border-radius: 0.75rem;
    object-fit: cover;
}

.article-hero-photo figcaption {
    margin-top: 0.4rem;
    color: var(--notebook-muted);
    font-size: 0.72rem;
    font-style: italic;
}

@media (max-width: 47.9375rem) {
    .article-hero-photo {
        margin-inline: -1.1rem;
        width: calc(100% + 2.2rem);
    }

    .article-hero-photo img {
        border-radius: 0;
    }

    .article-hero-photo figcaption {
        padding-inline: 1.1rem;
    }
}

.article-illustration-module {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--notebook-rule);
    border-radius: 0;
    background: var(--notebook-blue);
    box-shadow: none;
}

.article-illustration-module .article-illustration {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.article-illustration-module .article-illustration__graphic {
    max-width: 32rem;
}

.field-illustration__line,
.field-illustration__loop {
    fill: none;
    stroke: var(--notebook-ink);
    stroke-width: 1.7;
}

.field-illustration__line--dashed {
    stroke-dasharray: 5 5;
}

.field-illustration__arrow {
    fill: none;
    stroke: var(--notebook-apricot);
    stroke-width: 2.2;
}

.field-illustration__node {
    fill: color-mix(in srgb, var(--notebook-sheet) 75%, var(--notebook-blue));
    stroke: var(--notebook-ink);
    stroke-width: 1.4;
}

.field-illustration__node--accent {
    fill: color-mix(in srgb, var(--notebook-apricot) 29%, var(--notebook-sheet));
}

.field-illustration__node--sage {
    fill: color-mix(in srgb, var(--notebook-sage) 30%, var(--notebook-sheet));
}

.field-illustration__title,
.field-illustration__label,
.field-illustration__copy {
    fill: var(--notebook-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    text-anchor: middle;
}

.field-illustration__title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.field-illustration__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.field-illustration__copy {
    font-size: 10px;
}

.article-illustration figcaption,
.article-illustration__alternative {
    color: var(--notebook-muted);
}

.article-body,
.article-sources,
.article-reading-action,
.article-next,
.article-transparency {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.article-body {
    padding: 0;
}

.article-body h1,
.article-body h2,
.article-body h3 {
    color: var(--notebook-ink);
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

.article-body h1 {
    margin-top: 0;
    font-size: clamp(1.85rem, 7vw, 2.45rem);
}

.article-body h2 {
    margin-top: 2.5rem;
    font-size: 1.7rem;
}

.article-body p,
.article-body li {
    max-width: 38rem;
    color: var(--notebook-ink);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 1.08rem;
    line-height: 1.76;
}

.article-body > p:first-of-type::first-letter {
    float: left;
    padding-right: 0.1em;
    color: var(--notebook-apricot);
    font-family: Georgia, Cambria, "Times New Roman", serif;
    font-size: 3.65em;
    line-height: 0.78;
}

.article-body a,
.source-list a,
.article-rail__link {
    border-bottom: 1px solid currentColor;
    color: var(--notebook-apricot);
    text-decoration: none;
}

.article-callout {
    margin: 0;
    padding: 0.4rem 0 0.4rem 1.25rem;
    border: 0;
    border-inline-start: 2px solid var(--notebook-apricot);
    border-radius: 0;
    background: transparent;
}

.article-callout::before {
    display: none;
}

.article-callout p {
    max-width: 30rem;
    color: var(--notebook-apricot);
    font-size: 1.2rem;
}

.article-sources {
    padding: 1.35rem 0 0;
    border-top: 1px dashed var(--notebook-rule);
}

.article-sources .section-heading {
    padding-bottom: 0.55rem;
    border-bottom: 0;
}

.source-list {
    padding-left: 1.2rem;
}

.source-list li {
    padding-block: 0.5rem;
    border-bottom: 0;
}

.article-transparency {
    border-top: 1px solid var(--notebook-rule);
    border-bottom: 1px solid var(--notebook-rule);
}

.article-transparency summary {
    min-height: auto;
    padding: 0.85rem 1.4rem 0.85rem 0;
}

.article-transparency summary::before {
    display: none;
}

.article-transparency summary::after {
    content: "▾";
    color: var(--notebook-apricot);
    font-size: 1rem;
}

.article-transparency[open] summary::after {
    content: "▴";
}

.article-transparency__eyebrow,
.article-transparency__title {
    color: var(--notebook-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.88rem;
}

.article-transparency__eyebrow {
    color: var(--notebook-sage);
}

.article-reading-action {
    padding: 0;
}

.article-reading-status--end .button {
    width: auto;
}

.article-next {
    padding: 0;
    color: var(--notebook-ink);
}

.article-next h2,
.article-next p,
.article-next .eyebrow {
    color: inherit;
}

.article-next h2 {
    font-family: Georgia, Cambria, "Times New Roman", serif;
}

.site-footer {
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--notebook-rule);
    border-radius: 0;
    background: transparent;
    color: var(--notebook-muted);
}

.mobile-bottom-nav {
    min-height: 4.45rem;
    padding: 0.35rem max(0.35rem, env(safe-area-inset-right)) calc(0.35rem + env(safe-area-inset-bottom)) max(0.35rem, env(safe-area-inset-left));
    border: 0;
    border-radius: 0.85rem 0.85rem 0 0;
    background: var(--notebook-navy);
    box-shadow: 0 -0.3rem 1rem rgb(16 45 75 / 16%);
}

.mobile-bottom-nav__link {
    min-height: 3.6rem;
    border-radius: 0;
    color: rgb(255 250 242 / 76%);
    font-size: 0.68rem;
}

.mobile-bottom-nav__link.active,
.mobile-bottom-nav__link:hover {
    border-bottom: 2px solid var(--notebook-apricot);
    background: transparent;
    color: var(--editorial-inverse);
}

@media (min-width: 48rem) {
    .layout-shell {
        width: min(calc(100% - 4rem), 94rem);
    }

    .site-header {
        margin-inline: 0;
    }

    .article-hero,
    .article-body,
    .article-sources,
    .article-reading-action,
    .article-next {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 72rem) {
    .layout-shell {
        width: min(calc(100% - 5rem), 94rem);
    }

    .site-header {
        grid-template-columns: auto minmax(0, 1fr) auto;
        margin-bottom: 2.5rem;
    }

    .brand-link small {
        display: block;
        margin-top: 0.15rem;
        font-family: Inter, ui-sans-serif, system-ui, sans-serif;
        font-size: 0.6rem;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .site-nav {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
    }

    .theme-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .article-page {
        display: grid;
        grid-template-columns: 11.5rem minmax(0, 43rem) 13.5rem;
        max-width: 84rem;
        gap: clamp(2rem, 5vw, 5rem);
        align-items: start;
    }

    .article-index,
    .article-notes-rail {
        display: grid;
        position: sticky;
        top: 6.2rem;
        align-content: start;
        gap: 1rem;
        color: var(--notebook-ink);
        font-size: 0.83rem;
    }

    .article-index {
        grid-column: 1;
        grid-row: 1;
        padding-right: 1.25rem;
        border-right: 1px solid var(--notebook-rule);
    }

    .article-index__pack {
        margin: 1rem 0 0;
        color: var(--notebook-sage);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
    }

    .article-index nav {
        display: grid;
        gap: 0.72rem;
        padding-block: 0.8rem;
        border-top: 1px solid var(--notebook-rule);
        border-bottom: 1px solid var(--notebook-rule);
    }

    .article-index nav a,
    .article-index__pack-link {
        color: var(--notebook-ink);
        text-decoration: none;
    }

    .article-index nav a:hover,
    .article-index nav a:focus-visible,
    .article-index__pack-link:hover,
    .article-index__pack-link:focus-visible {
        color: var(--notebook-apricot);
        text-decoration: underline;
    }

    .article-index__note {
        margin: 0;
        padding-left: 0.8rem;
        border-left: 1px solid var(--notebook-apricot);
        color: var(--notebook-muted);
        font-family: Georgia, Cambria, "Times New Roman", serif;
        font-style: italic;
        line-height: 1.45;
    }

    .article-main-column {
        grid-column: 2;
        gap: 2.35rem;
    }

    .article-backlink {
        display: none;
    }

    .article-notes-rail {
        grid-column: 3;
        grid-row: 1;
        gap: 1.6rem;
        padding-left: 1.25rem;
        border-left: 1px solid var(--notebook-rule);
    }

    .article-rail__card {
        display: grid;
        gap: 0.7rem;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .article-rail__card + .article-rail__card {
        padding-top: 1.35rem;
        border-top: 1px solid var(--notebook-rule);
    }

    .article-rail__card h2 {
        color: var(--notebook-ink);
        font-family: Georgia, Cambria, "Times New Roman", serif;
        font-size: 1.2rem;
    }

    .article-rail__metadata {
        gap: 0.65rem;
    }

    .article-rail__metadata dt {
        color: var(--notebook-sage);
    }

    .article-rail__link {
        display: block;
        width: fit-content;
        margin-top: 0.45rem;
        font-size: 0.85rem;
    }
}
