/*
 * Echo 1.0 — IN|Geluid
 * Rustig redactioneel Ghost-thema voor luisteren en lezen.
 */

:root {
    --color-cream: #faf6e9;
    --color-paper: #fffdf8;
    --color-sage: #b3c4a9;
    --color-sage-soft: #e4eadf;
    --color-green: #008f7d;
    --color-green-dark: #173b2d;
    --color-blue: #65c9e2;
    --color-blue-soft: #def3f7;
    --color-ink: #19352c;
    --color-muted: #65756d;
    --color-border: #d7ded5;
    --color-accent: #008f7d;
    --shadow-soft: 0 24px 70px rgb(23 59 45 / 10%);
    --font-display: var(--gh-font-heading, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif);
    --font-sans: var(--gh-font-body, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
    --shell: 1200px;
    --reading: 760px;
    --wide: 1180px;
    --header-height: 88px;
    --radius-small: 10px;
    --radius-medium: 22px;
    --radius-large: 42px;
    --transition: 180ms ease;
}

html[data-theme="dark"] {
    --color-cream: #10251e;
    --color-paper: #173129;
    --color-sage: #8fa485;
    --color-sage-soft: #263f35;
    --color-green: #55c4ae;
    --color-green-dark: #081b15;
    --color-blue: #74cfe2;
    --color-blue-soft: #1b4148;
    --color-ink: #f1f2e9;
    --color-muted: #b4c0b7;
    --color-border: #355248;
    --color-accent: #55c4ae;
    --shadow-soft: 0 24px 70px rgb(0 0 0 / 22%);
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) {
        --color-cream: #10251e;
        --color-paper: #173129;
        --color-sage: #8fa485;
        --color-sage-soft: #263f35;
        --color-green: #55c4ae;
        --color-green-dark: #081b15;
        --color-blue: #74cfe2;
        --color-blue-soft: #1b4148;
        --color-ink: #f1f2e9;
        --color-muted: #b4c0b7;
        --color-border: #355248;
        --color-accent: #55c4ae;
        --shadow-soft: 0 24px 70px rgb(0 0 0 / 22%);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-cream);
    color: var(--color-ink);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    height: auto;
}

button,
input,
textarea,
select {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration-color: var(--color-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4,
p,
blockquote {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.06;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(3.3rem, 7vw, 6.75rem);
}

h2 {
    font-size: clamp(2.2rem, 4.2vw, 4.15rem);
}

h3 {
    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
}

::selection {
    background: var(--color-blue);
    color: var(--color-green-dark);
}

:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 4px;
}

.site-shell {
    min-height: 100vh;
    overflow: clip;
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.shell--reading {
    max-width: var(--reading);
}

.shell--wide {
    max-width: var(--wide);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--color-green-dark);
    color: #fff;
    transform: translateY(-150%);
    transition: transform var(--transition);
}

.skip-link:focus {
    transform: translateY(0);
}

.eyebrow {
    margin-bottom: 22px;
    color: var(--color-green);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow a {
    text-decoration: none;
}

.eyebrow__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--color-blue);
}

.button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.button {
    min-height: 52px;
    padding: 15px 22px;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

.button--primary {
    background: var(--color-green-dark);
    color: #fff;
}

html[data-theme="dark"] .button--primary {
    background: var(--color-green);
    color: var(--color-green-dark);
}

.button--light {
    background: var(--color-paper);
    color: var(--color-green-dark);
}

.button__play {
    font-size: 0.72em;
}

.text-link {
    padding-block: 4px;
    border-bottom: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    color: var(--color-green);
}

.text-link span {
    transition: transform var(--transition);
}

.text-link:hover span {
    transform: translateX(4px);
}

.text-link--quiet {
    color: var(--color-ink);
}

/* Header */

.site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
    background: color-mix(in srgb, var(--color-cream) 94%, transparent);
}

@supports (backdrop-filter: blur(12px)) {
    .site-header {
        position: sticky;
        top: 0;
        backdrop-filter: blur(16px);
    }
}

.site-header__inner {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
    align-items: center;
    min-height: var(--header-height);
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 11px;
    text-decoration: none;
}

.brand__mark {
    width: 42px;
    height: 42px;
}

.brand__uploaded {
    width: auto;
    max-width: 210px;
    max-height: 52px;
}

.brand__word {
    color: var(--color-green);
    font-size: 1.36rem;
    font-weight: 780;
    letter-spacing: -0.045em;
}

.brand__word span {
    color: var(--color-blue);
    font-weight: 500;
}

.site-navigation {
    justify-self: center;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav a {
    position: relative;
    display: inline-block;
    color: var(--color-ink);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.site-navigation .nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: var(--color-blue);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition);
}

.site-navigation .nav a:hover::after,
.site-navigation .nav-current a::after {
    transform: scaleX(1);
    transform-origin: left;
}

.theme-toggle,
.menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-paper);
    cursor: pointer;
}

.theme-toggle {
    justify-self: end;
}

.theme-toggle svg {
    grid-area: 1 / 1;
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: opacity var(--transition), transform var(--transition);
}

.theme-toggle__moon {
    opacity: 0;
    transform: rotate(-20deg) scale(0.75);
}

html[data-theme="dark"] .theme-toggle__sun {
    opacity: 0;
    transform: rotate(20deg) scale(0.75);
}

html[data-theme="dark"] .theme-toggle__moon {
    opacity: 1;
    transform: none;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .theme-toggle__sun {
        opacity: 0;
        transform: rotate(20deg) scale(0.75);
    }

    html:not([data-theme="light"]) .theme-toggle__moon {
        opacity: 1;
        transform: none;
    }
}

.menu-toggle {
    display: none;
}

/* Home hero */

.hero {
    position: relative;
    min-height: min(780px, calc(100vh - var(--header-height)));
    padding: clamp(72px, 10vw, 132px) 0 clamp(84px, 11vw, 148px);
}

.hero::before {
    position: absolute;
    top: 18%;
    left: -180px;
    width: 310px;
    height: 310px;
    border: 1px solid var(--color-sage);
    border-radius: 46% 54% 58% 42%;
    content: "";
    opacity: 0.45;
    transform: rotate(22deg);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    align-items: center;
    gap: clamp(50px, 9vw, 120px);
}

.hero__copy h1 {
    max-width: 850px;
    margin-bottom: 30px;
}

.hero__intro {
    max-width: 650px;
    margin-bottom: 38px;
    color: var(--color-muted);
    font-size: clamp(1.1rem, 1.8vw, 1.38rem);
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero__visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero__blob {
    position: relative;
    z-index: 2;
    width: min(100%, 500px);
    border-radius: 45% 55% 51% 49% / 50% 43% 57% 50%;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
    transform: rotate(-2deg);
}

.hero__blob img {
    width: 100%;
}

.sound-rings {
    position: absolute;
    z-index: 1;
    inset: -10%;
}

.sound-rings i {
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-sage);
    border-radius: 47% 53% 56% 44%;
    opacity: 0.65;
}

.sound-rings i:nth-child(2) {
    inset: -7%;
    opacity: 0.38;
    transform: rotate(6deg);
}

.sound-rings i:nth-child(3) {
    inset: -14%;
    opacity: 0.18;
    transform: rotate(-5deg);
}

/* Sections */

.section {
    padding: clamp(80px, 10vw, 132px) 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: clamp(44px, 6vw, 72px);
}

.section-heading .eyebrow {
    margin-bottom: 14px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section--podcast {
    background: var(--color-sage-soft);
}

.featured-episode {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-paper);
    box-shadow: var(--shadow-soft);
}

.featured-episode__visual {
    position: relative;
    display: grid;
    min-height: 470px;
    place-items: center;
    overflow: hidden;
    background: var(--color-green-dark);
}

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

.featured-episode__copy {
    align-self: center;
    padding: clamp(42px, 6vw, 78px);
}

.featured-episode__copy h3 {
    margin-bottom: 22px;
    font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.featured-episode__copy h3 a,
.post-card h3 a,
.episode-row h2 a {
    text-decoration: none;
}

.featured-episode__copy > p:not(.meta-line) {
    margin-bottom: 30px;
    color: var(--color-muted);
}

.play-disc {
    position: absolute;
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-blue);
    box-shadow: 0 12px 34px rgb(0 0 0 / 18%);
    color: var(--color-green-dark);
    font-size: 1.25rem;
    text-indent: 4px;
    transition: transform var(--transition);
}

.featured-episode__visual:hover .play-disc {
    transform: scale(1.08);
}

.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 150px;
}

.waveform i {
    display: block;
    width: 7px;
    height: 38px;
    border-radius: 8px;
    background: var(--color-sage);
}

.waveform i:nth-child(2),
.waveform i:nth-child(8) { height: 68px; }
.waveform i:nth-child(3),
.waveform i:nth-child(7) { height: 105px; background: var(--color-green); }
.waveform i:nth-child(4),
.waveform i:nth-child(6) { height: 78px; background: var(--color-blue); }
.waveform i:nth-child(5) { height: 138px; background: var(--color-paper); }

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 18px;
    color: var(--color-green);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.meta-line > * + *::before {
    margin-right: 18px;
    color: var(--color-blue);
    content: "•";
}

.post-grid {
    display: grid;
    gap: 28px;
}

.post-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    overflow: hidden;
    background: var(--color-paper);
    transition: box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-5px);
}

.post-card__visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-sage-soft);
}

.post-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.post-card:hover .post-card__visual img {
    transform: scale(1.025);
}

.card-pattern {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.card-pattern::before,
.card-pattern::after {
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid var(--color-sage);
    border-radius: 44% 56% 61% 39%;
    content: "";
}

.card-pattern::after {
    width: 54%;
    border-color: var(--color-blue);
    transform: rotate(20deg);
}

.card-pattern__line {
    z-index: 2;
    width: 42px;
    height: 2px;
    background: var(--color-green);
}

.card-pattern__play {
    z-index: 2;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-blue);
    color: var(--color-green-dark);
    text-indent: 3px;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

.post-card h3 {
    margin-bottom: 16px;
}

.post-card__body > p:not(.meta-line) {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 0.96rem;
}

.post-card__read {
    align-self: start;
    margin-top: auto;
    color: var(--color-green);
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.post-card__read span:last-child {
    display: inline-block;
    transition: transform var(--transition);
}

.post-card__read:hover span:last-child {
    transform: translateX(4px);
}

.section--about {
    position: relative;
}

.about-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: clamp(50px, 10vw, 140px);
    padding-top: clamp(46px, 7vw, 78px);
    border-top: 1px solid var(--color-border);
}

.about-panel h2 {
    margin-bottom: 0;
}

.about-panel__copy {
    align-self: end;
}

.about-panel__copy p {
    margin-bottom: 30px;
    color: var(--color-muted);
    font-size: 1.12rem;
}

.section--newsletter {
    padding-top: 0;
}

.newsletter-panel,
.subscribe-panel__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(40px, 6vw, 72px);
    border-radius: var(--radius-large);
    background: var(--color-green-dark);
    color: #fff;
}

.newsletter-panel h2,
.subscribe-panel h2 {
    margin-bottom: 12px;
}

.newsletter-panel p:last-child {
    max-width: 650px;
    margin-bottom: 0;
    color: rgb(255 255 255 / 72%);
}

.newsletter-panel .eyebrow,
.subscribe-panel .eyebrow {
    color: var(--color-blue);
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-medium);
    color: var(--color-muted);
}

.empty-state > :last-child {
    margin-bottom: 0;
}

.empty-state--podcast {
    display: flex;
    align-items: center;
    gap: 28px;
    background: var(--color-paper);
}

.empty-state__visual {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--color-blue);
    color: var(--color-green-dark);
}

/* Archives */

.archive-hero {
    padding: clamp(78px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
    border-bottom: 1px solid var(--color-border);
}

.archive-hero--podcast {
    background: var(--color-green-dark);
    color: #fff;
}

.archive-hero--compact {
    padding-block: 72px;
}

.archive-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: clamp(44px, 9vw, 130px);
}

.archive-hero h1 {
    max-width: 900px;
    margin-bottom: 26px;
}

.archive-hero__grid > div:first-child > p:last-child {
    max-width: 700px;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 1.18rem;
}

.archive-hero--podcast .archive-hero__grid > div:first-child > p:last-child {
    color: rgb(255 255 255 / 72%);
}

.archive-hero__symbol {
    display: grid;
    min-height: 250px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 50% 42% 48% 52%;
}

.archive-quote {
    position: relative;
    margin-bottom: 0;
    padding-left: 36px;
    border-left: 1px solid var(--color-sage);
}

.archive-quote > span {
    color: var(--color-blue);
    font-family: var(--font-display);
    font-size: 4.4rem;
    line-height: 0.5;
}

.archive-quote p {
    margin-bottom: 0;
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.35;
}

.archive-listing__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 42px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.archive-listing__bar p {
    margin-bottom: 0;
}

.archive-listing__bar a {
    color: var(--color-green);
    text-decoration: none;
}

.episode-list {
    border-top: 1px solid var(--color-border);
}

.episode-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 48px;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    padding: 36px 0;
    border-bottom: 1px solid var(--color-border);
}

.episode-row__play {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-paper);
    color: var(--color-green);
    text-decoration: none;
    text-indent: 3px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.episode-row:hover .episode-row__play {
    background: var(--color-blue);
    color: var(--color-green-dark);
    transform: scale(1.05);
}

.episode-row h2 {
    margin-bottom: 12px;
    font-size: clamp(1.75rem, 3vw, 2.7rem);
}

.episode-row__main > p:last-child {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--color-muted);
}

.episode-row__arrow {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: var(--color-green);
    text-decoration: none;
    transition: transform var(--transition);
}

.episode-row:hover .episode-row__arrow {
    transform: translateX(5px);
}

.pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-top: 64px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

.pagination > div:last-child {
    text-align: right;
}

.pagination__link {
    color: var(--color-green);
    font-weight: 700;
    text-decoration: none;
}

.pagination__count {
    color: var(--color-muted);
    font-size: 0.82rem;
}

/* Posts and pages */

.article-header,
.page-header {
    padding-top: clamp(78px, 11vw, 146px);
    padding-bottom: clamp(58px, 8vw, 96px);
    text-align: center;
}

.article-header h1,
.page-header h1 {
    margin-bottom: 28px;
}

.article-header__excerpt,
.page-header > p:last-child {
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 36px;
    color: var(--color-muted);
    font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.author-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-ink);
    text-decoration: none;
}

.author-chip img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-chip span,
.article-meta__item {
    display: grid;
    text-align: left;
}

.article-meta small {
    color: var(--color-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-feature {
    margin-bottom: clamp(62px, 8vw, 104px);
}

.article-feature img {
    width: 100%;
    max-height: 760px;
    border-radius: var(--radius-medium);
    object-fit: cover;
}

figcaption {
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 0.78rem;
    text-align: center;
}

.article-layout {
    display: grid;
    grid-template-columns: 90px minmax(0, var(--reading)) 90px;
    justify-content: center;
    gap: 38px;
}

.article-share {
    position: sticky;
    top: calc(var(--header-height) + 32px);
    display: flex;
    height: max-content;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.article-share > span:first-child {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-share a,
.article-share button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-paper);
    color: var(--color-green);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 750;
    text-decoration: none;
}

.gh-content {
    min-width: 0;
    font-family: var(--font-display);
    font-size: clamp(1.12rem, 1.7vw, 1.27rem);
    line-height: 1.8;
}

.gh-content > * {
    margin-top: 0;
    margin-bottom: 1.65em;
}

.gh-content > :first-child {
    margin-top: 0;
}

.gh-content > :last-child {
    margin-bottom: 0;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.62em;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.gh-content h2 {
    font-size: clamp(2rem, 3.7vw, 3rem);
}

.gh-content h3 {
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
}

.gh-content a {
    color: var(--color-green);
}

.gh-content strong {
    font-weight: 750;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.35em;
}

.gh-content li {
    margin: 0.55em 0;
    padding-left: 0.3em;
}

.gh-content blockquote {
    position: relative;
    margin: 2.3em 0;
    padding: 0.25em 0 0.25em 1.35em;
    border-left: 4px solid var(--color-blue);
    color: var(--color-green);
    font-size: 1.38em;
    line-height: 1.45;
}

.gh-content hr {
    width: 80px;
    height: 1px;
    margin: 3.5em auto;
    border: 0;
    background: var(--color-sage);
}

.gh-content code:not(pre code) {
    padding: 0.15em 0.35em;
    border-radius: 5px;
    background: var(--color-sage-soft);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78em;
}

.gh-content pre {
    overflow-x: auto;
    padding: 24px;
    border-radius: var(--radius-small);
    background: var(--color-green-dark);
    color: #f5f3e9;
    font-size: 0.76em;
    line-height: 1.55;
}

.gh-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 0.88em;
}

.gh-content th,
.gh-content td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.gh-content th {
    color: var(--color-green);
    font-weight: 750;
}

.kg-card {
    font-family: var(--font-sans);
}

.kg-image-card img,
.kg-gallery-image img,
.kg-video-card video {
    border-radius: var(--radius-small);
}

.kg-width-wide {
    width: min(100vw - 48px, 980px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-audio-card {
    border: 0 !important;
    border-radius: var(--radius-medium) !important;
    background: var(--color-green-dark) !important;
    box-shadow: none !important;
    color: #fff !important;
}

.kg-audio-title,
.kg-audio-player-container {
    color: #fff !important;
}

.kg-audio-play-icon,
.kg-audio-pause-icon,
.kg-audio-unmute-icon,
.kg-audio-mute-icon {
    color: var(--color-blue) !important;
}

.kg-button-card .kg-btn {
    border-radius: 999px;
    background: var(--color-green-dark);
    font-family: var(--font-sans);
}

.kg-bookmark-card a,
.kg-file-card a,
.kg-product-card-container,
.kg-callout-card,
.kg-toggle-card {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-medium) !important;
    background: var(--color-paper) !important;
    box-shadow: none !important;
    color: var(--color-ink) !important;
}

.kg-callout-card {
    padding: 24px !important;
}

.kg-header-card {
    border-radius: var(--radius-medium);
}

.article-footer {
    margin-top: clamp(70px, 9vw, 118px);
    padding-top: 34px;
    padding-bottom: clamp(70px, 9vw, 112px);
    border-top: 1px solid var(--color-border);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 52px;
}

.article-tags > span {
    margin-right: 6px;
    color: var(--color-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.article-tags a {
    padding: 7px 12px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-green);
    font-size: 0.77rem;
    text-decoration: none;
}

.author-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    padding: 32px;
    border-radius: var(--radius-medium);
    background: var(--color-sage-soft);
}

.author-box > img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.author-box .eyebrow {
    margin-bottom: 7px;
}

.author-box h2 {
    margin-bottom: 8px;
    font-size: 1.8rem;
}

.author-box h2 a {
    text-decoration: none;
}

.author-box p:last-child {
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.related {
    border-top: 1px solid var(--color-border);
    background: var(--color-paper);
}

.subscribe-panel {
    padding: clamp(70px, 8vw, 110px) 0;
    background: var(--color-sage-soft);
}

/* Episode */

.episode-header {
    position: relative;
    overflow: hidden;
    padding: clamp(90px, 12vw, 160px) 0;
    background: var(--color-green-dark);
    color: #fff;
}

.episode-header__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.episode-header h1 {
    margin-bottom: 28px;
}

.episode-header__excerpt {
    max-width: 650px;
    margin: 0 auto 26px;
    color: rgb(255 255 255 / 72%);
    font-size: 1.2rem;
}

.episode-header__meta {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 36px;
    color: rgb(255 255 255 / 62%);
    font-size: 0.8rem;
}

.episode-header__waves {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: end;
    justify-content: space-around;
    gap: 4%;
    opacity: 0.1;
}

.episode-header__waves i {
    width: 5%;
    height: 45%;
    border-radius: 999px 999px 0 0;
    background: #fff;
}

.episode-header__waves i:nth-child(2),
.episode-header__waves i:nth-child(6) { height: 70%; }
.episode-header__waves i:nth-child(3),
.episode-header__waves i:nth-child(5) { height: 88%; }
.episode-header__waves i:nth-child(4) { height: 55%; }

.episode-artwork {
    position: relative;
    z-index: 3;
    margin-top: -70px;
    margin-bottom: 70px;
}

.episode-artwork img {
    width: 100%;
    max-height: 620px;
    border: 10px solid var(--color-cream);
    border-radius: var(--radius-medium);
    object-fit: cover;
}

.episode-content {
    padding-top: clamp(68px, 8vw, 108px);
}

.episode-artwork + .episode-content {
    padding-top: 0;
}

.episode-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.episode-share p {
    margin: 0 auto 0 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
}

/* Pages */

.page-content {
    padding-bottom: clamp(82px, 10vw, 140px);
}

.about-page__hero,
.contact-page__hero {
    padding: clamp(78px, 11vw, 148px) 0;
    border-bottom: 1px solid var(--color-border);
}

.about-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.65fr);
    align-items: center;
    gap: clamp(50px, 9vw, 120px);
}

.about-page h1,
.contact-page h1 {
    margin-bottom: 28px;
}

.about-page__grid > div:first-child > p:last-child,
.contact-page__hero p:last-of-type {
    max-width: 650px;
    margin-bottom: 0;
    color: var(--color-muted);
    font-size: 1.2rem;
}

.about-page__mark {
    border-radius: 48% 52% 43% 57%;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-page__mark img {
    width: 100%;
}

.about-page .page-content {
    padding-top: clamp(72px, 9vw, 118px);
}

.contact-page__hero {
    text-align: center;
}

.contact-page__hero p {
    margin-inline: auto;
}

.contact-page__hero .button {
    margin-top: 30px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(40px, 8vw, 90px);
    padding-top: clamp(72px, 9vw, 112px);
    padding-bottom: clamp(82px, 10vw, 140px);
}

.contact-layout .page-content {
    padding-bottom: 0;
}

.contact-card {
    align-self: start;
    padding: 34px;
    border-radius: var(--radius-medium);
    background: var(--color-sage-soft);
}

.contact-card h2 {
    margin-bottom: 22px;
    font-size: 2rem;
}

.contact-card ul {
    margin: 0 0 28px;
    padding-left: 20px;
    color: var(--color-muted);
}

/* Tag, author and errors */

.taxonomy-header {
    padding: clamp(72px, 10vw, 120px) 0 64px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.taxonomy-header h1 {
    margin-bottom: 20px;
}

.taxonomy-header p:last-child {
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-muted);
}

.author-profile-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    object-fit: cover;
}

.error-page {
    display: grid;
    min-height: 66vh;
    place-items: center;
    padding: 90px 0;
    text-align: center;
}

.error-page__code {
    margin-bottom: 8px;
    color: var(--color-blue);
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 13rem);
    line-height: 0.8;
}

.error-page h1 {
    margin-bottom: 20px;
}

.error-page p {
    margin-bottom: 30px;
    color: var(--color-muted);
}

.private-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 10px;
}

.private-form input {
    min-width: 0;
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-paper);
}

.form-error {
    margin-top: 18px;
    color: #b13b38 !important;
    font-size: 0.9rem;
}

/* Footer */

.site-footer {
    padding-top: clamp(70px, 9vw, 108px);
    background: var(--color-green-dark);
    color: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.6fr;
    gap: 60px;
    padding-bottom: 74px;
}

.site-footer .brand__word {
    color: #fff;
    font-size: 1.65rem;
}

.site-footer__brand p {
    max-width: 340px;
    margin: 18px 0 0;
    color: rgb(255 255 255 / 62%);
    font-size: 0.9rem;
}

.site-footer .nav {
    align-items: start;
    flex-direction: column;
    gap: 11px;
}

.site-footer .nav a,
.site-footer__links a {
    color: #fff;
    font-size: 0.86rem;
    text-decoration: none;
}

.site-footer__links {
    display: flex;
    align-items: start;
    flex-direction: column;
    gap: 11px;
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 28px;
    border-top: 1px solid rgb(255 255 255 / 16%);
    color: rgb(255 255 255 / 54%);
    font-size: 0.72rem;
}

.site-footer__bottom a {
    color: inherit;
    text-decoration: none;
}

/* Responsive */

@media (max-width: 980px) {
    :root {
        --header-height: 76px;
    }

    .site-header__inner {
        grid-template-columns: 1fr auto auto;
        gap: 10px;
    }

    .menu-toggle {
        position: relative;
        display: grid;
        justify-self: end;
    }

    .menu-toggle span:not(.visually-hidden) {
        position: absolute;
        width: 17px;
        height: 1.5px;
        background: currentColor;
        transition: transform var(--transition), top var(--transition);
    }

    .menu-toggle span:nth-child(2) { top: 16px; }
    .menu-toggle span:nth-child(3) { top: 23px; }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

    .site-navigation {
        position: fixed;
        z-index: 40;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: grid;
        height: calc(100vh - var(--header-height));
        padding: 44px 24px;
        overflow-y: auto;
        background: var(--color-cream);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity var(--transition), transform var(--transition);
    }

    .site-navigation.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .site-navigation .nav {
        align-items: stretch;
        justify-content: start;
        flex-direction: column;
        gap: 0;
    }

    .site-navigation .nav li {
        border-bottom: 1px solid var(--color-border);
    }

    .site-navigation .nav a {
        display: block;
        padding: 18px 4px;
        font-family: var(--font-display);
        font-size: 2.1rem;
        font-weight: 400;
    }

    .site-navigation .nav a::after {
        display: none;
    }

    .hero__grid,
    .featured-episode,
    .archive-hero__grid,
    .about-page__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        width: min(80%, 460px);
        margin-inline: auto;
    }

    .post-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-episode__visual {
        min-height: 380px;
    }

    .archive-hero__symbol {
        min-height: 200px;
    }

    .archive-quote {
        max-width: 620px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        max-width: var(--reading);
    }

    .article-share {
        position: static;
        flex-direction: row;
        order: 2;
        padding-top: 24px;
        border-top: 1px solid var(--color-border);
    }

    .article-share > span:first-child {
        margin: 0 4px 0 0;
    }

    .about-page__mark {
        width: min(70%, 450px);
        margin-inline: auto;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .shell {
        width: min(calc(100% - 32px), var(--shell));
    }

    .brand__mark {
        width: 36px;
        height: 36px;
    }

    .brand__word {
        font-size: 1.18rem;
    }

    .brand__uploaded {
        max-width: 150px;
        max-height: 42px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .menu-toggle span:nth-child(2) { top: 14px; }
    .menu-toggle span:nth-child(3) { top: 21px; }
    .menu-toggle[aria-expanded="true"] span:nth-child(2),
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 18px; }

    .hero {
        min-height: auto;
        padding-top: 68px;
    }

    .hero__grid {
        gap: 68px;
    }

    .hero__copy h1 {
        font-size: clamp(3.25rem, 15vw, 5rem);
    }

    .hero__actions,
    .section-heading,
    .newsletter-panel,
    .subscribe-panel__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__visual {
        width: 88%;
    }

    .section-heading .text-link {
        align-self: flex-start;
    }

    .featured-episode {
        border-radius: var(--radius-medium);
    }

    .featured-episode__visual {
        min-height: 300px;
    }

    .featured-episode__copy {
        padding: 34px 26px 40px;
    }

    .post-grid--three {
        grid-template-columns: 1fr;
    }

    .about-panel {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .newsletter-panel,
    .subscribe-panel__inner {
        border-radius: var(--radius-medium);
    }

    .newsletter-panel .button,
    .subscribe-panel .button {
        width: 100%;
    }

    .archive-hero {
        padding-top: 72px;
    }

    .archive-hero__grid {
        gap: 58px;
    }

    .episode-row {
        grid-template-columns: 52px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
    }

    .episode-row__play {
        width: 52px;
        height: 52px;
    }

    .episode-row__arrow {
        display: none;
    }

    .episode-row h2 {
        font-size: 1.72rem;
    }

    .episode-row__main > p:last-child {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .pagination {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .pagination__count {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
    }

    .article-header,
    .page-header {
        text-align: left;
    }

    .article-header__excerpt,
    .page-header > p:last-child {
        margin-inline: 0;
    }

    .article-meta {
        align-items: start;
        justify-content: start;
        flex-wrap: wrap;
        gap: 20px 26px;
    }

    .article-feature {
        width: 100%;
    }

    .article-feature img {
        border-radius: 0;
    }

    .kg-width-wide,
    .kg-width-full {
        width: 100vw;
    }

    .author-box {
        grid-template-columns: 1fr;
    }

    .episode-header__meta {
        flex-direction: column;
        gap: 4px;
    }

    .episode-artwork {
        width: 100%;
    }

    .episode-artwork img {
        border-width: 6px;
        border-radius: 0;
    }

    .episode-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .episode-share p {
        margin-right: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px 28px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 440px) {
    .brand__mark {
        display: none;
    }

    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .hero__actions {
        width: 100%;
    }

    .hero__actions .button {
        width: 100%;
    }

    .meta-line {
        gap: 4px 10px;
    }

    .meta-line > * + *::before {
        margin-right: 10px;
    }

    .empty-state--podcast {
        align-items: flex-start;
        flex-direction: column;
    }

    .article-meta__item {
        width: calc(50% - 14px);
    }

    .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .private-form {
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .article-share,
    .related,
    .subscribe-panel,
    .theme-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
        font-size: 12pt;
    }

    .article-header,
    .page-header {
        padding: 1cm 0;
    }

    .article-layout {
        display: block;
    }

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