/**
 * Base layer: reset, element defaults, accessibility helpers, type utilities.
 *
 * Uses tokens.css only. No layout widths, spacing scale or breakpoints yet —
 * those are not Figma variables and get measured in the navigation pass
 * (docs/11-tokens.md).
 */

/* ------------------------------------------------------------------
 * Reset
 * ---------------------------------------------------------------- */

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

* {
	margin: 0;
}

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

body {
	min-height: 100vh;
	font: var(--type-body-s);
	color: var(--color-text-dark);
	background-color: var(--color-background-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

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

button {
	cursor: pointer;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-size: inherit;
	font-weight: var(--font-weight-extrabold);
	line-height: inherit;
}

ul[role="list"],
ol[role="list"] {
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------------
 * Links and focus
 * ---------------------------------------------------------------- */

a {
	color: var(--color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

::selection {
	color: var(--color-text-white);
	background-color: var(--color-primary);
}

/* ------------------------------------------------------------------
 * Accessibility helpers
 * ---------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	overflow: visible;
	clip: auto;
	clip-path: none;
	font: var(--type-subtitle-m);
	color: var(--color-text-white);
	text-decoration: none;
	background-color: var(--color-primary);
}

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

/* ------------------------------------------------------------------
 * Type utilities — one class per Figma text style, named 1:1.
 * Components should prefer `font: var(--type-*)` in their own CSS;
 * these exist for markup that has no component stylesheet.
 * ---------------------------------------------------------------- */

.type-header-3xs { font: var(--type-header-3xs); }
.type-header-2xs { font: var(--type-header-2xs); }
.type-header-xs { font: var(--type-header-xs); }
.type-header-s { font: var(--type-header-s); }
.type-header-m { font: var(--type-header-m); }
.type-header-l { font: var(--type-header-l); }
.type-header-xl { font: var(--type-header-xl); }
.type-header-2xl { font: var(--type-header-2xl); }

.type-subtitle-s { font: var(--type-subtitle-s); }
.type-subtitle-m { font: var(--type-subtitle-m); }
.type-subtitle-l { font: var(--type-subtitle-l); }
.type-subtitle-xl { font: var(--type-subtitle-xl); }

.type-body-xs { font: var(--type-body-xs); }
.type-body-s { font: var(--type-body-s); }
.type-body-m { font: var(--type-body-m); }

/* ------------------------------------------------------------------
 * WordPress core classes
 * ---------------------------------------------------------------- */

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font: var(--type-body-xs);
	color: var(--color-text-grey);
}
