/* =========================================================
   Kirinaja – stilmall
   Färger: svart #050505 · grön #17cb57 · röd accent #e03a2f (loggan)
   Typsnitt: Lexend (variabel, självhostad)
   ========================================================= */

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050505;
  --bg-2: #0c0d0c;
  --fg: rgba(255, 255, 255, 0.92);
  --fg-2: rgba(255, 255, 255, 0.66);
  --fg-3: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --green: #17cb57;
  --green-2: #3fe07a;
  --green-dim: rgba(23, 203, 87, 0.14);
  --cream: #f2e9d8;
  --card: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.09);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --wrap-narrow: 720px;
  --header-h: 72px;
  --player-h: 80px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6), 0 10px 30px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16.5px; line-height: 1.6; font-weight: 350; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
body.has-player { padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom, 0px)); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p a, .prose a, .lede a { color: var(--green-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(63, 224, 122, 0.4); }
p a:hover, .prose a:hover { color: #fff; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 550; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.dot { opacity: 0.45; margin: 0 0.5em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--green); color: #01230d; padding: 0.6rem 1rem; border-radius: 999px; z-index: 200; font-weight: 600; }
.skip-link:focus { top: 1rem; }
::selection { background: var(--green); color: #01230d; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tint { background: linear-gradient(to bottom, rgba(23, 203, 87, 0.05), transparent 70%); border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.8rem; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-2); font-weight: 600; margin: 0 0 1rem; }
.eyebrow a { color: inherit; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--fg-2); max-width: 60ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; padding: 0.85em 1.6em; border-radius: 999px; font-weight: 550; font-size: 0.95rem; line-height: 1; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; white-space: nowrap; border: 1px solid transparent; }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #01230d; box-shadow: 0 8px 30px rgba(23, 203, 87, 0.25); }
.btn--primary:hover { background: var(--green-2); color: #01230d; }
.btn--outline { border-color: var(--line-2); color: var(--fg); }
.btn--outline:hover { border-color: var(--green); background: var(--green-dim); color: #fff; }
.btn--ghost { color: var(--fg-2); }
.btn--ghost:hover { color: #fff; background: var(--card); }
.btn--sm { font-size: 0.85rem; padding: 0.65em 1.2em; }
.btn--lg { font-size: 1.05rem; padding: 1em 2em; }
.prose a.btn, p a.btn { text-decoration: none; }
.prose a.btn--primary, p a.btn--primary { color: #01230d; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background 0.3s, box-shadow 0.3s; }
.site-header.is-scrolled { background: rgba(5, 5, 5, 0.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { height: 100%; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 2rem; }
.brand { font-weight: 700; letter-spacing: 0.34em; font-size: 1.05rem; color: var(--cream); margin-right: auto; transition: color 0.2s, text-shadow 0.3s; }
.brand:hover { color: #fff; text-shadow: 0 0 24px rgba(23, 203, 87, 0.6); }
.site-nav ul { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); }
.site-nav a { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 550; color: var(--fg-2); padding: 0.5rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); }
@media (max-width: 640px) { .site-nav { display: none; } }

/* hero */
.hero { position: relative; padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 6rem)) 0 clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__glow { position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; right: -20vw; top: -25vw; background: radial-gradient(circle, rgba(23, 203, 87, 0.14) 0%, rgba(224, 58, 47, 0.07) 45%, transparent 70%); filter: blur(40px); pointer-events: none; }
.hero__inner { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; position: relative; }
.hero__title { font-size: clamp(2.3rem, 5vw, 4rem); margin-bottom: 1.2rem; }
.hero__title em { font-style: normal; color: var(--green-2); }
.hero__lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--fg-2); max-width: 54ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__logo { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 100px rgba(23, 203, 87, 0.1); transform: rotate(1.4deg); transition: transform 0.6s var(--ease); aspect-ratio: 1; max-width: 420px; justify-self: end; }
.hero__logo:hover { transform: rotate(0deg) scale(1.015); }
.hero__logo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__logo { max-width: min(60vw, 300px); justify-self: start; order: -1; } }

/* poddkort */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius-lg); overflow: hidden; transition: background 0.25s, transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.25s; }
.card:hover { background: var(--card-hover); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); border-color: rgba(23, 203, 87, 0.35); }
.card__coverwrap { display: grid; place-items: center; aspect-ratio: 16/8.4; overflow: hidden; position: relative; padding: 1.4rem 0 2.6rem; }
.card__bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(30px) saturate(1.2) brightness(0.5); }
.card__coverwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5,5,5,0.1), rgba(5, 5, 5, 0.92)); }
.card__art { position: relative; z-index: 1; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.08); transition: transform 0.5s var(--ease); }
.card:hover .card__art { transform: scale(1.05) rotate(-1deg); }
.card__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 0 1.4rem 1.4rem; margin-top: -1.6rem; position: relative; z-index: 2; }
.badge { align-self: flex-start; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; color: var(--fg-3); background: rgba(255, 255, 255, 0.07); padding: 0.35em 0.85em; border-radius: 999px; }
.badge--live { color: #0a2, color: var(--green-2); background: var(--green-dim); }
.card__title { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.card__tagline { color: var(--fg-2); font-size: 0.93rem; line-height: 1.5; }
.card__latest { margin: 0.2rem 0 0; color: var(--fg-3); font-size: 0.82rem; }
.card__meta { color: var(--fg-3); font-size: 0.8rem; margin-top: 0.3rem; }

/* avsnittsrader */
.ep-list { display: grid; }
.ep-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 0.8rem; margin: 0 -0.8rem; border-top: 1px solid var(--line); border-radius: 12px; transition: background 0.2s; }
.ep-row:last-child { border-bottom: 1px solid var(--line); }
.ep-row:hover { background: var(--card); border-top-color: transparent; }
.ep-row:hover + .ep-row { border-top-color: transparent; }
.ep-row__cover { border-radius: 8px; width: 52px; height: 52px; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.ep-row__body { min-width: 0; display: grid; gap: 0.1rem; }
.ep-row__title { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-row__meta { font-size: 0.8rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }

.play-btn { display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, box-shadow 0.25s; width: 44px; height: 44px; flex: none; }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; margin-left: 2px; }
.play-btn .i-pause { display: none; }
.play-btn.is-playing .i-pause { display: block; margin-left: 0; }
.play-btn.is-playing .i-play { display: none; }
.play-btn:hover { background: var(--green); color: #01230d; transform: scale(1.07); box-shadow: 0 8px 24px rgba(23, 203, 87, 0.35); }
.play-btn.is-playing { background: var(--green); color: #01230d; }

/* poddsida */
.page-head { padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(1.5rem, 4vw, 2.5rem); position: relative; }
.page-head--center { text-align: center; }
.page-head h1 { margin-bottom: 1rem; }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 60vh; background: radial-gradient(55% 50% at 50% 0%, rgba(23, 203, 87, 0.1), transparent 70%); pointer-events: none; z-index: -1; }
.show__head { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(2rem, 4vw, 3rem); }
.show__cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06); aspect-ratio: 1; }
.show__cover img { width: 100%; height: 100%; object-fit: cover; }
.show__intro h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: 0.7rem; }
.show__tagline { color: var(--fg-2); font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 52ch; }
.show__meta { display: flex; align-items: center; flex-wrap: wrap; color: var(--fg-3); font-size: 0.9rem; margin: 0.8rem 0 1.4rem; }
.show__intro .btn--primary { margin-top: 1.2rem; }
.show__body { padding-bottom: clamp(3rem, 7vw, 5rem); }
.show__eph { margin: 2.5rem 0 1rem; }
@media (max-width: 760px) { .show__head { grid-template-columns: 1fr; } .show__cover { max-width: min(60vw, 280px); } }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1em 0.55em 0.8em; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.06); font-size: 0.88rem; font-weight: 450; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.chip svg { width: 19px; height: 19px; fill: currentColor; opacity: 0.9; }
.chip:hover { background: var(--green-dim); border-color: rgba(23, 203, 87, 0.5); color: #fff; transform: translateY(-1px); }

.prose { font-size: 1.05rem; line-height: 1.7; }
.prose--lg { font-size: clamp(1.02rem, 1.3vw, 1.15rem); }
.prose p { color: var(--fg-2); }
.prose p:first-child { color: var(--fg); }
.prose h2 { font-size: 1.4rem; margin: 2em 0 0.7em; }
.prose strong { color: var(--fg); font-weight: 600; }
.about-body { padding-bottom: clamp(3rem, 8vw, 6rem); }

/* kontaktband */
.contact-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(23, 203, 87, 0.12), rgba(224, 58, 47, 0.06) 70%, rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.07); }
.contact-band h2 { margin-bottom: 0.5rem; }
.contact-band p { color: var(--fg-2); margin: 0; }
@media (max-width: 700px) { .contact-band__inner { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0 0; background: linear-gradient(to bottom, var(--bg), #020202); }
.site-footer__inner { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.brand--footer { font-size: 1rem; display: block; margin-bottom: 0.9rem; }
.site-footer__brand p { color: var(--fg-3); font-size: 0.93rem; max-width: 42ch; }
.socials { display: flex; gap: 0.4rem; margin-top: 1rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--card); color: var(--fg-2); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.socials a svg { width: 18px; height: 18px; fill: currentColor; }
.socials a:hover { background: var(--green); color: #01230d; transform: translateY(-2px); }
.site-footer__col h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1rem; }
.footer-mail { margin-bottom: 0.5rem; }
.footer-mailaddr { color: var(--fg-3); font-size: 0.85rem; }
.site-footer__legal { border-top: 1px solid var(--line); padding: 1.1rem 0 calc(1.1rem + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 0.82rem; color: var(--fg-3); }
.site-footer__legal a:hover { color: #fff; }
@media (max-width: 640px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* spelaren */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; height: calc(var(--player-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(9, 10, 9, 0.85); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); border-top: 1px solid rgba(255, 255, 255, 0.08); transform: translateY(110%); transition: transform 0.45s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4); }
.player[hidden] { display: block; }
.player.is-open { transform: translateY(0); }
.player__progress { position: absolute; left: 0; right: 0; top: -1px; height: 14px; transform: translateY(-50%); }
.player__bar { position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.14); transition: height 0.15s; }
.player__progress:hover .player__bar { height: 6px; }
.player__played { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--green), var(--green-2)); box-shadow: 0 0 12px rgba(23, 203, 87, 0.6); }
.player__seek { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
.player__inner { height: var(--player-h); width: min(100% - 1.5rem, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; }
.player__cover { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.player__meta { min-width: 0; display: grid; gap: 0.05rem; }
.player__title { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__time { font-size: 0.78rem; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.player__controls { display: flex; align-items: center; gap: 0.3rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--fg-2); transition: background 0.2s, color 0.2s, transform 0.2s var(--ease); }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn:hover { background: var(--card); color: #fff; }
.icon-btn--main { width: 54px; height: 54px; background: #fff; color: #050505; }
.icon-btn--main:hover { background: var(--green); color: #01230d; transform: scale(1.05); }
.icon-btn--main .i-play { margin-left: 3px; }
.icon-btn--main .i-pause { display: none; }
.player.is-playing .icon-btn--main .i-play { display: none; }
.player.is-playing .icon-btn--main .i-pause { display: block; }
@media (max-width: 640px) { #pl-back, #pl-fwd { display: none; } }

.notfound { padding-bottom: 6rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
