/*
Theme Name: NRA Landing
Author: webdawson
Author URI: https://webdawson.com
Description: Barebones "under construction" holding page using the NRA brand.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.2
Text Domain: nra-landing
License: Proprietary
*/

@font-face {
	font-family: Inter;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/inter.woff2') format('woff2-variations');
}

@font-face {
	font-family: Archivo;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/archivo.woff2') format('woff2-variations');
}

:root {
	--navy: #002f66;
	--navy-900: #001a3a;
	--red: #d71920;
	--ink: #0e1726;
	--slate-500: #667285;
	--stone-50: #f5f6f8;
	--line: #dde3ea;
}

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

html, body { height: 100%; margin: 0; }

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--navy-900) url('assets/images/background.jpg') center / cover no-repeat fixed;
	color: var(--ink);
	font: 400 1rem/1.625 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

/* Navy wash so the card and footer read cleanly over the photo. */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgb(0 26 58 / 0.35) 0%, rgb(0 26 58 / 0.75) 100%);
}

body::before {
	content: '';
	display: block;
	height: 6px;
	background: var(--red);
}

.landing {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 3rem 1rem;
}

.landing__card {
	width: 100%;
	max-width: 40rem;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 5vw, 3.5rem);
	background: #fff;
	border-top: 4px solid var(--red);
	border-radius: 2px;
	box-shadow: 0 24px 60px rgb(0 26 58 / 0.35);
	text-align: center;
}

.landing__logo {
	display: block;
	width: min(180px, 50vw);
	height: auto;
	margin: 0 auto;
}

/* Matches the stacked "Group" label under the logo in the NRA theme's centred header. */
.landing__label {
	margin: 0.75rem 0 2rem;
	color: var(--navy);
	font: 700 1rem/1 Archivo, Inter, sans-serif;
	letter-spacing: 0.35em;
	text-indent: 0.35em; /* Balances the trailing letter-spacing so it centres under the logo. */
	text-transform: uppercase;
}

.landing__eyebrow {
	margin: 0 0 0.75rem;
	color: var(--red);
	font: 600 0.8125rem/1.23 Archivo, Inter, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.landing__text {
	max-width: 32rem;
	margin: 0 auto;
	color: var(--navy);
	font: 700 clamp(1.25rem, 1rem + 1vw, 1.625rem)/1.35 Archivo, Inter, sans-serif;
	letter-spacing: -0.005em;
	text-wrap: balance;
}

.contact {
	display: grid;
	gap: 1.5rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
}

.contact__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 2rem;
}

.contact a {
	color: var(--navy);
	font-weight: 600;
	text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible { color: var(--red); text-decoration: underline; }

.contact__offices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1.25rem;
	margin: 0;
}

.contact__office h2 {
	margin: 0 0 0.25rem;
	color: var(--ink);
	font: 700 0.9375rem/1.4 Archivo, Inter, sans-serif;
}

.contact__office address {
	color: var(--slate-500);
	font-style: normal;
}

.landing__footer {
	padding: 1.25rem 1rem;
	background: var(--navy-900);
	color: #b7c0cc;
	font-size: 0.875rem;
	text-align: center;
}

@media (max-width: 640px) {
	/* Fixed backgrounds are janky on mobile. */
	body { background-attachment: scroll; }
}
