/* ============================================================
   TRUST US — sub-site stylesheet
   A sibling of the Jackrabbit series site: same skeleton
   (navbar / burger / footer / cards), its own weather.
   Palette: drizzle greys and a single warm gold.
   ============================================================ */

/* ----- Accessibility: skip link ----- */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background-color: var(--gold);
    color: var(--ink);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 500;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

/* ----- Base ----- */
:root {
    --ink: #24272c;
    --slate: #2f333a;
    --slate-soft: #3a3f47;
    --drizzle: #6f7680;
    --mist: #aeb4bc;
    --paper: #f3f1ea;
    --card: #fbfaf6;
    --line: #e2ded2;
    --gold: #b8922e;
    --gold-bright: #d9b954;
    --gold-deep: #8a6b1c;
    --light-text: #f3f1ea;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --box-shadow: 0 5px 15px rgba(20, 22, 26, 0.10);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background-color: var(--paper);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.15;
}

h1 { font-size: 3.5rem; }

h2 {
    font-size: 2.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 { font-size: 1.6rem; }

p { margin-bottom: 1.5rem; }

a {
    text-decoration: none;
    color: var(--gold-deep);
    transition: var(--transition);
}

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

section { padding: 4rem 0; }

/* Small-caps monospace label used above headings */
.kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--drizzle); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ----- Navigation ----- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.3rem 5%;
    background-color: var(--ink);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

.navbar.scrolled {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--light-text);
}

.logo a em {
    font-style: normal;
    color: var(--gold-bright);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { margin-left: 2rem; }

.nav-links a {
    color: var(--light-text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.5rem;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links .active {
    color: var(--gold-bright);
}

.nav-links .nav-return {
    border: 1px solid var(--drizzle);
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
}

.nav-links .nav-return:hover {
    border-color: var(--gold-bright);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px;
    transition: var(--transition);
}

/* ----- Hero (landing page) ----- */
.hero {
    min-height: 100vh;
    background-color: var(--ink);
    background-image:
        /* the light before Slough: one warm glow low on the horizon */
        radial-gradient(ellipse 70% 45% at 50% 104%, rgba(217, 185, 84, 0.28), transparent 70%),
        /* drizzle: fine, almost-vertical streaks */
        repeating-linear-gradient(
            97deg,
            transparent 0px,
            transparent 9px,
            rgba(174, 180, 188, 0.055) 9px,
            rgba(174, 180, 188, 0.055) 10px
        ),
        linear-gradient(180deg, #1d2024 0%, #24272c 55%, #2b2e33 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    padding-top: 80px;
}

.hero-content {
    max-width: 820px;
    padding: 0 2rem;
    animation: fadeIn 1.5s ease-out;
}

.hero h1 {
    font-size: 5.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
    animation: slideInUp 1.2s ease-out;
}

.hero h1 em {
    font-style: normal;
    color: var(--gold-bright);
}

.hero .tagline {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--mist);
    max-width: 620px;
    margin: 0 auto 2.2rem;
    animation: slideInUp 1.2s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.status-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-bright);
    border: 1px solid rgba(217, 185, 84, 0.5);
    border-radius: 20px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 2.2rem;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ----- Page header (inner pages) ----- */
.page-header {
    background-color: var(--ink);
    background-image:
        radial-gradient(ellipse 65% 55% at 50% 118%, rgba(217, 185, 84, 0.20), transparent 70%),
        repeating-linear-gradient(
            97deg,
            transparent 0px,
            transparent 9px,
            rgba(174, 180, 188, 0.05) 9px,
            rgba(174, 180, 188, 0.05) 10px
        ),
        linear-gradient(180deg, #1d2024 0%, #24272c 100%);
    color: var(--light-text);
    text-align: center;
    padding: 8.5rem 0 4rem;
}

.page-header h1 { margin-bottom: 0.8rem; }

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--mist);
    font-style: italic;
}

/* ----- Buttons ----- */
.btn {
    margin: 10px 0;
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    transition: var(--transition);
    text-align: center;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--ink);
}

.btn-gold:hover {
    background-color: var(--gold-bright);
    color: var(--ink);
}

.btn-ghost {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid var(--drizzle);
}

.btn-ghost:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

/* Ghost buttons on light backgrounds */
.on-light .btn-ghost,
.btn-ghost.dark {
    color: var(--ink);
    border-color: var(--drizzle);
}

.on-light .btn-ghost:hover,
.btn-ghost.dark:hover {
    color: var(--gold-deep);
    border-color: var(--gold-deep);
}

/* ----- About / prose sections ----- */
.section-light { background-color: var(--card); }
.section-paper { background-color: var(--paper); }

.prose {
    max-width: 760px;
    margin: 0 auto;
}

.prose h2 { text-align: center; }

.prose p { font-size: 1.1rem; }

.prose .aside {
    font-size: 0.95rem;
    color: var(--drizzle);
    font-style: italic;
}

/* ----- Quote band (dark strip with a single pull-quote) ----- */
.quote-band {
    background-color: var(--slate);
    background-image:
        repeating-linear-gradient(0deg, transparent 0 47px, rgba(174, 180, 188, 0.06) 47px 48px),
        repeating-linear-gradient(90deg, transparent 0 47px, rgba(174, 180, 188, 0.06) 47px 48px);
    color: var(--light-text);
    text-align: center;
    padding: 4.5rem 0;
}

.quote-band blockquote {
    max-width: 780px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
}

.quote-band cite {
    display: block;
    margin-top: 1.4rem;
    font-family: var(--font-mono);
    font-style: normal;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

/* ----- Two-strand cards (landing page) ----- */
.strands {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

.strand-card {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--drizzle);
    border-radius: 8px;
    padding: 2.2rem 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.strand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(20, 22, 26, 0.14);
}

.strand-card.gold-edge { border-top-color: var(--gold); }

.strand-card h3 { margin-bottom: 0.4rem; }

.strand-card .strand-where {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--drizzle);
    margin-bottom: 1.2rem;
}

.strand-card p:last-child { margin-bottom: 0; }

.strand-join {
    text-align: center;
    max-width: 640px;
    margin: 2.5rem auto 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--drizzle);
}

/* ----- Theme chips ----- */
.theme-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.theme-item {
    background-color: var(--card);
    border: 1px solid var(--line);
    padding: 0.7rem 1.4rem;
    border-radius: 20px;
    font-size: 0.95rem;
}

.theme-item::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--gold);
    margin-right: 0.7rem;
    vertical-align: baseline;
}

/* ----- Cover display ----- */
.cover-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.cover-frame {
    flex: 0 0 300px;
    box-shadow: 0 18px 40px rgba(20, 22, 26, 0.35);
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
}

.cover-frame img { width: 100%; height: auto; }

.cover-copy { flex: 1 1 380px; max-width: 560px; }

.cover-copy h2 { text-align: left; }

.cover-copy .aside {
    font-size: 0.95rem;
    color: var(--drizzle);
    font-style: italic;
}

/* ----- World page ----- */
.world-section { border-bottom: 1px solid var(--line); }
.world-section:last-of-type { border-bottom: none; }

.world-section h2 { text-align: left; }

.world-section .container { max-width: 820px; }

.world-note {
    background-color: #efe9d8;
    border-top: 1px solid #dfd3ae;
    border-bottom: 1px solid #dfd3ae;
    padding: 1.1rem 0;
}

.world-note p {
    max-width: 820px;
    margin: 0 auto;
    width: 90%;
    font-size: 0.95rem;
    color: #5c4a10;
    margin-bottom: 0;
}

/* Institutional notice block — set like a printed form */
.notice {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.8;
    padding: 1.5rem 1.8rem;
    margin: 2rem 0;
    color: var(--slate-soft);
}

.notice .notice-heading {
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--drizzle);
    margin-bottom: 0.8rem;
}

.notice p { margin-bottom: 0.4rem; }
.notice p:last-child { margin-bottom: 0; }

/* ----- Character pages ----- */
.character-group-heading {
    margin-top: 3rem;
    margin-bottom: 0.3rem;
    text-align: center;
    font-size: 1.9rem;
}

.character-group-heading:first-of-type { margin-top: 0.5rem; }

.character-group-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
    font-style: italic;
    color: var(--drizzle);
}

.character-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Wide scene-setting banner, e.g. the market-hub fountain above The Estate */
.scene-band {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 6.5;
    box-shadow: var(--box-shadow);
}

.scene-band img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scene-band figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.2rem 1.5rem 1rem;
    background: linear-gradient(transparent, rgba(20, 18, 10, 0.82));
    color: var(--light-text);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

.character-card {
    background-color: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(20, 22, 26, 0.18);
}

.character-monogram {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text);
    background: linear-gradient(135deg, var(--slate), var(--slate-soft));
    background-image:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(174, 180, 188, 0.08) 31px 32px),
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(174, 180, 188, 0.08) 31px 32px),
        linear-gradient(135deg, var(--slate), var(--slate-soft));
}

.character-monogram.gold {
    color: var(--ink);
    background-image:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(36, 39, 44, 0.10) 31px 32px),
        repeating-linear-gradient(90deg, transparent 0 31px, rgba(36, 39, 44, 0.10) 31px 32px),
        linear-gradient(135deg, var(--gold), var(--gold-bright));
}

.character-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: var(--slate);
}

.character-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.character-card:hover .character-photo img {
    transform: scale(1.04);
}

.character-info { padding: 1.5rem; }

.character-info h3 { margin-bottom: 0.2rem; }

.character-role {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 1rem;
}

.character-info p:last-child { margin-bottom: 0; }

.character-quote {
    font-style: italic;
    font-size: 0.95rem;
    background-color: var(--paper);
    border-left: 3px solid var(--gold);
    border-radius: 0 6px 6px 0;
    padding: 0.9rem 1.1rem;
    margin: 1.2rem 0 0;
}

/* ----- Excerpt page ----- */
.excerpt-section {
    background-color: var(--card);
    padding: 4rem 0;
}

.excerpt-container {
    max-width: 740px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem 0;
}

.excerpt-header {
    text-align: center;
    margin-bottom: 3rem;
}

.excerpt-header h2 { margin-bottom: 0.4rem; }

.excerpt-header .draft-note {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    color: var(--drizzle);
}

.excerpt-content {
    font-size: 1.12rem;
    line-height: 1.85;
}

.excerpt-content p { margin-bottom: 1.4rem; }

.excerpt-content > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 700;
    float: left;
    line-height: 0.75;
    margin: 0.08em 0.12em 0 0;
    color: var(--gold);
}

.excerpt-end {
    text-align: center;
    font-family: var(--font-mono);
    letter-spacing: 0.5em;
    color: var(--drizzle);
    margin: 3rem 0 1rem;
}

.excerpt-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 2.5rem;
    margin-top: 2rem;
}

/* ----- CTA band ----- */
.cta {
    background-color: var(--ink);
    background-image:
        radial-gradient(ellipse 60% 50% at 50% 115%, rgba(217, 185, 84, 0.22), transparent 70%),
        repeating-linear-gradient(
            97deg,
            transparent 0px,
            transparent 9px,
            rgba(174, 180, 188, 0.05) 9px,
            rgba(174, 180, 188, 0.05) 10px
        );
    color: var(--light-text);
    text-align: center;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
    color: var(--mist);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ----- Footer ----- */
footer {
    background-color: var(--ink);
    color: var(--light-text);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 { margin-bottom: 0.5rem; }

.footer-logo p {
    color: var(--mist);
    font-style: italic;
    margin-bottom: 0;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: var(--light-text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
}

.footer-links a:hover { color: var(--gold-bright); }

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(243, 241, 234, 0.12);
    font-size: 0.9rem;
    color: var(--mist);
}

.copyright p { margin-bottom: 0; }

/* ----- Animations ----- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ----- Responsive ----- */
@media screen and (max-width: 1080px) and (min-width: 769px) {
    .nav-links li { margin-left: 0.9rem; }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 0.04em;
        padding: 0.4rem 0.3rem;
    }

    .nav-links .nav-return { padding: 0.4rem 0.6rem; }
}

@media screen and (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }

    .hero h1 { font-size: 3.2rem; }
    .hero .tagline { font-size: 1.15rem; }

    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--ink);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 3rem;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }

    .nav-links li {
        opacity: 0;
        margin: 1.2rem 0;
    }

    .burger { display: block; }

    .nav-active { transform: translateX(0%); }

    .strands { grid-template-columns: 1fr; }

    .cover-flex { gap: 2rem; }

    .cover-copy h2 { text-align: center; }

    .quote-band blockquote { font-size: 1.3rem; }

    .excerpt-content { font-size: 1.02rem; }

    .footer-content { flex-direction: column; }
}
