/*
Theme Name: Descened
Theme URI: https://www.descened.com/
Author: Descened
Description: A modern, interactive WordPress theme for Descened — The Baja We Inherit.
Version: 0.3.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: descened
*/

:root {
	--ink: #30251e;
	--ink-soft: #625247;
	--paper: #f4ecd9;
	--paper-light: #fbf6e8;
	--sand: #d8b982;
	--terracotta: #a95739;
	--sage: #708268;
	--pacific: #35677b;
	--pacific-dark: #244c5c;
	--line: rgba(48, 37, 30, 0.2);
	--shadow: 0 22px 70px rgba(48, 37, 30, 0.16);
	--radius: 1.25rem;
	--content: min(1180px, calc(100vw - 2rem));
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--ink);
	background:
		linear-gradient(rgba(244, 236, 217, 0.95), rgba(244, 236, 217, 0.95)),
		repeating-linear-gradient(12deg, transparent 0 6px, rgba(74, 54, 41, 0.03) 7px 8px);
	font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
	line-height: 1.65;
}

body.admin-bar .site-header {
	top: 32px;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

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

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--paper-light);
}

.site-header {
	position: sticky;
	z-index: 50;
	top: 0;
	border-bottom: 1px solid rgba(48, 37, 30, 0.12);
	background: rgba(244, 236, 217, 0.9);
	backdrop-filter: blur(16px);
}

.site-header__inner {
	display: flex;
	width: var(--content);
	min-height: 74px;
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0.75rem;
	text-decoration: none;
}

.site-brand__name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.3rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.16em;
}

.site-brand__tagline {
	color: var(--ink-soft);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.82rem;
	font-style: italic;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 1.2rem;
}

.site-nav ul {
	display: flex;
	margin: 0;
	padding: 0;
	align-items: center;
	gap: 1.4rem;
	list-style: none;
}

.site-nav a {
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
	text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: var(--terracotta);
}

.nav-toggle {
	display: none;
	padding: 0.5rem;
	color: var(--ink);
	border: 0;
	background: transparent;
}

.nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	margin: 5px;
	background: currentColor;
}

.hero {
	position: relative;
	display: grid;
	min-height: min(780px, calc(100vh - 74px));
	place-items: center;
	overflow: hidden;
	isolation: isolate;
}

.hero::before {
	position: absolute;
	z-index: -2;
	inset: 0;
	background: url("assets/images/baja-community-map.png") center / cover;
	content: "";
	transform: scale(1.01);
}

.hero::after {
	position: absolute;
	z-index: -1;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(35, 29, 25, 0.76) 0%, rgba(35, 29, 25, 0.38) 50%, rgba(35, 29, 25, 0.12) 100%),
		linear-gradient(0deg, rgba(35, 29, 25, 0.48), transparent 45%);
	content: "";
}

.hero__inner {
	width: var(--content);
	padding: clamp(5rem, 10vw, 9rem) 0;
	color: #fffaf0;
}

.hero__content {
	max-width: 760px;
}

.eyebrow {
	display: inline-flex;
	margin-bottom: 1.25rem;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.eyebrow::before {
	width: 2.25rem;
	height: 1px;
	background: currentColor;
	content: "";
}

.hero h1,
.section-heading,
.entry-title {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	line-height: 0.98;
	letter-spacing: -0.035em;
}

.hero h1 {
	max-width: 820px;
	font-size: clamp(4.2rem, 12vw, 9.8rem);
}

.hero__subtitle {
	margin: 1rem 0 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.25rem, 3vw, 2rem);
	font-style: italic;
}

.hero__question {
	max-width: 600px;
	margin: 2rem 0;
	font-size: clamp(1rem, 2vw, 1.25rem);
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.button {
	display: inline-flex;
	min-height: 48px;
	padding: 0.75rem 1.1rem;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--paper-light);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
	background: var(--terracotta);
	transform: translateY(-2px);
}

.button--light {
	border-color: rgba(255, 250, 240, 0.7);
	background: rgba(255, 250, 240, 0.1);
	color: #fffaf0;
	backdrop-filter: blur(8px);
}

.button--light:hover,
.button--light:focus-visible {
	background: #fffaf0;
	color: var(--ink);
}

.site-main {
	overflow: hidden;
}

.section {
	padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section__inner {
	width: var(--content);
	margin: 0 auto;
}

.section-heading {
	max-width: 850px;
	font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.section-intro {
	max-width: 720px;
	margin: 1.5rem 0 0;
	color: var(--ink-soft);
	font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.manifesto {
	background: var(--paper-light);
}

.manifesto__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2.5rem, 7vw, 7rem);
	align-items: start;
}

.manifesto__quote {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.2rem, 5vw, 4.25rem);
	line-height: 1.08;
}

.manifesto__copy p:first-child {
	margin-top: 0;
	font-size: 1.2rem;
}

.game-section {
	background: #ddcda9;
}

.game-section__header {
	display: flex;
	margin-bottom: 2rem;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
}

.tradeoffs {
	background: var(--pacific-dark);
	color: var(--paper-light);
}

.tradeoffs .section-intro {
	color: rgba(251, 246, 232, 0.72);
}

.tradeoff-grid {
	display: grid;
	margin-top: 3rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid rgba(251, 246, 232, 0.25);
	border-left: 1px solid rgba(251, 246, 232, 0.25);
}

.tradeoff-card {
	min-height: 260px;
	padding: 2rem;
	border-right: 1px solid rgba(251, 246, 232, 0.25);
	border-bottom: 1px solid rgba(251, 246, 232, 0.25);
}

.tradeoff-card__number {
	color: var(--sand);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1rem;
	font-style: italic;
}

.tradeoff-card h3 {
	margin: 3rem 0 0.75rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.7rem;
	font-weight: 400;
}

.tradeoff-card p {
	margin: 0;
	color: rgba(251, 246, 232, 0.74);
}

.story-grid {
	display: grid;
	margin-top: 3rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.story-card {
	position: relative;
	min-height: 330px;
	padding: 2rem;
	border: 1px solid var(--line);
	background: rgba(251, 246, 232, 0.65);
}

.story-card__type {
	color: var(--terracotta);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.story-card h3 {
	margin: 6rem 0 1rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 2rem;
	font-weight: 400;
	line-height: 1.12;
}

.story-card a {
	font-weight: 700;
}

.entry-shell {
	width: min(780px, calc(100vw - 2rem));
	margin: 0 auto;
	padding: clamp(4rem, 8vw, 7rem) 0;
}

.entry-title {
	font-size: clamp(3rem, 8vw, 6rem);
}

.entry-content {
	margin-top: 2rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.12rem;
}

.entry-content > * {
	max-width: 100%;
}

.site-footer {
	padding: 3rem 0;
	background: var(--ink);
	color: var(--paper);
}

.site-footer__inner {
	display: grid;
	width: var(--content);
	margin: 0 auto;
	grid-template-columns: 1fr auto;
	gap: 2rem;
	align-items: end;
}

.site-footer__name {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 5vw, 4rem);
	letter-spacing: 0.08em;
}

.site-footer p {
	margin: 0.5rem 0 0;
	color: rgba(244, 236, 217, 0.68);
}

.site-footer__meta {
	font-size: 0.78rem;
	text-align: right;
}

@media (max-width: 900px) {
	.site-brand__tagline {
		display: none;
	}

	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		padding: 1rem;
		border-bottom: 1px solid var(--line);
		background: var(--paper);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: flex-start;
	}

	.manifesto__grid {
		grid-template-columns: 1fr;
	}

	.tradeoff-grid,
	.story-grid {
		grid-template-columns: 1fr;
	}

	.game-section__header {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.hero {
		min-height: 680px;
	}

	.hero h1 {
		font-size: clamp(3.5rem, 21vw, 5.5rem);
	}

	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.site-footer__meta {
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Version 2: modern Baja Commons interface. */
:root {
	--ink: #12232c;
	--ink-soft: #65747b;
	--paper: #eef4f2;
	--paper-light: #ffffff;
	--sand: #f0c987;
	--terracotta: #ed6b4d;
	--sage: #5f8d75;
	--pacific: #0d7080;
	--pacific-dark: #112b35;
	--line: rgba(18, 35, 44, 0.12);
	--shadow: 0 28px 90px rgba(18, 35, 44, 0.16);
	--radius: 1.5rem;
	--content: min(1420px, calc(100vw - 2rem));
}

body {
	background: #eef4f2;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
	border-bottom-color: rgba(18, 35, 44, 0.08);
	background: rgba(255, 255, 255, 0.88);
}

.site-header__inner {
	min-height: 68px;
}

.site-brand__name {
	font-family: inherit;
	font-size: clamp(1.05rem, 2vw, 1.35rem);
	font-weight: 900;
	letter-spacing: 0.16em;
}

.site-brand__tagline {
	padding-left: 0.75rem;
	border-left: 1px solid var(--line);
	color: var(--ink-soft);
	font-family: inherit;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 650;
}

.site-nav a {
	font-size: 0.7rem;
	font-weight: 800;
}

.hero {
	min-height: min(800px, calc(100vh - 68px));
	background:
		linear-gradient(90deg, rgba(10, 34, 44, 0.92) 0%, rgba(10, 34, 44, 0.66) 43%, rgba(10, 34, 44, 0.08) 78%),
		url("assets/images/baja-community-map-v2.png") center / cover no-repeat;
}

.hero::before {
	background-image: radial-gradient(rgba(255, 255, 255, 0.24) 0.7px, transparent 0.7px);
	background-size: 13px 13px;
	opacity: 0.16;
}

.hero::after {
	background: linear-gradient(0deg, rgba(10, 34, 44, 0.6), transparent 48%);
}

.hero__inner {
	padding: clamp(6rem, 11vw, 10rem) 0;
}

.hero__content {
	max-width: 800px;
}

.eyebrow {
	font-size: 0.68rem;
	font-weight: 850;
}

.hero h1,
.section-heading,
.entry-title {
	font-family: inherit;
	font-weight: 850;
	letter-spacing: -0.055em;
}

.hero h1 {
	font-size: clamp(4.3rem, 13vw, 10rem);
}

.hero__subtitle {
	max-width: 700px;
	margin-top: 1.25rem;
	font-family: inherit;
	font-size: clamp(1.35rem, 3vw, 2.4rem);
	font-style: normal;
	font-weight: 750;
	line-height: 1.1;
	letter-spacing: -0.035em;
}

.hero__question {
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(0.95rem, 1.7vw, 1.12rem);
}

.button {
	min-height: 50px;
	padding: 0.8rem 1.25rem;
	border-color: var(--terracotta);
	border-radius: 999px;
	background: var(--terracotta);
	font-size: 0.7rem;
}

.button:hover,
.button:focus-visible {
	background: #d9583d;
}

.button--light {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(255, 255, 255, 0.1);
}

.manifesto {
	background: #fff;
}

.manifesto__grid {
	align-items: center;
}

.manifesto__quote {
	font-family: inherit;
	font-size: clamp(2.2rem, 5vw, 4.7rem);
	font-weight: 800;
	letter-spacing: -0.05em;
}

.manifesto__copy {
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--paper);
}

.game-section {
	background:
		radial-gradient(circle at 12% 10%, rgba(13, 112, 128, 0.11), transparent 32%),
		#dfe9e6;
}

.game-section__header {
	margin-bottom: 2.5rem;
}

.game-section .section-heading {
	max-width: 980px;
}

.section-heading {
	font-size: clamp(2.7rem, 7vw, 6rem);
}

.tradeoffs {
	background: #112b35;
}

.tradeoff-grid {
	gap: 0.8rem;
	border: 0;
}

.tradeoff-card {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.04);
}

.tradeoff-card h3 {
	font-family: inherit;
	font-weight: 750;
	letter-spacing: -0.03em;
}

.story-card {
	overflow: hidden;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 16px 45px rgba(18, 35, 44, 0.08);
}

.story-card h3 {
	font-family: inherit;
	font-weight: 750;
	letter-spacing: -0.035em;
}

.site-footer {
	background: #0c2028;
}

.site-footer__name {
	font-family: inherit;
	font-weight: 900;
}

@media (max-width: 900px) {
	:root {
		--content: min(100% - 1.2rem, 1420px);
	}

	.site-nav {
		background: rgba(255, 255, 255, 0.98);
	}
}

@media (max-width: 600px) {
	.hero {
		min-height: 720px;
		background-position: 44% center;
	}

	.hero h1 {
		font-size: clamp(3.5rem, 20vw, 5.5rem);
	}
}
