/* Logan Quarn – Dark Editorial Sci-Fi Theme */
:root {
    --bg: #050608;
    --bg-soft: #0b0d12;
    --panel: rgba(18, 22, 30, 0.74);
    --panel-strong: rgba(24, 29, 39, 0.92);
    --line: rgba(255, 255, 255, 0.10);
    --line-soft: rgba(255, 255, 255, 0.06);
    --text: #f0ede6;
    --muted: #aaa49b;
    --dim: #756f68;
    --accent: #c79b63;
    --accent-soft: rgba(199, 155, 99, 0.14);
    --blue: #8fb4d8;
    --danger: #d68585;
    --ok: #98cf9a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 8%, rgba(70, 91, 122, 0.24), transparent 34rem),
        radial-gradient(circle at 78% 14%, rgba(199, 155, 99, 0.13), transparent 30rem),
        linear-gradient(135deg, #030405 0%, #080a0d 52%, #020203 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.24) 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(5, 6, 8, 0.78);
    backdrop-filter: blur(20px);
}

.header-inner,
.container,
.footer-inner {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.header-inner {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 32px;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--text);
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    letter-spacing: 0.28em;
    line-height: 1;
    text-transform: uppercase;
}

.brand::after {
    content: "";
    width: 42px;
    height: 1px;
    margin-left: 18px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.top-nav,
.language-switch {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.top-nav a,
.language-switch a {
    color: var(--muted);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.top-nav a:hover,
.language-switch a:hover,
.top-nav a.active,
.language-switch a.active {
    color: var(--text);
}

.language-switch {
    gap: 10px;
}

.language-switch span,
.sep {
    color: rgba(255,255,255,0.22);
}

.site-main {
    position: relative;
    z-index: 1;
}

.container {
    padding: 52px 0 72px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 42px;
    align-items: stretch;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(140deg, rgba(255,255,255,0.055), rgba(255,255,255,0.016)),
        linear-gradient(180deg, rgba(13, 16, 22, 0.90), rgba(9, 10, 14, 0.80));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background:
        radial-gradient(circle at 72% 12%, rgba(199,155,99,0.22), transparent 18rem),
        radial-gradient(circle at 12% 100%, rgba(143,180,216,0.10), transparent 22rem);
}

.hero-copy,
.hero-panel {
    position: relative;
    z-index: 1;
}

.kicker,
.card-kicker,
.page-kicker {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    margin: 18px 0 22px;
    font-size: clamp(44px, 6vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero-text {
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid rgba(199,155,99,0.38);
    border-radius: 999px;
    padding: 12px 18px;
    color: var(--text);
    background: rgba(199,155,99,0.12);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    background: rgba(199,155,99,0.20);
    border-color: rgba(199,155,99,0.68);
}

.button.secondary {
    border-color: var(--line);
    background: rgba(255,255,255,0.045);
    color: var(--muted);
}

.button.secondary:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.075);
}

.hero-panel {
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    background:
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        rgba(2,3,4,0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.featured-book {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 22px;
    align-items: center;
}

.featured-book img,
.book-card img,
.book-detail-cover img {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 18px 55px rgba(0,0,0,0.50);
}

.featured-book h2 {
    margin: 10px 0 10px;
    color: var(--text);
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.featured-book p,
.archive-note p,
.book-card p,
.content-card p,
.book-detail-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.archive-note {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
}

.archive-note strong {
    color: var(--text);
}

.section {
    margin-top: 70px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.section h2,
.content-card h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-lead {
    max-width: 680px;
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

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

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

.book-card {
    min-height: 100%;
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.book-card:hover {
    transform: translateY(-3px);
    border-color: rgba(199,155,99,0.35);
    background: var(--panel-strong);
}

.book-card img {
    width: 118px;
    aspect-ratio: 279 / 445;
    object-fit: cover;
}

.placeholder-cover {
    width: 118px;
    aspect-ratio: 279 / 445;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.14);
    background:
        radial-gradient(circle at 30% 18%, rgba(199,155,99,0.28), transparent 30%),
        linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)),
        #15110d;
    box-shadow: 0 18px 55px rgba(0,0,0,0.50);
    display: grid;
    place-items: center;
    color: var(--text);
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: 0.16em;
}

.placeholder-cover.archive {
    background:
        radial-gradient(circle at 70% 22%, rgba(134,163,184,0.22), transparent 32%),
        linear-gradient(160deg, rgba(255,255,255,0.075), rgba(255,255,255,0.015)),
        #101417;
}

.placeholder-cover.detail {
    width: 230px;
    min-height: 366px;
    font-size: 20px;
    letter-spacing: 0.18em;
}

.book-card h3 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: 21px;
    letter-spacing: -0.015em;
}

.book-card p {
    margin: 0 0 16px;
    font-size: 14px;
}

.card-link {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

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

.thought-card,
.content-card,
.book-detail {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.thought-card {
    padding: 26px;
}

.thought-card h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 22px;
}

.thought-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.content-shell {
    max-width: 860px;
}

.content-card {
    padding: clamp(28px, 5vw, 48px);
}

.content-card h1,
.book-detail-copy h1 {
    margin: 12px 0 22px;
    color: var(--text);
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.content-card a:not(.button),
.book-detail-copy a:not(.button) {
    color: var(--accent);
}

.book-detail {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 34px;
    align-items: start;
    padding: clamp(24px, 4vw, 42px);
}

.book-detail-cover img {
    width: 230px;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.meta-list li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--muted);
    background: rgba(255,255,255,0.035);
    font-size: 13px;
}

form {
    margin-top: 22px;
}

label {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 15px;
    color: var(--text);
    background: rgba(0,0,0,0.28);
    font: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(199,155,99,0.58);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.success-message {
    border: 1px solid rgba(152,207,154,0.32);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--ok);
    background: rgba(152,207,154,0.10);
}

.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line-soft);
    background: rgba(2,3,4,0.56);
}

.footer-inner {
    min-height: 92px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--dim);
    font-size: 13px;
}

.footer-inner a:hover {
    color: var(--text);
}

.admin-panel {
    max-width: 620px;
}

.status-online {
    color: var(--ok);
}

.status-offline {
    color: var(--danger);
}

@media (max-width: 980px) {
    .header-inner {
        grid-template-columns: 1fr auto;
        gap: 18px;
        padding: 18px 0;
    }

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

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

    .hero {
        padding: 32px;
    }

    .books-grid,
    .books-grid.two,
    .thought-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .container,
    .footer-inner {
        width: min(100% - 28px, 1180px);
    }

    .brand {
        font-size: 25px;
        letter-spacing: 0.18em;
    }

    .brand::after {
        display: none;
    }

    .top-nav {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .hero {
        padding: 24px;
        border-radius: 22px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .featured-book,
    .book-card {
        grid-template-columns: 94px 1fr;
        gap: 16px;
    }

    .featured-book img,
    .book-card img,
    .placeholder-cover {
        width: 94px;
    }

    .book-detail-cover img,
    .placeholder-cover.detail {
        width: 170px;
        min-height: 272px;
    }

    .section {
        margin-top: 48px;
    }
}


.purchase-panel {
    margin: 30px 0 8px;
    padding: 22px;
    border: 1px solid rgba(199,155,99,0.30);
    border-radius: var(--radius-md);
    background:
        linear-gradient(140deg, rgba(199,155,99,0.12), rgba(255,255,255,0.025)),
        rgba(0,0,0,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.purchase-panel h2 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: 24px;
    letter-spacing: -0.02em;
}

.purchase-panel p {
    margin: 0;
}

.purchase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button.amazon {
    background: rgba(199,155,99,0.20);
    border-color: rgba(199,155,99,0.65);
    color: var(--text);
}

.button.amazon:hover {
    background: rgba(199,155,99,0.30);
    border-color: rgba(199,155,99,0.95);
}

.sample-panel {
    grid-column: 1 / -1;
    margin-top: 24px;
    border: 1px solid rgba(199,155,99,0.24);
    border-radius: var(--radius-md);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
        rgba(0,0,0,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 50px rgba(0,0,0,0.20);
}

.sample-panel[hidden] {
    display: none;
}

.sample-panel-inner {
    padding: clamp(22px, 3vw, 32px);
}

.sample-panel h2 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.sample-note {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--dim);
    line-height: 1.7;
}

.sample-pages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sample-page {
    min-height: 420px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    color: #211b14;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.86), rgba(235,227,212,0.92)),
        #efe6d5;
    box-shadow: 0 20px 55px rgba(0,0,0,0.24);
    font-family: Georgia, 'Times New Roman', serif;
}

.sample-page-label {
    margin-bottom: 18px;
    color: rgba(33,27,20,0.48);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.sample-page p {
    margin: 0 0 1em;
    color: #2b241c;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.005em;
}

@media (max-width: 760px) {
    .sample-pages {
        grid-template-columns: 1fr;
    }

    .sample-page {
        min-height: auto;
    }
}


/* Reading sample flow: continuous text, not artificial pages */
.sample-pages.sample-flow {
    display: block;
}

.sample-pages.sample-flow .sample-page {
    max-width: 900px;
    margin: 0 auto;
    min-height: auto;
}

.sample-image {
    margin: 28px 0;
    padding: 0;
}

.sample-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.28);
}

/* THOUGHTSTREAM A0 / experimental protocol section */
.protocol-feature {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: clamp(24px, 4vw, 46px);
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(199,155,99,0.30);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 18% 18%, rgba(143,180,216,0.12), transparent 24rem),
        linear-gradient(135deg, rgba(199,155,99,0.11), rgba(255,255,255,0.025)),
        var(--panel);
    box-shadow: var(--shadow);
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.protocol-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(199,155,99,0.52);
    background:
        radial-gradient(circle at 18% 18%, rgba(143,180,216,0.16), transparent 24rem),
        linear-gradient(135deg, rgba(199,155,99,0.15), rgba(255,255,255,0.035)),
        var(--panel-strong);
}

.protocol-feature > img {
    width: 100%;
    max-width: 260px;
    justify-self: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 24px 70px rgba(0,0,0,0.58);
}

.protocol-feature-copy h3 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.protocol-feature-copy p {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.75;
}

.protocol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.protocol-tags span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--muted);
    background: rgba(255,255,255,0.035);
    font-size: 12px;
}

.protocol-detail .book-detail-cover {
    position: sticky;
    top: 116px;
}

.protocol-subtitle {
    margin: -10px 0 16px;
    color: var(--accent);
    font-size: clamp(20px, 2.5vw, 30px);
    letter-spacing: 0.02em;
}

.protocol-equation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
    padding: 18px 20px;
    border: 1px solid rgba(199,155,99,0.28);
    border-radius: var(--radius-md);
    background: rgba(199,155,99,0.07);
    color: var(--text);
    font-size: clamp(18px, 2.2vw, 25px);
    font-weight: 700;
}

.protocol-equation strong {
    color: var(--accent);
}

.protocol-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0;
}

.protocol-facts > div {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.03);
}

.fact-number {
    color: var(--text);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.fact-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.protocol-note {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(143,180,216,0.055);
}

.protocol-note h2 {
    margin: 8px 0 10px;
    font-size: 25px;
}

.protocol-note p {
    margin: 0;
}

@media (max-width: 820px) {
    .protocol-feature {
        grid-template-columns: 1fr;
    }

    .protocol-feature > img {
        width: min(62vw, 260px);
    }

    .protocol-detail .book-detail-cover {
        position: static;
    }
}

@media (max-width: 620px) {
    .protocol-facts {
        grid-template-columns: 1fr;
    }

    .protocol-feature {
        padding: 22px;
        border-radius: 22px;
    }
}


/* THOUGHTSTREAM A0 V2: compact homepage feature + Lost Stream reader */
.lost-stream-feature {
    display: block;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(199,155,99,0.30);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 14% 10%, rgba(143,180,216,0.10), transparent 25rem),
        linear-gradient(135deg, rgba(199,155,99,0.10), rgba(255,255,255,0.02)),
        var(--panel);
    box-shadow: var(--shadow);
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.lost-stream-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(199,155,99,0.52);
    background:
        radial-gradient(circle at 14% 10%, rgba(143,180,216,0.14), transparent 25rem),
        linear-gradient(135deg, rgba(199,155,99,0.14), rgba(255,255,255,0.03)),
        var(--panel-strong);
}

.lost-stream-feature h3 {
    margin: 9px 0 10px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.lost-stream-feature p {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.lost-stream-callout {
    margin: 30px 0;
    padding: 24px;
    border: 1px solid rgba(199,155,99,0.30);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(199,155,99,0.09), rgba(143,180,216,0.04));
}

.lost-stream-callout h2 {
    margin: 8px 0 10px;
    font-size: 28px;
}

.lost-stream-callout p {
    margin: 0 0 18px;
}

.stream-reader-wrap {
    max-width: 980px;
}

.stream-reader {
    padding-bottom: 30px;
}

.stream-reader-header {
    padding: clamp(18px, 3vw, 34px) 0 28px;
}

.stream-reader-header h1 {
    margin: 8px 0 10px;
    color: var(--text);
    font-size: clamp(38px, 7vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.stream-lead {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
}

.stream-intro {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.initial-prompt-box {
    margin: 0 0 28px;
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgba(199,155,99,0.34);
    border-radius: var(--radius-md);
    background: rgba(199,155,99,0.075);
}

.initial-prompt-box p {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
    font-style: italic;
}

.stream-thoughts {
    border-top: 1px solid var(--line);
}

.stream-thought {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 18px;
    padding: 23px 6px;
    border-bottom: 1px solid var(--line);
}

.stream-tick {
    padding-top: 3px;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.stream-thought p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.78;
}

.stream-reader-footer {
    margin-top: 38px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(199,155,99,0.30);
    border-radius: var(--radius-lg);
    background: var(--panel);
}

.stream-reader-footer h2 {
    margin: 8px 0 10px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 40px);
}

.stream-reader-footer p {
    max-width: 720px;
    margin: 0 0 20px;
}

@media (max-width: 620px) {
    .stream-thought {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 20px 2px;
    }

    .stream-tick {
        padding-top: 0;
    }
}

/* THOUGHTSTREAM A0 V3: prominent Lost Stream callout */
.lost-stream-callout-prominent {
    margin: 24px 0 34px;
    padding: clamp(24px, 4vw, 34px);
    border-color: rgba(199,155,99,0.52);
    box-shadow: 0 18px 50px rgba(0,0,0,0.30);
}
.lost-stream-callout-prominent h2 {
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.035em;
}
.lost-stream-callout-prominent .button { margin-top: 4px; }


/* Lost Stream poster: compact visual promo beneath the six-book grid */
.lost-stream-poster-link {
    display: block;
    width: min(100%, 520px);
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(199,155,99,0.28);
    background: #090807;
    box-shadow: 0 22px 65px rgba(0,0,0,0.42);
    transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.lost-stream-poster-link:hover {
    transform: translateY(-3px);
    border-color: rgba(199,155,99,0.55);
    box-shadow: 0 28px 78px rgba(0,0,0,0.50);
}

.lost-stream-poster-link img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 620px) {
    .lost-stream-poster-link {
        width: min(100%, 430px);
    }
}


/* THOUGHTSTREAM A0 — centered new-release presentation */
.section-header-centered {
    display: block;
    text-align: center;
}

.section-header-centered .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.ai-launch-section {
    scroll-margin-top: 110px;
}

.ai-launch-card {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid rgba(199,155,99,0.34);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 0%, rgba(199,155,99,0.13), transparent 28rem),
        radial-gradient(circle at 10% 60%, rgba(143,180,216,0.08), transparent 24rem),
        linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
        var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}

.ai-launch-intro {
    max-width: 790px;
    margin: 0 auto 26px;
}

.ai-launch-intro p,
.ai-launch-copy p,
.lost-stream-home p {
    color: var(--muted);
    line-height: 1.75;
}

.ai-launch-intro p {
    margin: 0;
    font-size: clamp(16px, 2vw, 19px);
}

.ai-launch-intro strong {
    color: var(--text);
}

.ai-launch-video {
    display: block;
    width: min(100%, 900px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border: 1px solid rgba(199,155,99,0.36);
    border-radius: 16px;
    background: #030405;
    box-shadow: 0 24px 70px rgba(0,0,0,0.46);
}

.ai-launch-book {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    max-width: 820px;
    margin: 34px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}

.ai-launch-cover-link {
    display: block;
    width: min(58vw, 230px);
}

.ai-launch-cover-link img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 22px 65px rgba(0,0,0,0.55);
}

.ai-launch-copy {
    max-width: 760px;
    text-align: center;
}

.ai-launch-copy h3 {
    margin: 10px 0 12px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.ai-launch-copy p {
    margin: 0 auto 20px;
}

.ai-launch-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.lost-stream-home {
    width: min(100%, 760px);
    margin: 28px auto 0;
    padding: clamp(24px, 4vw, 36px);
    text-align: center;
    border: 1px solid rgba(199,155,99,0.28);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 50% 0%, rgba(199,155,99,0.10), transparent 20rem),
        rgba(255,255,255,0.025);
    box-shadow: 0 18px 50px rgba(0,0,0,0.24);
}

.lost-stream-home h3 {
    margin: 10px 0 12px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.lost-stream-home p {
    max-width: 650px;
    margin: 0 auto 20px;
}

@media (max-width: 620px) {
    .ai-launch-card,
    .lost-stream-home {
        border-radius: 22px;
    }

    .ai-launch-video {
        border-radius: 12px;
    }

    .ai-launch-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-launch-actions .button {
        width: 100%;
    }
}
