/*
 * Base reset + typography + layout primitives.
 * Loaded after _tokens.css.
 */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a       { text-decoration: none; color: inherit; }
img,
svg     { max-width: 100%; height: auto; display: block; }
ul, ol  { list-style: none; }
button  { cursor: pointer; border: none; outline: none; font-family: inherit; background: none; color: inherit; }

/* Layout */
.axis-container {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

/* Typography — display family on all headings */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--text);
}

/* Numerical data uses tabular figures so columns line up */
.axis-num,
.price,
.purity,
.molecular-weight {
	font-variant-numeric: tabular-nums;
}

/* Scroll-reveal helper (toggled by axis.js IntersectionObserver) */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Section vertical rhythm */
.axis-section {
	padding: clamp(64px, 9vw, 128px) 0;
}

/* Section labels (small uppercase eyebrow) */
.axis-section-label {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 20px;
}

/* Buttons */
.axis-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	border: 1px solid var(--border-hover);
	border-radius: 0;
	transition: all 0.3s var(--ease);
	cursor: pointer;
}
.axis-btn-primary {
	background: var(--accent);
	color: var(--bg);
	border-color: var(--accent);
}
.axis-btn-primary:hover {
	background: var(--accent-light);
	border-color: var(--accent-light);
	transform: translateY(-2px);
}
.axis-btn-outline {
	background: transparent;
	color: var(--text);
}
.axis-btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}
.axis-btn-text {
	padding: 0;
	border: none;
	background: transparent;
	color: var(--text);
}
.axis-btn-text:hover {
	color: var(--accent);
}

/* Selection color — looks like a lab readout */
::selection {
	background: var(--accent);
	color: var(--bg);
}

/* Focus ring — accessibility, never disable */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
