/*
Theme Name: Etch Theme
Text Domain: etch-theme
*/

:root {
	--bg: oklch(0.174 0.006 286);
	--surface: oklch(0.232 0.006 286);
	--ink: oklch(0.274 0.007 286);
	--accent: oklch(0.9 0.12 185);
	--text: rgb(255 255 255 / 0.8);
	--line: rgb(255 255 255 / 0.15);
	--gutter: clamp(20px, 5.6vw, 80px);
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.25rem/1.55 'Outfit Variable', sans-serif;
	letter-spacing: 0.015em;
}

/* Vertical guide lines framing the page. */
.wp-site-blocks {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
}
.wp-site-blocks::before {
	content: '';
	position: absolute;
	inset: 0 clamp(0px, 6.8vw, 98px);
	border-inline: 1px solid var(--line);
	opacity: 0.5;
	pointer-events: none;
}

a { color: inherit; }
h1, h2, h3 { color: #fff; font-weight: 500; line-height: 1.17; margin: 0; }

.header {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	align-items: center;
	justify-content: space-between;
	margin-inline: var(--gutter);
	padding: 24px clamp(0px, 1.5vw, 20px);
	border-bottom: 1px solid var(--line);
}
.wordmark {
	color: #fff;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-decoration: none;
}
.header nav { display: flex; gap: 22px; font-size: 1.0625rem; }
.header nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.header nav a:hover { color: #fff; }
.header nav a[aria-current] { color: #fff; border-color: var(--accent); }

.hero {
	position: relative;
	padding: 160px var(--gutter) 64px;
	text-align: center;
}
/* Faint arc behind the hero. */
.hero::before {
	content: '';
	position: absolute;
	z-index: 0;
	top: 64px;
	left: 50%;
	width: min(1140px, 94vw);
	aspect-ratio: 1;
	translate: -50% 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: linear-gradient(oklch(0.21 0.008 286), transparent 45%);
	mask-image: linear-gradient(#000 35%, transparent 52%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.25rem, 3.5vw + 1rem, 3.125rem); max-width: 23em; margin-inline: auto; }
.hero p { max-width: 34em; margin: 20px auto 40px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: center; }

.btn {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: filter 0.15s;
}
.btn--primary { background: var(--accent); color: var(--ink); box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.25); }
.btn--primary:hover { filter: brightness(1.1); }
.btn--ghost { color: var(--accent); }
.btn--ghost:hover { filter: brightness(1.2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.notes {
	position: relative;
	padding: 64px var(--gutter);
	text-align: center;
}
.pill {
	display: inline-block;
	padding: 8px 17px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--accent);
	font-size: 1.0625rem;
	font-weight: 400;
	letter-spacing: 0.045em;
	text-transform: uppercase;
}
.section-title { margin: 20px 0 48px; color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.2; }
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
	gap: 20px;
	max-width: 1150px;
	margin-inline: auto;
	text-align: left;
}
.card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.card h3 { font-size: 1.375rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: 1.0625rem; }

.footer {
	position: relative;
	margin: 64px var(--gutter) 0;
	padding: 80px 20px;
	border-top: 1px solid var(--line);
	text-align: center;
}
.footer h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 28px; }

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