/*
  NDFounders Ghost Theme — Design System
  =======================================
  Ported from ndfounders-final.html prototype.

  DESIGN PHILOSOPHY
  1. Typography: All Montserrat, 17px body, 1.7 line-height, max-width 68ch
  2. Color: Off-white on dark charcoal — prevents halation. Muted earthy palette.
  3. Layout: Progressive disclosure, modular blocks, non-linear scanning
  4. Calm Mode: Fundamentally transforms the experience — strips images, kills motion
  5. CRO: Literal CTAs, transparent pricing language, no urgency tactics
  6. Content Architecture: Organized by cognitive load
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Tactile Design Co. palette */
    --grungy: #18181D;
    --moody: #061E2C;
    --dreamy: #184556;
    --rockstar: #B9795B;
    --cozy: #CFC0AE;
    --fresh: #F0EBE3;

    /* Functional */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    /* Ghost custom font support */
    --gh-font-heading: 'Montserrat', sans-serif;
    --gh-font-body: 'Montserrat', sans-serif;
}

[data-mode="light"] {
    --bg-0: #FEFCF9;
    --bg-1: #F7F2EB;
    --bg-2: #EFE8DF;
    --bg-card: #FFFFFF;
    --bg-hero: linear-gradient(168deg, #FEFCF9 0%, #F7F2EB 30%, #EDE4D8 65%, #E5DDD2 100%);
    --tx-0: #1A1A1F;
    --tx-1: #3A3A42;
    --tx-2: #6A6570;
    --tx-3: #9A9298;
    --tx-inv: #FEFCF9;
    --bdr: rgba(24,24,29,0.055);
    --bdr-strong: rgba(24,24,29,0.1);
    --bdr-hover: rgba(185,121,91,0.2);
    --shadow-sm: 0 1px 3px rgba(24,24,29,0.03), 0 1px 2px rgba(24,24,29,0.02);
    --shadow-md: 0 4px 16px rgba(24,24,29,0.05), 0 1px 3px rgba(24,24,29,0.03);
    --shadow-lg: 0 12px 40px rgba(24,24,29,0.07), 0 4px 12px rgba(24,24,29,0.03);
    --shadow-xl: 0 20px 60px rgba(24,24,29,0.1), 0 8px 20px rgba(24,24,29,0.04);
    --accent: var(--rockstar);
    --accent-soft: rgba(185,121,91,0.06);
    --accent-mid: rgba(185,121,91,0.12);
    --tag-bg: rgba(24,69,86,0.06);
    --tag-tx: #184556;
    --glow-1: rgba(185,121,91,0.06);
    --glow-2: rgba(24,69,86,0.04);
    --grain: 0.025;
    --toggle-bg: var(--bg-1);
    --toggle-active-bg: var(--accent-soft);
    --toggle-active-bdr: var(--accent);
    --toggle-active-tx: var(--accent);
}

[data-mode="dark"] {
    --bg-0: #131316;
    --bg-1: #1A1A1F;
    --bg-2: #222228;
    --bg-card: rgba(34,34,40,0.6);
    --bg-hero: linear-gradient(168deg, #131316 0%, #151520 30%, #0D1F2D 65%, #0A1925 100%);
    --tx-0: #EDE8E2;
    --tx-1: #C8C0B8;
    --tx-2: #908888;
    --tx-3: rgba(207,192,174,0.4);
    --tx-inv: #131316;
    --bdr: rgba(207,192,174,0.05);
    --bdr-strong: rgba(207,192,174,0.1);
    --bdr-hover: rgba(185,121,91,0.25);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.16);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.2);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.25);
    --accent: #C8896A;
    --accent-soft: rgba(200,137,106,0.08);
    --accent-mid: rgba(200,137,106,0.14);
    --tag-bg: rgba(24,69,86,0.2);
    --tag-tx: #6BB8D0;
    --glow-1: rgba(185,121,91,0.07);
    --glow-2: rgba(24,69,86,0.05);
    --grain: 0.015;
    --toggle-bg: var(--bg-2);
    --toggle-active-bg: var(--accent-soft);
    --toggle-active-bdr: var(--accent);
    --toggle-active-tx: var(--accent);
}

/* Late night warm mode — subtle shift, no UI */
[data-latenight="on"][data-mode="light"] {
    --bg-0: #FDF9F3;
    --bg-1: #F5EEE4;
}

[data-latenight="on"][data-mode="dark"] {
    --bg-0: #141311;
    --bg-1: #1C1A17;
}

/* ============================================
   CALM MODE
   Fundamentally different reading experience.
   ============================================ */
[data-calm="on"] {
    --shadow-sm: none !important;
    --shadow-md: none !important;
    --shadow-lg: none !important;
    --shadow-xl: none !important;
    --glow-1: transparent !important;
    --glow-2: transparent !important;
    --grain: 0 !important;
}

[data-calm="on"] * {
    transition: none !important;
    animation: none !important;
}

[data-calm="on"] .hero {
    background: var(--bg-0) !important;
    padding-top: 48px !important;
    padding-bottom: 40px !important;
}

[data-calm="on"] .hero-visual,
[data-calm="on"] .hero-bg,
[data-calm="on"] .grain {
    display: none !important;
}

[data-calm="on"] .hero-inner {
    grid-template-columns: 1fr !important;
    max-width: 600px !important;
}

[data-calm="on"] .block-card {
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    border-left: 3px solid var(--accent) !important;
    border-bottom: 1px solid var(--bdr) !important;
    background: transparent !important;
}

[data-calm="on"] .block-card-img {
    display: none !important;
}

[data-calm="on"] .block-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

[data-calm="on"] .block-card-bar {
    display: none !important;
}

[data-calm="on"] .nl-section {
    background: var(--bg-0) !important;
    border-top: 1px solid var(--bdr-strong) !important;
}

[data-calm="on"] .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

[data-calm="on"] .env-bar {
    background: var(--bg-0);
    border-bottom: 1px solid var(--bdr);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-0);
    color: var(--tx-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 17px;
    line-height: 1.7;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============================================
   ENVIRONMENT BAR
   ============================================ */
.env-bar {
    background: var(--bg-1);
    border-bottom: 1px solid var(--bdr);
    padding: 6px 0;
    transition: background 0.4s var(--ease);
}

.env-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 max(4vw, 20px);
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
}

.env-btn {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--tx-3);
    background: transparent;
    border: 1px solid var(--bdr);
    border-radius: 100px;
    padding: 5px 14px;
    transition: all 0.2s var(--ease);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.env-btn:hover { border-color: var(--bdr-strong); color: var(--tx-2); }
.env-btn.active {
    background: var(--toggle-active-bg);
    border-color: var(--toggle-active-bdr);
    color: var(--toggle-active-tx);
}
.env-icon { font-size: 0.8rem; line-height: 1; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: color-mix(in srgb, var(--bg-0) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--bdr);
    transition: background 0.4s var(--ease);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 max(4vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    font-weight: 900;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tx-0);
}
.nav-brand a { display: flex; align-items: center; }
.nav-logo { height: 40px; width: auto; display: block; }
[data-logo-size="small"] .nav-logo { height: 32px; }
[data-logo-size="large"] .nav-logo { height: 52px; }
.nav-logo-dark { display: none; }
[data-mode="dark"] .nav-logo-light { display: none; }
[data-mode="dark"] .nav-logo-dark { display: block; }

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-link {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tx-3);
    transition: color 0.2s;
}

.nav-link:hover { color: var(--tx-0); }

.nav-cta {
    background: var(--accent);
    color: var(--tx-inv) !important;
    padding: 8px 18px;
    border-radius: 5px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(185,121,91,0.2);
}

/* Search icon button */
.nav-search {
    background: transparent;
    border: none;
    color: var(--tx-3);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.nav-search:hover { color: var(--tx-0); }
.nav-search svg { width: 18px; height: 18px; }

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--bg-hero);
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-1) 0%, transparent 65%);
    top: -250px;
    right: -150px;
}

.hero-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-2) 0%, transparent 65%);
    bottom: -200px;
    left: -100px;
}

.grain {
    position: absolute;
    inset: 0;
    opacity: var(--grain);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px;
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 max(4vw, 20px);
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 24px;
    background: var(--accent-soft);
    padding: 5px 14px;
    border-radius: 100px;
}

.hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-bottom: 20px;
    color: var(--tx-0);
}

.hero h1 em {
    font-style: normal;
    color: var(--dreamy);
    display: inline;
}

[data-mode="dark"] .hero h1 em {
    color: var(--tag-tx);
}

.hero-desc {
    font-size: 1rem;
    font-weight: 400;
    color: var(--tx-1);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 440px;
}

/* Hero CTA */
.hero-cta-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.hero-submit {
    background: var(--accent);
    color: var(--tx-inv);
    border: none;
    padding: 13px 28px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.2s var(--ease);
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.hero-submit:hover { transform: translateY(-1px); }

.hero-fine {
    font-size: 0.64rem;
    color: var(--tx-3);
    max-width: 400px;
    line-height: 1.5;
}

/* Hero visual — floating article cards */
.hero-visual {
    position: relative;
    height: 400px;
}

.float-card {
    position: absolute;
    width: 260px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s var(--ease), box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.float-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px) !important;
}

.float-card-1 { top: 0; left: 10px; z-index: 3; transform: rotate(-2.5deg); }
.float-card-2 { top: 50px; right: 0; z-index: 2; transform: rotate(3deg); }
.float-card-3 { bottom: 0; left: 30px; z-index: 1; transform: rotate(-0.5deg); }

.float-card-img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.float-card-body { padding: 14px 16px 16px; }

.float-card-tag {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tag-tx);
    background: var(--tag-bg);
    display: inline-block;
    padding: 2px 7px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.float-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--tx-0);
    margin-bottom: 6px;
}

.float-card-cta {
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    opacity: 0;
    transition: opacity 0.25s;
}

.float-card:hover .float-card-cta { opacity: 1; }

/* Image gradients for cards without feature images */
.img-teal { background: linear-gradient(135deg, #3A6B7E 0%, #184556 50%, #0D2E3F 100%); }
.img-copper { background: linear-gradient(135deg, #C4896A 0%, #B9795B 50%, #8B5E45 100%); }
.img-forest { background: linear-gradient(135deg, #2A5A4A 0%, #1B4030 50%, #0F2820 100%); }
.img-plum { background: linear-gradient(135deg, #5A4A6A 0%, #3D3350 50%, #2A2238 100%); }
.img-earth { background: linear-gradient(135deg, #6B5040 0%, #4A3628 50%, #2E2018 100%); }
.img-deep { background: linear-gradient(135deg, #2D5A5A 0%, #1E4040 50%, #122E2E 100%); }

/* ============================================
   CONTENT SECTIONS — Unified block system
   ============================================ */
.content-area {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px max(4vw, 20px) 24px;
}

.content-block {
    margin-bottom: 64px;
}

.block-header {
    margin-bottom: 28px;
}

.block-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--tx-0);
    margin-bottom: 6px;
    position: relative;
    display: inline-block;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.block-desc {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--tx-2);
    line-height: 1.6;
    max-width: 520px;
    margin-top: 10px;
}

.block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.block-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Unified card — all sections use this */
.block-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--ease);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.block-card:hover {
    border-color: var(--bdr-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.block-card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease);
}

.block-card:hover .block-card-bar {
    transform: scaleX(1);
}

.block-card-img {
    width: 100%;
    height: 155px;
    position: relative;
    overflow: hidden;
}

.block-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.float-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-card-body {
    padding: 18px 20px 22px;
}

.block-card-topic {
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tag-tx);
    background: var(--tag-bg);
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.block-card-badge {
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: var(--accent-soft);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 5px;
    margin-bottom: 10px;
}

.block-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--tx-0);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.block-card:hover .block-card-title {
    color: var(--accent);
}

.block-card-excerpt {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--tx-2);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.block-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.block-card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tx-3);
    flex-shrink: 0;
}

.block-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
}

.block-more {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
}

.block-more:hover { opacity: 0.7; }

/* ============================================
   NEWSLETTER — Bottom subscribe
   ============================================ */
.nl-section {
    background: var(--bg-1);
    padding: 56px max(4vw, 20px);
    transition: background 0.4s var(--ease);
}

.nl-inner {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.nl-inner h2 {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--tx-0);
    margin-bottom: 8px;
}

.nl-inner p {
    font-size: 0.88rem;
    color: var(--tx-1);
    line-height: 1.65;
    margin-bottom: 22px;
}

.nl-cta {
    background: var(--accent);
    color: var(--tx-inv);
    border: none;
    padding: 12px 28px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.2s var(--ease);
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
}

.nl-cta:hover { transform: translateY(-1px); }

.nl-fine {
    font-size: 0.62rem;
    color: var(--tx-3);
    margin-top: 12px;
    line-height: 1.5;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 24px max(4vw, 20px);
    border-top: 1px solid var(--bdr);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--tx-3);
}

.footer-links {
    display: flex;
    gap: 18px;
    list-style: none;
}

.footer-links a {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tx-3);
    transition: color 0.2s;
}

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

/* ============================================
   GHOST CONTENT — Article typography
   ============================================ */
.gh-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 max(4vw, 20px);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tx-0);
}

.gh-content > * + * {
    margin-top: 1.5em;
}

/* Ghost card width classes — required by GScan */
.gh-content .kg-width-wide {
    max-width: 1040px;
    margin-left: calc(50% - 520px);
    margin-right: calc(50% - 520px);
}

.gh-content .kg-width-full {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

@media (max-width: 1100px) {
    .gh-content .kg-width-wide {
        margin-left: calc(50% - 50vw + 4vw);
        margin-right: calc(50% - 50vw + 4vw);
    }
}

.gh-content h2 {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-top: 2.5em;
}

.gh-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2em;
}

.gh-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.8em;
}

.gh-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-content a:hover {
    color: var(--rockstar);
}

.gh-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--tx-1);
}

.gh-content pre {
    background: var(--bg-1);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
}

.gh-content code {
    background: var(--bg-1);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.88em;
}

.gh-content pre code {
    background: none;
    padding: 0;
}

.gh-content img {
    border-radius: 8px;
}

.gh-content figcaption {
    font-size: 0.8rem;
    color: var(--tx-3);
    text-align: center;
    margin-top: 8px;
}

.gh-content ul,
.gh-content ol {
    padding-left: 24px;
}

.gh-content li + li {
    margin-top: 0.5em;
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--bdr-strong);
    margin: 2.5em 0;
}

/* Ghost card overrides */
.gh-content .kg-card {
    margin-top: 2em;
    margin-bottom: 2em;
}

.gh-content .kg-image-card img,
.gh-content .kg-gallery-card img {
    border-radius: 8px;
}

.gh-content .kg-callout-card {
    background: var(--bg-1);
    border: 1px solid var(--bdr);
    border-radius: 8px;
}

.gh-content .kg-bookmark-card {
    border: 1px solid var(--bdr);
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================
   ARTICLE LAYOUT — post.hbs
   ============================================ */
.article-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px max(4vw, 20px) 0;
}

.article-tag {
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tag-tx);
    background: var(--tag-bg);
    display: inline-block;
    padding: 3px 9px;
    border-radius: 3px;
    margin-bottom: 16px;
}

.article-tag:hover {
    color: var(--accent);
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--tx-0);
    margin-bottom: 16px;
}

.article-excerpt {
    font-size: 1.1rem;
    color: var(--tx-1);
    line-height: 1.6;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 32px;
}

.article-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tx-3);
}

.article-feature-img {
    max-width: 960px;
    margin: 0 auto 48px;
    padding: 0 max(4vw, 20px);
}

.article-feature-img img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* ============================================
   AUTHOR BIO CARD — Phase 1.1
   ============================================ */
.author-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    margin-top: 48px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.author-card + .author-card {
    margin-top: 12px;
}

.author-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-1);
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-info {
    flex: 1;
    min-width: 0;
}

.author-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tx-0);
    margin-bottom: 4px;
}

.author-card-name a {
    color: inherit;
    transition: color 0.2s;
}

.author-card-name a:hover {
    color: var(--accent);
}

.author-card-bio {
    font-size: 0.82rem;
    color: var(--tx-2);
    line-height: 1.5;
}

.author-card-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.author-card-links a {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tx-3);
    transition: color 0.2s;
}

.author-card-links a:hover { color: var(--accent); }

/* ============================================
   AUTHOR ARCHIVE — Phase 1.2
   ============================================ */
.author-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px max(4vw, 20px) 48px;
    text-align: center;
}

.author-header-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    background: var(--bg-1);
}

.author-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-header h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.author-header-location {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tx-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.author-header-bio {
    font-size: 0.95rem;
    color: var(--tx-1);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 20px;
}

.author-header-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.author-header-social a {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tx-3);
    transition: color 0.2s;
}

.author-header-social a:hover { color: var(--accent); }

/* ============================================
   TAG ARCHIVE
   ============================================ */
.tag-header {
    max-width: 720px;
    margin: 0 auto;
    padding: 64px max(4vw, 20px) 48px;
}

.tag-header h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.tag-header p {
    font-size: 0.95rem;
    color: var(--tx-1);
    line-height: 1.6;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 48px max(4vw, 20px);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tx-3);
}

.pagination a {
    color: var(--accent);
    transition: opacity 0.2s;
}

.pagination a:hover { opacity: 0.7; }

/* ============================================
   COMMENTS — Ghost native styling overrides
   ============================================ */
.comments-section {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 max(4vw, 20px);
}

.comments-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tx-0);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bdr);
}

/* ============================================
   READ NEXT — Single post suggestion
   ============================================ */
.read-next {
    max-width: 720px;
    margin: 48px auto 0;
    padding: 0 max(4vw, 20px);
}

.read-next-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--tx-3);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bdr);
}

/* ============================================
   CUSTOM PAGE TEMPLATES
   ============================================ */

/* Landing Page — dark hero */
.landing-hero {
    padding: 80px 0;
    color: #fff;
    background: linear-gradient(135deg, var(--grungy) 0%, var(--moody) 100%);
    position: relative;
    overflow: hidden;
}

.landing-hero .grain { opacity: 0.02; }

.landing-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 max(4vw, 20px);
    position: relative;
}

.landing-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.landing-hero p {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.landing-features {
    margin-top: 40px;
    padding-left: 0;
    list-style: none;
}

.landing-features li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.landing-features li::before {
    position: absolute;
    left: 0;
    color: var(--rockstar);
    content: "\2713";
    font-weight: 700;
}

.landing-cta {
    display: inline-block;
    margin-top: 40px;
    padding: 14px 36px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--rockstar);
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: transform 0.2s var(--ease);
}

.landing-cta:hover {
    transform: translateY(-1px);
    color: #fff;
}

.landing-attribution {
    margin-top: 48px;
    padding-top: 24px;
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.6;
}

/* Thank-You Page */
.thankyou-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-1);
}

.thankyou-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 max(4vw, 20px);
}

.thankyou-inner h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 900;
    color: var(--tx-0);
    letter-spacing: -0.025em;
}

.thankyou-inner > p {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--tx-1);
    line-height: 1.6;
}

.download-btn {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 40px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--tx-inv);
    background-color: var(--accent);
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: transform 0.2s var(--ease);
}

.download-btn:hover { transform: translateY(-1px); }

.install-steps {
    max-width: 560px;
    margin: 48px auto 0;
    padding: 28px;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
}

.install-steps h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--tx-0);
}

.install-steps ol {
    padding-left: 20px;
    font-size: 0.88rem;
    line-height: 1.8;
    color: var(--tx-1);
}

/* Thank-You Steps (two-column layout) */
.thankyou-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 40px;
    text-align: left;
}

@media (max-width: 768px) {
    .thankyou-steps { grid-template-columns: 1fr; }
}

.thankyou-step {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
}

.thankyou-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--tx-inv);
    background: var(--rockstar);
    border-radius: 50%;
    margin-bottom: 12px;
}

.thankyou-step h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tx-0);
    margin-bottom: 12px;
}

.thankyou-step ol {
    padding-left: 20px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--tx-1);
}

.thankyou-step p {
    font-size: 0.85rem;
    color: var(--tx-1);
    line-height: 1.6;
    margin-top: 8px;
}

.thankyou-step .landing-cta {
    margin-top: 20px;
    font-size: 0.62rem;
    padding: 10px 24px;
}

.thankyou-note {
    margin-top: 12px !important;
    font-size: 0.75rem !important;
    color: var(--tx-3) !important;
}

/* Preferences copy box */
.prefs-box {
    position: relative;
    margin-top: 12px;
    background: var(--bg-1);
    border: 1px solid var(--bdr);
    border-radius: 8px;
    overflow: hidden;
}

.prefs-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tx-inv);
    background: var(--rockstar);
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.prefs-copy:hover { opacity: 0.85; }

.prefs-text {
    margin: 0;
    padding: 14px;
    padding-right: 70px;
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--tx-1);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

/* About page — brand cards */
.brand-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--bdr);
}

.brand-card {
    flex: 1;
    min-width: 240px;
    max-width: 320px;
    padding: 28px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.brand-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx-0);
}

.brand-card p {
    margin-top: 8px;
    font-size: 0.82rem;
    color: var(--tx-2);
    line-height: 1.5;
}

.brand-card a {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.brand-card a:hover { opacity: 0.7; }

/* Coming soon placeholder */
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 80px max(4vw, 20px);
    text-align: center;
    background: var(--bg-1);
}

.coming-soon h1 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--tx-0);
    letter-spacing: -0.025em;
}

.coming-soon p {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--tx-1);
    max-width: 480px;
    line-height: 1.6;
}

/* 404 page */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 80px max(4vw, 20px);
    text-align: center;
}

.error-page h1 {
    font-size: 4rem;
    font-weight: 900;
    color: var(--tx-0);
    letter-spacing: -0.03em;
}

.error-page p {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--tx-2);
}

.error-page a {
    display: inline-block;
    margin-top: 24px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent);
    transition: opacity 0.2s;
}

.error-page a:hover { opacity: 0.7; }

/* ============================================
   ENTRANCE ANIMATIONS
   (disabled entirely by calm mode)
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp 0.55s var(--ease) both; }
.hero-visual { animation: fadeUp 0.55s var(--ease) 0.1s both; }
.content-area { animation: fadeUp 0.45s var(--ease) 0.15s both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { height: 300px; }
    .float-card { width: 220px; }
    .block-grid { grid-template-columns: 1fr 1fr; }
    .block-grid-2col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav-link { display: none; }
    .block-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .env-bar-inner { flex-wrap: wrap; gap: 5px; }
    .env-btn { font-size: 0.54rem; padding: 4px 10px; }
    .hero h1 { font-size: 1.8rem; }
    .block-title { font-size: 1.3rem; }

    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-card-links {
        justify-content: center;
    }

    .brand-cards {
        flex-direction: column;
        align-items: center;
    }

    .brand-card {
        max-width: 100%;
    }

    .landing-hero {
        padding: 48px 0;
    }

    .thankyou-section {
        padding: 48px 0;
    }

    .breakout-wrap canvas {
        max-width: 100%;
        height: auto;
    }

    .geocities-inner {
        padding: 20px !important;
    }

    .geocities-title {
        font-size: 2rem !important;
    }
}

/* ============================================
   READING PROGRESS BAR (Phase 2.1)
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 10000;
    pointer-events: none;
}

.reading-progress-fill {
    height: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
}

[data-calm="on"] .reading-progress {
    display: none !important;
}

/* ============================================
   TABLE OF CONTENTS (Phase 2.2)
   ============================================ */
.toc {
    background: var(--bg-1);
    border: 1px solid var(--bdr);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0 32px;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tx-1);
}

.toc-icon {
    font-size: 1.2rem;
    color: var(--tx-2);
    line-height: 1;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
}

.toc-list li {
    margin: 0;
    padding: 0;
}

.toc-list a {
    display: block;
    padding: 6px 0;
    font-size: 0.85rem;
    color: var(--tx-2);
    text-decoration: none;
    border-left: 2px solid transparent;
    padding-left: 12px;
    transition: color 0.2s, border-color 0.2s;
}

.toc-list a:hover {
    color: var(--tx-0);
}

.toc-list a.toc-active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.toc-indent a {
    padding-left: 28px;
    font-size: 0.8rem;
}

[data-calm="on"] .toc-list a.toc-active {
    color: var(--accent);
    border-left-color: var(--accent);
    transition: none;
}

/* ============================================
   LOAD MORE (Phase 2.4)
   ============================================ */
.load-more-wrap {
    text-align: center;
    padding: 40px 0 20px;
}

.load-more-btn {
    background: var(--accent);
    color: var(--tx-inv);
    border: none;
    padding: 13px 32px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform 0.2s var(--ease), opacity 0.2s;
}

.load-more-btn:hover { transform: translateY(-1px); }
.load-more-btn:disabled { opacity: 0.6; cursor: wait; }

.load-more-end {
    font-size: 0.82rem;
    color: var(--tx-3);
    font-style: italic;
}

/* ============================================
   CONFETTI (Phase 4.4)
   ============================================ */
@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--confetti-dx), var(--confetti-dy)) rotate(var(--confetti-rot));
    }
}

.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100000;
}

/* ============================================
   GEOCITIES MODE (Phase 4.2)
   ============================================ */
.geocities-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000080 url("data:image/svg+xml,%3Csvg width='3' height='3' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23fff' fill-opacity='0.3'/%3E%3C/svg%3E");
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geocities-inner {
    text-align: center;
    padding: 40px;
    max-width: 600px;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Chalkboard SE', cursive;
}

.geocities-marquee {
    color: #00ff00;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.geocities-title {
    font-size: 3rem;
    color: #ffff00;
    text-shadow: 2px 2px #ff0000;
    margin-bottom: 16px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.geocities-banner {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 24px;
    line-height: 1.6;
}

.geocities-construction {
    font-size: 1.5rem;
    color: #ff6600;
    margin: 20px 0;
    animation: geocities-blink 1s step-end infinite;
}

@keyframes geocities-blink {
    50% { opacity: 0; }
}

.geocities-counter {
    font-size: 0.9rem;
    color: #00ffff;
    margin: 16px 0;
    padding: 8px 16px;
    border: 2px ridge #c0c0c0;
    display: inline-block;
    background: #000;
}

.geocities-guestbook {
    font-size: 1rem;
    color: #ff69b4;
    margin: 16px 0;
}

.geocities-close {
    display: inline-block;
    margin-top: 24px;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #c0c0c0;
    color: #000;
    border: 2px outset #fff;
    cursor: pointer;
}

.geocities-close:hover { background: #a0a0a0; }

/* Geocities calm mode modal */
.geocities-calm-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.geocities-calm-inner {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--bdr);
}

.geocities-calm-inner .geocities-banner {
    color: var(--tx-0);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.geocities-calm-inner .geocities-sub {
    color: var(--tx-2);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.geocities-calm-inner .geocities-close {
    font-family: 'Montserrat', sans-serif;
    background: var(--accent);
    color: var(--tx-inv);
    border: none;
    border-radius: 5px;
    padding: 10px 24px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

/* ============================================
   SPACEBAR QUOTES OVERLAY (Phase 4.6)
   ============================================ */
.quote-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: quote-fade-in 0.3s ease both;
    cursor: pointer;
}

.quote-overlay--calm {
    animation: none;
}

@keyframes quote-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quote-overlay-inner {
    max-width: 640px;
    text-align: center;
}

.quote-overlay-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    border: none;
}

/* ============================================
   TRIPLE-CLICK COPY TOOLTIP (Phase 4.7)
   ============================================ */
.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--tx-0);
    color: var(--bg-0);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 5px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    animation: tooltip-in 0.2s ease both;
}

.copy-tooltip--calm {
    animation: none;
}

.copy-tooltip--fade {
    animation: tooltip-out 0.4s ease both;
}

@keyframes tooltip-in {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes tooltip-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ============================================
   TIME CAPSULE (Phase 4.5)
   ============================================ */
.time-capsule {
    text-align: center;
    font-size: 0.7rem;
    color: var(--tx-3);
    padding: 8px 0 0;
    min-height: 1.2em;
}

.time-capsule:empty {
    display: none;
}

/* ============================================
   EASTER EGG CHECKLIST PAGE
   ============================================ */
.egg-checklist {
    max-width: 520px;
    margin: 32px auto;
}

.egg-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.egg-item {
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--tx-2);
    border-bottom: 1px solid var(--bdr);
    display: flex;
    align-items: center;
    gap: 10px;
}

.egg-item.egg-found {
    color: var(--tx-0);
}

.egg-check {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    flex-shrink: 0;
    border: 1px solid var(--bdr);
    color: var(--accent);
}

.egg-found .egg-check {
    background: var(--accent-soft);
    border-color: var(--accent);
}

.egg-score {
    text-align: center;
    margin-top: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--tx-1);
}

/* ============================================
   BREAKOUT GAME (Phase 4.3)
   ============================================ */
.breakout-wrap {
    margin: 32px auto;
    max-width: 480px;
}

.breakout-wrap canvas {
    display: block;
    width: 100%;
    border: 1px solid var(--bdr);
    border-radius: 10px;
    background: var(--bg-1);
    cursor: pointer;
}

.breakout-hint {
    margin-top: 12px;
    font-size: 0.7rem;
    color: var(--tx-3);
    text-align: center;
}

[data-calm="on"] .breakout-wrap {
    display: none !important;
}
