/**
 * base.css — reset, design tokens, typography, buttons, forms.
 */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

img, svg, video { display: block; max-width: 100%; }

:root {
	--bg: #f7f2e4;
	--bg-soft: #fbf8ee;
	--bg-beige: #eae0c9;
	--coral: #f0a05c;
	--coral-deep: #8a4a14;
	--sage: #6e9384;
	--ok: #3f6b4e;
	--mint: #cfe0d2;
	--ink: #26332b;
	--teal: #2e5a48;
	--mem-bg: #e6eae4;
	--mem-ink: #3b4a45;
	--mem-card: #f2f5f1;
	--mem-ink-deep: #2e3a35;
	--white: #fffdf6;
	--bg-warm: #fbf6ea;
	--stage-top: #faf6e9;
	--stage-bottom: #efe6d0;
	--error: #b02a1e;
	--radius-card: 22px;
	--radius-lg: 26px;
	--radius-pill: 999px;
	--shadow-lift: 0 18px 46px #2a2a261f;
	--ease-out: cubic-bezier(.22, 1, .36, 1);
	--ease-standard: cubic-bezier(.2, .8, .2, 1);
	--maxw: 1180px;
	--header-height: 72px;
	--font-display: "Literata", Georgia, "Times New Roman", serif;
	--font-ui: "Poppins", "Helvetica Neue", Arial, sans-serif;
	--font-round: "Quicksand", "Poppins", "Helvetica Neue", Arial, sans-serif;
	--spring-smooth-dur: .61s;
	--spring-snappy-dur: .46s;
	--spring-sheet-dur: .42s;
	--spring-smooth: cubic-bezier(.22, 1, .36, 1);
	--spring-snappy: cubic-bezier(.2, .9, .2, 1);
	--spring-sheet: cubic-bezier(.16, 1, .3, 1);
}

@supports (animation-timing-function: linear(0, 1)) {
	:root {
		--spring-smooth: linear(0, .0533, .1688, .303, .4335, .5497, .6482, .7287, .793, .8434, .8825, .9123, .9349, .9519, .9646, .9741, .981, .9862, .99, .9927, .9947, .9962, .9973, .998, .9986, .999, 1);
		--spring-snappy: linear(0, .0619, .1922, .3389, .4769, .5959, .6934, .7706, .8303, .8756, .9095, .9345, .9529, .9663, .976, .983, .9879, .9915, .994, .9958, .9971, .9979, .9986, .999, 1);
		--spring-sheet: linear(0, .0326, .1124, .2177, .3331, .4479, .5554, .6517, .7348, .8045, .8613, .9063, .941, .9669, .9856, .9985, 1.0069, 1.0119, 1.0144, 1.0152, 1.0147, 1.0135, 1.0119, 1.0102, 1.0085, 1.0068, 1.0053, 1.0041, 1.003, 1.0021, 1.0014, 1.0009, 1);
	}
}

html { scroll-behavior: smooth; }

body {
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.7;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }
p + p { margin-top: .9em; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }

strong { font-weight: 600; }

.kicker {
	font-family: var(--font-round);
	font-weight: 700;
	font-size: .78rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--coral-deep);
	margin-bottom: .9rem;
}

.lede { font-size: 1.06rem; color: #3d4a42; }

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

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	background: var(--teal);
	color: var(--white);
	padding: 10px 18px;
	border-radius: var(--radius-pill);
	z-index: 999;
	transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55em;
	font-family: var(--font-ui);
	font-size: .95rem;
	font-weight: 500;
	line-height: 1;
	padding: 1.02em 1.9em;
	border-radius: var(--radius-pill);
	border: 1px solid transparent;
	background: var(--teal);
	color: var(--white);
	text-decoration: none;
	cursor: pointer;
	transition: transform .35s var(--spring-snappy), background .25s, color .25s, border-color .25s, box-shadow .35s;
}

.btn:hover { transform: translateY(-2px); background: #264a3b; color: var(--white); box-shadow: 0 10px 24px #2e5a4829; }
.btn:active { transform: translateY(0); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--ghost-light {
	background: transparent;
	color: var(--white);
	border-color: #ffffff80;
}
.btn--ghost-light:hover { background: #ffffff1a; color: var(--white); border-color: #ffffffcc; }

.btn--outline {
	background: transparent;
	color: var(--teal);
	border-color: #2e5a4859;
}
.btn--outline:hover { background: #2e5a480f; color: var(--teal); box-shadow: none; }

.btn--block { display: flex; width: 100%; }

.btn--text {
	background: none;
	border: 0;
	padding: 0;
	color: var(--teal);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-size: .95rem;
}

/* ------------------------------------------------------------------ forms */

label { font-size: .9rem; font-weight: 500; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
	width: 100%;
	font-family: var(--font-ui);
	font-size: .95rem;
	color: var(--ink);
	background: var(--white);
	border: 1px solid #26332b26;
	border-radius: 14px;
	padding: .8em 1em;
	transition: border-color .2s, box-shadow .2s;
}

input:focus, textarea:focus, select:focus {
	border-color: var(--teal);
	box-shadow: 0 0 0 3px #2e5a4814;
	outline: none;
}

textarea { min-height: 140px; resize: vertical; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .4rem; }
.field .hint { font-size: .8rem; color: #5c6b62; margin-top: .35rem; }

.form-note { font-size: .82rem; color: #5c6b62; }

.notice {
	border-radius: 14px;
	padding: .9rem 1.1rem;
	font-size: .9rem;
	margin-bottom: 1.2rem;
	border: 1px solid transparent;
}
.notice--ok { background: #e4efe6; border-color: #3f6b4e40; color: #2c4f39; }
.notice--error { background: #f8e6e2; border-color: #b02a1e33; color: #8a2318; }

/* ------------------------------------------------------------ placeholders */

.sp-ph { width: 100%; height: 100%; display: block; }

/* --------------------------------------------------------- reduced motion */

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