/* ==========================================================================
   Dunes — main stylesheet
   Base layer only. Brand colors and fonts get filled in once the design
   details are ready.
   ========================================================================== */

/* Design tokens (placeholders until the design is set)
   -------------------------------------------------------------------------- */
:root {
	--color-text: #1a1a1a;
	--color-bg: #ffffff;
	--color-link: #00557a;
	--color-focus: #00557a;

	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--container-max: 75rem;
	--gutter: 1.25rem;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background: var(--color-bg);
}

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

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

a {
	color: var(--color-link);
}

/* Layout
   -------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

/* Visible keyboard focus on every interactive element. */
:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 2px;
}

/* Main gets focus from the skip link; no outline needed there. */
.site-main:focus {
	outline: none;
}

/* Skip link: hidden until focused with the keyboard. */
.skip-link {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--color-bg);
	color: var(--color-text);
	font-weight: 700;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: translateY(0);
}

/* Hidden visually, still read by screen readers (WordPress core class). */
.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;
}

.screen-reader-text:focus {
	position: static !important;
	width: auto;
	height: auto;
	margin: 0;
	clip: auto;
	white-space: normal;
}

/* Respect users who've asked their OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* WordPress core alignment classes
   -------------------------------------------------------------------------- */
.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text {
	font-size: 0.875rem;
}
