/*
  Bloggen: samma system som startsidan. Svart, benvitt, rött betyder klicka.
  Läsbredd 66 tecken, stor rubrik, mycket luft.
*/
:root {
  color-scheme: dark;
  --bg: #0c0c0d; --bg-2: #141415; --ink: #efece6; --mute: #9a968f;
  --line: rgb(239 236 230 / .12); --line-2: rgb(239 236 230 / .22);
  --red: oklch(0.64 0.21 27); --red-press: oklch(0.58 0.2 27); --on-red: #140806; --lime: oklch(0.92 0.21 128);
  --gutter: 16px; --max: 1320px; --read: 680px; --head: 64px;
  --ease: cubic-bezier(.23, 1, .32, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; }
::selection { background: var(--red); color: var(--on-red); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--red); flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms var(--ease), scale 160ms var(--ease), box-shadow 160ms var(--ease); }
.btn:active { scale: .95; }
.btn svg { width: 18px; height: 18px; transition: translate 220ms var(--spring); }
.btn:hover svg { translate: 3px -3px; }
.btn--red { background: var(--red); color: var(--on-red); }
.btn--red:hover { background: var(--red-press); }
.btn--ink { background: var(--on-red); color: var(--red); }
.btn--ink:hover { background: #000; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn--xl { min-height: 64px; padding: 0 34px; font-size: 1.1rem; }

/* Sidhuvud */
.head { position: sticky; top: 0; z-index: 40; height: var(--head); background: color-mix(in srgb, var(--bg) 85%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; min-height: 44px; }
.mark img { height: 16px; width: auto; display: block; }
.head nav { display: none; gap: 4px; }
.head nav a { padding: 8px 12px; font-size: .92rem; color: var(--mute); text-decoration: none; border-radius: 8px; }
.head nav a:hover, .head nav a[aria-current] { color: var(--ink); }
.head .btn { margin-left: auto; }
@media (min-width: 960px) { .head nav { display: flex; } }

/* Artikeln */
.post { padding-block: 56px 0; }
@media (min-width: 960px) { .post { padding-block: 96px 0; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.post-head { max-width: 1040px; }
.post h1 { font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: .95; font-weight: 800; letter-spacing: -.02em; font-variation-settings: "wdth" 118; text-wrap: balance; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.lead { max-width: var(--read); margin-top: 32px; font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.prose { max-width: var(--read); margin-top: 48px; color: #d9d5ce; }
.prose h2 { margin-top: 56px; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; font-variation-settings: "wdth" 112; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: 32px; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: currentColor; }

/* Vanliga frågor */
.faq { max-width: var(--read); margin-top: 72px; border-top: 1px solid var(--line-2); }
.faq h2 { margin: 32px 0 8px; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 112; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 99px; background: rgb(255 255 255 / .06); font-size: 1.2rem; transition: rotate 300ms var(--spring), background-color 160ms var(--ease); }
.faq details[open] summary::after { rotate: 45deg; background: var(--red); color: var(--on-red); }
.faq details p { padding-bottom: 20px; color: #d9d5ce; }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 22px; margin-top: 88px; padding: 32px 26px; border-radius: 26px; background: var(--red); color: var(--on-red); }
@media (min-width: 720px) { .cta { padding: 52px; } }
.cta::before { content: ""; position: absolute; z-index: -1; width: 140vmax; aspect-ratio: 1; left: 70%; top: 50%; translate: -50% -50%; background: repeating-radial-gradient(circle, transparent 0 14px, rgb(20 8 6 / .13) 14px 16px); -webkit-mask: radial-gradient(circle, #000 10%, transparent 55%); mask: radial-gradient(circle, #000 10%, transparent 55%); transition: scale 900ms var(--ease); }
.cta:hover::before { scale: 1.1; }
.cta p.meta { color: rgb(20 8 6 / .75); }
.cta h2 { font-size: clamp(3rem, 11vw, 8.5rem); line-height: .82; font-weight: 800; letter-spacing: -.03em; font-variation-settings: "wdth" 125; text-transform: uppercase; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1.5px solid rgb(20 8 6 / .25); font-weight: 600; }

/* Relaterat och bloggindex */
.more { margin-top: 96px; }
.more h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; font-variation-settings: "wdth" 118; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 24px; }
.list { list-style: none; padding: 0; border-top: 1px solid var(--line-2); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 6px 16px; align-items: baseline; padding: 24px 0; text-decoration: none; }
.list .no { font-size: .78rem; letter-spacing: .08em; color: var(--mute); transition: color 160ms var(--ease); }
.list .t { font-size: clamp(1.3rem, 3vw, 2.3rem); line-height: 1.05; font-weight: 800; letter-spacing: -.01em; font-variation-settings: "wdth" 110; transition: translate 380ms var(--ease); }
.list .d { grid-column: 2 / -1; color: var(--mute); max-width: 60ch; }
.list .r { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.list a:hover .t, .list a:focus-visible .t { translate: 12px 0; }
.list a:hover .no { color: var(--red); }

.index-head { padding-block: 72px 48px; }
@media (min-width: 960px) { .index-head { padding-block: 120px 64px; } }
.index-head h1 { font-size: clamp(3.4rem, 11vw, 9rem); line-height: .85; font-weight: 800; letter-spacing: -.025em; font-variation-settings: "wdth" 125; text-transform: uppercase; }
.index-head p:last-child { margin-top: 24px; max-width: 46ch; color: var(--mute); font-size: 1.2rem; }

/* Sidfot */
.foot { margin-top: 112px; border-top: 1px solid var(--line); padding-block: 40px 56px; color: var(--mute); font-size: .92rem; }
.foot .wrap { display: grid; gap: 20px; }
@media (min-width: 960px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

@media (max-width: 600px) {
  .list a { grid-template-columns: minmax(0, 1fr) auto; }
  .list .no, .list .d { grid-column: 1 / -1; }
}
