/* ==========================================================================
   VeldGuide — veldguide.com
   Design system: warm canvas, safari green, thatch gold.
   Type: Fraunces (display) + Source Sans 3 (body). Inspired by the app's own
   palette and the discipline of warm-minimal editorial systems.
   ========================================================================== */

:root {
	--canvas: #faf7f2;
	--surface: #fffdf9;
	--sand: #f3ede2;
	--ink: #232b1a;
	--muted: #5f5a4b;
	--line: #e7dfd0;
	--line-strong: #d8ccb6;

	--green: #2d4a22;
	--green-deep: #223a1a;
	--brand-deep: #163524;
	--cream: #f7f3ea;

	--gold: #f5d565;
	--gold-soft: #fdf3d3;
	--gold-text: #6b5410;

	--radius: 16px;
	--radius-lg: 22px;
	--shadow: 0 1px 2px rgba(35, 43, 26, 0.05), 0 10px 30px rgba(35, 43, 26, 0.07);
	--shadow-lg: 0 2px 6px rgba(35, 43, 26, 0.06), 0 24px 60px rgba(35, 43, 26, 0.12);

	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
	:root {
		--canvas: #0e130c;
		--surface: #161c13;
		--sand: #121810;
		--ink: #f1eee5;
		--muted: #b8b2a2;
		--line: #29302a;
		--line-strong: #39413666;
		--green: #9dc78a;
		--green-deep: #b9d9ab;
		--gold: #f0cf6a;
		--gold-soft: #2b2716;
		--gold-text: #e8cb70;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
		--shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.5), 0 24px 60px rgba(0, 0, 0, 0.45);
	}
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--canvas);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}
a {
	color: var(--green);
	text-underline-offset: 3px;
}
a:hover {
	color: var(--gold-text);
}

::selection {
	background: var(--gold);
	color: #232b1a;
}

:focus-visible {
	outline: 2px solid var(--gold-text);
	outline-offset: 3px;
	border-radius: 4px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-display);
	font-weight: 640;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

h1 {
	font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}
h2 {
	font-size: clamp(1.6rem, 3.4vw, 2.2rem);
}
h3 {
	font-size: 1.35rem;
	letter-spacing: -0.005em;
}

p {
	margin: 0 0 1em;
}

.wrap {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.muted {
	color: var(--muted);
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--surface);
	padding: 10px 16px;
	border-radius: 10px;
	z-index: 20;
}
.skip:focus {
	left: 16px;
	top: 12px;
}

/* ---- Header -------------------------------------------------------------- */

.site-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	padding: 20px 0 18px;
	border-bottom: 1px solid var(--line);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-display);
	font-weight: 640;
	font-size: 1.22rem;
	color: var(--ink);
	text-decoration: none;
	letter-spacing: -0.01em;
}
.brand:hover {
	color: var(--ink);
}
.brand img {
	width: 26px;
	height: 26px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}
.site-nav a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 8px 12px;
	border-radius: 10px;
}
.site-nav a:hover {
	background: var(--sand);
	color: var(--ink);
}
.site-nav a.active {
	color: var(--green);
}
.site-nav .btn {
	padding: 9px 18px;
	font-size: 0.92rem;
}

/* ---- Buttons ------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	background: var(--green);
	color: var(--cream) !important;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	border: 1px solid transparent;
	transition:
		transform 0.06s ease,
		background 0.15s ease;
}
.btn:hover {
	background: var(--green-deep);
	transform: translateY(-1px);
}
@media (prefers-color-scheme: dark) {
	.btn {
		color: #1c2413 !important;
	}
	.btn:hover {
		color: #1c2413;
	}
}

.btn.gold {
	background: var(--gold);
	color: #2c2408 !important;
}
.btn.gold:hover {
	background: #ecc84f;
}

.btn.ghost {
	background: transparent;
	color: var(--ink) !important;
	border: 1px solid var(--line-strong);
	font-weight: 600;
}
.btn.ghost:hover {
	background: var(--sand);
}

.btns {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
	padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.08fr 0.92fr;
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.hero-grid > * {
	min-width: 0;
}

.eyebrow {
	display: inline-block;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--gold-text);
	background: var(--gold-soft);
	border: 1px solid var(--line);
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 18px;
}

.hero h1 {
	margin-bottom: 16px;
}
.hero .sub {
	font-size: 1.16rem;
	color: var(--muted);
	max-width: 34em;
	margin-bottom: 26px;
}

.strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 0.92rem;
	color: var(--muted);
}
.strip strong {
	color: var(--ink);
	font-weight: 700;
}

/* Phone cluster: a main screen with a second screen tucked behind it.
   The overlap keeps the pair inside its column at every width. */
.phones {
	display: flex;
	align-items: center;
	justify-content: center;
}
.phone {
	width: 100%;
	border-radius: 30px;
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow-lg);
	background: #fff;
}
.phones .phone:nth-child(1) {
	max-width: 288px;
	z-index: 2;
}
.phones .phone:nth-child(2) {
	max-width: 224px;
	margin-left: -56px;
	transform: translateY(28px);
	z-index: 1;
}
.phones.single {
	justify-content: flex-start;
}

/* On the dark theme the screenshot's dark chrome melts into the page; a hairline
   gold ring and a deeper shadow keep the device reading as an object. */
@media (prefers-color-scheme: dark) {
	.phone {
		border-color: rgba(245, 197, 79, 0.28);
		box-shadow:
			0 0 0 1px rgba(245, 197, 79, 0.12),
			0 2px 8px rgba(0, 0, 0, 0.5),
			0 26px 64px rgba(0, 0, 0, 0.55);
	}
}

/* ---- Sections ------------------------------------------------------------ */

.section {
	padding: clamp(52px, 8vw, 92px) 0;
}
.section.alt {
	background: var(--sand);
}
.section-head {
	max-width: 44em;
	margin-bottom: clamp(28px, 5vw, 48px);
}
.section-head p {
	color: var(--muted);
	font-size: 1.08rem;
	margin: 0;
}

/* Feature rows */
.feature {
	display: grid;
	grid-template-columns: 1.02fr 0.98fr;
	gap: clamp(26px, 5vw, 64px);
	align-items: center;
	margin-bottom: clamp(48px, 8vw, 88px);
}
.feature:last-child {
	margin-bottom: 0;
}
.feature.rev > .feature-media {
	order: -1;
}
.feature h3 {
	font-size: clamp(1.35rem, 2.6vw, 1.7rem);
	margin-bottom: 10px;
}
.feature p {
	color: var(--muted);
	font-size: 1.05rem;
}
.feature p:last-child {
	margin-bottom: 0;
}
.feature-media .phone {
	max-width: 280px;
	margin: 0 auto;
}

/* ---- App icon lockup ----------------------------------------------------- */

.app-icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
	flex: none;
	box-shadow: var(--shadow);
}

.band .app-icon {
	border-radius: 15px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
}

.launch {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	flex-wrap: wrap;
}

.launch-copy {
	flex: 1;
	min-width: 260px;
}

.launch h2 {
	margin-bottom: 10px;
}

.launch p {
	margin-bottom: 18px;
}

@media (max-width: 560px) {
	.app-icon {
		width: 54px;
		height: 54px;
		border-radius: 14px;
	}
}

@media (max-width: 880px) {
	.feature {
		grid-template-columns: 1fr;
	}
	.feature.rev > .feature-media {
		order: 0;
	}
}

/* ---- Cards / blog -------------------------------------------------------- */

.card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 28px;
}

.post-list {
	display: grid;
	gap: 18px;
}

.post-card {
	display: block;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 24px 26px;
	text-decoration: none;
	color: var(--ink);
	transition:
		transform 0.12s ease,
		box-shadow 0.12s ease;
}
.post-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	color: var(--ink);
}
.post-card .cat {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--gold-text);
	background: var(--gold-soft);
	border-radius: 999px;
	padding: 4px 10px;
	margin-bottom: 12px;
}
.post-card h3 {
	margin-bottom: 6px;
	font-size: 1.28rem;
}
.post-card p {
	color: var(--muted);
	font-size: 0.98rem;
	margin-bottom: 10px;
}
.post-card .meta {
	font-size: 0.84rem;
	color: var(--muted);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 18px;
}

/* ---- Prose (articles) ---------------------------------------------------- */

.prose {
	max-width: 700px;
	margin: 0 auto;
}
.prose h2 {
	font-size: 1.55rem;
	margin: 2.1em 0 0.5em;
}
.prose h3 {
	font-size: 1.2rem;
	margin: 1.8em 0 0.4em;
}
.prose p {
	font-size: 1.06rem;
	line-height: 1.75;
}
.prose ul,
.prose ol {
	padding-left: 1.3em;
	margin: 0 0 1.2em;
}
.prose li {
	margin-bottom: 0.5em;
}
.prose blockquote {
	margin: 1.6em 0;
	padding: 2px 0 2px 20px;
	border-left: 3px solid var(--gold);
	color: var(--muted);
	font-style: italic;
}
.prose figure {
	margin: 1.8em 0;
}
.prose figure img {
	border-radius: var(--radius);
	border: 1px solid var(--line-strong);
	box-shadow: var(--shadow);
	max-width: 340px;
	margin: 0 auto;
}
.prose figcaption {
	text-align: center;
	font-size: 0.85rem;
	color: var(--muted);
	margin-top: 10px;
}
.prose hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 2.4em auto;
	max-width: 200px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	color: var(--muted);
	font-size: 0.92rem;
	margin-bottom: 30px;
}
.post-meta span + span::before {
	content: '· ';
	opacity: 0.55;
}

/* ---- FAQ ----------------------------------------------------------------- */

.faq {
	max-width: 720px;
	margin: 0 auto;
}
.faq details {
	border-top: 1px solid var(--line);
	padding: 18px 2px;
}
.faq details:last-child {
	border-bottom: 1px solid var(--line);
}
.faq summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 1.05rem;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: '+';
	font-family: var(--font-display);
	font-size: 1.3rem;
	line-height: 1;
	color: var(--gold-text);
}
.faq details[open] summary::after {
	content: '\2212';
}
.faq details > *:not(summary) {
	margin-top: 12px;
}
.faq p {
	color: var(--muted);
	margin-bottom: 0.6em;
}

/* ---- CTA band ------------------------------------------------------------ */

.band {
	background: var(--brand-deep);
	color: var(--cream);
	border-radius: var(--radius-lg);
	padding: clamp(34px, 5vw, 56px);
	box-shadow: var(--shadow-lg);
}
.band h2 {
	color: var(--cream);
}
.band p {
	color: #d8e2cf;
	max-width: 46em;
}
.band .btn.gold {
	margin-top: 8px;
}
.band .btn.ghost {
	color: var(--cream) !important;
	border-color: rgba(247, 243, 234, 0.35);
}
.band .btn.ghost:hover {
	background: rgba(247, 243, 234, 0.08);
}

@media (prefers-color-scheme: dark) {
	.band {
		border: 1px solid var(--line);
	}
	.band h2 {
		color: var(--cream);
	}
}

/* ---- Footer -------------------------------------------------------------- */

.site-foot {
	margin-top: clamp(56px, 9vw, 100px);
	border-top: 1px solid var(--line);
	padding: 44px 0 60px;
	font-size: 0.94rem;
}

.foot-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
	margin-bottom: 36px;
}

.foot-grid h4 {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 12px;
}
.foot-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.foot-grid li {
	margin-bottom: 8px;
}
.foot-grid a {
	color: var(--ink);
	text-decoration: none;
}
.foot-grid a:hover {
	color: var(--gold-text);
}

.foot-brand p {
	color: var(--muted);
	max-width: 26em;
	margin-bottom: 0;
}

.foot-base {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	justify-content: space-between;
	color: var(--muted);
	font-size: 0.88rem;
	border-top: 1px solid var(--line);
	padding-top: 22px;
}

@media (max-width: 760px) {
	.foot-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ---- Home hero responsive ------------------------------------------------ */

@media (max-width: 880px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}
	.phones {
		justify-content: center;
		margin-top: 8px;
	}
}

@media (max-width: 700px) {
	.phones .phone:nth-child(2) {
		display: none;
	}
	.phones .phone:nth-child(1) {
		max-width: 262px;
	}
}

@media (max-width: 520px) {
	.wrap {
		padding: 0 18px;
	}
	.site-head {
		padding: 16px 0 14px;
	}
	.site-nav a {
		padding: 8px 9px;
		font-size: 0.9rem;
	}
	.btn {
		padding: 12px 18px;
		font-size: 0.95rem;
	}
	.phones .phone:nth-child(1) {
		max-width: 240px;
	}
}

/* ---- Small utilities ----------------------------------------------------- */

.center {
	text-align: center;
}
.mt-0 {
	margin-top: 0;
}
section[id],
h2[id],
h3[id] {
	scroll-margin-top: 24px;
}

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