:root {
    --paper: #ffffff;
    --mist: #e7e9e6;
    --sage: #bfc7c2;
    --ink: #333333;
    --text: #666666;
    --muted: #919191;
    --clay: #b14d38;
    --deep: #2f4858;
    --footer: #1a1a1a;
    --line: rgba(0, 0, 0, 0.12);
    --shadow: 10px 40px 40px 10px rgba(0, 0, 0, 0.11);
    --body-font: "Open Sans", Arial, sans-serif;
    --content-font: "Inter", Helvetica, Arial, sans-serif;
    --heading-font: "Sedan", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: #919191;
    text-decoration: none;
}

a:hover {
    color: var(--clay);
}

p {
    margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 10px;
    color: var(--ink);
    font-family: var(--heading-font);
    font-weight: 400;
    line-height: 1.2em;
}

h1 {
    font-size: 68px;
    line-height: 1.1em;
}

h2 {
    font-size: 52px;
}

h3 {
    font-size: 24px;
    line-height: 1.4em;
}

blockquote {
    margin: 30px auto;
    max-width: 780px;
    border-left: 5px solid var(--deep);
    padding: 8px 0 8px 22px;
    color: var(--deep);
    font-family: var(--heading-font);
    font-size: 24px;
    line-height: 1.4em;
}

label {
    display: block;
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--content-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 0;
    background: transparent;
    color: #000000;
    font-family: var(--content-font);
    font-size: 14px;
    line-height: 1.8em;
    padding: 13px 14px;
}

textarea {
    resize: vertical;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 0;
    background: var(--clay);
    color: #ffffff;
    cursor: pointer;
    font-family: var(--content-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.4em;
    padding: 15px 30px;
    text-transform: uppercase;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

button:hover,
.button:hover {
    background: #963d2d;
    color: #ffffff;
    transform: translateY(-1px);
}

.muted-button {
    background: var(--deep);
}

.muted-button:hover {
    background: #233845;
}

.outline-light {
    border: 2px solid #ffffff;
    background: transparent;
}

.outline-light:hover {
    background: #ffffff;
    color: var(--footer);
}

.text-link {
    color: var(--clay);
    font-family: var(--content-font);
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1180px;
    min-height: 80px;
    margin: 0 auto;
    gap: 32px;
}

.brand img {
    width: 170px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-family: var(--content-font);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a {
    color: #333333;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--clay);
}

.donate-link {
    color: var(--clay) !important;
}

.menu-toggle {
    display: none;
    width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--ink);
}

.notice {
    width: min(90%, 1080px);
    margin: 24px auto 0;
    border-left: 5px solid var(--deep);
    background: #f4f6f5;
    color: var(--ink);
    padding: 14px 18px;
    font-family: var(--content-font);
}

.notice-error {
    border-color: var(--clay);
}

.section,
.page-hero {
    padding: 90px 0;
}

.section-muted {
    background: var(--mist);
}

.section-inner {
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
}

.narrow {
    max-width: 760px;
}

.center {
    text-align: center;
}

.section-inner p,
.article-body,
.post-card-body,
.contact-panel,
.details-list {
    font-family: var(--content-font);
    font-size: 15px;
    line-height: 1.7em;
}

.kicker {
    margin-bottom: 10px;
    color: var(--clay);
    font-family: var(--content-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.8em;
    text-transform: uppercase;
}

.subtitle {
    color: var(--deep);
    font-family: var(--heading-font) !important;
    font-size: 24px !important;
    font-style: italic;
    line-height: 1.4em !important;
}

.hero-grid,
.split,
.contact-grid,
.course-grid {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
    gap: 8%;
}

.hero-copy {
    max-width: 620px;
}

.book-cover {
    justify-self: center;
}

.book-cover img,
.book-item img,
.book-detail img,
.portrait-card img,
.course-image,
.single-image-wrap img {
    box-shadow: var(--shadow);
}

.book-cover img {
    width: min(420px, 100%);
    aspect-ratio: 420 / 595;
    object-fit: contain;
}

.portrait-card {
    margin: 0;
    background: var(--sage);
    padding: 8%;
}

.portrait-card img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    border: 10px solid #ffffff;
    object-fit: cover;
    object-position: center top;
}

.portrait-card figcaption {
    padding-top: 18px;
    text-align: center;
}

.portrait-card strong,
.portrait-card span {
    display: block;
    font-family: var(--content-font);
}

.copy-block {
    max-width: 620px;
}

.book-grid,
.post-grid,
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
}

.book-item {
    background: #ffffff;
    padding: 30px;
    text-align: center;
}

.book-item img {
    width: min(260px, 100%);
    aspect-ratio: 420 / 595;
    margin: 0 auto 28px;
    object-fit: contain;
}

.accent-band {
    background: var(--clay);
    color: #ffffff;
}

.accent-band h2,
.accent-band h3,
.accent-band .kicker {
    color: #ffffff;
}

.future-list {
    display: grid;
    gap: 26px;
    margin-top: 30px;
    text-align: left;
}

.future-list article {
    border: 2px solid rgba(255, 255, 255, 0.35);
    padding: 30px;
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.photo-grid figure {
    margin: 0;
    background: var(--mist);
}

.photo-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center center;
}

.photo-grid figcaption {
    padding: 14px 16px;
    color: var(--ink);
    font-family: var(--content-font);
    font-size: 14px;
    font-weight: 700;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.category-filter a {
    border: 2px solid var(--line);
    color: var(--ink);
    font-family: var(--content-font);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 16px;
}

.category-filter a.active,
.category-filter a:hover {
    border-color: var(--clay);
    background: var(--clay);
    color: #ffffff;
}

.category-select-form {
    display: none;
}

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

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

.post-card {
    border: 1px solid #ededed;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-image {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    background: rgba(7, 18, 37, 0.08);
    overflow: hidden;
}

.post-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
}

.post-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px;
}

.post-card-body .text-link {
    margin-top: auto;
    padding-top: 18px;
}

.post-card h2 {
    font-size: 24px;
    line-height: 1.25em;
}

.home-post-grid .post-card h2 {
    font-size: 22px;
}

.post-card h2 a {
    color: var(--ink);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 42px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid var(--line);
    color: var(--ink);
    font-family: var(--content-font);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
}

.pagination a:hover,
.pagination .active {
    border-color: var(--clay);
    background: var(--clay);
    color: #ffffff;
}

.pagination .disabled {
    color: var(--muted);
    opacity: 0.55;
}

.post-meta {
    color: var(--clay);
    font-family: var(--content-font);
    font-size: 13px !important;
    font-weight: 700;
    text-transform: uppercase;
}

.single-image-wrap {
    margin-top: 34px;
}

.single-image-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-height: none;
    object-fit: contain;
    object-position: center top;
}

.article-body {
    padding: 60px 0 90px;
}

.back-row {
    margin-top: 76px;
    text-align: center;
}

.back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
}

.book-detail-list {
    display: grid;
    gap: 70px;
}

.featured-book {
    align-items: center;
}

.book-detail {
    display: grid;
    align-items: center;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 58px;
}

.book-detail img {
    width: 100%;
    aspect-ratio: 420 / 595;
    object-fit: contain;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}

.about-hero .hero-grid {
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.85fr);
}

.portrait-large img {
    width: 100%;
    aspect-ratio: 1 / 1.12;
    box-shadow: var(--shadow);
    object-fit: cover;
    object-position: center top;
}

.about-intro-grid {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 36px;
}

.about-note,
.about-soft-card,
.about-value-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
    padding: 34px;
}

.about-note {
    background:
        linear-gradient(145deg, rgba(23, 36, 72, 0.95), rgba(77, 65, 102, 0.86)),
        var(--indigo);
    color: rgba(255, 248, 232, 0.78);
}

.about-note h3,
.about-soft-card h3 {
    color: #fff6d8;
}

.about-note p {
    color: rgba(255, 248, 232, 0.78);
}

.about-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.about-value-grid article {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.about-value-grid article:hover {
    border-color: rgba(247, 199, 68, 0.58);
    box-shadow: var(--glow);
    transform: translateY(-4px);
}

.about-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.about-list p {
    border-top: 1px solid var(--line);
    margin: 0;
    padding-top: 14px;
}

.about-soft-card {
    align-self: center;
    background:
        linear-gradient(145deg, rgba(7, 18, 37, 0.96), rgba(30, 40, 82, 0.9)),
        var(--deep);
    color: rgba(255, 248, 232, 0.8);
}

.about-soft-card p {
    color: rgba(255, 248, 232, 0.78);
}

.about-soft-card .text-link {
    color: var(--sun);
}

.center-row {
    justify-content: center;
}

.course-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center center;
}

.course-list {
    display: grid;
    gap: 58px;
}

.course-grid {
    grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
}

.course-grid .course-card:only-child {
    grid-column: 1 / -1;
}

.course-card {
    background: var(--mist);
    padding: 44px;
}

.details-list {
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    margin: 22px 0;
    padding: 18px 0 6px;
}

.contact-grid {
    align-items: start;
    grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.75fr);
}

.contact-form {
    display: grid;
    gap: 14px;
}

.contact-panel {
    background: var(--mist);
    padding: 40px;
}

.empty-state {
    border: 2px solid var(--line);
    padding: 24px;
    text-align: center;
}

.author-band {
    background: var(--footer);
    color: #e0e0e0;
    padding: 90px 0;
}

.author-band h2 {
    color: #ffffff;
}

.footer-portrait {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    filter: saturate(0%);
    object-fit: cover;
}

.site-footer {
    background: #111111;
    color: rgba(255, 255, 255, 0.68);
    padding: 60px 0 24px;
}

.footer-grid {
    display: grid;
    width: 80%;
    max-width: 1080px;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 42px;
}

.footer-logo {
    width: 150px;
    margin-bottom: 18px;
    filter: saturate(0%) brightness(1.6);
}

.site-footer h3 {
    color: #ffffff;
    font-family: var(--content-font);
    font-size: 16px;
    font-weight: 700;
}

.site-footer a {
    color: #ffffff;
}

.site-footer .newsletter-form input {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    caret-color: #ffffff;
}

.site-footer .newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.72);
    opacity: 1;
}

.site-footer .newsletter-form input:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    outline: 0;
}

.inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.inline-form button {
    min-height: 48px;
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    max-width: 1080px;
    margin: 42px auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    gap: 18px;
    padding-top: 22px;
    font-size: 13px;
}

.footer-bottom span {
    margin-right: auto;
}

@media (max-width: 980px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3,
    blockquote,
    .subtitle {
        font-size: 16px !important;
    }

    .section,
    .page-hero,
    .author-band {
        padding: 68px 0;
    }

    .header-inner,
    .section-inner,
    .footer-grid,
    .footer-bottom {
        width: 88%;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 80px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        border-top: 1px solid #eeeeee;
        padding: 15px 6%;
    }

    .hero-grid,
    .split,
    .contact-grid,
    .course-grid,
    .about-intro-grid,
    .about-hero .hero-grid,
    .book-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-grid,
    .about-value-grid,
    .photo-grid.large,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .book-detail img {
        width: min(300px, 100%);
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }

    .section,
    .page-hero,
    .author-band {
        padding: 48px 0;
    }

    .brand img {
        width: 138px;
    }

    .header-inner {
        min-height: 72px;
    }

    .site-nav {
        top: 72px;
    }

    .section-inner p,
    .article-body,
    .post-card-body,
    .contact-panel,
    .details-list {
        font-size: 14px;
    }

    .book-grid,
    .post-grid,
    .about-value-grid,
    .photo-grid,
    .photo-grid.large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .book-item,
    .course-card,
    .contact-panel {
        padding: 24px;
    }

    .future-list article {
        padding: 22px;
    }

    .section-title-row,
    .footer-bottom,
    .inline-form {
        display: block;
    }

    .inline-form button {
        width: 100%;
        margin-top: 10px;
    }

    .button-row .button {
        width: 100%;
    }
}

/* Modern gold-and-midnight frontend refresh */
:root {
    --paper: #fff8e8;
    --mist: #f1e4c2;
    --sage: #40546d;
    --ink: #162033;
    --text: #4f5563;
    --muted: #8b8590;
    --clay: #d98826;
    --deep: #071225;
    --footer: #050914;
    --line: rgba(209, 154, 48, 0.22);
    --gold: #f7c744;
    --sun: #ffdd72;
    --amber: #d97324;
    --indigo: #172448;
    --violet: #4d4166;
    --sky: #7ca5c7;
    --glow: 0 18px 48px rgba(217, 136, 38, 0.24);
    --shadow: 0 22px 60px rgba(7, 18, 37, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        linear-gradient(180deg, rgba(255, 248, 232, 0.94), rgba(255, 248, 232, 1) 34%),
        #fff8e8;
    color: var(--text);
}

body::selection {
    background: var(--gold);
    color: var(--deep);
}

a {
    color: var(--amber);
}

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

h1,
h2,
h3,
h4 {
    color: var(--ink);
}

h1 {
    font-size: clamp(42px, 7vw, 84px);
}

h2 {
    font-size: clamp(32px, 4.6vw, 58px);
}

h3 {
    font-size: clamp(22px, 2.2vw, 28px);
}

blockquote {
    position: relative;
    border-left: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--indigo);
    padding: 28px 0;
}

input,
select,
textarea {
    border: 1px solid rgba(22, 32, 51, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--clay);
    outline: 3px solid rgba(247, 199, 68, 0.22);
}

button,
.button {
    min-height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1d1404;
    box-shadow: 0 14px 34px rgba(217, 136, 38, 0.26);
}

button:hover,
.button:hover {
    background: linear-gradient(135deg, var(--sun), #ec8a2e);
    color: #1d1404;
    transform: translateY(-2px);
}

.muted-button {
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: #fff7dc;
    box-shadow: 0 14px 34px rgba(23, 36, 72, 0.22);
}

.muted-button:hover {
    background: linear-gradient(135deg, #24366a, #62537c);
    color: #ffffff;
}

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

.text-link:hover {
    color: var(--gold);
}

.site-header {
    background: rgba(5, 9, 20, 0.84);
    border-bottom: 1px solid rgba(247, 199, 68, 0.22);
    box-shadow: 0 14px 40px rgba(5, 9, 20, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 84px;
}

.brand img {
    width: 188px;
    filter: drop-shadow(0 0 16px rgba(247, 199, 68, 0.28));
}

.site-nav a {
    position: relative;
    color: rgba(255, 248, 232, 0.82);
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    content: "";
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a.active,
.site-nav a:hover,
.donate-link {
    color: var(--gold) !important;
}

.site-nav a.active::after,
.site-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.menu-toggle span {
    background: var(--gold);
}

.notice {
    border-left-color: var(--gold);
    border-radius: 8px;
    background: #fff7df;
    box-shadow: var(--shadow);
}

.section,
.page-hero {
    position: relative;
    overflow: hidden;
}

.section {
    background: var(--paper);
}

.section-muted {
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.96), rgba(241, 228, 194, 0.88)),
        var(--mist);
}

.section-inner {
    max-width: 1180px;
}

.kicker {
    color: var(--amber);
    letter-spacing: 1.6px;
}

.subtitle {
    color: var(--gold);
}

.hero,
.page-hero {
    background:
        linear-gradient(120deg, rgba(5, 9, 20, 0.96), rgba(18, 34, 70, 0.9) 48%, rgba(83, 63, 82, 0.72)),
        var(--deep);
    color: rgba(255, 248, 232, 0.82);
}

.hero {
    display: grid;
    min-height: calc(100vh - 84px);
    align-items: center;
    padding: 74px 0 88px;
}

.hero::before,
.page-hero::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 199, 68, 0.16), transparent 42%);
    content: "";
    opacity: 0.72;
    pointer-events: none;
}

.page-hero::before {
    background-position: right 12% center;
    background-size: min(36vw, 360px) auto;
    opacity: 0.22;
}

.hero .section-inner,
.page-hero .section-inner {
    position: relative;
    z-index: 1;
}

.hero-grid {
    grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.72fr);
    gap: 7%;
}

.hero-copy {
    order: 1;
    max-width: 670px;
}

.book-cover {
    order: 2;
}

.hero-copy h1,
.hero-copy h2,
.hero-copy h3,
.page-hero h1,
.page-hero h2,
.page-hero h3,
.accent-band h2,
.accent-band h3,
.accent-band .kicker {
    color: #fff6d8;
}

.hero-copy p,
.page-hero p {
    color: rgba(255, 248, 232, 0.82);
}

.hero-copy .kicker {
    color: var(--sun);
}

.hero-copy .button-row {
    margin-top: 28px;
}

.hero-copy .muted-button {
    background: rgba(255, 255, 255, 0.12);
    color: #fff7dc;
    box-shadow: inset 0 0 0 1px rgba(255, 221, 114, 0.34);
}

.hero-copy .muted-button:hover {
    background: rgba(255, 221, 114, 0.16);
    color: #ffffff;
}

.accent-band .muted-button {
    background: rgba(255, 255, 255, 0.12);
    color: #fff7dc;
    box-shadow: inset 0 0 0 1px rgba(255, 221, 114, 0.34);
}

.accent-band .muted-button:hover {
    background: rgba(255, 221, 114, 0.16);
    color: #ffffff;
}

.book-cover img {
    width: min(390px, 100%);
    border: 1px solid rgba(255, 221, 114, 0.34);
    border-radius: 8px;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42), 0 0 80px rgba(247, 199, 68, 0.18);
}

.copy-block,
.contact-form,
.contact-panel,
.course-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow);
}

.copy-block {
    padding: 38px;
}

.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-field {
    border: 1px solid rgba(209, 154, 48, 0.26);
    border-radius: 8px;
    background: rgba(255, 248, 232, 0.58);
    padding: 18px;
}

.captcha-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-family: var(--content-font);
    font-weight: 800;
}

.captcha-field input {
    max-width: 180px;
}

.captcha-field p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.portrait-card {
    border: 1px solid rgba(247, 199, 68, 0.22);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(23, 36, 72, 0.94), rgba(77, 65, 102, 0.84)),
        var(--indigo);
    box-shadow: var(--shadow);
}

.portrait-card img,
.portrait-large img,
.course-image,
.single-image-wrap img,
.book-detail img {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.portrait-card figcaption,
.portrait-card strong {
    color: #fff7dc;
}

.portrait-card span {
    color: rgba(255, 248, 232, 0.72);
}

.book-grid,
.post-grid,
.photo-grid {
    gap: 28px;
}

.book-item,
.post-card,
.photo-grid figure,
.future-list article {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 42px rgba(7, 18, 37, 0.1);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.book-item:hover,
.post-card:hover,
.photo-grid figure:hover,
.future-list article:hover {
    border-color: rgba(247, 199, 68, 0.58);
    box-shadow: var(--glow);
    transform: translateY(-4px);
}

.book-item {
    padding: 32px;
}

.book-item img,
.book-detail img {
    filter: saturate(1.08) contrast(1.02);
}

.accent-band {
    background:
        linear-gradient(135deg, rgba(7, 18, 37, 0.98), rgba(30, 40, 82, 0.94) 52%, rgba(102, 61, 48, 0.86)),
        var(--deep);
    color: rgba(255, 248, 232, 0.82);
}

.future-list article {
    background: rgba(255, 248, 232, 0.08);
    border-color: rgba(255, 221, 114, 0.26);
    color: rgba(255, 248, 232, 0.82);
}

.future-list article p {
    color: rgba(255, 248, 232, 0.76);
}

.photo-grid figure {
    background: #fff7df;
}

.photo-grid img,
.post-card img {
    filter: saturate(1.06) contrast(1.03);
    transition: transform 260ms ease, filter 260ms ease;
}

.photo-grid figure:hover img {
    filter: saturate(1.14) contrast(1.05);
    transform: scale(1.035);
}

.post-card:hover img {
    filter: saturate(1.14) contrast(1.05);
    transform: none;
}

.photo-grid figcaption {
    color: var(--ink);
}

.category-filter a,
.pagination a,
.pagination span {
    border-color: var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.category-filter a.active,
.category-filter a:hover,
.pagination a:hover,
.pagination .active {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1d1404;
}

.category-select-form label {
    display: block;
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--content-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.category-select-form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(209, 154, 48, 0.32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 232, 0.9)),
        #ffffff;
    color: var(--ink);
    font-family: var(--content-font);
    font-size: 15px;
    font-weight: 700;
    padding: 0 44px 0 16px;
}

.category-select-form select:focus {
    border-color: var(--gold);
    outline: 3px solid rgba(247, 199, 68, 0.2);
}

.category-select-form button {
    display: none;
}

.post-card h2 a {
    color: var(--ink);
}

.post-meta {
    color: var(--amber);
}

.post-hero-excerpt {
    max-width: 780px;
    margin: 18px auto 0;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
}

.article-body {
    color: var(--text);
    font-size: 16px;
}

.article-body p {
    margin: 0 0 22px;
}

.article-body h2,
.article-body h3 {
    margin: 38px 0 16px;
    color: var(--ink);
    font-family: var(--heading-font);
    line-height: 1.25;
}

.article-body h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.article-body h3 {
    font-size: clamp(22px, 2vw, 28px);
}

.article-body ul,
.article-body ol {
    margin: 0 0 26px 22px;
    padding: 0;
}

.article-body li {
    margin: 8px 0;
}

.article-body a {
    color: var(--amber);
    font-weight: 700;
}

.article-body a:hover {
    color: var(--gold);
}

.article-body .back-row {
    margin: 96px 0 0;
    text-align: center;
}

.article-body .back-button,
.article-body .back-button:hover {
    color: #1d1404;
}

.article-body blockquote {
    max-width: none;
}

.book-detail {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow);
    padding: 34px;
}

.about-hero .portrait-large img {
    border: 1px solid rgba(255, 221, 114, 0.28);
}

.course-card,
.contact-panel,
.contact-form {
    padding: 40px;
}

.details-list {
    border-color: var(--line);
}

.empty-state {
    border-color: var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

.author-band {
    background:
        linear-gradient(135deg, rgba(5, 9, 20, 0.98), rgba(23, 36, 72, 0.94)),
        var(--footer);
    color: rgba(255, 248, 232, 0.78);
}

.author-band h2 {
    color: #fff6d8;
}

.footer-portrait {
    border: 2px solid rgba(255, 221, 114, 0.45);
    border-radius: 50%;
    filter: saturate(0.95);
}

.site-footer {
    background:
        linear-gradient(180deg, #071225, #050914),
        var(--footer);
    color: rgba(255, 248, 232, 0.72);
}

.site-footer h3 {
    color: #fff6d8;
}

.site-footer a {
    color: #ffe28a;
}

.footer-logo {
    filter: drop-shadow(0 0 18px rgba(247, 199, 68, 0.3));
}

.site-footer .newsletter-form input {
    border-color: rgba(255, 221, 114, 0.38);
    background: rgba(255, 248, 232, 0.1);
}

.site-footer .newsletter-form input:focus {
    border-color: var(--gold);
    outline: 3px solid rgba(247, 199, 68, 0.18);
}

.footer-bottom {
    border-top-color: rgba(255, 221, 114, 0.18);
}

.site-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 118px 0 30px;
    background:
        linear-gradient(180deg, rgba(15, 31, 63, 0.9) 0%, #071225 38%, #050914 100%),
        var(--footer);
    box-shadow: inset 0 1px 0 rgba(255, 221, 114, 0.14);
}

.site-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    left: 0;
    height: 155px;
    background: linear-gradient(180deg, rgba(255, 248, 232, 0.3), rgba(255, 248, 232, 0));
    pointer-events: none;
}

.footer-grid,
.footer-bottom {
    position: relative;
    z-index: 1;
    width: min(88%, 1180px);
    max-width: none;
}

.footer-grid {
    align-items: start;
    grid-template-columns: minmax(220px, 1.25fr) minmax(140px, 0.75fr) minmax(210px, 1fr) minmax(280px, 1.18fr);
    gap: clamp(28px, 4vw, 56px);
}

.footer-brand-block {
    max-width: 320px;
}

.footer-lead,
.footer-newsletter-block p,
.footer-contact-block p {
    color: rgba(255, 248, 232, 0.72);
}

.footer-lead {
    margin: 18px 0 0;
    font-size: 15px;
}

.site-footer h3 {
    margin: 0 0 18px;
    color: #fff6d8;
    font-family: var(--content-font);
    font-size: 13px;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-links a,
.footer-contact-block a,
.footer-bottom a {
    color: rgba(255, 226, 138, 0.92);
    font-weight: 700;
}

.footer-links a:hover,
.footer-contact-block a:hover,
.footer-bottom a:hover {
    color: var(--gold);
}

.footer-contact-block p {
    margin: 0 0 17px;
}

.footer-contact-block span,
.footer-newsletter-block label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 221, 114, 0.66);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.footer-newsletter-block {
    border: 1px solid rgba(255, 221, 114, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 248, 232, 0.1), rgba(124, 165, 199, 0.06)),
        rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
    padding: 26px;
}

.footer-newsletter-block p {
    margin: 0 0 18px;
}

.site-footer .newsletter-form input {
    min-height: 48px;
    border-color: rgba(255, 221, 114, 0.36);
    border-radius: 999px;
    background: rgba(255, 248, 232, 0.1);
    color: #fff8e8;
    padding: 0 16px;
}

.site-footer .newsletter-form input::placeholder {
    color: rgba(255, 248, 232, 0.6);
}

.site-footer .newsletter-form input:focus {
    border-color: var(--gold);
    background: rgba(255, 248, 232, 0.15);
    outline: 3px solid rgba(247, 199, 68, 0.18);
}

.site-footer .inline-form button {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    box-shadow: 0 14px 30px rgba(217, 115, 36, 0.22);
    color: #1d1404;
    padding: 0 22px;
}

.site-footer .inline-form button:hover {
    background: linear-gradient(135deg, var(--sun), var(--gold));
    color: #1d1404;
    transform: translateY(-1px);
}

.footer-bottom {
    align-items: center;
    margin-top: 56px;
    border-top: 1px solid rgba(255, 221, 114, 0.16);
    color: rgba(255, 248, 232, 0.55);
}

.footer-bottom span {
    margin-right: auto;
}

@media (max-width: 980px) {
    .site-footer {
        padding-top: 100px;
    }

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

    .footer-newsletter-block {
        grid-column: span 2;
    }

    .site-nav {
        background: rgba(5, 9, 20, 0.98);
        border-bottom: 1px solid rgba(247, 199, 68, 0.2);
    }

    .site-nav a {
        border-top-color: rgba(255, 221, 114, 0.14);
        color: rgba(255, 248, 232, 0.88);
    }

    .hero {
        min-height: auto;
        padding: 64px 0;
    }

    .hero-grid,
    .about-hero .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .book-cover {
        order: initial;
    }

    .hero-copy {
        order: 1;
    }

    .book-cover {
        order: 2;
    }

    .book-cover {
        justify-self: start;
    }

    .book-cover img {
        width: min(320px, 100%);
    }

    .hero::before,
    .page-hero::before {
        background-size: min(82vw, 420px) auto;
        opacity: 0.22;
    }

    .copy-block,
    .about-note,
    .about-soft-card,
    .about-value-grid article,
    .book-detail,
    .contact-form,
    .contact-panel,
    .course-card {
        padding: 28px;
    }
}

@media (max-width: 767px) {
    .site-footer {
        padding: 84px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-newsletter-block {
        grid-column: auto;
        padding: 22px;
    }

    .site-footer .inline-form {
        display: grid;
        grid-template-columns: 1fr;
    }

    .site-footer .inline-form button {
        width: 100%;
        margin-top: 0;
    }

    .footer-bottom {
        display: grid;
        gap: 10px;
    }

    .footer-bottom span {
        margin-right: 0;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 28px;
    }

    h3,
    blockquote,
    .subtitle {
        font-size: 20px !important;
    }

    .header-inner {
        min-height: 72px;
    }

    .brand img {
        width: 150px;
    }

    .site-nav {
        top: 72px;
    }

    .hero {
        padding: 46px 0 54px;
    }

    .hero-copy .button-row {
        display: grid;
    }

    .category-filter {
        display: none;
    }

    .category-select-form {
        display: block;
        margin-bottom: 30px;
    }

    .book-cover img {
        width: min(260px, 100%);
    }

    .copy-block,
    .about-note,
    .about-soft-card,
    .about-value-grid article,
    .book-detail,
    .contact-form,
    .contact-panel,
    .course-card {
        padding: 22px;
    }

    .pagination a,
    .pagination span {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 11px;
    }
}

.maintenance-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(5, 9, 20, 0.96), rgba(23, 36, 72, 0.92) 54%, rgba(102, 61, 48, 0.78)),
        var(--footer);
    color: rgba(255, 248, 232, 0.82);
}

.maintenance-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 40px 20px;
}

.maintenance-card {
    position: relative;
    overflow: hidden;
    width: min(92vw, 760px);
    border: 1px solid rgba(255, 221, 114, 0.26);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 248, 232, 0.1), rgba(124, 165, 199, 0.06)),
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35), 0 0 80px rgba(247, 199, 68, 0.12);
    padding: clamp(34px, 6vw, 66px);
    text-align: center;
}

.maintenance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(247, 199, 68, 0.22), transparent 44%);
    pointer-events: none;
}

.maintenance-logo,
.maintenance-card .kicker,
.maintenance-card h1,
.maintenance-text,
.maintenance-note,
.maintenance-card .button {
    position: relative;
    z-index: 1;
}

.maintenance-logo {
    width: min(210px, 58vw);
    margin: 0 auto 28px;
    filter: drop-shadow(0 0 18px rgba(247, 199, 68, 0.3));
}

.maintenance-card .kicker {
    margin: 0 0 14px;
    color: var(--sun);
    font-family: var(--content-font);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.maintenance-card h1 {
    margin: 0 auto 22px;
    max-width: 660px;
    color: #fff6d8;
    font-size: clamp(34px, 6vw, 64px);
}

.maintenance-text {
    max-width: 620px;
    margin: 0 auto;
    color: rgba(255, 248, 232, 0.82);
    font-family: var(--content-font);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
}

.maintenance-note {
    margin: 26px auto 0;
    color: rgba(255, 221, 114, 0.84);
    font-weight: 700;
}

.maintenance-card .button {
    margin-top: 28px;
}

.maintenance-contact {
    position: relative;
    z-index: 1;
    margin-top: 28px;
}

.maintenance-contact summary {
    list-style: none;
}

.maintenance-contact summary::-webkit-details-marker {
    display: none;
}

.maintenance-contact[open] .maintenance-contact-toggle {
    margin-bottom: 24px;
}

.maintenance-contact-form {
    display: grid;
    gap: 12px;
    max-width: 540px;
    margin: 0 auto;
    border: 1px solid rgba(255, 221, 114, 0.2);
    border-radius: 8px;
    background: rgba(255, 248, 232, 0.08);
    padding: clamp(20px, 4vw, 28px);
    text-align: left;
}

.maintenance-contact-form label {
    color: rgba(255, 248, 232, 0.88);
    font-family: var(--content-font);
    font-size: 13px;
    font-weight: 800;
}

.maintenance-contact-form input,
.maintenance-contact-form textarea {
    border-color: rgba(255, 221, 114, 0.3);
    background: rgba(255, 248, 232, 0.12);
    color: #fff8e8;
}

.maintenance-contact-form input:focus,
.maintenance-contact-form textarea:focus {
    border-color: var(--gold);
    outline-color: rgba(247, 199, 68, 0.24);
}

.maintenance-contact-form .button {
    width: 100%;
    margin-top: 8px;
}

.maintenance-captcha {
    border-color: rgba(255, 221, 114, 0.22);
    background: rgba(255, 248, 232, 0.09);
}

.maintenance-captcha label,
.maintenance-captcha p {
    color: rgba(255, 248, 232, 0.78);
}

.maintenance-notice {
    position: relative;
    z-index: 1;
    max-width: 540px;
    margin: 24px auto 0;
    border: 1px solid rgba(255, 221, 114, 0.22);
    border-radius: 8px;
    background: rgba(255, 248, 232, 0.1);
    color: rgba(255, 248, 232, 0.9);
    padding: 14px 16px;
}

.maintenance-notice.error {
    border-color: rgba(255, 130, 130, 0.38);
}
