/*
 * Operation Give Thanks — "field issue" design system (2026).
 *
 * A veteran-backed campaign, styled like premium military kit: night and field
 * olives, desert sand, stencil numerals, and generated digital camo (js/camo.js)
 * as the signature texture. The flag's red and navy are reserved for action.
 *
 * Type: Big Shoulders Display (headlines), Big Shoulders Stencil Display
 * (numbers and markings), Public Sans (body; the U.S. government's typeface).
 *
 * Loaded after Tailwind 2, which still handles one-off utilities.
 */

:root {
	--night: #2e1216;
	--night-2: #3d1a1f;
	--field: #722F37;
	--sand: #d9cba6;
	--sand-dim: #a99c7b;
	--bone: #ece8de;
	--paper: #f7f5ef;
	--ink: #171b13;
	--muted: #4d5244;
	--red: #b22234;
	--red-deep: #8f1b2a;
	--maroon: #722F37;
	--maroon-deep: #5A1F27;
	--navy: #3c3b6e;
	--line: rgba(23, 27, 19, 0.14);
	--line-light: rgba(217, 203, 166, 0.22);

	--display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--stencil: 'Big Shoulders Stencil Display', 'Big Shoulders Display', 'Arial Narrow', sans-serif;
	--body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--gutter: 1.25rem;
	--section: 4.5rem;
	--camo-size: 288px; /* 72-cell tile at 4px per cell */

	/* Flat fallbacks until js/camo.js swaps in generated tiles */
	--camo-desert: linear-gradient(var(--sand), var(--sand));
	--camo-woodland: linear-gradient(var(--field), var(--field));
	--camo-night: linear-gradient(var(--night-2), var(--night-2));
}

@media (min-width: 768px) {
	:root {
		--gutter: 2.5rem;
		--section: 7.5rem;
	}
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bone) !important;
	color: var(--ink);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--display);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: 0.005em;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

::selection {
	background: var(--red);
	color: #fff;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 3px;
}

/* ============ Layout ============ */

.ogt-container {
	width: 100%;
	max-width: 78rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.ogt-narrow {
	max-width: 48rem;
}

.ogt-section {
	padding-block: var(--section);
}

.ogt-section + .ogt-section {
	padding-top: 0;
}

.ogt-page-top {
	padding-top: calc(5.5rem + var(--section));
}

/* ============ Type scale ============ */

.ogt-display {
	font-size: clamp(3.5rem, 10vw, 8rem);
	text-transform: uppercase;
}

.ogt-h1 {
	font-size: clamp(2.75rem, 6.5vw, 5rem);
	text-transform: uppercase;
}

.ogt-h2 {
	font-size: clamp(2.25rem, 4.5vw, 3.75rem);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.ogt-h3 {
	font-size: 1.875rem;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.ogt-lead {
	font-size: clamp(1.25rem, 2.1vw, 1.625rem);
	line-height: 1.45;
	color: var(--ink);
}

.ogt-body {
	color: var(--muted);
	max-width: 42rem;
}

.ogt-center {
	text-align: center;
}

.ogt-center .ogt-body,
.ogt-body.ogt-center {
	margin-inline: auto;
}

.ogt-hero-title {
	color: var(--paper);
	text-align: center;
	text-transform: uppercase;
	font-size: clamp(3rem, 9vw, 7.5rem);
	padding-inline: var(--gutter);
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

/* ============ Buttons ============ */

.ogt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	padding: 0.95rem 1.5rem 0.85rem;
	border-radius: 2px;
	background: var(--red);
	color: #fff;
	transition: background-color 150ms ease, transform 150ms ease;
}

.ogt-btn:hover {
	background: var(--red-deep);
}

.ogt-btn:active {
	transform: translateY(1px);
}

.ogt-btn-outline {
	background: transparent;
	color: currentColor;
	box-shadow: inset 0 0 0 2px currentColor;
}

.ogt-btn-outline:hover {
	background: rgba(217, 203, 166, 0.12);
}

.ogt-btn-sm {
	font-size: 1.0625rem;
	padding: 0.7rem 1rem 0.6rem;
}

.ogt-btn-lg {
	font-size: 1.5rem;
	padding: 1.15rem 2rem 1.05rem;
}

/* ============ Cards (secondary pages) ============ */

.ogt-card {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ogt-card-media {
	width: 100%;
	display: block;
}

.ogt-card-body {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ogt-card-body p {
	color: var(--muted);
	margin-bottom: 1.25rem;
}

.ogt-card-body > a:last-child {
	margin-top: auto;
}

.ogt-video {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 4px;
	background: #000;
	display: block;
}

.ogt-feature-img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ============ Donations callout (secondary pages) ============ */

.ogt-callout {
	background-color: var(--night);
	background-image: linear-gradient(180deg, rgba(46, 18, 22, 0.92), rgba(46, 18, 22, 0.98));
	color: var(--paper);
	border-radius: 4px;
	padding: clamp(2rem, 5vw, 4.5rem);
	position: relative;
	overflow: hidden;
}

.ogt-callout h2 {
	font-size: clamp(2.5rem, 5.5vw, 4.5rem);
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.ogt-callout p {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.65;
	color: rgba(239, 231, 210, 0.82);
	max-width: 46rem;
}

/* ============ Footer ============ */

.ogt-footer {
	background: var(--night);
	color: rgba(239, 231, 210, 0.72);
	margin-top: var(--section);
	font-size: 0.9375rem;
	position: relative;
}

/* Maroon accent band along the footer's top edge (camo removed) */
.ogt-footer::before {
	content: '';
	display: block;
	height: 6px;
	background: var(--maroon);
}

main + .ogt-footer,
.ogt-section + .ogt-footer,
.fi-band + .ogt-footer {
	margin-top: 0;
}

.ogt-footer-signoff {
	font-family: var(--display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(2.75rem, 8vw, 6.5rem);
	line-height: 0.9;
	color: var(--sand);
	padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem);
}

.ogt-footer-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem 2rem;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid var(--line-light);
	padding-block: 1.75rem 2.25rem;
}

.ogt-footer a {
	color: inherit;
}

.ogt-footer a:hover {
	color: var(--paper);
	text-decoration: underline;
}

.ogt-footer nav {
	display: flex;
	gap: 1.5rem;
}

/* ============ Home: hero ============ */

.fi-hero {
	position: relative;
	min-height: 100svh;
	background: var(--night);
	color: var(--paper);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.fi-hero video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.5;
	filter: grayscale(0.35) contrast(1.05);
}

/* Gradient overlay (camo removed) */
.fi-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, var(--night) 0%, var(--night) 15%, transparent 60%);
	opacity: 0.95;
}

.fi-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(18, 22, 15, 0.7) 0%, transparent 30%);
}

.fi-hero-inner {
	position: relative;
	z-index: 1;
	padding-top: 7rem;
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.fi-hero-logo {
	display: block;
	max-width: min(90vw, 600px);
	height: auto;
	margin: 0 auto 1rem;
	filter: drop-shadow(0 4px 30px rgba(0, 0, 0, 0.35));
}

@media (max-width: 640px) {
	.fi-hero-logo {
		max-width: 85vw;
	}
}

.fi-hero-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.fi-hero-sub {
	font-size: clamp(1.125rem, 1.8vw, 1.375rem);
	line-height: 1.5;
	color: rgba(239, 231, 210, 0.86);
	max-width: 34rem;
}

.fi-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.fi-hero .ogt-btn-outline {
	color: var(--sand);
}

/* Stat strip: real campaign numbers in stencil */
.fi-stats {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--line-light);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fi-stat {
	padding: 1.25rem 0 1.5rem;
}

.fi-stat + .fi-stat {
	border-left: 1px solid var(--line-light);
	padding-left: clamp(1rem, 3vw, 2.5rem);
}

.fi-stat-value {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(1.75rem, 4.2vw, 3.5rem);
	line-height: 1;
	color: var(--paper);
}

.fi-stat-label {
	display: block;
	margin-top: 0.4rem;
	color: var(--sand-dim);
	font-size: 0.9375rem;
}

@media (max-width: 640px) {
	.fi-stats {
		grid-template-columns: 1fr;
	}
	.fi-stat + .fi-stat {
		border-left: 0;
		border-top: 1px solid var(--line-light);
		padding-left: 0;
	}
	.fi-stat {
		padding-block: 1rem;
	}
}

/* ============ Home: sections ============ */

.fi-mission {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(2.125rem, 4.6vw, 4rem);
	line-height: 1.02;
	max-width: 20em;
}

/* Section header: heading left, supporting copy or link right */
.fi-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.fi-head .ogt-h2 {
	margin-bottom: 0;
}

/* Ways to give: full-bleed photo tiles with the copy laid over the bottom */
.fi-tile {
	position: relative;
	border-radius: 4px;
	overflow: hidden;
	background: var(--night);
	color: var(--paper);
	aspect-ratio: 708 / 1000;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.fi-tile img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fi-tile:hover img {
	transform: scale(1.04);
}

.fi-tile::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(18, 22, 15, 0.95) 0%, rgba(18, 22, 15, 0.55) 38%, transparent 62%);
}

.fi-tile-body {
	position: relative;
	z-index: 1;
	padding: clamp(1.25rem, 2.5vw, 2rem);
}

.fi-tile h3 {
	font-family: var(--body);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	text-transform: none;
	margin-bottom: 0.6rem;
}

.fi-tile p {
	color: rgba(239, 231, 210, 0.82);
	margin-bottom: 1.25rem;
}

/* Dark maroon band (camo removed) */
.fi-band {
	background-color: var(--night);
	background-image: linear-gradient(180deg, rgba(46, 18, 22, 0.85) 0%, rgba(46, 18, 22, 0.95) 100%);
	color: var(--paper);
	padding-block: var(--section);
}

.fi-band .ogt-h2 {
	color: var(--paper);
}

.fi-band figcaption {
	color: var(--sand);
}

.fi-film {
	border-radius: 4px;
	box-shadow: 0 0 0 1px var(--line-light), 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

/* Charities: named plainly, separated by rules */
.fi-charity {
	padding-block: 1.5rem;
	border-top: 1px solid var(--line);
}

.fi-charity:last-child {
	border-bottom: 1px solid var(--line);
}

.fi-charity h3 {
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	text-transform: uppercase;
	margin-bottom: 0.35rem;
}

.fi-charity p {
	color: var(--muted);
}

/* Partner marquee */
.fi-marquee {
	overflow: hidden;
	/* the mask isolates this box, so logos blend against this color, not the page */
	background-color: var(--bone);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.fi-marquee-track {
	display: flex;
	align-items: center;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	width: max-content;
	animation: fi-marquee 50s linear infinite;
}

.fi-marquee:hover .fi-marquee-track {
	animation-play-state: paused;
}

.fi-marquee img {
	height: 56px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
	mix-blend-mode: darken;
	flex: none;
}

@keyframes fi-marquee {
	to {
		transform: translateX(-50%);
	}
}

/* ============ Merch product cards ============ */

.product-grid .truncate-title {
	font-size: 1.5rem;
	text-transform: uppercase;
	margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
