:root {
    --ink: #071f1c;
    --ink-soft: #143a35;
    --paper: #f4efe5;
    --paper-warm: #e8ddca;
    --ivory: #fff8ea;
    --brass: #b99339;
    --brass-soft: #d4b15b;
    --cyan: #69d6d2;
    --line: rgba(255, 248, 234, 0.18);
    --shadow: rgba(0, 0, 0, 0.28);
    --max: 1180px;
    --radius: 8px;
    --theme-font-display: "Perpetua Titling MT", "Copperplate Gothic", "Times New Roman", serif;
    --theme-font-body: Georgia, "Times New Roman", serif;
    --font-ui: "Gill Sans", "Gill Sans MT", Calibri, Arial, sans-serif;
    --font-display: var(--gh-font-heading, var(--theme-font-display));
    --font-body: var(--gh-font-body, var(--theme-font-body));
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
}

body {
    margin: 0;
    color: var(--paper);
    background:
        radial-gradient(circle at 72% 12%, rgba(105, 214, 210, 0.12), transparent 24rem),
        linear-gradient(180deg, #061815 0%, #08231f 42%, #071b18 100%);
    font-family: var(--font-body);
    line-height: 1.58;
    letter-spacing: 0;
}

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

a {
    color: inherit;
    text-decoration-color: rgba(212, 177, 91, 0.65);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--ivory);
    text-decoration-color: var(--cyan);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -10rem;
    z-index: 10;
    padding: 0.6rem 0.8rem;
    background: var(--ivory);
    color: var(--ink);
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgba(255, 248, 234, 0.12);
    background: rgba(7, 31, 28, 0.88);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    width: min(100% - 2rem, var(--max));
    min-height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
}

.site-brand {
    display: inline-flex;
    gap: 0.8rem;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.site-brand__mark {
    width: 112px;
    height: auto;
}

.site-brand__title {
    font-family: var(--font-ui);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--paper-warm);
    white-space: nowrap;
}

.site-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a,
.site-header__cta,
.text-link,
.button {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-nav a,
.site-header__cta {
    text-decoration: none;
    color: rgba(255, 248, 234, 0.78);
}

.site-header__cta {
    padding: 0.58rem 0.8rem;
    border: 1px solid rgba(212, 177, 91, 0.6);
    border-radius: var(--radius);
}

.hero {
    position: relative;
    min-height: clamp(560px, 78vh, 760px);
    display: grid;
    align-items: end;
    isolation: isolate;
    border-bottom: 1px solid rgba(255, 248, 234, 0.12);
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--hero-image);
    background-position: center 36%;
    background-size: cover;
    filter: saturate(0.9) contrast(1.08);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(7, 31, 28, 0.28) 0%, rgba(7, 31, 28, 0.18) 42%, rgba(7, 31, 28, 0.84) 100%),
        linear-gradient(90deg, rgba(7, 31, 28, 0.82) 0%, rgba(7, 31, 28, 0.48) 44%, rgba(7, 31, 28, 0.08) 100%);
}

.hero__content {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 7rem 0 5rem;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--brass-soft);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--ivory);
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.05;
}

h1 {
    max-width: 780px;
    font-size: clamp(3.2rem, 8vw, 7.2rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
    font-size: 1.55rem;
}

.hero__dek {
    max-width: 680px;
    margin: 1.2rem 0 0;
    color: rgba(255, 248, 234, 0.86);
    font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.hero__actions,
.subscribe-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero__actions {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.78rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
}

.button--primary {
    border: 1px solid var(--brass-soft);
    color: var(--ink);
    background: var(--brass-soft);
}

.button--secondary {
    border: 1px solid rgba(255, 248, 234, 0.32);
    color: var(--ivory);
    background: rgba(255, 248, 234, 0.06);
}

.section {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.section--intro {
    border-bottom: 1px solid rgba(255, 248, 234, 0.1);
}

.section__grid {
    display: grid;
    gap: 2rem;
}

.section__grid--intro {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

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

.section__header,
.site-footer__inner,
.audio-band {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.prose,
.section__copy,
.post-content {
    color: rgba(255, 248, 234, 0.82);
    font-size: 1.08rem;
}

.prose p,
.section__copy p,
.post-content p {
    margin: 0 0 1.15rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.post-card,
.feature-card,
.empty-state {
    border: 1px solid rgba(255, 248, 234, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 248, 234, 0.055);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.post-card__image {
    display: block;
    aspect-ratio: 16 / 10;
    background: rgba(255, 248, 234, 0.06);
}

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

.post-card__body,
.feature-card,
.empty-state {
    padding: 1.2rem;
}

.post-card__meta,
.post-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: rgba(255, 248, 234, 0.62);
    font-family: var(--font-ui);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-card h3 a {
    text-decoration: none;
}

.post-card p,
.feature-card p,
.empty-state p {
    color: rgba(255, 248, 234, 0.72);
}

.section--split {
    display: grid;
    grid-template-columns: minmax(240px, 390px) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.book-panel img,
.book-hero__cover img {
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

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

.audio-band {
    padding: 1rem;
    border: 1px solid rgba(255, 248, 234, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 248, 234, 0.055);
}

.audio-band img {
    width: min(48%, 520px);
    border-radius: 6px;
}

.signup-panel {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto clamp(3rem, 7vw, 6rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(212, 177, 91, 0.26);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(212, 177, 91, 0.13), rgba(105, 214, 210, 0.08)),
        rgba(255, 248, 234, 0.055);
}

.subscribe-form label {
    display: block;
    margin-bottom: 0.45rem;
    color: rgba(255, 248, 234, 0.78);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.subscribe-form input {
    min-height: 44px;
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(255, 248, 234, 0.26);
    border-radius: var(--radius);
    color: var(--ivory);
    background: rgba(0, 0, 0, 0.2);
}

.subscribe-form__message,
.subscribe-form__success {
    display: none;
    margin: 0.7rem 0 0;
    font-size: 0.92rem;
}

.subscribe-form.success .subscribe-form__success {
    display: block;
    color: var(--cyan);
}

.subscribe-form.error .subscribe-form__message {
    display: block;
    color: #f0b1a2;
}

.page-hero,
.book-hero,
.newsletter-page {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.page-hero--compact {
    max-width: 900px;
    margin-left: max(1rem, calc((100vw - var(--max)) / 2));
}

.page-hero p,
.book-hero p,
.newsletter-page p {
    max-width: 700px;
    color: rgba(255, 248, 234, 0.78);
    font-size: 1.12rem;
}

.page-hero--audio img {
    width: min(100%, 760px);
    margin-bottom: 2rem;
    border-radius: var(--radius);
}

.book-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.newsletter-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.newsletter-page__form {
    padding: 1.4rem;
    border: 1px solid rgba(255, 248, 234, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 248, 234, 0.055);
}

.post {
    width: min(100% - 2rem, 820px);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.post-feature {
    margin: 0 0 2.5rem;
}

.post-feature img {
    width: 100%;
    border-radius: var(--radius);
}

.post-feature figcaption {
    margin-top: 0.5rem;
    color: rgba(255, 248, 234, 0.58);
    font-size: 0.88rem;
}

.post-content {
    font-size: 1.18rem;
}

.post-content h2,
.post-content h3 {
    margin: 2.4rem 0 0.8rem;
}

.post-content a {
    color: var(--ivory);
}

.post-content .kg-width-wide {
    width: min(100vw - 2rem, 1040px);
    margin-left: 50%;
    transform: translateX(-50%);
}

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

.post-content .kg-width-wide img,
.post-content .kg-width-full img {
    width: 100%;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    font-family: var(--font-ui);
}

.site-footer {
    border-top: 1px solid rgba(255, 248, 234, 0.12);
}

.site-footer__inner {
    width: min(100% - 2rem, var(--max));
    margin: 0 auto;
    padding: 2rem 0;
    align-items: flex-start;
}

.site-footer img {
    width: 72px;
    margin-bottom: 0.8rem;
}

.site-footer p {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 248, 234, 0.66);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.8rem 1.2rem;
    font-family: var(--font-ui);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 880px) {
    .site-header__inner {
        grid-template-columns: 1fr auto;
        gap: 1rem;
        padding: 0.85rem 0;
    }

    .site-nav {
        grid-column: 1 / -1;
        order: 3;
    }

    .site-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.1rem;
    }

    .site-brand__title {
        display: none;
    }

    .hero {
        min-height: 620px;
    }

    .section__grid--intro,
    .section__grid--cards,
    .card-grid,
    .section--split,
    .signup-panel,
    .book-hero,
    .newsletter-page {
        grid-template-columns: 1fr;
    }

    .audio-band,
    .section__header,
    .site-footer__inner {
        display: grid;
    }

    .audio-band img {
        width: 100%;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-header__cta {
        display: none;
    }

    .site-brand__mark {
        width: 96px;
    }

    h1 {
        font-size: 3rem;
    }

    .hero__content {
        padding-bottom: 3.5rem;
    }

    .button {
        width: 100%;
    }
}
