/**
 * base.css — variables, reset, and base layout.
 *
 * Loaded first (see functions.php) so every other stylesheet can rely
 * on these custom properties and base rules. Values below are a
 * starting point, not final brand values — adjust freely in one place.
 */

:root {
	/* Brand palette (placeholder — confirm before launch). */
	--color-black: #111111;
	--color-charcoal: #242424;
	--color-white: #ffffff;
	--color-cream: #f7f5f0;
	--color-gold: #b89755;
	/* Same hue, darkened. --color-gold on white/cream measures ~2.7:1 —
	   fails WCAG AA (needs 4.5:1) for text. This variant (~5.2:1 on
	   white, ~4.8:1 on cream) is for gold used AS TEXT on a light
	   background — decorative uses (borders, dark-background text like
	   the footer slogan, button hover backgrounds) can keep using the
	   lighter --color-gold above, since those pass contrast already
	   (verified: gold-on-charcoal 5.6:1, black-text-on-gold-bg 6.8:1). */
	--color-gold-text: #80693b;
	--color-border: #dedbd3;
	--color-text: #222222;
	--color-text-muted: #6b6b6b;

	/* Semantic aliases, so components reference intent rather than
	   raw colour names — reduces churn if the palette above changes. */
	--color-bg: var(--color-white);
	--color-bg-alt: var(--color-cream);
	--color-accent: var(--color-gold);
	--color-heading: var(--color-black);
	--color-link: var(--color-charcoal);
	--color-link-hover: var(--color-gold-text);
	--color-error: #a4342a;
	--color-success: #3a6b4a;

	/* Type. System font stack for now — swap in a licensed/Google font
	   later if the design direction calls for one. */
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading: var(--font-body);
	--font-size-base: 1rem;
	--line-height-base: 1.6;

	/* Spacing scale. */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 1.5rem;
	--space-5: 2.5rem;
	--space-6: 4rem;

	/* Layout. */
	--container-width: 1280px;
	--container-padding: var(--space-3);
	--border-radius: 2px; /* brief calls for restrained, non-"rounded" styling */

	/* Motion — kept short/subtle per "avoid excessive animation". */
	--transition-fast: 150ms ease;
}

/* -----------------------------------------------------------------
   Reset (minimal, modern — not a full Normalize/Reset library)
   ----------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text);
	background-color: var(--color-bg);
}

img,
picture,
svg {
	max-width: 100%;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	color: var(--color-heading);
	line-height: 1.25;
	margin: 0 0 var(--space-3);
	font-weight: 600;
}

p {
	margin: 0 0 var(--space-3);
}

a {
	color: var(--color-link);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover,
a:focus {
	color: var(--color-link-hover);
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

button {
	cursor: pointer;
}

/* -----------------------------------------------------------------
   Accessibility helpers
   ----------------------------------------------------------------- */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10000;
	background: var(--color-black);
	color: var(--color-white);
	padding: var(--space-2) var(--space-3);
}

.skip-link:focus {
	left: var(--space-2);
	top: var(--space-2);
}

:focus-visible {
	outline: 2px solid var(--color-gold);
	outline-offset: 2px;
}

/* -----------------------------------------------------------------
   Base layout
   ----------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--container-padding);
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

.button,
button.button,
input[type="submit"] {
	display: inline-block;
	background-color: var(--color-black);
	color: var(--color-white);
	border: 1px solid var(--color-black);
	border-radius: var(--border-radius);
	padding: var(--space-2) var(--space-4);
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.button:hover,
.button:focus,
button.button:hover,
input[type="submit"]:hover {
	background-color: var(--color-gold);
	border-color: var(--color-gold);
	color: var(--color-black);
}

.button--outline {
	background-color: transparent;
	color: var(--color-black);
}
