/* ----------------------------------------------------------------------
   base.css — reset, CSS custom properties, typography base
   Copperplate Ledger / Georgian Engraved Salon
---------------------------------------------------------------------- */

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

:root {
	/* ---------- Colour — ink plate + heather + oat ---------- */
	--c-bg:           #111018;
	--c-surface:      #1B1925;
	--c-surface2:     #262334;
	--c-border:       #383346;
	--c-text:         #EDE4D1;
	--c-text-dim:     #B5AC9A; /* lifted from spec #8F8779 to meet WCAG AA on #111018 (4.5:1) */
	--c-accent:       #8D6991;
	--c-accent-hover: #A380A6;
	--c-accent-sec:   #D9C09A;
	--c-special:      #1F1A28;
	--c-white:        #F4EBD6;
	--c-error:        #C7504A;
	--c-success:      #6B9B6F;

	/* ---------- Fonts ---------- */
	--f-heading: 'Bodoni Moda', 'Didot', 'Libre Caslon Text', Georgia, serif;
	--f-body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--f-mono:    'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

	/* ---------- Spacing (8px grid) ---------- */
	--s-4:   0.25rem;
	--s-8:   0.5rem;
	--s-12:  0.75rem;
	--s-16:  1rem;
	--s-24:  1.5rem;
	--s-28:  1.75rem;
	--s-32:  2rem;
	--s-40:  2.5rem;
	--s-48:  3rem;
	--s-56:  3.5rem;
	--s-64:  4rem;
	--s-80:  5rem;
	--s-96:  6rem;
	--s-120: 7.5rem;
	--s-160: 10rem;

	/* ---------- Motion ---------- */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur:  320ms;

	/* ---------- Layout ---------- */
	--max-w: 1180px;
	--header-h: 92px;
	--header-h-scrolled: 60px;

	/* ---------- Radii — editorial-flat 2/3/5 ---------- */
	--r-sm: 2px;
	--r-md: 3px;
	--r-lg: 5px;
}

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

body {
	background: var(--c-bg);
	color: var(--c-text);
	font-family: var(--f-body);
	font-size: 1rem;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	padding-top: var(--header-h);
}

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

a {
	color: var(--c-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color var(--dur) var(--ease), text-decoration-thickness var(--dur) var(--ease);
}
a:hover { color: var(--c-accent-hover); text-decoration-thickness: 2px; }

button {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	cursor: pointer;
}

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

/* Headings — Bodoni Moda */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-heading);
	color: var(--c-white);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.005em;
}

h1 {
	font-size: clamp(2.75rem, 5.5vw, 4.5rem);
	line-height: 1.05;
	letter-spacing: -0.015em;
}
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.25vw, 1.625rem); }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.875rem; font-weight: 600; }

p { margin: 0 0 var(--s-16); }

ul, ol { padding-left: var(--s-24); }
li { margin-bottom: var(--s-4); }

strong { font-weight: 600; color: var(--c-white); }
em { font-style: italic; }

hr {
	border: 0;
	border-top: 1px solid var(--c-border);
	margin: var(--s-32) 0;
}

/* Selection */
::selection {
	background: var(--c-accent);
	color: var(--c-white);
}

/* Focus visible — editorial, 1px heather border, no glow */
:focus { outline: none; }
:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 2px;
}

/* Skip-link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--c-accent);
	color: var(--c-white);
	padding: var(--s-8) var(--s-16);
	z-index: 9999;
	font-family: var(--f-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
}
.skip-link:focus { left: var(--s-16); top: var(--s-16); }

/* Kicker label — IBM Plex Mono uppercase tracked */
.kicker {
	font-family: var(--f-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--c-accent-sec);
	display: block;
	margin-bottom: var(--s-24);
}
/* Dark-surface kicker stays oat. Light-surface variant (never in this theme but safe). */

img[loading] { background: var(--c-surface); }
