/* =============================================================================
   Mindful Resilience — Design System (tokens)
   -----------------------------------------------------------------------------
   Everything that defines the "brand" lives here as CSS custom properties so the
   whole palette can be re-themed in one place. The palette is an editorial,
   retreat-inspired set: ink black, warm cream and copper, with Playfair Display
   headings, Montserrat body text and a handwritten script accent (Oooh Baby).
   Token names are kept from the earlier pine palette so components don't change.
   ========================================================================== */

:root {
	/* ---- Core palette ---- */
	--c-black:       #0e0e11;   /* header, dark sections */
	--c-pine:        #9c6a4e;   /* primary brand (deep copper, AA on light) */
	--c-pine-deep:   #7a5038;   /* darker primary / hover */
	--c-pine-ink:    #0e0e11;   /* headings */
	--c-sage:        #c5977d;   /* secondary (copper) */
	--c-sage-soft:   #e8d6c8;   /* soft fills */
	--c-mist:        #f3ece4;   /* faint tint */
	--c-cream:       #f6f2ec;   /* page background */
	--c-cream-deep:  #ece4d9;   /* alt sections */
	--c-paper:       #fdfbf8;   /* cards */
	--c-clay:        #c5977d;   /* copper accent */
	--c-clay-soft:   #e3c6b2;
	--c-gold:        #c5977d;   /* lines, highlights */
	--c-ink:         #38383a;   /* body text */
	--c-muted:       #6e655d;   /* secondary text */
	--c-line:        #e3dacf;   /* hairlines on cream */
	--c-white:       #ffffff;

	/* ---- Semantic roles ---- */
	--bg:            var(--c-cream);
	--bg-alt:        var(--c-cream-deep);
	--surface:       var(--c-paper);
	--text:          var(--c-ink);
	--text-muted:    var(--c-muted);
	--heading:       var(--c-pine-ink);
	--primary:       var(--c-pine);
	--primary-ink:   var(--c-pine-deep);
	--accent:        var(--c-clay);
	--border:        var(--c-line);

	/* ---- Dark gradient (footer, featured cards) ---- */
	--grad-footer: linear-gradient(160deg,
		#0e0e11 0%,
		#1b1918 55%,
		#3b2a20 100%);
	--grad-soft: linear-gradient(135deg, #f6f2ec 0%, #f3ece4 55%, #efe2d6 100%);
	--grad-orb: radial-gradient(circle at 30% 30%, #e3c6b2 0%, #c5977d 50%, #7a5038 100%);

	/* ---- Typography ---- */
	--font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body:    'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--font-script:  'Oooh Baby', 'Brush Script MT', cursive;

	--fs-xs:  0.8125rem;
	--fs-sm:  0.9375rem;
	--fs-base: 1rem;
	--fs-md:  1.25rem;
	--fs-lg:  1.5rem;
	--fs-xl:  2rem;
	--fs-2xl: clamp(2.2rem, 4.5vw, 3.4rem);
	--fs-3xl: clamp(2.8rem, 7vw, 5.4rem);

	/* ---- Spacing / layout ---- */
	--gutter: clamp(1.25rem, 5vw, 5rem);
	--maxw:   1200px;
	--maxw-narrow: 760px;
	--section-y: clamp(4rem, 9vw, 8rem);

	/* ---- Radius / shadow ---- */
	--r-sm: 10px;
	--r-md: 18px;
	--r-lg: 28px;
	--r-pill: 999px;
	--shadow-sm: 0 2px 10px rgba(14, 14, 17, 0.06);
	--shadow-md: 0 18px 40px -22px rgba(14, 14, 17, 0.35);
	--shadow-lg: 0 40px 80px -40px rgba(14, 14, 17, 0.5);

	/* ---- Motion ---- */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--speed: 0.5s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.12; font-weight: 500; letter-spacing: -0.005em; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--maxw-narrow); }
.section { padding-block: var(--section-y); }
/* Script accent: the handwritten line that introduces each section */
.eyebrow {
	font-family: var(--font-script);
	font-size: clamp(1.6rem, 2.6vw, 2.1rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	color: var(--c-pine);
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}
.eyebrow::before { content: ""; width: 2.4rem; height: 1px; background: var(--c-gold); display: inline-block; }

/* ---- Buttons ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	padding: 0.85em 1.5em;
	border-radius: var(--r-pill);
	font-weight: 600; font-size: var(--fs-sm);
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
	will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--primary); color: var(--c-white); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--c-pine-deep); }
.btn--ghost { background: transparent; color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--accent { background: var(--accent); color: var(--c-white); box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--c-pine-deep); }
.btn--light { background: var(--c-white); color: var(--primary-ink); }
.btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 1.05em 2em; font-size: var(--fs-base); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---- Reveal-on-scroll primitive ---- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
	[data-reveal] { opacity: 1; transform: none; }
}
