/* XFeeling — The Princess Who Found Her Light (fictional tale) */

:root {
  --ink: #1a2430;
  --ink-soft: #3a4654;
  --forest: #1f4d3f;
  --forest-deep: #12352c;
  --moss: #6f9e86;
  --gold: #c9a24a;
  --gold-soft: #e6d3a3;
  --blush: #f3ebe3;
  --cream: #f7f2ea;
  --white: #ffffff;
  --line: rgba(26, 36, 48, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(18, 53, 44, 0.18);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--blush);
  line-height: 1.7;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--forest); }
.container { width: min(980px, calc(100% - 40px)); margin: 0 auto; }
.wide { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.compliance-banner {
  background: var(--forest-deep);
  color: rgba(255,255,255,0.92);
  font-size: 0.84rem;
  text-align: center;
  padding: 0.7rem 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.compliance-banner strong { color: var(--gold-soft); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 242, 234, 0.9);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--forest); }
.nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-links a:hover { color: var(--forest); }

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: #0d241d;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 24, 20, 0.25) 0%, rgba(8, 24, 20, 0.72) 55%, rgba(8, 24, 20, 0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  color: #fff;
  margin-bottom: 1.1rem;
}
.hero-lead {
  max-width: 36rem;
  font-size: 1.12rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}
.hero-note {
  max-width: 40rem;
  font-size: 0.9rem;
  opacity: 0.8;
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}

.chapter {
  padding: 4.5rem 0;
}
.chapter.alt { background: #fff7ef; }
.chapter-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.chapter-grid.reverse { grid-template-columns: 0.95fr 1.05fr; }
.chapter-grid.reverse .copy { order: 2; }
.chapter-grid.reverse .visual { order: 1; }
.eyebrow {
  color: var(--forest);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.prose p { margin-bottom: 1rem; font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.visual {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.4);
}
.visual img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.habits {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 74, 0.12), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(111, 158, 134, 0.16), transparent 35%),
    var(--blush);
}
.habits-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.habit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.habit-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
}
.habit-card h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 0.55rem;
}
.habit-card p { font-size: 0.96rem; }

.disclaimer-box {
  margin-top: 2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.disclaimer-box h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.disclaimer-box ul {
  margin-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.disclaimer-box li { margin-bottom: 0.45rem; }

.closing {
  padding: 4.5rem 0;
  background: linear-gradient(160deg, var(--forest-deep), var(--forest));
  color: rgba(255,255,255,0.92);
  text-align: center;
}
.closing h2 { color: #fff; margin-bottom: 0.9rem; }
.closing p { max-width: 38rem; margin: 0 auto 1rem; opacity: 0.9; }
.closing .small {
  font-size: 0.88rem;
  opacity: 0.75;
  max-width: 42rem;
  margin: 1.25rem auto 0;
}

.site-footer {
  background: #0f1b17;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  gap: 1rem;
}
.site-footer a { color: var(--gold-soft); }
.footer-legal { opacity: 0.8; line-height: 1.65; }

@media (max-width: 900px) {
  .chapter-grid,
  .chapter-grid.reverse { grid-template-columns: 1fr; }
  .chapter-grid.reverse .copy,
  .chapter-grid.reverse .visual { order: initial; }
  .habit-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
}
