/* ═══════════════════════════════════════════════
   THE INSOUCIANT ASSEMBLY — Stylesheet
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Questrial&display=swap');

:root {
    --bg: #F7F3ED;
    --bg-warm: #F0EBE1;
    --bg-dark: #2C2825;
    --text: #2C2825;
    --text-light: #6B6560;
    --text-faint: #9C958E;
    --gold: #B8975A;
    --gold-light: #D4BC8A;
    --gold-dark: #8C6F3A;
    --accent: #7A6F5D;
    --green: #6B7F5E;
    --red-deep: #8B4A3A;
    --violet: #7B6B8A;
    --blue: #5A7A8B;
    --orange: #C08B4A;
    --border: #DDD5C8;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Questrial', 'Gill Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--serif);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
::selection { background: var(--gold-light); color: var(--bg-dark); }
img { max-width: 100%; height: auto; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; }
.label {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.label-faint { color: var(--text-faint); }
.serif-body {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
}
.serif-body p + p { margin-top: 1.4em; }

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes gentlePulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes breathe {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.15); opacity: 1; }
}

.anim-fade-up {
    animation: fadeUp 0.8s ease both;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }
.container-prose  { max-width: 720px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }

.page-section { padding: 4rem 2rem 5rem; }
.page-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.page-header h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--text);
    margin-bottom: 16px;
}
.page-header p {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 560px;
    margin: 24px auto 0;
}
.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto;
}

/* ── Ornament ── */
.star-ornament {
    color: var(--gold);
    font-size: 1.2rem;
    letter-spacing: 0.6em;
    text-align: center;
    animation: gentlePulse 4s ease-in-out infinite;
    padding: 2rem 0;
}

/* ── Header / Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.4s ease;
    padding: 0 2rem;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(247,243,237,0.95);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}
.site-logo .star { color: var(--gold); font-size: 1.4rem; }
.site-logo span:last-child {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.main-nav { display: flex; gap: 28px; align-items: center; }
.nav-link {
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-toggle { display: block; }
}

/* ── Cards ── */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.card:hover {
    border-color: var(--gold-light);
    box-shadow: 0 8px 32px rgba(184,151,90,0.08);
    transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }
.card-icon {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
    line-height: 1;
}
.card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.card p {
    font-family: var(--sans);
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-light);
}
.card-link {
    margin-top: 20px;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 14px 36px;
    background: var(--bg-dark);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 12px 32px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ── Hero ── */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    opacity: 0.035;
    animation: slowSpin 120s linear infinite;
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero .subtitle {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 32px;
}
.hero .intro-text {
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--text-faint);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Quote Bar ── */
.quote-bar {
    background: var(--bg-dark);
    padding: 2.5rem 2rem;
    text-align: center;
}
.quote-bar blockquote {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gold-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.quote-bar cite {
    display: block;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(247,243,237,0.3);
    margin-top: 12px;
    text-transform: uppercase;
    font-style: normal;
}

/* ── Ease / Virtue Items ── */
.ease-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}
.ease-card .accent-bar {
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
}
.ease-card .number {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 8px;
}
.ease-card h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 12px;
}
.ease-card h3 .icon { margin-right: 10px; }
.ease-card .commitment {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.ease-card .detail {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* ── Virtue Grid ── */
.virtue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.virtue-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1.8rem;
    transition: all 0.3s ease;
}
.virtue-card:hover { border-color: var(--gold-light); }
.virtue-card .num {
    font-family: var(--serif);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.6;
}
.virtue-card h3 {
    font-size: 1.3rem;
    font-weight: 500;
    display: inline;
    margin-left: 12px;
}
.virtue-card .sub {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 8px;
}
.virtue-detail {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}
.virtue-detail p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.practice-box {
    background: var(--bg-warm);
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--gold);
}
.practice-box .practice-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.practice-box p {
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Exercise Accordion ── */
.exercise-item {
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s ease;
    margin-bottom: 24px;
}
.exercise-item.open { border-color: var(--gold-light); }
.exercise-header {
    padding: 2rem 2.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.exercise-header:hover { background: rgba(184,151,90,0.02); }
.exercise-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.badge {
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
    padding: 3px 10px;
    display: inline-block;
}
.badge-beginner { background: var(--green); }
.badge-intermediate { background: var(--blue); }
.badge-advanced { background: var(--violet); }
.exercise-header h3 { font-size: 1.4rem; font-weight: 500; }
.exercise-header .desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
}
.exercise-toggle {
    font-size: 1.5rem;
    color: var(--gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}
.exercise-item.open .exercise-toggle { transform: rotate(45deg); }

.exercise-body {
    display: none;
    padding: 0 2.5rem 2.5rem;
    animation: fadeIn 0.3s ease;
}
.exercise-item.open .exercise-body { display: block; }

.node-spine {
    position: relative;
    height: 280px;
    width: 80px;
    margin: 0 auto 32px;
}
.node-spine .line {
    position: absolute;
    left: 50%;
    top: 8%; bottom: 8%;
    width: 2px;
    transform: translateX(-50%);
    opacity: 0.3;
}
.node-dot {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 12px;
}
.node-dot .dot {
    width: 24px; height: 24px;
    border-radius: 50%;
}
.node-dot .dot-label {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    white-space: nowrap;
    position: absolute;
    left: 40px;
}

.step-list { display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 16px; }
.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 0.8rem;
    color: var(--text-light);
}
.step-item p {
    font-size: 0.95rem;
    line-height: 1.75;
    padding-top: 3px;
}

/* ── Node Row (exercises page top) ── */
.node-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.node-circle {
    text-align: center;
}
.node-circle .orb {
    width: 44px; height: 44px;
    border-radius: 50%;
    margin: 0 auto 8px;
    animation: breathe 5s ease-in-out infinite;
}
.node-circle span {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ── Announcements ── */
.announcement {
    background: white;
    border: 1px solid var(--border);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
}
.announcement time {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.announcement h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-top: 8px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.announcement h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}
.announcement h2 a:hover { color: var(--gold-dark); }
.announcement .body {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-light);
    white-space: pre-wrap;
}
.announcement .read-more {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-light);
    padding-bottom: 2px;
    transition: all 0.3s;
}
.announcement .read-more:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Beginner Guide ── */
.guide-box {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: 2rem;
    margin: 1.5rem 0;
}
.guide-box h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 16px;
}
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 20px;
    border-left: 2px solid var(--gold-light);
}
.guide-steps strong { color: var(--gold-dark); }
.text-link {
    color: var(--gold-dark);
    cursor: pointer;
    border-bottom: 1px solid var(--gold-light);
    text-decoration: none;
    transition: all 0.3s;
}
.text-link:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* ── Find a Circle ── */
.cta-band {
    background: var(--bg-warm);
    padding: 4rem 2rem;
    text-align: center;
}
.cta-band h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.cta-band p {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

/* ── Safety Note ── */
.safety-note {
    text-align: center;
    margin-top: 48px;
    background: var(--bg-warm);
    padding: 2rem;
    border: 1px solid var(--border);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}
.safety-note strong { color: var(--text); }

/* ── Footer ── */
.site-footer {
    background: var(--bg-dark);
    color: rgba(247,243,237,0.5);
    padding: 3.5rem 2rem 2.5rem;
    margin-top: 4rem;
}
.footer-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.footer-col-title {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(247,243,237,0.35);
    margin-bottom: 12px;
}
.footer-link {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: rgba(247,243,237,0.6);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s;
}
.footer-link:hover { color: var(--gold); }
.footer-address {
    font-family: var(--sans);
    font-size: 0.8rem;
    line-height: 1.7;
}
.footer-bottom {
    max-width: 1100px;
    margin: 2.5rem auto 0;
    border-top: 1px solid rgba(247,243,237,0.08);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.footer-bottom small {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: rgba(247,243,237,0.3);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
    font-family: var(--sans);
    font-size: 0.72rem;
    color: rgba(247,243,237,0.3);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Quote / Attribution blocks ── */
.page-quote {
    text-align: center;
    margin-top: 48px;
}
.page-quote blockquote {
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 8px;
}
.page-quote cite {
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--text-faint);
    font-style: normal;
}
