/* =====================================================================
   Argen Verlag — base.css
   Reset, design tokens, typography, base elements.
   ===================================================================== */

/* ---------- Design tokens (also defined in style.css for the theme
   header; redefined here so the CSS works standalone). ---------- */
:root {
	/* Colors */
	--color-ink: #1a1a2e;
	--color-paper: #f8f6f1;
	--color-accent: #2a5298;
	--color-accent-dark: #1f3e73;
	--color-muted: #6b6b7a;
	--color-border: #e0ddd6;
	--color-white: #ffffff;

	/* Typography */
	--font-head: 'EB Garamond', Georgia, serif;
	--font-body: 'Inter', 'Source Sans 3', system-ui, sans-serif;

	/* Spacing scale */
	--space-1: .5rem;
	--space-2: 1rem;
	--space-3: 1.5rem;
	--space-4: 2rem;
	--space-6: 3rem;
	--space-8: 5rem;

	/* Layout */
	--container: 1120px;

	/* Misc */
	--radius: 3px;
	--shadow-card: 0 1px 2px rgba(26, 26, 46, .04), 0 4px 16px rgba(26, 26, 46, .06);
	--shadow-card-hover: 0 4px 8px rgba(26, 26, 46, .06), 0 12px 28px rgba(26, 26, 46, .12);
	--transition: 180ms ease;
}

/* ---------- 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: 1.0625rem;
	line-height: 1.7;
	color: var(--color-ink);
	background-color: var(--color-paper);
	-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;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.2;
	color: var(--color-ink);
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.2rem, 5vw, 3.4rem);
	letter-spacing: -.01em;
}

h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
	font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

h4 {
	font-size: 1.2rem;
}

p {
	max-width: 70ch;
}

p + p {
	margin-top: var(--space-2);
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover,
a:focus {
	text-decoration: underline;
	text-underline-offset: .15em;
}

strong,
b {
	font-weight: 600;
}

small {
	font-size: .8125rem;
}

blockquote {
	font-family: var(--font-head);
	font-size: 1.4rem;
	line-height: 1.5;
	color: var(--color-ink);
}

hr {
	border: 0;
	height: 1px;
	background-color: var(--color-border);
	margin: var(--space-4) 0;
}

/* ---------- Reusable label / eyebrow text ---------- */
.eyebrow,
.label {
	display: inline-block;
	font-family: var(--font-body);
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--color-muted);
}

/* ---------- 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: -9999px;
	top: 0;
	z-index: 1000;
	padding: var(--space-1) var(--space-2);
	background: var(--color-ink);
	color: var(--color-white);
	text-decoration: none;
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
