:root {
    --bg: #090909;
    --bg-soft: #14110f;
    --panel: rgba(20, 17, 15, 0.82);
    --panel-2: rgba(32, 26, 22, 0.88);
    --text: #f4ecdf;
    --muted: #c7b8a2;
    --line: rgba(244, 236, 223, 0.14);
    --accent: #b14d2e;
    --accent-2: #d0aa67;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 28px;
    --radius-small: 18px;
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
    background:
        radial-gradient(circle at 15% 15%, rgba(177, 77, 46, 0.18), transparent 26%),
        radial-gradient(circle at 85% 18%, rgba(208, 170, 103, 0.14), transparent 24%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05), transparent 30%),
        linear-gradient(135deg, #080808 0%, #151210 48%, #0a0908 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

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

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 999;
    background: #fff;
    color: #000;
    padding: 0.7rem 1rem;
    border-radius: 10px;
}

.shell {
    width: min(var(--max), calc(100% - 2rem));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.site-header {
    padding: 1rem 0 0;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.58);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    min-width: 0;
}

.brand strong {
    font-size: 1rem;
    letter-spacing: 0.28em;
    font-weight: 700;
}

.brand span {
    font-size: 0.68rem;
    color: var(--muted);
}

.top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.6rem 0.9rem;
    font-size: 0.8rem;
    color: var(--muted);
    transition: 0.2s ease;
}

.top-links a:hover,
.top-links a:focus-visible {
    color: var(--text);
    border-color: rgba(208, 170, 103, 0.4);
    transform: translateY(-1px);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: stretch;
    padding: 2.4rem 0 1.5rem;
}

.frame {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(28, 24, 21, 0.9), rgba(15, 13, 12, 0.92));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(177, 77, 46, 0.12), transparent 40%),
        linear-gradient(300deg, rgba(208, 170, 103, 0.08), transparent 40%);
    pointer-events: none;
}

.frame-inner {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.74rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    max-width: 8ch;
}

.hero-lead {
    max-width: 60ch;
    font-size: 1.05rem;
    color: var(--muted);
}

.hero-copy::after {
    content: "THS";
    position: absolute;
    right: -0.2rem;
    bottom: -0.6rem;
    font-size: clamp(5rem, 16vw, 12rem);
    line-height: 0.8;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.04);
    pointer-events: none;
}

.lang-panel .frame-inner,
.buy-box .frame-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.2rem;
}

.lang-card {
    display: block;
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.2rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
        linear-gradient(145deg, rgba(177,77,46,0.12), transparent 55%);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lang-card:hover,
.lang-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(208, 170, 103, 0.4);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.lang-card small {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: var(--accent-2);
    margin-bottom: 0.8rem;
}

.lang-card strong {
    display: block;
    font-size: 1.5rem;
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

.lang-card span {
    color: var(--muted);
    font-size: 0.94rem;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    color: var(--muted);
    font-size: 0.8rem;
}

.pill.active {
    color: #fff;
    border-color: rgba(208, 170, 103, 0.5);
    background: rgba(177, 77, 46, 0.24);
}

.section {
    padding: 1rem 0 1.6rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent-2);
    font-size: 0.72rem;
    margin-bottom: 0.8rem;
}

.book-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.cover-block {
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    border: 1px solid var(--line);
    padding: 1.1rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(177, 77, 46, 0.26), transparent 28%),
        linear-gradient(165deg, #1a1512 0%, #0d0c0b 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cover-block::after {
    content: "Harold Smith";
    position: absolute;
    top: 1rem;
    right: 0.4rem;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
}

.cover-top {
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
}

.cover-title {
    font-size: 2rem;
    line-height: 1.02;
    max-width: 7ch;
}

.cover-bottom {
    font-size: 0.84rem;
    color: var(--muted);
    max-width: 14ch;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.9rem 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    transition: 0.2s ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--accent), #7f3017);
    color: #fff;
    box-shadow: 0 16px 35px rgba(177, 77, 46, 0.28);
}

.button-secondary {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255,255,255,0.02);
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.meta-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
}

.meta-card strong {
    display: block;
    font-size: 0.74rem;
    color: var(--accent-2);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.meta-card span {
    color: var(--muted);
    font-size: 0.96rem;
}

.book-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding: 2.2rem 0 1rem;
    align-items: stretch;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.breadcrumb a {
    color: var(--muted);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.lang-switch a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
}

.lang-switch a.active {
    color: #fff;
    background: rgba(177, 77, 46, 0.25);
    border-color: rgba(208, 170, 103, 0.45);
}

.buy-box h2,
.side-card h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.buy-box p,
.side-card p {
    color: var(--muted);
}

.statements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.statement {
    border-left: 3px solid rgba(208, 170, 103, 0.45);
    padding-left: 1rem;
    color: var(--muted);
    font-size: 1.02rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.prose-box .frame-inner,
.side-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prose p {
    color: var(--text);
    margin-bottom: 1rem;
}

.prose .lead-block {
    font-size: 1.16rem;
    color: var(--text);
}

.pull-quote {
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1.05;
    color: var(--text);
    max-width: 12ch;
    margin: 0 0 1.2rem;
}

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

.feature {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
}

.feature strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
}

.side-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.2rem;
    background: rgba(255,255,255,0.02);
}

.side-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.side-links a {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.8rem 0.95rem;
    color: var(--muted);
    transition: 0.2s ease;
}

.side-links a:hover,
.side-links a:focus-visible {
    color: var(--text);
    border-color: rgba(208, 170, 103, 0.35);
}

.site-footer {
    padding: 0 0 2rem;
}

.footer-box {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(10, 10, 10, 0.52);
    padding: 1rem 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--text);
}

.notice {
    border: 1px solid rgba(208, 170, 103, 0.28);
    background: rgba(208, 170, 103, 0.08);
    border-radius: 20px;
    padding: 1rem;
    color: var(--text);
}

@media (max-width: 960px) {
    .hero,
    .book-hero,
    .content-grid,
    .book-card {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: none;
    }

    .meta-grid,
    .feature-grid,
    .language-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    body::before {
        opacity: 0.22;
    }

    .topbar,
    .footer-box {
        border-radius: 24px;
    }

    .frame-inner {
        padding: 1.35rem;
    }

    .hero {
        padding-top: 1.5rem;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .cta-row,
    .top-links,
    .lang-switch,
    .pill-row {
        gap: 0.55rem;
    }

    .button {
        width: 100%;
    }
}

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

    * {
        transition: none !important;
        animation: none !important;
    }
}