/* ==========================================================================
   Bumu Art Gallery — base
   Reset · design tokens · spacing utilities

   All visual design lives in theme.css. This file only normalises the
   browser and declares the tokens that theme.css consumes.
   ========================================================================== */

:root {
	/* Brand — change these to rebrand the entire site -------------------- */
	--accent: #334476;
	--accent-dark: #27355e;
	--accent-tint: #f1f3f8;

	/* Neutrals ---------------------------------------------------------- */
	--ink: #1a1a1a;
	--body: #4a4a4a;
	--soft: #767676;
	--rule: #e2e2e2;
	--paper: #ffffff;
	--paper-alt: #f7f6f4;

	/* Type -------------------------------------------------------------- */
	--sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--header-sans: "Google Sans Flex", "Inter", "Helvetica Neue", Arial, sans-serif;
	--serif: "Instrument Serif", "Times New Roman", Georgia, serif;

	/* Layout ------------------------------------------------------------ */
	--wrap: 1360px;
	--gutter: 24px;
	--header-height: 66px; /* fallback only; main.js publishes the measured value */
}

@media (min-width: 64em) {
	:root { --gutter: 40px; }
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

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

html {
	font-size: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--paper);
	color: var(--body);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	-webkit-tap-highlight-color: transparent;
}

body ::selection {
	background: var(--accent-tint);
}

/* Locks scroll while a full-screen overlay is open. */
body.oh {
	position: fixed;
	width: 100%;
	overflow-y: scroll;
}

h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

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

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

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

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 20px;
	background: var(--ink);
	color: #fff;
	clip: auto;
	clip-path: none;
}

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

/* --------------------------------------------------------------------------
   Spacing utilities — 10px steps
   -------------------------------------------------------------------------- */

.mt0 { margin-top: 0; }
.mt1 { margin-top: 10px; }
.mt2 { margin-top: 20px; }
.mt3 { margin-top: 30px; }
.mt4 { margin-top: 40px; }
.mt5 { margin-top: 50px; }

.mb0 { margin-bottom: 0; }
.mb1 { margin-bottom: 10px; }
.mb2 { margin-bottom: 20px; }
.mb3 { margin-bottom: 30px; }
.mb4 { margin-bottom: 40px; }
.mb5 { margin-bottom: 50px; }
.mb6 { margin-bottom: 60px; }

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

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