/* ============================================================
   DAEDALUS — Base / Reset / Typography
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────────────────────── */

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

html {
	font-size: 16px;
	scroll-behavior: smooth;
	scroll-padding-top: 70px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family:      var(--font-family);
	font-size:        var(--font-size-base);
	font-weight:      var(--font-weight-normal);
	line-height:      var(--line-height-normal);
	color:            var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering:   optimizeLegibility;
}

/* ── Images / media ──────────────────────────────────────────────────────── */

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

img {
	image-rendering: -webkit-optimize-contrast;
}

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
	font-weight: var(--font-weight-bold);
	line-height: var(--line-height-tight);
	color: var(--color-text);
}

h1 {
	font-size: clamp(1.75rem, 4vw, 2.75rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
}
h2 {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	letter-spacing: -0.02em;
	line-height: 1.25;
}
h3 {
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	letter-spacing: -0.01em;
	line-height: 1.3;
}
h4 { font-size: var(--font-size-xl);  }
h5 { font-size: var(--font-size-lg);  }
h6 { font-size: var(--font-size-base); }

p {
	margin-bottom: var(--space-4);
	color: var(--color-text);
}

p:last-child {
	margin-bottom: 0;
}

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

a:hover, a:focus {
	color: var(--color-primary-hover);
	text-decoration: underline;
}

/* Accessible focus indicator */
:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
	border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 3px;
}
:focus:not(:focus-visible) {
	outline: none;
}

ul, ol {
	list-style: none;
}

/* Entry content (WP editor output) keeps styles */
.entry-content ul,
.entry-content ol,
.page-content__body ul,
.page-content__body ol {
	list-style: initial;
	padding-left: var(--space-6);
	margin-bottom: var(--space-4);
}

.entry-content li,
.page-content__body li {
	margin-bottom: var(--space-2);
}

strong, b {
	font-weight: var(--font-weight-bold);
}

em, i {
	font-style: italic;
}

small {
	font-size: var(--font-size-sm);
}

hr {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: var(--space-8) 0;
}

/* ── Tables (base) ───────────────────────────────────────────────────────── */

table {
	width: 100%;
	border-collapse: collapse;
}

th, td {
	text-align: left;
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--color-border);
	vertical-align: middle;
}

th {
	font-weight: var(--font-weight-semibold);
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	background-color: var(--color-surface);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* ── Forms base ──────────────────────────────────────────────────────────── */

button, input, select, textarea {
	font-family: inherit;
	font-size: inherit;
}

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

/* ── Screen-reader only utility ──────────────────────────────────────────── */

.sr-only {
	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 ───────────────────────────────────────────────────────────── */

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-4);
	z-index: 9999;
	padding: var(--space-2) var(--space-4);
	background: var(--color-primary);
	color: var(--color-text-inverse);
	border-radius: var(--radius-md);
	font-weight: var(--font-weight-semibold);
}

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