/* =========================================================
   MIMALE — Base styles (reset + typography + elements)
   ========================================================= */

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

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	tab-size: 4;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--color-bg-base);
	color: var(--color-ink-primary);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-feature-settings: "kern", "liga", "calt", "ss01";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	color: var(--color-ink-primary);
	margin: 0 0 var(--space-4);
	font-weight: 500;
	line-height: var(--lh-display);
	letter-spacing: var(--ls-display);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); font-family: var(--font-body); font-weight: 600; }

p {
	margin: 0 0 var(--space-4);
	max-width: 68ch;
}

a {
	color: var(--color-brand-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--duration-fast) var(--easing-default);
}
a:hover { color: var(--color-brand-primary-hover); }
a:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus);
	border-radius: var(--radius-xs);
}

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

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

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

ul, ol { padding-left: 1.25em; margin: 0 0 var(--space-4); }
li { margin-bottom: var(--space-2); }

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

::selection {
	background: var(--color-brand-primary);
	color: var(--color-ink-inverse);
}

:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus);
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-toast);
	background: var(--color-bg-inverse);
	color: var(--color-ink-inverse);
	padding: var(--space-3) var(--space-4);
	border-radius: var(--radius-sm);
	font-weight: 600;
}
.skip-link:focus { left: var(--space-4); top: var(--space-4); }

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

.container {
	width: 100%;
	max-width: var(--container-max);
	margin-inline: auto;
	padding-inline: var(--gutter-mobile);
}
@media (min-width: 768px) {
	.container { padding-inline: var(--gutter-desktop); }
}

.site-wordmark {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: -0.01em;
	color: var(--color-brand-primary);
	text-decoration: none;
}
