/*
 * Base reset & typography — constantinoiu theme.
 *
 * Minimal, modern reset plus base document typography built entirely
 * from the tokens in tokens.css. No component or page styling lives
 * here (see components.css / per-page CSS in later waves).
 */

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

/* ---------------------------------------------------------------------
 * Margin/padding zeroing
 * --------------------------------------------------------------------- */
html,
body,
h1, h2, h3, h4, h5, h6,
p,
ul, ol,
figure,
blockquote,
dl, dd {
	margin: 0;
	padding: 0;
}

/* 16px baseline so the rem math in tokens.css (1rem = 16px) holds. */
html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--font-family);
	font-weight: var(--fw-regular);
	color: var(--c-white);
	background: var(--c-black);
	line-height: 1.5;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------------
 * Responsive media defaults
 * --------------------------------------------------------------------- */
img,
svg,
video,
picture,
canvas {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ---------------------------------------------------------------------
 * Links — reset, color/decoration handled per-component (accent state
 * on active nav items etc. is defined in components.css).
 * --------------------------------------------------------------------- */
a {
	color: inherit;
	text-decoration: none;
	background-color: transparent;
}

/* ---------------------------------------------------------------------
 * Lists — reset for nav usage; pages that need bullets can restore them.
 * --------------------------------------------------------------------- */
ul,
ol {
	list-style: none;
}

/* ---------------------------------------------------------------------
 * Forms & buttons inherit typography instead of the browser UI font.
 * --------------------------------------------------------------------- */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: inherit;
	color: inherit;
	margin: 0;
}

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

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
	appearance: button;
}

textarea {
	resize: vertical;
}

/* ---------------------------------------------------------------------
 * Misc resets
 * --------------------------------------------------------------------- */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

fieldset {
	border: none;
}

/* ---------------------------------------------------------------------
 * Reduced motion — global neutralization of transitions/animations.
 * ARIA is optional per spec; prefers-reduced-motion is not.
 * --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
