:root {
  --bg-canvas: #faf6ef;
  --bg-surface: #eee5d7;
  --bg-surface-hover: #e4d8c5;
  --text-primary: #2b211a;
  --text-muted: #5e5045;
  --accent-primary: #c2562e;
  --accent-secondary: #6b7a3a;
  --border-subtle: rgba(43, 33, 26, 0.14);
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(43, 33, 26, 0.15);
  --glow-accent: 0 0 24px -4px rgba(194, 86, 46, 0.3);
  --glass-backdrop: blur(16px) saturate(160%);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg-canvas); color: var(--text-primary); font-family: system-ui, -apple-system, sans-serif; line-height: 1.65; overflow-wrap: anywhere; hyphens: auto; }
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.2; color: var(--text-primary); margin-bottom: 0.75rem; }
p { margin-bottom: 1.25rem; }
a { color: var(--accent-primary); text-decoration: none; transition: color 0.25s var(--ease-kinetic); }
img { max-width: 100%; height: auto; display: block; border-radius: 0; object-fit: cover; filter: contrast(1.08) brightness(0.95); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.prose { max-width: 70ch; margin: 0 auto; }

/* Header & Nav */
.site-header { position: relative; width: 100%; background: transparent; border-bottom: 1px solid var(--border-subtle); transition: background-color 0.3s ease; z-index: 50; }
.site-header.scrolled { background: var(--bg-surface); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: Georgia, serif; font-size: 1.25rem; color: var(--text-primary); font-weight: 700; text-align: left; }
.brand-badge { width: 14px; height: 14px; border-radius: 50%; background: var(--accent-primary); display: inline-block; box-shadow: 0 0 0 3px rgba(194, 86, 46, 0.25); }
.nav-desktop { display: flex; gap: 1.75rem; align-items: center; list-style: none; }
.nav-desktop a { color: var(--text-primary); font-size: 0.95rem; position: relative; padding-bottom: 2px; }
.nav-desktop a::after, .link-expand::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--accent-primary); transition: width 0.3s var(--ease-kinetic); }
.nav-desktop a:hover::after, .link-expand:hover::after { width: 100%; }
.link-expand { position: relative; display: inline-block; font-weight: 500; padding-bottom: 2px; color: var(--accent-primary); }
.band-terracotta .link-expand, .band-olive .link-expand { color: #faf6ef; }
.band-terracotta .link-expand::after, .band-olive .link-expand::after { background: #faf6ef; }

.menu-toggle { display: none; background: none; border: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 1.4rem; line-height: 1; padding: 0.35rem 0.7rem; cursor: pointer; }
.nav-mobile { display: none; background: var(--bg-surface); border-bottom: 1px solid var(--border-subtle); padding: 1rem 1.5rem; }
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.nav-mobile a { color: var(--text-primary); font-size: 1.05rem; display: block; }

/* Buttons & Badges */
.btn-primary { display: inline-block; background: var(--accent-primary); color: #faf6ef; padding: 0.85rem 1.75rem; font-weight: 500; border: none; border-radius: 0; cursor: pointer; transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-elevation), var(--glow-accent); color: #faf6ef; }
.badge { display: inline-block; padding: 0.25rem 0.85rem; border-radius: 999px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-surface); color: var(--text-muted); margin-bottom: 1rem; border: 1px solid var(--border-subtle); }
.band-terracotta .badge, .band-olive .badge { background: rgba(250, 246, 239, 0.18); color: #faf6ef; border-color: rgba(250, 246, 239, 0.3); }
.avatar-round { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-secondary); color: #faf6ef; display: inline-flex; align-items: center; justify-content: center; font-family: Georgia, serif; font-size: 1.1rem; flex-shrink: 0; }

/* Hero */
.hero-cream { background: var(--bg-canvas); padding: 5.5rem 0 4.5rem; border-bottom: 1px solid var(--border-subtle); }
.hero-cream h1 { font-size: clamp(2.6rem, 5.5vw, 4.75rem); max-width: 16ch; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.15rem, 2vw, 1.35rem); max-width: 60ch; color: var(--text-muted); margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: center; }

/* Sections & Bands */
.section { padding: 4.5rem 0; }
.section-surface { background: var(--bg-surface); }
.band-terracotta { background: var(--accent-primary); color: #faf6ef; padding: 4.5rem 0; }
.band-olive { background: var(--accent-secondary); color: #faf6ef; padding: 4.5rem 0; }
.band-terracotta h2, .band-terracotta h3, .band-olive h2, .band-olive h3 { color: #faf6ef; }

/* Split Layout */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split-row.reverse .split-text { order: 2; }
.split-row.reverse .split-media { order: 1; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; box-shadow: var(--shadow-elevation); }

/* Translucent Habit Panels & Cards */
.glass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.habit-panel { background: rgba(250, 246, 239, 0.14); backdrop-filter: var(--glass-backdrop); -webkit-backdrop-filter: var(--glass-backdrop); border: 1px solid rgba(250, 246, 239, 0.28); padding: 2rem; border-radius: 0; color: #faf6ef; transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic); }
.habit-panel:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-elevation); }
.surface-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 2rem; border-radius: 0; transition: transform 0.35s var(--ease-kinetic), box-shadow 0.35s var(--ease-kinetic); }
.surface-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevation); background: var(--bg-surface-hover); }

/* Notification Priority Rows & Checklist */
.priority-list { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.5rem 0; }
.priority-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(250, 246, 239, 0.16); backdrop-filter: var(--glass-backdrop); border: 1px solid rgba(250, 246, 239, 0.3); }
.section .priority-row, .section-surface .priority-row { background: var(--bg-canvas); border: 1px solid var(--border-subtle); }
.checklist { list-style: none; margin: 1.5rem 0; display: grid; gap: 0.75rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.85rem 1rem; background: var(--bg-canvas); border: 1px solid var(--border-subtle); }
.checklist input[type="checkbox"] { accent-color: var(--accent-primary); width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; }
.prompt-box { border-left: 3px solid var(--accent-primary); padding: 1rem 1.5rem; background: var(--bg-surface); margin: 1.5rem 0; font-family: Georgia, serif; font-style: italic; }

/* Tables & Forms */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border-subtle); }
table { width: 100%; border-collapse: collapse; background: var(--bg-canvas); text-align: left; }
th, td { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border-subtle); }
th { background: var(--bg-surface); font-family: Georgia, serif; font-weight: 700; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; }
.form-control { width: 100%; padding: 0.8rem 1rem; background: var(--bg-canvas); border: 1px solid var(--border-subtle); color: var(--text-primary); font-family: inherit; font-size: 1rem; border-radius: 0; }
.form-output { background: var(--bg-surface); border: 1px solid var(--border-subtle); padding: 1.25rem; font-family: monospace; white-space: pre-wrap; margin-top: 1rem; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

/* Footer */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border-subtle); padding: 3.5rem 0 2.5rem; font-size: 0.92rem; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .split-row, .split-row.reverse { grid-template-columns: 1fr; gap: 2rem; }
  .split-row.reverse .split-text, .split-row.reverse .split-media { order: initial; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
