/* ==========================================================================
   PROJECT 13: THE 13 WISHES RITUAL
   Editorial Literary Design System
   Palette: Deep Plum, Darker Plum, Warm Ivory, Soft White, Champagne & Muted Gold, Warm Charcoal
   ========================================================================== */

:root {
    --plum-deep: #40243D;
    --plum-darker: #291A2B;
    --ivory-warm: #F6F0E6;
    --ivory-parchment: #EFE6D6;
    --white-soft: #FFFFFF;
    --gold-champagne: #D8C7A0;
    --gold-muted: #B99A62;
    --charcoal-warm: #29252A;
    --charcoal-muted: #575059;
    --border-hairline-dark: rgba(216, 199, 160, 0.25);
    --border-hairline-light: rgba(64, 36, 61, 0.16);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-journal: 'Lora', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-parchment: 0 14px 36px rgba(41, 26, 43, 0.08);
    --shadow-deep: 0 24px 60px rgba(17, 10, 18, 0.45);
    --radius-subtle: 4px;
    --transition-smooth: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--charcoal-warm);
    background-color: var(--ivory-warm);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.18;
    margin-top: 0;
    letter-spacing: -0.01em;
}

p {
    margin-top: 0;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--gold-champagne);
    color: var(--plum-darker);
    padding: 0.6rem 1rem;
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    left: 12px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow-container {
    max-width: 780px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--plum-darker);
    color: var(--ivory-warm);
    border-bottom: 1px solid var(--border-hairline-dark);
    position: sticky;
    top: 0;
    z-index: 90;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 1rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ivory-warm);
}

.brand-numeral {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--gold-champagne);
    letter-spacing: 0.14em;
}

.brand-divider {
    width: 1px;
    height: 18px;
    background: var(--gold-muted);
    opacity: 0.55;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 0.03em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.65rem;
}

.nav-link {
    font-size: 0.92rem;
    color: rgba(246, 240, 230, 0.82);
    padding: 0.35rem 0;
    border-bottom: 1px solid transparent;
    transition: color var(--transition-smooth), border-color var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-champagne);
    border-bottom-color: var(--gold-champagne);
}

.nav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(216, 199, 160, 0.1);
    border: 1px solid rgba(216, 199, 160, 0.35);
    color: var(--gold-champagne);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-subtle);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    cursor: pointer;
    transition: background var(--transition-smooth);
}

.nav-account-btn:hover {
    background: rgba(216, 199, 160, 0.2);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-champagne);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-hairline-dark);
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle-line {
    width: 22px;
    height: 1.5px;
    background: var(--gold-champagne);
    display: block;
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHIC ACCENTS
   ========================================================================== */
.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.eyebrow.gold-text {
    color: var(--gold-champagne);
}

.eyebrow.centered {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-subtle);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-align: center;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-color: var(--plum-deep);
    color: var(--ivory-warm);
    border-color: var(--plum-deep);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--plum-darker);
    border-color: var(--gold-muted);
}

.btn-gold {
    background-color: var(--gold-champagne);
    color: var(--plum-darker);
    border-color: var(--gold-champagne);
    font-weight: 600;
}

.btn-gold:hover:not(:disabled) {
    background-color: #e4d6b5;
    box-shadow: 0 8px 24px rgba(216, 199, 160, 0.25);
}

.btn-secondary {
    background-color: var(--ivory-parchment);
    color: var(--plum-deep);
    border-color: var(--gold-muted);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e6dac4;
}

.btn-outline {
    background-color: transparent;
    color: var(--plum-deep);
    border-color: rgba(64, 36, 61, 0.35);
}

.btn-outline:hover:not(:disabled) {
    border-color: var(--plum-deep);
    background-color: rgba(64, 36, 61, 0.05);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--ivory-warm);
    border-color: rgba(216, 199, 160, 0.45);
}

.btn-outline-light:hover:not(:disabled) {
    border-color: var(--gold-champagne);
    background-color: rgba(216, 199, 160, 0.1);
}

.btn-subtle-dark {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gold-champagne);
    border: 1px solid rgba(216, 199, 160, 0.2);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

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

/* ==========================================================================
   SECTIONS & SURFACES
   ========================================================================== */
.dark-plum-section,
.section-dark-plum {
    background: radial-gradient(circle at 75% 25%, #4b2b48 0%, var(--plum-deep) 45%, var(--plum-darker) 100%);
    color: var(--ivory-warm);
    padding: 5.5rem 0;
    position: relative;
    overflow: hidden;
}

.section-parchment {
    background-color: var(--ivory-warm);
    background-image:
        radial-gradient(rgba(185, 154, 98, 0.07) 1px, transparent 0),
        linear-gradient(to bottom, #f8f3ea, var(--ivory-warm));
    background-size: 28px 28px, 100% 100%;
    color: var(--charcoal-warm);
    padding: 5.5rem 0;
}

.section-header-centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.75rem;
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    color: var(--plum-deep);
    margin-bottom: 1rem;
}

.section-title.light-text {
    color: var(--ivory-warm);
}

.section-intro {
    font-size: 1.08rem;
    color: var(--charcoal-muted);
}

.section-intro.light-muted {
    color: rgba(246, 240, 230, 0.8);
}

/* ==========================================================================
   PAGE 1: LANDING PAGE
   ========================================================================== */
.hero-section {
    padding: 5rem 0 6rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(2.9rem, 5.5vw, 4.5rem);
    color: var(--ivory-warm);
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    color: var(--gold-champagne);
    margin-bottom: 1.25rem;
}

.hero-lead {
    color: rgba(246, 240, 230, 0.84);
    font-size: 1.05rem;
    max-width: 52ch;
    margin-bottom: 2.25rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.hero-micro-note {
    font-size: 0.84rem;
    color: rgba(216, 199, 160, 0.72);
}

/* Hero Atmospheric Illustration */
.sanctuary-frame {
    position: relative;
    border: 1px solid rgba(216, 199, 160, 0.3);
    padding: 3rem 2rem;
    background: linear-gradient(160deg, rgba(64, 36, 61, 0.75), rgba(41, 26, 43, 0.95));
    box-shadow: var(--shadow-deep);
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.sanctuary-frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(216, 199, 160, 0.16);
    pointer-events: none;
}

.star-dot {
    position: absolute;
    color: var(--gold-champagne);
    opacity: 0.7;
}
.star-dot.s1 { top: 14%; left: 18%; font-size: 0.9rem; }
.star-dot.s2 { top: 22%; right: 20%; font-size: 1.1rem; }
.star-dot.s3 { top: 42%; left: 14%; font-size: 0.75rem; }
.star-dot.s4 { top: 16%; left: 52%; font-size: 1.4rem; }
.star-dot.s5 { top: 38%; right: 15%; font-size: 0.85rem; }

.hero-candle-assembly {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.candle-halo {
    position: absolute;
    top: -36px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 130, 0.32) 0%, transparent 70%);
    pointer-events: none;
}

.candle-flame {
    width: 18px;
    height: 32px;
    background: radial-gradient(ellipse at bottom, #fff7d6 0%, #f5b951 55%, #d66b27 100%);
    border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
    box-shadow: 0 0 22px rgba(245, 185, 81, 0.75);
}

.candle-wick {
    width: 2px;
    height: 7px;
    background: #2b1d19;
}

.candle-wax-body {
    width: 34px;
    height: 82px;
    background: linear-gradient(to right, #e5dac7, #f6f0e6 45%, #cbbba0);
    border-radius: 3px 3px 0 0;
}

.candle-brass-dish {
    width: 74px;
    height: 10px;
    background: linear-gradient(to right, #8c703e, #d8c7a0, #8c703e);
    border-radius: 2px;
}

.parchment-stack {
    position: relative;
    width: 250px;
    height: 128px;
}

.folded-slip {
    position: absolute;
    inset: 0;
    background: var(--ivory-warm);
    border: 1px solid rgba(185, 154, 98, 0.45);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.slip-back-2 {
    transform: rotate(-5deg) translate(-6px, -4px);
    background: #e6dac4;
}

.slip-back-1 {
    transform: rotate(3.5deg) translate(5px, -2px);
    background: #efe5d3;
}

.slip-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
}

.slip-crease {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(185, 154, 98, 0.35);
}

.slip-inscription {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--plum-deep);
    font-size: 0.98rem;
    margin: 0.45rem 0 0;
    line-height: 1.3;
}

/* Wax Seal Emblem */
.wax-seal-emblem {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #6b3557, #3d1d34 75%, #291323);
    border: 2px solid var(--gold-muted);
    color: var(--gold-champagne);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(41, 26, 43, 0.35), inset 0 0 6px rgba(216, 199, 160, 0.25);
    position: relative;
    z-index: 2;
}

.wax-seal-emblem.small {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
}

.wax-seal-emblem.large {
    width: 68px;
    height: 68px;
    font-size: 1.15rem;
}

/* Editorial Pillars */
.editorial-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    border-top: 1px solid var(--border-hairline-light);
    border-bottom: 1px solid var(--border-hairline-light);
    padding: 3rem 0;
}

.editorial-pillar h3 {
    font-size: 1.55rem;
    color: var(--plum-deep);
    margin-bottom: 0.75rem;
}

.pillar-numeral {
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--gold-muted);
    border-bottom: 1px solid var(--gold-muted);
    padding-bottom: 0.2rem;
    margin-bottom: 1rem;
}

.editorial-quote {
    margin: 3.25rem auto 0;
    max-width: 720px;
    text-align: center;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    color: var(--plum-deep);
}

/* Journey Ledger */
.journey-ledger {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid var(--border-hairline-dark);
}

.journey-step {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-hairline-dark);
    align-items: baseline;
}

.step-marker {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-champagne);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--ivory-warm);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(246, 240, 230, 0.8);
    margin: 0;
}

/* Modes Grid */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mode-ledger-item {
    padding: 2.25rem 1.75rem;
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    box-shadow: var(--shadow-parchment);
}

.mode-ledger-item.featured-mode {
    border-top: 3px solid var(--gold-muted);
}

.mode-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-muted);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mode-ledger-item h3 {
    font-size: 1.6rem;
    color: var(--plum-deep);
    margin-bottom: 0.75rem;
}

.centered-cta-block {
    text-align: center;
    margin-top: 3.5rem;
}

.small-muted-caption {
    margin-top: 0.9rem;
    font-size: 0.88rem;
    color: var(--charcoal-muted);
}

/* ==========================================================================
   PAGE 2: BEGIN & LETTER SHEET
   ========================================================================== */
.letter-sheet {
    background: var(--white-soft);
    border: 1px solid rgba(185, 154, 98, 0.35);
    padding: clamp(2rem, 5vw, 4rem);
    box-shadow: var(--shadow-parchment);
    position: relative;
}

.letter-sheet::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(185, 154, 98, 0.18);
    pointer-events: none;
}

.wax-seal-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.letter-title {
    font-size: clamp(2rem, 3.6vw, 2.85rem);
    color: var(--plum-deep);
    text-align: center;
    margin-bottom: 1.75rem;
}

.letter-body {
    font-family: var(--font-journal);
    font-size: 1.06rem;
    color: var(--charcoal-warm);
}

.prompts-parchment-box {
    margin: 2.25rem 0;
    padding: 1.75rem 2rem;
    background: var(--ivory-warm);
    border-left: 2px solid var(--gold-muted);
}

.prompts-heading {
    font-size: 1.35rem;
    color: var(--plum-deep);
    margin-bottom: 0.35rem;
}

.prompts-sub {
    font-size: 0.9rem;
    color: var(--charcoal-muted);
    margin-bottom: 1rem;
}

.prompts-list {
    margin: 0;
    padding-left: 1.25rem;
    font-family: var(--font-journal);
    font-style: italic;
    color: var(--plum-deep);
}

.prompts-list li {
    margin-bottom: 0.45rem;
}

.begin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   PAGE 3: THE 13 WISHES JOURNAL
   ========================================================================== */
.journal-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.journal-page-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--plum-deep);
    margin: 0;
}

.journal-progress-pill {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--plum-deep);
    border-bottom: 1px solid var(--gold-muted);
    padding-bottom: 0.25rem;
}

.journal-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(64, 36, 61, 0.12);
    margin-bottom: 2.5rem;
}

.journal-progress-fill {
    height: 100%;
    background: var(--gold-muted);
    transition: width 0.4s ease;
}

.sealed-notice-banner {
    background: var(--plum-deep);
    color: var(--ivory-warm);
    padding: 2rem;
    border: 1px solid var(--gold-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sealed-notice-banner h2 {
    color: var(--gold-champagne);
    margin-bottom: 0.35rem;
}

.journal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.folio-index {
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    padding: 1.25rem;
}

.folio-index-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.folio-slips-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.folio-slip-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.55rem 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--charcoal-warm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.folio-slip-tab:hover {
    background: var(--ivory-warm);
}

.folio-slip-tab.active {
    background: var(--plum-deep);
    color: var(--ivory-warm);
    border-color: var(--gold-muted);
}

.folio-slip-tab.completed .slip-check {
    color: var(--gold-muted);
    font-weight: 700;
}

.folio-slip-tab.active.completed .slip-check {
    color: var(--gold-champagne);
}

.folio-index-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-hairline-light);
}

.text-link-btn {
    background: none;
    border: none;
    color: var(--plum-deep);
    text-decoration: underline;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    cursor: pointer;
    padding: 0;
}

.parchment-sheet {
    background: var(--white-soft);
    border: 1px solid rgba(185, 154, 98, 0.4);
    padding: clamp(1.75rem, 4vw, 3rem);
    box-shadow: var(--shadow-parchment);
    position: relative;
}

.sheet-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-hairline-light);
    padding-bottom: 0.9rem;
    margin-bottom: 1.25rem;
}

.sheet-roman {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--plum-deep);
}

.sheet-status-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-muted);
}

.prompt-whisper-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    background: var(--ivory-warm);
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.whisper-label {
    color: var(--gold-muted);
    font-weight: 600;
}

.whisper-text {
    font-family: var(--font-journal);
    font-style: italic;
    color: var(--plum-deep);
}

.whisper-cycle-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--charcoal-muted);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}

.handwritten-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(185, 154, 98, 0.45);
    background-color: #fcfaf6;
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 35px,
        rgba(185, 154, 98, 0.16) 36px
    );
    font-family: var(--font-journal);
    font-size: 1.18rem;
    line-height: 36px;
    padding: 0.5rem 1rem;
    color: var(--charcoal-warm);
    resize: vertical;
}

.handwritten-input:focus {
    outline: 1px solid var(--gold-muted);
    background-color: var(--white-soft);
}

.sheet-bottom-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--charcoal-muted);
    margin-top: 0.65rem;
}

.sheet-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.75rem;
}

.sealing-threshold-card {
    margin-top: 2.25rem;
    background: var(--plum-deep);
    color: var(--ivory-warm);
    border: 1px solid var(--gold-champagne);
    padding: 2.5rem 2rem;
    text-align: center;
}

.sealing-threshold-card h2 {
    font-size: 2rem;
    color: var(--gold-champagne);
    margin: 1rem 0 0.75rem;
}

.sealing-threshold-card p {
    max-width: 56ch;
    margin: 0 auto 1.75rem;
    color: rgba(246, 240, 230, 0.86);
}

.review-slips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: 52vh;
    overflow-y: auto;
}

.review-slip-item {
    border: 1px solid var(--border-hairline-light);
    background: var(--ivory-warm);
    padding: 1rem;
    text-align: left;
    cursor: pointer;
}

.review-slip-item:hover {
    border-color: var(--gold-muted);
}

.review-slip-item strong {
    display: block;
    font-family: var(--font-serif);
    color: var(--plum-deep);
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   PAGE 4: CHOOSE YOUR RITUAL
   ========================================================================== */
.modes-selection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.mode-choice-card {
    display: block;
    cursor: pointer;
}

.mode-choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.mode-choice-inner {
    height: 100%;
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    padding: 2rem 1.75rem;
    transition: all var(--transition-smooth);
}

.mode-choice-card input[type="radio"]:checked + .mode-choice-inner {
    border: 2px solid var(--plum-deep);
    box-shadow: var(--shadow-parchment);
    background: #fffdf9;
}

.mode-choice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.mode-badge {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-muted);
    font-weight: 600;
}

.radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--plum-deep);
    display: inline-block;
    position: relative;
}

.mode-choice-card input[type="radio"]:checked + .mode-choice-inner .radio-indicator::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--plum-deep);
}

.mode-features {
    padding-left: 1.15rem;
    margin: 1rem 0 0;
    font-size: 0.92rem;
    color: var(--charcoal-muted);
}

.mode-features li {
    margin-bottom: 0.35rem;
}

.schedule-config-box {
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    padding: 2.25rem;
}

.schedule-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.25rem 0 1.5rem;
}

.preset-chip {
    background: var(--ivory-warm);
    border: 1px solid rgba(185, 154, 98, 0.45);
    color: var(--plum-deep);
    padding: 0.45rem 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    cursor: pointer;
}

.preset-chip:hover {
    background: var(--plum-deep);
    color: var(--ivory-warm);
}

.schedule-inputs-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.field-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--plum-deep);
}

.field-group input[type="date"],
.field-group input[type="time"],
.field-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(64, 36, 61, 0.28);
    background: var(--ivory-warm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.checkbox-inline {
    display: flex !important;
    align-items: flex-start;
    gap: 0.6rem;
    font-weight: 400 !important;
    font-size: 0.88rem !important;
}

.schedule-preview {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-hairline-light);
    font-size: 0.92rem;
    color: var(--charcoal-muted);
}

/* ==========================================================================
   PAGE 5: THE NIGHTLY RITUAL
   ========================================================================== */
.nightly-sanctuary {
    min-height: 82vh;
}

.nightly-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.nightly-meta-strip {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

.night-badge {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-champagne);
}

.mode-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid rgba(216, 199, 160, 0.4);
    color: var(--ivory-warm);
}

.subtle-settings-link {
    font-size: 0.82rem;
    color: var(--gold-champagne);
    text-decoration: underline;
}

.nightly-title {
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    color: var(--ivory-warm);
    margin-bottom: 0.6rem;
}

.nightly-subtitle {
    color: rgba(246, 240, 230, 0.8);
}

.twelve-nights-tracker {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.night-pip {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(216, 199, 160, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    color: rgba(246, 240, 230, 0.65);
}

.night-pip.released {
    background: var(--gold-champagne);
    color: var(--plum-darker);
    border-color: var(--gold-champagne);
    font-weight: 600;
}

.night-pip.current {
    border-color: var(--gold-champagne);
    box-shadow: 0 0 12px rgba(216, 199, 160, 0.45);
    color: var(--gold-champagne);
}

.hybrid-night-selector {
    max-width: 520px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-hairline-dark);
    background: rgba(41, 26, 43, 0.6);
}

.segmented-control {
    display: inline-flex;
    border: 1px solid var(--gold-muted);
    margin-top: 0.5rem;
}

.seg-btn {
    background: transparent;
    border: none;
    color: var(--ivory-warm);
    padding: 0.55rem 1.15rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    cursor: pointer;
}

.seg-btn.active {
    background: var(--gold-champagne);
    color: var(--plum-darker);
    font-weight: 600;
}

/* Digital Altar Canvas */
.altar-canvas {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    min-height: 360px;
    border: 1px solid rgba(216, 199, 160, 0.25);
    background: radial-gradient(circle at 50% 62%, rgba(96, 51, 90, 0.45), rgba(26, 15, 28, 0.92));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    overflow: hidden;
}

.embers-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.folded-wish-artifact {
    position: relative;
    width: 280px;
    height: 155px;
    margin-bottom: 2.25rem;
    z-index: 3;
}

.artifact-paper {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #f7f1e7, #e7dcc8);
    border: 1px solid var(--gold-muted);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.fold-line-horizontal {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(185, 154, 98, 0.4);
}

.fold-line-vertical {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(185, 154, 98, 0.25);
}

.artifact-seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #4e2341;
    border: 1.5px solid var(--gold-muted);
    color: var(--gold-champagne);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    z-index: 2;
}

.artifact-whisper {
    margin: 0.5rem 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--plum-deep);
    z-index: 2;
}

.burn-char-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 85%, rgba(25, 14, 12, 0.96) 0%, rgba(56, 26, 15, 0.85) 45%, transparent 75%);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.burn-glow-edge {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 rgba(255, 120, 30, 0);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.ceremony-candle {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 4;
}

.candle-flame-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.75rem;
    position: relative;
}

.flame-tongue {
    width: 18px;
    height: 30px;
    background: radial-gradient(ellipse at bottom, #fffbe2 0%, #f7be56 55%, #d96420 100%);
    border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
    box-shadow: 0 0 22px rgba(247, 190, 86, 0.8);
    display: block;
}

.flame-instruction {
    font-size: 0.76rem;
    color: var(--gold-champagne);
    margin-top: 0.35rem;
    letter-spacing: 0.06em;
}

.candle-body {
    width: 30px;
    height: 54px;
    background: linear-gradient(to right, #dfd3be, #f6f0e6, #cbbba0);
}

.candle-holder {
    width: 68px;
    height: 8px;
    background: var(--gold-muted);
}

.ceremony-controls {
    text-align: center;
    margin-top: 1.75rem;
}

.privacy-assurance-note {
    font-size: 0.86rem;
    color: rgba(216, 199, 160, 0.75);
    margin-top: 0.85rem;
}

/* Physical Stage & Completion Medallion */
.physical-instruction-card,
.completion-medallion,
.sanctuary-notice-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.75rem 2.25rem;
    border: 1px solid rgba(216, 199, 160, 0.35);
    background: rgba(41, 26, 43, 0.85);
    text-align: center;
}

.physical-instruction-card h2,
.completion-medallion h2 {
    font-size: 2rem;
    color: var(--ivory-warm);
    margin: 1rem 0 0.65rem;
}

.physical-lead {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--gold-champagne);
}

.fire-safety-box {
    text-align: left;
    background: rgba(246, 240, 230, 0.07);
    border-left: 2px solid var(--gold-champagne);
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: rgba(246, 240, 230, 0.86);
    margin: 1.5rem 0 2rem;
}

.star-emblem {
    font-size: 2rem;
    color: var(--gold-champagne);
    display: block;
}

.countdown-box {
    margin: 1.75rem auto;
    padding: 1.25rem;
    border-top: 1px solid var(--border-hairline-dark);
    border-bottom: 1px solid var(--border-hairline-dark);
}

.countdown-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-champagne);
    margin-bottom: 0.35rem;
}

.countdown-digits {
    font-family: var(--font-serif);
    font-size: 2.15rem;
    color: var(--ivory-warm);
}

.countdown-date-note {
    font-size: 0.86rem;
    color: rgba(246, 240, 230, 0.72);
    margin: 0.25rem 0 0;
}

.release-ledger-footer {
    max-width: 680px;
    margin: 3.5rem auto 0;
    border-top: 1px solid var(--border-hairline-dark);
    padding-top: 1.75rem;
}

.release-ledger-footer h3 {
    font-size: 1.25rem;
    color: var(--gold-champagne);
}

.release-history-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: rgba(246, 240, 230, 0.78);
}

.release-history-list li {
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(216, 199, 160, 0.12);
    display: flex;
    justify-content: space-between;
}

/* ==========================================================================
   PAGE 6: FINAL WISH REVEAL
   ========================================================================== */
.reveal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reveal-hero-title {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    color: var(--ivory-warm);
}

.envelope-wrapper {
    position: relative;
    background: var(--ivory-warm);
    color: var(--charcoal-warm);
    border: 1px solid var(--gold-champagne);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-deep);
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.break-seal-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.break-seal-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--plum-deep);
}

.unfolded-letter {
    display: none;
    width: 100%;
}

.envelope-wrapper.opened .break-seal-btn {
    display: none;
}

.envelope-wrapper.opened .unfolded-letter {
    display: block;
}

.letter-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-muted);
    margin-bottom: 1rem;
}

.final-wish-text {
    font-family: var(--font-serif);
    font-size: clamp(1.65rem, 3.2vw, 2.35rem);
    color: var(--plum-deep);
    line-height: 1.35;
    margin: 1rem auto 1.75rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border-hairline-light);
    border-bottom: 1px solid var(--border-hairline-light);
}

.reveal-mantra {
    font-family: var(--font-journal);
    font-style: italic;
    color: var(--charcoal-muted);
    margin: 0;
}

.post-reveal-commitment {
    margin-top: 2.5rem;
    background: var(--ivory-warm);
    color: var(--charcoal-warm);
    padding: 2.25rem;
    border: 1px solid var(--gold-champagne);
}

/* ==========================================================================
   PAGE 7: PERSONAL WISH VAULT
   ========================================================================== */
.vault-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.vault-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.vault-date-badge {
    font-size: 0.86rem;
    color: var(--charcoal-muted);
    border-bottom: 1px solid var(--gold-muted);
    padding-bottom: 0.25rem;
}

.guiding-wish-ledger {
    background: var(--plum-deep);
    color: var(--ivory-warm);
    padding: 2.5rem;
    border: 1px solid var(--gold-muted);
    margin-bottom: 2.5rem;
}

.guiding-wish-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.guiding-wish-quote {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--ivory-warm);
    margin: 0;
}

.goal-progress-panel {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-hairline-dark);
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--gold-champagne);
}

.gold-range-slider {
    width: 100%;
    accent-color: var(--gold-champagne);
}

.vault-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.vault-ledger-box {
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    padding: 2rem;
}

.box-sub {
    font-size: 0.9rem;
    color: var(--charcoal-muted);
    margin-bottom: 1.25rem;
}

.inline-add-form {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
}

.inline-add-form input,
.stack-form input,
.stack-form textarea,
.stack-form select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(64, 36, 61, 0.28);
    background: var(--ivory-warm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

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

.milestone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-hairline-light);
}

.milestone-row label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
}

.milestone-row.done span {
    text-decoration: line-through;
    color: var(--charcoal-muted);
}

.reflections-feed {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reflection-entry-card {
    padding: 1rem 1.25rem;
    background: var(--ivory-warm);
    border-left: 2px solid var(--gold-muted);
}

.reflection-entry-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--gold-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.fortnightly-sanctuary-box {
    background: var(--white-soft);
    border: 1px solid rgba(185, 154, 98, 0.45);
    padding: 2.25rem;
}

.fortnightly-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.whisper-sample {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.35rem;
    color: var(--plum-deep);
    margin: 1.25rem 0;
    padding-left: 1rem;
    border-left: 2px solid var(--gold-muted);
}

.fortnightly-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-hairline-light);
}

/* ==========================================================================
   SHARE STUDIO (9:16 INSTAGRAM CARDS)
   ========================================================================== */
.share-studio-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

.template-selector-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.template-choice-btn {
    text-align: left;
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.template-choice-btn strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--plum-deep);
    margin-bottom: 0.25rem;
}

.template-choice-btn span {
    font-size: 0.88rem;
    color: var(--charcoal-muted);
}

.template-choice-btn.active {
    border: 2px solid var(--plum-deep);
    background: #fffdf9;
}

.stack-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.story-canvas-frame {
    border: 1px solid var(--gold-muted);
    box-shadow: var(--shadow-parchment);
    background: var(--plum-darker);
    aspect-ratio: 9 / 16;
    width: 100%;
    max-width: 340px;
}

.story-canvas-frame canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==========================================================================
   FOOTER & MODALS
   ========================================================================== */
.site-footer {
    background: var(--plum-darker);
    color: rgba(246, 240, 230, 0.82);
    padding: 4rem 0 2.5rem;
    border-top: 1px solid var(--border-hairline-dark);
}

.ornamental-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.ornamental-divider .line {
    flex: 1;
    height: 1px;
    background: var(--border-hairline-dark);
}

.ornamental-divider .star {
    color: var(--gold-champagne);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: var(--gold-champagne);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ivory-warm);
}

.symbolic-disclaimer {
    font-size: 0.84rem;
    color: rgba(246, 240, 230, 0.65);
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold-champagne);
    margin-bottom: 1rem;
}

.footer-links-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-group li {
    margin-bottom: 0.55rem;
    font-size: 0.9rem;
}

.footer-links-group a:hover,
.footer-action-link:hover {
    color: var(--gold-champagne);
    text-decoration: underline;
}

.footer-action-link {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.footer-bottom {
    border-top: 1px solid var(--border-hairline-dark);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.84rem;
    color: rgba(246, 240, 230, 0.62);
}

/* Modal & Toast */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(21, 12, 23, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    z-index: 200;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal-sheet {
    background: var(--ivory-warm);
    color: var(--charcoal-warm);
    border: 1px solid var(--gold-muted);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.25rem;
    position: relative;
}

.modal-sheet.wide-modal {
    max-width: 780px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--plum-deep);
    cursor: pointer;
}

.storage-summary-box {
    background: var(--white-soft);
    border: 1px solid var(--border-hairline-light);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.92rem;
}

.modal-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.hairline-gold {
    border: 0;
    border-top: 1px solid rgba(185, 154, 98, 0.4);
    margin: 1.5rem 0;
}

.stack-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.danger-zone {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-hairline-light);
    text-align: center;
}

.text-danger-btn {
    background: none;
    border: none;
    color: #8a2837;
    text-decoration: underline;
    font-size: 0.86rem;
    cursor: pointer;
}

.ritual-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--plum-darker);
    color: var(--ivory-warm);
    border: 1px solid var(--gold-champagne);
    padding: 0.9rem 1.35rem;
    font-size: 0.92rem;
    z-index: 300;
    box-shadow: var(--shadow-deep);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 920px) {
    .hero-grid,
    .editorial-three-column,
    .modes-grid,
    .modes-selection-grid,
    .journal-layout,
    .vault-two-col,
    .share-studio-grid {
        grid-template-columns: 1fr;
    }

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

    .journey-step {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .folio-slips-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .folio-slip-tab {
        white-space: nowrap;
        width: auto;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: flex;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--plum-darker);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-hairline-dark);
    }

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

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