/* =========================================================================
   Terje – "Anteckningar från Löt" (ljusa temat, gren: tema-ljus)
   Ljust, luftigt och stilrent: varmt papper, Georgia-serif, S-rött enbart
   som precis accent. Alltid ljust läge (kutym för kampanjsajter).
   Systemtypsnitt, utan JavaScript, WCAG AA (alla par kontrastmätta).
   ========================================================================= */

:root{
  --paper:#fbfaf7; --surface:#f4f0e9; --ink:#24211d; --muted:#6a645d; --line:#e7e2d9;
  --accent:#c0102a; --accent-ink:#a30d22;
  --band-ink:#fff; --focus:#24211d; --maxw:75rem;
  --serif:Georgia,"Times New Roman",serif;
  --sans:Arial,Helvetica,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;color-scheme:light}
body{margin:0;background:var(--paper);color:var(--ink);
  font:17px/1.7 var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:4px}
:where(a,button):focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:1px}
::selection{background:var(--accent);color:#fff}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
.wrap{max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(1.5rem,4vw,3rem)}
.skip{position:fixed;z-index:99;top:10px;left:10px;padding:.7rem 1rem;background:var(--paper);
  color:var(--ink);font-weight:700;transform:translateY(-150%)}
.skip:focus{transform:none}

/* ---- typografi ---- */
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.06;letter-spacing:-.03em;margin:.3em 0}
.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:.72rem;font-weight:700;
  color:var(--accent-ink);margin:0 0 .4rem}

/* ---- sidhuvud ---- */
.site-header{border-bottom:1px solid var(--line);background:var(--paper)}
.site-header .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:0 2rem;min-height:78px;padding-block:.4rem}
.brand{font-size:clamp(1.5rem,2.4vw,1.7rem);font-weight:800;text-decoration:none;letter-spacing:-.04em;
  color:var(--ink);padding-block:.5rem}
.brand span{color:var(--accent-ink)}
.site-header nav{display:flex;flex-wrap:wrap;gap:0 1.6rem}
.site-header nav a{text-decoration:none;font-size:.9rem;font-weight:700;color:var(--ink);
  padding-block:.85rem;border-bottom:3px solid transparent}
.site-header nav a:hover{color:var(--accent-ink)}
.site-header nav a[aria-current="page"]{border-color:var(--accent-ink)}
@media (min-width:801px){
  .site-header{position:sticky;top:0;z-index:10}
}

/* ---- hero (endast startsidans första sida) ---- */
.hero{max-width:var(--maxw);margin:auto;display:grid;grid-template-columns:1.08fr .92fr;
  min-height:min(calc(100dvh - 78px),46rem)}
.hero-copy{align-self:center;padding:clamp(3rem,7vw,7rem) clamp(2rem,5vw,5rem) clamp(3rem,7vw,5rem) clamp(1.5rem,4vw,3rem)}
.hero h1{font-size:clamp(2.7rem,6vw,5.6rem);letter-spacing:-.035em;line-height:1.04}
.hero h1 em{color:var(--accent-ink);font-style:italic}
.intro{font-size:clamp(1.05rem,1.6vw,1.3rem);max-width:37rem}
.actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 2rem;margin-top:2rem}
.button{display:inline-block;background:var(--accent);color:#fff;text-decoration:none;
  padding:.95rem 1.5rem;font-weight:700;letter-spacing:.01em}
.button:hover{background:var(--accent-ink)}
.text-link{font-weight:700;padding-block:.6rem}
.hero-image{margin:0;position:relative;min-height:min(70vw,600px);background:var(--surface);overflow:hidden}
.hero-image img{width:100%;height:100%;object-fit:cover;object-position:50% 40%;position:absolute;top:0;left:0}
.hero-image figcaption{position:absolute;bottom:0;left:0;background:var(--surface);
  padding:.7rem 1rem;font-size:.8rem}

/* ---- manifest-band ---- */
.manifest{text-align:center;border-block:1px solid var(--line);
  padding:clamp(4rem,9vw,7rem) max(24px,calc((100vw - 900px)/2))}
.manifest::before{content:"";display:block;width:56px;height:3px;background:var(--accent);
  margin:0 auto clamp(1.5rem,4vw,2.5rem)}
.manifest p{font-family:var(--serif);font-size:clamp(1.6rem,3.6vw,2.9rem);line-height:1.3;margin:0}

/* ---- sektioner ---- */
.section{max-width:var(--maxw);margin:auto;padding:clamp(4rem,10vw,8.5rem) clamp(1.5rem,4vw,3rem)}
.section h2{font-size:clamp(2.2rem,4.5vw,3.8rem)}
.notes-head{display:flex;justify-content:space-between;align-items:end;gap:2rem;flex-wrap:wrap}
.notes-head>p{max-width:360px;margin:0;color:var(--muted)}
.notes-head h1,.notes-head h2{margin-bottom:0}
.archive-note{margin:.8rem 0 0;color:var(--muted);font-size:.9rem}

/* ---- inläggskort (featured + två) ---- */
.post-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:1px;background:var(--line);
  border:1px solid var(--line);margin-top:3rem}
.post-grid article{background:var(--paper);padding:2.5rem;min-height:320px;display:flex;flex-direction:column}
.post-grid .featured{background:var(--surface)}
.post-grid h3{font-size:clamp(1.5rem,2.4vw,1.9rem);margin:.35em 0}
.post-grid .featured h3{font-size:clamp(2rem,3.8vw,2.9rem);letter-spacing:-.035em}
/* Rubriklänkar är inline: padding-block ökar träffytan utan att ändra layouten. */
.post-grid h3 a{text-decoration:none;color:var(--ink);padding-block:.5rem}
.post-grid h3 a:hover{color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:.06em}
.post-grid p{margin:0 0 1rem}
.meta{font-size:.74rem;font-weight:800;color:var(--accent-ink);text-transform:uppercase;
  letter-spacing:.08em;margin:0 0 .4rem}
.post-grid .more{margin-top:auto}
.more{display:inline-block;font-weight:800;color:var(--ink);padding-block:.6rem;align-self:start}
.more:hover{color:var(--accent-ink)}

/* ---- inläggslista (resten + arkivsidor) ---- */
.post-list{margin-top:1.5rem;border-top:1px solid var(--line)}
.post-list article{border-bottom:1px solid var(--line);padding-block:clamp(1.75rem,4vw,2.5rem)}
.post-list h2,.post-list h3{font-size:clamp(1.6rem,3vw,2.2rem);margin:.25em 0 .35em;max-width:26ch}
.post-list h2 a,.post-list h3 a{text-decoration:none;color:var(--ink);padding-block:.5rem}
.post-list h2 a:hover,.post-list h3 a:hover{color:var(--accent-ink);text-decoration:underline;text-decoration-thickness:.06em}
.post-list .excerpt{margin:0 0 .5rem;max-width:60ch;color:var(--muted)}
.list-label{margin-top:clamp(3rem,6vw,4.5rem);font-size:.72rem;text-transform:uppercase;
  letter-spacing:.13em;font-weight:800;color:var(--muted)}
.feed-empty{padding-block:2rem;color:var(--muted);font-size:1.15rem}

/* ---- paginering ---- */
.pager{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.5rem;
  padding-block:clamp(2rem,5vw,3rem)}
.pager a,.pager span{min-width:2.9rem;min-height:2.9rem;display:inline-flex;align-items:center;
  justify-content:center;padding:.5rem .8rem;font-weight:700;text-decoration:none;color:var(--ink);
  font-variant-numeric:tabular-nums}
.pager a:hover{color:var(--accent-ink);text-decoration:underline}
.pager [aria-current="page"]{background:var(--accent);color:#fff}
.pager .edge.disabled{color:var(--muted);opacity:.6}

/* ---- foto-brytare ---- */
.photo-break{height:min(60vw,640px);position:relative;background:#24211d;overflow:hidden}
.photo-break img{width:100%;height:100%;object-fit:cover;filter:saturate(.85)}
.photo-break p{position:absolute;left:max(24px,calc((100vw - var(--maxw))/2));
  bottom:clamp(2rem,6vw,4.5rem);color:#fff;margin:0;max-width:14ch;
  font-family:var(--serif);font-size:clamp(2.2rem,5.5vw,4.4rem);line-height:1.05;
  text-shadow:0 2px 20px rgba(0,0,0,.85)}

/* ---- kampanjband (fristående komponent – kan tas bort efter valet) ---- */
.campaign{background:var(--surface);border-top:1px solid var(--line);
  padding-block:clamp(3.5rem,8vw,6rem)}
.campaign .wrap{display:flex;justify-content:space-between;align-items:center;gap:2rem 3rem;flex-wrap:wrap}
.campaign>.wrap>div{max-width:700px}
.campaign .eyebrow{color:var(--accent-ink)}
.campaign h2{font-size:clamp(2.2rem,4.5vw,3.8rem);margin:.1em 0}
.campaign p{margin:.6rem 0 0;color:var(--muted)}
.campaign .s-logga{height:38px;width:auto;margin-top:2.25rem}
.button.light{background:var(--accent);color:#fff;white-space:nowrap}
.button.light:hover{background:var(--accent-ink);color:#fff}

/* ---- artikelsida ---- */
.article-head{max-width:52rem;margin-inline:auto;
  padding:clamp(2.5rem,7vw,5rem) clamp(1.5rem,4vw,3rem) 0}
.crumb{margin:0 0 clamp(1.5rem,4vw,2.5rem);font-size:.85rem;font-weight:700}
.crumb a{color:var(--accent-ink);text-decoration:none;padding-block:1rem}
.crumb a:hover{text-decoration:underline}
.a-eyebrow{text-decoration:none;padding-block:1.05rem}
a.a-eyebrow:hover{text-decoration:underline}
.a-title{font-size:clamp(2.3rem,6vw,4.2rem);letter-spacing:-.035em;margin:.15em 0 0;max-width:20ch}
.a-meta{margin:clamp(1rem,3vw,1.5rem) 0 0;font-size:.85rem;color:var(--muted);
  display:flex;flex-wrap:wrap;gap:.35rem .6rem;font-variant-numeric:tabular-nums}
.a-meta .dot{color:var(--line)}
.a-cover{max-width:var(--maxw);margin:clamp(2rem,5vw,3.5rem) auto 0;
  padding-inline:clamp(1.5rem,4vw,3rem)}
.a-cover img{width:100%;aspect-ratio:16/7;object-fit:cover}

/* löptext */
.article-body{padding-block:clamp(2.5rem,6vw,4rem)}
.prose{max-width:40rem;margin-inline:auto;padding-inline:clamp(1.5rem,4vw,3rem);
  font-size:1.125rem;line-height:1.7}
.prose p{margin:0 0 1.35rem}
.prose>p:first-child{font-size:1.3rem;line-height:1.55;color:var(--ink)}
.prose h2,.prose h3{font-family:var(--serif);letter-spacing:-.02em}
.prose h2{font-size:clamp(1.7rem,4vw,2.3rem);margin:2.5rem 0 1rem}
.prose h3{font-size:clamp(1.35rem,3vw,1.7rem);margin:2rem 0 .8rem}
.prose blockquote{margin:2.25rem 0;padding:.3rem 0 .3rem 1.5rem;border-left:4px solid var(--accent);
  font-family:var(--serif);font-size:clamp(1.3rem,3vw,1.6rem);line-height:1.4;font-style:italic}
.prose blockquote p{margin:0 0 .6rem}
.prose blockquote cite{display:block;margin-top:.5rem;font:.85rem/1.5 var(--sans);
  font-style:normal;color:var(--muted)}
.prose ul,.prose ol{margin:1.5rem 0;padding-left:1.4rem}
.prose li{margin:.5rem 0}
.prose li::marker{color:var(--accent-ink);font-weight:800}
.prose a{color:var(--accent-ink);font-weight:600;text-decoration:underline;text-decoration-thickness:.07em}
.prose a:hover{color:var(--ink)}
.prose img{margin:1.75rem 0}
.prose figure{margin:1.75rem 0}
.prose figure img{margin:0}
.prose figcaption{font-size:.85rem;color:var(--muted);margin-top:.6rem}
/* Porträtt i löptext hålls under källbildens skärpegräns på retina. */
.prose figure.portratt{max-width:26rem}
.article-foot{max-width:40rem;margin-inline:auto;padding:0 clamp(1.5rem,4vw,3rem) clamp(2.5rem,6vw,4rem)}
.back{font-weight:700;text-decoration:none;color:var(--accent-ink);padding-block:.8rem}
.back:hover{text-decoration:underline}

/* ---- sidfot (på sidans egen bakgrund, som matval2026 – inget färgband) ---- */
.site-footer{border-top:1px solid var(--line)}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;
  gap:1rem 2.5rem;padding-block:clamp(1.5rem,4vw,2.25rem);font-size:.85rem}
.site-footer p{margin:0;color:var(--muted)}
.site-footer p a{color:var(--accent-ink);padding-block:.8rem}
.site-footer nav{display:flex;flex-wrap:wrap;gap:0 1.4rem}
.site-footer nav a,.site-footer .top{color:var(--ink);text-decoration:none;font-weight:700;
  display:inline-flex;align-items:center;gap:.45rem;padding-block:.8rem}
.site-footer nav a:hover,.site-footer .top:hover{color:var(--accent-ink);text-decoration:underline}
.site-footer .icon{width:18px;height:18px;flex:none}
.site-footer .s-ros{height:19px;width:auto;flex:none}

/* ---- responsivt ---- */
@media (max-width:800px){
  .site-header .wrap{padding-block:.6rem}
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-copy{padding-block:clamp(2.5rem,8vw,4rem)}
  .hero-image{min-height:0;aspect-ratio:16/12}
  .post-grid{grid-template-columns:1fr}
  .post-grid article{min-height:0}
  .notes-head{display:block}
  .campaign .wrap{display:block}
  .campaign .button{margin-top:1.5rem}
  .site-footer .wrap{justify-content:flex-start}
}

/* ---- rörelse ---- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
}

/* ---- utskrift ---- */
@media print{
  :root{--paper:#fff;--surface:#fff;--ink:#000;--muted:#333;--line:#bbb;
    --accent:#000;--accent-ink:#000;--band-ink:#000}
  .skip,.site-header nav,.pager,.crumb,.more,.back,.photo-break,.campaign,.manifest,.actions{display:none}
  .site-footer,.site-header{border-color:#000}
  body{font-size:11pt}
  a{text-decoration:underline}
}
