/* ============================================
   Fred & Politik — Alternativ stylesheet (v2)
   Större brödtext, tätare radavstånd,
   modernare rubriktypsnittt (Fraunces)
   ============================================ */

:root {
    --ink:        #1e1a14;
    --ink-light:  #4a3f2e;
    --ink-faint:  #8a7a60;
    --cream:      #faf6ed;
    --parchment:  #f2ead8;
    --espresso:   #2e1f0e;
    --green:      #2e4d3b;
    --rule:       #d9cdb8;
    --accent:     #7a3b1e;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ── Sida ── */
body {
    margin: 0;
    background-color: var(--parchment);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 15% 10%, rgba(180,130,60,0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(100,60,20,0.08) 0%, transparent 55%);
    font-family: 'EB Garamond', Georgia, serif;
    color: var(--ink);
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    bottom: -100px; right: -100px;
    width: 380px; height: 380px;
    border-radius: 50%;
    border: 32px solid rgba(120,70,20,0.06);
    pointer-events: none; z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    top: 60px; left: -70px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 20px solid rgba(120,70,20,0.04);
    pointer-events: none; z-index: 0;
}

/* ── Header ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--rule);
    text-align: center;
    padding: 18px 20px;
    position: relative;
    z-index: 10;
}

/* Fraunces — optisk-variabel serif med modern karaktär */
.site-title h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--green);
    margin: 0 0 2px;
    letter-spacing: -0.01em;
}

.site-title h2 {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    font-style: italic;
    color: var(--ink-faint);
    margin: 0 0 14px;
    font-weight: 400;
}

.main-nav a {
    color: var(--ink-light);
    text-decoration: none;
    margin: 0 14px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}
.main-nav a:hover { color: var(--green); }

/* ── Layout ── */
.page-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    position: relative;
    z-index: 1;
    animation: fadein 0.6s ease both;
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Kapitelrubrik ── */
.chapter-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.chapter-eyebrow {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 12px;
}

/* Fraunces på kapiteltiteln — modern men ändå boklik */
.chapter-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 700;
    font-style: italic;
    color: var(--accent);
    margin: 0 0 10px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.chapter-title em {
    font-style: normal;
    color: var(--accent);
}

.chapter-header::after {
    content: '☕';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--parchment);
    padding: 0 14px;
    font-size: 18px;
    line-height: 1;
}

/* ── Brödtext ── */
.entry-content {
    background: var(--cream);
    border-left: 4px solid var(--green);
    padding: 44px 52px;
    box-shadow:
        0 2px 12px rgba(60,30,10,0.08),
        0 1px 3px rgba(60,30,10,0.05),
        inset 0 0 0 1px rgba(200,180,140,0.25);
    position: relative;
}

.entry-content::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 140px; height: 140px;
    border-radius: 50%;
    border: 18px solid rgba(150,90,30,0.06);
    pointer-events: none;
}

/* Större brödtext, tätare radavstånd */
.entry-content p {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 21px;          /* upp från 19px */
    line-height: 1.55;        /* ned från 1.75 */
    margin: 0 0 0.85em;       /* lite tätare styckemellanrum */
    color: var(--ink);
}

/* Drop cap */
.entry-content > p:first-of-type::first-letter,
.entry-content hr + p::first-letter {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 4em;
    font-weight: 700;
    float: left;
    line-height: 0.78;
    margin: 6px 8px 0 -2px;
    color: var(--accent);
}

/* <hr> osynlig avsnittsbrytning */
.entry-content hr {
    border: 0;
    height: 0;
    margin: 2em 0;
    visibility: hidden;
}

.entry-content em  { font-style: italic; }
.entry-content strong {
    font-weight: 600;
    color: var(--espresso);
}

/* Rubriker i löptexten */
.entry-content h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--accent);
    margin: 1.8em 0 0.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--rule);
    letter-spacing: -0.01em;
}

.entry-content h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
    margin: 1.6em 0 0.4em;
    letter-spacing: -0.01em;
}

/* Blockcitat */
.entry-content blockquote {
    margin: 1.8em 0;
    padding: 16px 22px;
    border-left: 3px solid var(--accent);
    background: rgba(122,59,30,0.04);
    font-style: italic;
    font-size: 20px;
    line-height: 1.5;
    color: var(--ink-light);
}
.entry-content blockquote p { margin: 0; }

/* Listor */
.entry-content ol,
.entry-content ul {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    line-height: 1.65;
    color: var(--ink);
    padding-left: 1.6em;
}

/* ── Sidfot ── */
.site-footer {
    background: #fff;
    border-top: 1px solid var(--rule);
    text-align: center;
    padding: 18px 20px;
    color: var(--ink-faint);
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 15px;
    position: relative;
    z-index: 10;
}

.chapter-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 8px;
}

.chapter-nav a {
    color: var(--ink-light);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}
.chapter-nav a:hover { color: var(--green); }

.site-footer p { margin: 6px 0 0; }

/* ── Responsiv ── */
@media (max-width: 640px) {
    .entry-content { padding: 28px 22px; }
    .entry-content p { font-size: 19px; }
}
