/* Podbury Family Website */

:root {
	--green-dark: #1e4b18;
	--green-mid: #2d6b24;
	--gold: #d4a838;
	--gold-light: #e8c56a;
	--cream: #f5f0e6;
	--cream-muted: #c8bfb0;
	--bg: #0c0e0b;
	--bg-card: #141712;
	--text: #e8e4dc;
	--text-muted: #a8a095;
	--max-width: 820px;
	--header-height: 4.5rem;
	--font-body: "DM Sans", system-ui, -apple-system, sans-serif;
	--font-heading: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--gold-light);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--gold);
}

ul {
	margin: 0 0 1.25rem;
	padding-left: 1.4rem;
}

li {
	margin-bottom: 0.35rem;
}

li::marker {
	color: var(--gold);
}

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

/* Skip link */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.screen-reader-text:focus {
	background: var(--cream);
	clip-path: none;
	color: var(--bg);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 1rem;
	line-height: normal;
	padding: 1rem;
	text-decoration: none;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: linear-gradient(135deg, var(--green-dark) 0%, #3a5c14 55%, var(--gold) 100%);
	border-bottom: 1px solid rgba(212, 168, 56, 0.35);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-title {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav a {
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Hero */
.hero {
	text-align: center;
	padding: 3.5rem 1.5rem 2.5rem;
	background:
		radial-gradient(ellipse 70% 60% at 50% 0%, rgba(30, 75, 24, 0.35) 0%, transparent 70%),
		var(--bg);
	border-bottom: 1px solid rgba(212, 168, 56, 0.15);
}

.hero-arms {
	width: min(200px, 45vw);
	margin: 0 auto 1.75rem;
	border-radius: 6px;
	box-shadow:
		0 0 0 2px rgba(212, 168, 56, 0.4),
		0 8px 32px rgba(0, 0, 0, 0.55);
}

.hero h1 {
	margin: 0 0 0.75rem;
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	font-weight: 700;
	color: var(--cream);
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.hero-tagline {
	margin: 0 auto;
	max-width: 36rem;
	font-size: 1.0625rem;
	font-weight: 400;
	color: var(--text-muted);
}

/* Main content */
.site-main {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 2.5rem 1.5rem 4rem;
}

.history-section {
	margin-bottom: 2.75rem;
	padding-bottom: 2.75rem;
	border-bottom: 1px solid rgba(212, 168, 56, 0.12);
}

.history-section:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.history-section h2 {
	margin: 0 0 1.25rem;
	font-family: var(--font-heading);
	font-size: clamp(1.2rem, 3vw, 1.45rem);
	font-weight: 600;
	color: var(--cream);
	letter-spacing: -0.02em;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--gold);
}

.history-section p {
	margin: 0 0 1.1rem;
	color: var(--text);
}

/* Family tree */
.family-tree-section {
	margin-top: 4rem;
	padding-top: 3rem;
	border-top: 2px solid rgba(212, 168, 56, 0.25);
}

.family-tree-section h2 {
	margin: 0 0 0.5rem;
	font-family: var(--font-heading);
	font-size: clamp(1.3rem, 3vw, 1.6rem);
	font-weight: 600;
	color: var(--cream);
	text-align: center;
	letter-spacing: -0.02em;
}

.family-tree-intro {
	margin: 0 auto 2rem;
	max-width: 32rem;
	text-align: center;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

.family-tree-frame {
	max-width: 640px;
	margin: 0 auto;
	padding: 1rem;
	background: #f5f0e8;
	border-radius: 12px;
	box-shadow:
		0 0 0 1px rgba(212, 168, 56, 0.25),
		0 12px 48px rgba(0, 0, 0, 0.45);
}

.family-tree-image {
	width: 100%;
	border-radius: 6px;
}

/* Footer */
.site-footer {
	background: linear-gradient(135deg, var(--green-dark) 0%, #3a5c14 55%, var(--gold) 100%);
	padding: 2rem 1.5rem;
	text-align: center;
	margin-top: 2rem;
}

.copyright {
	margin: 0;
	font-family: var(--font-body);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.8125rem;
	font-weight: 400;
}

/* Responsive */
@media (max-width: 720px) {
	.site-header {
		height: auto;
	}

	.header-inner {
		flex-direction: column;
		padding: 0.85rem 1rem;
		gap: 0.6rem;
	}

	.site-nav {
		justify-content: center;
	}

	.hero {
		padding: 2.5rem 1rem 2rem;
	}

	.site-main {
		padding: 2rem 1.25rem 3rem;
	}
}
