/* =====================================================================
   Phartenaas — base.css
   Reset, custom properties, typografie basis
   ===================================================================== */

:root {
	/* Colors — Warm espresso-red Bourgondische palette */
	--c-bg:          #1A1513;
	--c-surface:     #241D1A;
	--c-surface2:    #2F2622;
	--c-border:      #3D332D;
	--c-text:        #EDE4D8;
	--c-text-dim:    #A89B8C;
	--c-accent:      #9C3347;
	--c-accent-hover:#B03F54;
	--c-accent-sec:  #D9AC82;
	--c-special:     #2F1A1E;
	--c-white:       #F6EFE3;
	--c-error:       #C7504A;
	--c-success:     #6B9B6F;

	/* Fonts */
	--f-heading: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
	--f-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

	/* Spacing — 8px grid */
	--s-4:   0.25rem;
	--s-8:   0.5rem;
	--s-12:  0.75rem;
	--s-16:  1rem;
	--s-24:  1.5rem;
	--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;

	/* Radius — editorial-flat */
	--r-sm: 4px;
	--r-md: 6px;
	--r-lg: 10px;

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

	/* Layout */
	--max-w:    1100px;
	--header-h: 68px;
}

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

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

body {
	font-family: var(--f-body);
	font-size: 1rem;
	line-height: 1.8;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	min-height: 100vh;
	overflow-x: hidden;
}

body.ph-no-scroll {
	overflow: hidden;
}

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

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

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

a {
	color: var(--c-accent);
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}

a:hover {
	color: var(--c-accent-hover);
}

ul, ol {
	list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-heading);
	font-weight: 500;
	color: var(--c-white);
	line-height: 1.2;
	letter-spacing: -0.01em;
}

h1 {
	font-size: clamp(2.25rem, 5vw, 3.75rem);
	font-weight: 600;
	line-height: 1.1;
}

h2 {
	font-size: clamp(1.625rem, 3.5vw, 2.5rem);
	font-weight: 500;
}

h3 {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 500;
}

h4 {
	font-size: 1.125rem;
	font-weight: 500;
}

p {
	margin: 0;
}

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

em {
	font-style: italic;
}

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

/* Italic headings variant */
h1 em, h2 em, h3 em {
	font-style: italic;
	font-weight: 500;
}

/* Focus ring */
:focus-visible {
	outline: 2px solid var(--c-accent);
	outline-offset: 3px;
	border-radius: var(--r-sm);
}

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

/* 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: 10000;
}

.skip-link:focus {
	left: var(--s-16);
	top: var(--s-16);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* hide reCAPTCHA badge (attribution shown near submit-button in text) */
.grecaptcha-badge {
	visibility: hidden !important;
}
