/* ==========================================================================
   PTO Mode — Base: reset, typography, links, buttons, forms
   Depends on tokens.css.
   ========================================================================== */

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

* {
	margin: 0;
}

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

body {
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: var(--fs-200);
	font-weight: var(--fw-regular);
	line-height: var(--lh-body);
	color: var(--color-body);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	cursor: pointer;
	background: none;
	border: none;
}

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

/* --- Headings / display ---------------------------------------------------- */
h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: var(--fw-display);
	line-height: var(--lh-snug);
	letter-spacing: var(--tracking-display);
	color: var(--color-ink);
	text-wrap: balance;
}

h1 { font-size: var(--fs-600); }
h2 { font-size: var(--fs-500); }
h3 { font-size: var(--fs-400); }
h4 { font-size: var(--fs-300); }

/* Display utility classes — larger, tighter tracking for hero/marketing type. */
.display {
	font-family: var(--font-display);
	font-weight: var(--fw-display);
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-display-tight);
	color: var(--color-ink);
	text-wrap: balance;
}
.display--xl { font-size: var(--fs-800); } /* 61px hero */
.display--l  { font-size: var(--fs-700); } /* 49px */
.display--m  { font-size: var(--fs-600); } /* 39px */

/* --- Body copy ------------------------------------------------------------- */
p {
	max-width: var(--prose-max);
}

.lede {
	font-size: var(--fs-300);
	line-height: 1.5;
	color: var(--color-body);
}

.eyebrow {
	font-family: var(--font-body);
	font-size: var(--fs-100);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--tracking-eyebrow);
	text-transform: uppercase;
	color: var(--color-pine);
}

.microcopy {
	font-size: var(--fs-100);
	color: var(--color-body);
	opacity: 0.85;
}

.text-terracotta { color: var(--color-terracotta); }
.text-pine { color: var(--color-pine); }
.text-ink { color: var(--color-ink); }

/* --- Links ----------------------------------------------------------------- */
a {
	color: var(--color-pine);
	text-decoration-color: var(--color-hairline);
	text-underline-offset: 0.15em;
	transition: color var(--dur) var(--ease);
}
a:hover {
	color: var(--color-terracotta);
}

/* --- Accessible focus ------------------------------------------------------ */
:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: var(--space-3) var(--space-5);
	font-family: var(--font-body);
	font-size: var(--fs-200);
	font-weight: var(--fw-semibold);
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
	white-space: nowrap;
	border-radius: var(--radius-pill);
	transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
		transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn {
	min-height: 44px; /* accessible tap target */
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Primary CTA — terracotta. Fill is the darker CTA terracotta so the paper
   label clears WCAG AA (4.63:1); the brand accent terracotta stays for dots. */
.btn--terracotta {
	background-color: var(--color-terracotta-cta);
	color: var(--color-on-dark);
}
.btn--terracotta:hover {
	background-color: var(--color-terracotta-cta-ink);
	color: var(--color-on-dark);
}

/* Pine — secondary/solid brand button. */
.btn--pine {
	background-color: var(--color-pine);
	color: var(--color-on-dark);
}
.btn--pine:hover {
	background-color: var(--color-pine-ink);
	color: var(--color-on-dark);
}

/* Ghost — quiet link-style action. */
.btn--ghost {
	background-color: transparent;
	color: var(--color-pine);
	box-shadow: inset 0 0 0 1px var(--color-hairline);
}
.btn--ghost:hover {
	background-color: var(--color-surface);
	color: var(--color-pine-ink);
}

.btn--lg {
	padding: var(--space-4) var(--space-6);
	font-size: var(--fs-300);
}

/* --- Form fields ----------------------------------------------------------- */
.field {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	font-size: var(--fs-200);
	color: var(--color-ink);
	background-color: var(--color-surface);
	border: 1px solid var(--color-hairline);
	border-radius: var(--radius-pill);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field::placeholder { color: var(--color-body); opacity: 0.7; }
.field:focus {
	outline: none;
	border-color: var(--color-pine);
	box-shadow: 0 0 0 3px rgba(14, 76, 65, 0.12);
}

/* --- Accessibility helpers ------------------------------------------------- */
.screen-reader-text {
	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: var(--space-4);
	top: -60px;
	z-index: 100;
	padding: var(--space-2) var(--space-4);
	background: var(--color-ink);
	color: var(--color-on-dark);
	border-radius: var(--radius-sm);
	transition: top var(--dur) var(--ease);
}
.skip-link:focus {
	top: var(--space-4);
	color: var(--color-on-dark);
}

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