/*
 * Journal Flow - Free editorial blog template
 * Source: https://templates.inuno.app
 * Copyright (c) 2026 templates.inuno.app
 *
 * Free license note:
 * This free template may be used privately and commercially,
 * but the attribution/backlink to https://templates.inuno.app must remain.
 */

:root {
    --paper: #f6f1e8;
    --ink: #171512;
    --muted: #766d60;
    --line: rgba(23, 21, 18, 0.16);
    --panel: #fffaf0;
    --sage: #6f8a65;
    --clay: #c45f3c;
    --blue: #315f78;
    --gold: #d8a53a;
    --shadow: 0 26px 70px rgba(69, 52, 31, 0.14);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(49, 95, 120, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(23, 21, 18, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 90% 4%, rgba(216, 165, 58, 0.22), transparent 26rem),
        var(--paper);
    background-size: 72px 72px, 72px 72px, auto, auto;
    font-family: var(--font);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.topbar,
.brand,
.topbar nav,
.issue-strip,
.site-footer,
.site-footer nav,
.social-links,
.meta-row {
    display: flex;
    align-items: center;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: space-between;
    gap: 18px;
    width: min(1360px, calc(100% - 44px));
    min-height: 82px;
    margin: 0 auto;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(246, 241, 232, 0.88);
    backdrop-filter: blur(16px);
}

.brand {
    gap: 12px;
    font-weight: 950;
}

.brand span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--gold);
    font-size: 12px;
}

.topbar nav {
    gap: 8px;
}

.topbar nav a,
.topbar button,
.tag,
.read-more,
form button {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.76);
    color: var(--ink);
    padding: 0 14px;
    font-weight: 900;
}

.topbar nav a.is-active,
.topbar nav a:hover {
    background: var(--ink);
    color: var(--paper);
}

.topbar button,
form button {
    border-color: var(--clay);
    background: var(--clay);
    color: #fff;
}

.page,
.site-footer,
.simple-page {
    width: min(1360px, calc(100% - 44px));
    margin: 0 auto;
}

.page {
    display: grid;
    gap: 14px;
    padding: 16px 0 26px;
}

.masthead {
    display: grid;
    gap: 12px;
    padding: 26px 0 8px;
}

.issue-strip {
    justify-content: space-between;
    gap: 14px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    padding: 12px 0;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.masthead h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(56px, 11vw, 152px);
    line-height: 0.78;
    letter-spacing: 0;
}

.masthead p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.45;
}

.front-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.75fr 0.7fr;
    gap: 14px;
}

.lead-story,
.story-card,
.note-stack,
.newsletter,
.article-body,
.simple-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.84);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.lead-story {
    display: grid;
    min-height: 660px;
    grid-template-rows: minmax(330px, 1fr) auto;
}

.lead-story .copy,
.story-card .copy,
.note-stack,
.newsletter,
.article-body,
.simple-panel {
    padding: clamp(18px, 3vw, 34px);
}

.eyebrow,
.kicker {
    color: var(--clay);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.lead-story h2,
.story-card h3,
.note-stack h2,
.newsletter h2,
.article-body h1,
.simple-panel h1 {
    margin: 10px 0;
    font-family: var(--serif);
    line-height: 0.95;
}

.lead-story h2 {
    font-size: clamp(42px, 6vw, 82px);
}

.story-card h3,
.note-stack h2,
.newsletter h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.lead-story p,
.story-card p,
.note-stack p,
.newsletter p,
.article-body p,
.simple-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.side-column,
.note-stack {
    display: grid;
    gap: 14px;
}

.story-card {
    min-height: 320px;
}

.story-card img {
    height: 190px;
}

.note-stack {
    align-content: start;
}

.note-list {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.note-list a {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.note-list strong {
    display: block;
}

.note-list span {
    color: var(--clay);
    font-family: var(--serif);
    font-size: 30px;
    line-height: 1;
}

.rail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.article-grid .story-card img {
    height: 170px;
}

.newsletter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
    gap: 18px;
    align-items: end;
    background: var(--ink);
    color: var(--paper);
}

.newsletter p {
    color: rgba(246, 241, 232, 0.76);
}

form {
    display: grid;
    gap: 10px;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 250, 240, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.1);
    color: inherit;
    padding: 12px;
}

.article-body {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.58fr);
    gap: 26px;
    align-items: start;
}

.article-body h1 {
    font-size: clamp(44px, 6vw, 86px);
}

.article-body img,
.simple-media {
    min-height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
}

.meta-row {
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.simple-page {
    display: grid;
    min-height: calc(100vh - 160px);
    padding: 24px 0;
}

.simple-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
    gap: 24px;
    align-self: start;
}

.legal-list,
.faq-list {
    display: grid;
    gap: 12px;
}

.legal-list article,
details {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

summary {
    cursor: pointer;
    font-weight: 950;
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.site-footer nav,
.social-links {
    gap: 8px;
}

.site-footer nav a {
    font-weight: 900;
}

.social-links a {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.76);
    color: var(--ink);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 1040px) {
    .front-grid,
    .article-body,
    .simple-panel,
    .newsletter {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .topbar,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px 0;
    }

    .topbar,
    .page,
    .site-footer,
    .simple-page {
        width: min(100% - 24px, 1360px);
    }

    .topbar nav,
    .issue-strip {
        flex-wrap: wrap;
    }

    .masthead h1 {
        font-size: clamp(54px, 18vw, 86px);
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}
