/* ==========================================================================
   Såmannen – podkastdesign
   Mørk, varm palett hentet fra coverbildet (hvete i solnedgang)
   ========================================================================== */

:root {
    --ink: #0d0b07;
    --ink-2: #14110c;
    --surface: #1b1710;
    --surface-2: #241f16;
    --line: rgba(240, 220, 180, 0.14);
    --line-strong: rgba(240, 220, 180, 0.28);

    --gold: #e6a94f;
    --gold-soft: #f3cd8b;
    --gold-deep: #b97f2c;

    --text: #f6efe3;
    --text-muted: #b6a993;
    --text-dim: #8a7f6d;

    --font-display: "Fraunces", "PT Serif", Georgia, "Times New Roman", serif;
    --font-ui: "Inter", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --radius: 16px;
    --radius-lg: 24px;
    --shell: 1180px;
    --nav-h: 72px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.is-locked {
    overflow: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    margin: 0;
    letter-spacing: -0.015em;
}

p {
    margin: 0 0 1rem;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 6px;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: 20px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    background: var(--gold);
    color: #201704;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    transition: top 0.2s var(--ease);
}

.skip-link:focus {
    top: 16px;
}

/* ---------- Navigasjon ---------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 40;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.nav.is-stuck {
    background: rgba(13, 11, 7, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 600;
}

.brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--line-strong);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.94rem;
}

.nav__link {
    position: relative;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.2s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1.5px;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
}

.nav__inner .nav__cta {
    display: none;
}

.nav__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}

@media (min-width: 860px) {
    .nav__burger {
        display: none;
    }

    .nav__inner .nav__cta {
        display: inline-flex;
    }
}

@media (max-width: 859px) {
    .nav__links {
        display: none;
    }
}

/* ---------- Mobilmeny ---------- */

.drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(13, 11, 7, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s var(--ease), visibility 0.28s;
}

.drawer.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer__top {
    display: flex;
    justify-content: flex-end;
}

.drawer__close {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: transparent;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.drawer__links {
    list-style: none;
    margin: auto 0;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer__links a {
    font-family: var(--font-display);
    font-size: clamp(2rem, 11vw, 2.8rem);
    padding: 10px 0;
    display: block;
    border-bottom: 1px solid var(--line);
}

.drawer__foot {
    padding: 8px;
}

.drawer__foot .btn {
    width: 100%;
}

/* ---------- Knapper ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease),
                border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #231803;
    box-shadow: 0 10px 30px -12px rgba(230, 169, 79, 0.75);
}

.btn--primary:hover {
    box-shadow: 0 16px 38px -12px rgba(230, 169, 79, 0.9);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.88rem;
}

.btn svg {
    flex: none;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 56px) 0 72px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: -10%;
    background: url("./img/cover.jpg") center/cover no-repeat;
    filter: blur(26px) saturate(115%);
    transform: scale(1.08);
    opacity: 0.5;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 90% at 78% 12%, rgba(230, 169, 79, 0.24), transparent 58%),
        linear-gradient(180deg, rgba(13, 11, 7, 0.78) 0%, rgba(13, 11, 7, 0.86) 45%, var(--ink) 96%);
}

.hero__inner {
    position: relative;
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 72px;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
    font-weight: 600;
    padding: 7px 16px 7px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(230, 169, 79, 0.07);
    margin-bottom: 26px;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(230, 169, 79, 0.7);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(230, 169, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 169, 79, 0); }
}

.hero h1 {
    font-size: clamp(2.35rem, 7.2vw, 4.6rem);
    margin-bottom: 22px;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold-soft);
}

.hero__lede {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    color: var(--text-muted);
    max-width: 52ch;
    margin-bottom: 32px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    font-size: 0.84rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-deep);
}

/* Coverkort */

.cover {
    position: relative;
    width: min(420px, 100%);
    margin-inline: auto;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--line-strong),
        0 50px 80px -40px rgba(0, 0, 0, 0.95),
        0 0 120px -40px rgba(230, 169, 79, 0.45);
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s var(--ease);
}

.cover:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-6px);
}

/* Uten sidestilt tekst gir 3D-vinkelen lite – hold coveret rett på smale skjermer */
@media (max-width: 899px) {
    .cover {
        transform: none;
    }

    .cover:hover {
        transform: translateY(-6px);
    }
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover__sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.16) 0%, transparent 42%);
    pointer-events: none;
}

/* Lydbølger */

.waves {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 18px;
}

.waves span {
    width: 3px;
    border-radius: 2px;
    background: var(--gold);
    animation: wave 1.1s ease-in-out infinite;
}

.waves span:nth-child(1) { height: 40%; animation-delay: 0s; }
.waves span:nth-child(2) { height: 85%; animation-delay: 0.16s; }
.waves span:nth-child(3) { height: 55%; animation-delay: 0.32s; }
.waves span:nth-child(4) { height: 100%; animation-delay: 0.48s; }
.waves span:nth-child(5) { height: 45%; animation-delay: 0.64s; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

/* ---------- Seksjoner ---------- */

.section {
    padding: 96px 0;
    position: relative;
}

.section--alt {
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 22%, var(--ink-2) 78%, var(--ink) 100%);
}

.section__head {
    max-width: 62ch;
    margin-bottom: 44px;
}

.section__label {
    display: block;
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 14px;
}

.section h2 {
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    margin-bottom: 14px;
}

.section__head p {
    color: var(--text-muted);
    margin: 0;
}

/* ---------- Episoder ---------- */

.episode {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--surface) 0%, rgba(27, 23, 16, 0.55) 100%);
    padding: 26px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.episode:hover {
    border-color: var(--line-strong);
}

.episode__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}




.episode__player {
    border-radius: 12px;
    overflow: hidden;
    background: #0f0d09;
}

.episode__player iframe {
    display: block;
    width: 100%;
    height: 150px;
    border: 0;
}



.episode__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--gold);
}

.episode__badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* Episodeliste */

.episode-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.episode-row {
    border-bottom: 1px solid var(--line);
}

.episode-row__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 12px;
    border-radius: 12px;
    transition: background 0.2s var(--ease);
}

.episode-row__link:hover {
    background: rgba(230, 169, 79, 0.06);
}

.episode-row__num {
    flex: none;
    width: 34px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--text-dim);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.episode-row__body {
    flex: 1;
    min-width: 0;
}

.episode-row__title {
    display: block;
    font-weight: 500;
    line-height: 1.4;
}

.episode-row__meta {
    display: block;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.episode-row__play {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    color: var(--gold-soft);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.episode-row__link:hover .episode-row__play {
    background: var(--gold);
    border-color: var(--gold);
    color: #231803;
    transform: scale(1.06);
}

.episode-row.is-playing .episode-row__link {
    background: rgba(230, 169, 79, 0.1);
}

.episode-row.is-playing .episode-row__num,
.episode-row.is-playing .episode-row__title {
    color: var(--gold-soft);
}

.episode-row.is-playing .episode-row__play {
    background: var(--gold);
    border-color: var(--gold);
    color: #231803;
}

.episode-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

@media (max-width: 599px) {
    .episode-row__link {
        gap: 12px;
        padding: 14px 6px;
    }

    .episode-row__num {
        width: 26px;
        font-size: 0.85rem;
    }

    .episode-row__title {
        font-size: 0.95rem;
    }
}

/* ---------- Om ---------- */

.cards {
    display: grid;
    gap: 22px;
}

@media (min-width: 820px) {
    .cards--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    padding: 32px;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}

.card:hover {
    border-color: var(--line-strong);
    transform: translateY(-3px);
}

.card__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(230, 169, 79, 0.12);
    color: var(--gold-soft);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.45rem;
    margin-bottom: 6px;
}

.card__role {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.card p {
    color: var(--text-muted);
}

.card p:last-child {
    margin-bottom: 0;
}

.quote {
    margin: 0 0 22px;
    padding-left: 18px;
    border-left: 2px solid var(--gold-deep);
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.5;
    color: var(--text);
}

.quote cite {
    display: block;
    margin-top: 8px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---------- Lytt ---------- */

.platforms {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.platform {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.platform:hover {
    border-color: var(--gold);
    background: var(--surface-2);
    transform: translateY(-3px);
}

.platform__icon {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(230, 169, 79, 0.12);
    color: var(--gold-soft);
}

.platform strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

.platform span {
    font-size: 0.84rem;
    color: var(--text-dim);
}

.platform__arrow {
    margin-left: auto;
    color: var(--text-dim);
    transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

.platform:hover .platform__arrow {
    transform: translateX(4px);
    color: var(--gold);
}

/* ---------- Footer ---------- */

.footer {
    border-top: 1px solid var(--line);
    padding: 54px 0 40px;
    background: var(--ink-2);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer__brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.footer__brand strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__brand span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer__meta {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: right;
}

.footer__meta a {
    color: var(--text-muted);
    border-bottom: 1px solid var(--line-strong);
}

.footer__meta a:hover {
    color: var(--gold-soft);
}

/* ---------- Animasjon ved scroll ---------- */

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
