/* Reset + base typography + accessibility fundamentals. */

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

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

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

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

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: var(--line-height-heading);
	color: var(--color-anchor);
	margin: 0 0 var(--space-4);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
	margin: 0 0 var(--space-4);
}

/* Reading-measure constraint is opt-in only (long-form pages), never global —
   applying it to every <p> made text wrap early inside boxes that had more
   room to give, which looked broken. */
.psc-prose p {
	max-width: var(--measure);
}

a {
	color: var(--color-link);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

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

ul, ol {
	padding-left: 1.4em;
}

/* Visible, high-contrast focus ring everywhere — never suppressed. */
:focus-visible {
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}

/* Minimum comfortable tap target for every interactive element. */
a, button, input, select, textarea, summary {
	min-height: 44px;
}

textarea {
	min-height: auto;
}

.psc-visually-hidden {
	position: absolute;
	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;
	top: -100px;
	left: var(--space-4);
	z-index: 1000;
	background: var(--color-anchor);
	color: var(--color-on-anchor);
	padding: var(--space-2) var(--space-4);
	border-radius: var(--radius-sm);
	transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus {
	top: var(--space-4);
}

.psc-external-icon {
	font-size: 0.85em;
}
