/*
 * Orleno base.css — global tokens, reset-lite, typography, chrome (header/footer/search).
 * Cards, singles, archives own their own stylesheets (cards.css/singles.css/archives.css).
 * Token values: design/orleno-design-system.md sections 2, 3, 4.
 */

/* ============ 1. Tokens ============ */
:root {
	/* Colors */
	--bg: #0A0A0A;
	--surface: #171717;
	--surface-hover: #262626;
	--image-well: #111111;
	--accent: #E63946;
	--accent-hover: #DC2626;
	/* Lightened accent for TEXT only (badges/buttons keep --accent):
	 * #E63946 on surface is 4.30:1 — below AA for small text; this is ≈5.6:1. */
	--accent-text: #F2626E;
	--text-primary: #FFFFFF;
	--text-secondary: #A3A3A3;

	/* Native dark UI (scrollbars, form controls, autofill) */
	color-scheme: dark;

	/* Borders + overlays */
	--border-subtle: rgba(255, 255, 255, 0.05);
	--border-hover: rgba(255, 255, 255, 0.20);
	--divider: rgba(255, 255, 255, 0.10);
	--overlay-scrim: rgba(0, 0, 0, 0.60);
	--bg-80: rgba(10, 10, 10, 0.80);
	--surface-80: rgba(23, 23, 23, 0.80);

	/* Fonts */
	--font-head: "Space Grotesk", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Spacing scale */
	--sp-1: 8px;
	--sp-2: 12px;
	--sp-3: 16px;
	--sp-4: 24px;
	--sp-5: 32px;
	--sp-6: 40px;
	--sp-7: 48px;
	--sp-8: 64px;

	/* Radius */
	--radius-pill: 9999px;
	--radius-4xl: 2rem;
	--radius-3xl: 1.5rem;
	--radius-2xl: 1rem;

	/* Layout */
	--container: 1280px;

	/* Motion */
	--ease-state: 300ms ease;

	/* Accent glow (design system 2.4) */
	--glow: 0 0 20px rgba(230, 57, 70, 0.4);
	--glow-hover: 0 0 25px rgba(230, 57, 70, 0.5);
}

/* ============ 2. Reset-lite ============ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text-secondary);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.625;
	-webkit-font-smoothing: antialiased;
}

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

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

a {
	color: var(--accent-text);
	text-decoration: none;
	transition: color var(--ease-state);
}

a:hover {
	color: var(--text-primary);
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	cursor: pointer;
	background: none;
	border: 0;
}

::selection {
	background: var(--accent);
	color: var(--text-primary);
}

/* Scrollbar (design system 8) */
::-webkit-scrollbar {
	width: 10px;
}
::-webkit-scrollbar-track {
	background: var(--bg);
}
::-webkit-scrollbar-thumb {
	background: #333333;
	border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
	background: #555555;
}

/* ============ 3. Typography ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 var(--sp-3);
	color: var(--text-primary);
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	letter-spacing: -0.05em;
}

/* Hero H1: 72px desktop / 48px mobile (3.2) */
h1 {
	font-size: 48px;
}
/* Section H2 large: 48px desktop / 36px mobile */
h2 {
	font-size: 36px;
	line-height: 1;
}
/* H3–H6 stay Inter medium, quiet (3.3) */
h3,
h4,
h5,
h6 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0.05em;
}

p {
	margin: 0 0 var(--sp-3);
}

@media (min-width: 768px) {
	h1 {
		font-size: 72px;
	}
	h2 {
		font-size: 48px;
	}
}

/* ============ 4. Utilities ============ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: var(--sp-3);
	top: var(--sp-3);
	z-index: 1000;
	padding: var(--sp-2) var(--sp-4);
	background: var(--accent);
	color: var(--text-primary);
	border-radius: var(--radius-pill);
	font-size: 14px;
	font-weight: 500;
}

.skip-link:not(:focus) {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	overflow: hidden;
	position: absolute;
}

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Container: 1280px, 24px gutters, 16px mobile */
.orleno-container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 16px;
}

@media (min-width: 768px) {
	.orleno-container {
		padding-inline: var(--sp-4);
	}
}

/* Noise texture (design system 7.5) */
.orleno-noise {
	position: relative;
}

.orleno-noise::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 10;
}

/* ============ 5. Buttons ============ */
.btn,
.btn--primary,
.btn--ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-1);
	padding: 12px 24px;
	border-radius: var(--radius-pill);
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.35px;
	white-space: nowrap;
	transition: background-color var(--ease-state), border-color var(--ease-state), color var(--ease-state), box-shadow var(--ease-state);
}

.btn--primary {
	background: var(--accent);
	color: var(--text-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--accent-hover);
	color: var(--text-primary);
	box-shadow: var(--glow);
}

.btn--ghost {
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
	border-color: var(--border-hover);
	color: var(--text-primary);
}

/* Large variant: 16x32 padding (732 CTAs) */
.btn--lg {
	padding: 16px 32px;
}

/* ============ 6. Sections ============ */
.section {
	margin-block: var(--sp-4);
}

@media (min-width: 768px) {
	.section {
		margin-block: var(--sp-5);
	}
}

/* Section H2: Space Grotesk 24px uppercase tracking-tight (design HTML) */
.section__title {
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: -0.6px;
	line-height: 1.2;
	margin-bottom: var(--sp-5);
}

/* ============ 7. Header (template 28 / design HTML lines 79-114) ============ */
/* Fixed full-width bar, transparent at top, bg/90 + blur when scrolled (JS adds .is-scrolled). */
.site-header {
	position: fixed;
	top: 12px;
	left: 0;
	right: 0;
	z-index: 100;
	padding-block: var(--sp-3);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: top var(--ease-state), padding var(--ease-state), background-color var(--ease-state), backdrop-filter var(--ease-state), border-color var(--ease-state);
}

.site-header.is-scrolled {
	top: 0;
	padding-block: 14px;
	background: var(--bg-80);
	border-bottom-color: transparent;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

/* Fixed header needs body padding — page top offset (design: pt-24 ≈ 96px + 12px header top gap) */
body {
	padding-top: 108px;
}

body.admin-bar {
	padding-top: 140px;
}

/* Inner row: max-w-7xl px-6 py-6 flex justify-between (design) */
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	/* breathing room between the menu row and the bar edges (scrolled state) */
	padding-inline: var(--sp-4);
}

.site-header__brand {
	flex: 0 0 auto;
}

.site-header__brand .custom-logo {
	max-height: 40px;
	width: auto;
}

/* Logo: Space Grotesk 24px/700 uppercase tracking-tight, hover opacity .8 (28) */
.site-title {
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: -0.6px;
	line-height: 1;
}

.site-title:hover {
	opacity: 0.8;
	color: var(--text-primary);
}

/* Nav — pill container on desktop (28: absolute centered, surface/80 blur, px-8 py-3, radius pill) */
.site-nav {
	display: none;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__link {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-secondary);
	transition: color var(--ease-state);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current="page"] {
	color: var(--text-primary);
}

@media (min-width: 1025px) {
	.site-nav {
		display: block;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		width: fit-content;
		background: var(--surface-80);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
		border: 1px solid var(--border-subtle);
		border-radius: var(--radius-pill);
		padding: 12px 32px;
		z-index: 10;
	}
}

/* Mobile nav: overlay dropdown under header (design: absolute top-full, surface, border-t, py-4 px-6, shadow-2xl) */
@media (max-width: 1024px) {
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--surface);
		border-top: 1px solid var(--border-subtle);
		padding: var(--sp-3) var(--sp-4);
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	}

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

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-3);
	}

	.site-nav__link {
		font-size: 18px;
		font-weight: 500;
	}
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin-left: auto;
}

/* Action icon buttons: w-10 h-10 rounded-full surface, border white/5, hover surfaceHover (design) */
.site-header__search-toggle,
.site-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	transition: background-color var(--ease-state), border-color var(--ease-state), color var(--ease-state);
}

.site-header__search-toggle:hover,
.site-header__search-toggle:focus-visible,
.site-header__toggle:hover {
	background: var(--surface-hover);
	border-color: var(--border-hover);
	color: var(--text-primary);
}

/* Hamburger: hidden on desktop */
.site-header__toggle {
	flex-direction: column;
	gap: 4px;
}

.site-header__toggle-bar {
	display: block;
	width: 16px;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform var(--ease-state), opacity var(--ease-state);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1025px) {
	.site-header__toggle {
		display: none;
	}
}

/* ============ 8. Search panel + form ============ */
/* Dropdown under the fixed header, mirrors mobile nav overlay */
.site-search-panel {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--surface);
	border-top: 1px solid var(--border-subtle);
	padding-block: var(--sp-3);
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.site-search-panel.is-open {
	display: block;
}

.search-form {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	max-width: 640px;
	margin-inline: auto;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 10px 16px;
	background: var(--bg);
	border: 1px solid var(--border-subtle);
	border-radius: var(--radius-pill);
	color: var(--text-primary);
	font-size: 14px;
}

.search-form__input::placeholder {
	color: var(--text-secondary);
}

.search-form__input:focus {
	outline: none;
	border-color: var(--border-hover);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--surface);
	border: 1px solid var(--border-subtle);
	color: var(--text-secondary);
	transition: background-color var(--ease-state), border-color var(--ease-state), color var(--ease-state);
}

.search-form__submit:hover {
	background: var(--surface-hover);
	border-color: var(--border-hover);
	color: var(--text-primary);
}

/* ============ 9. Footer (template 1071 + design HTML) ============ */
.site-footer {
	padding-block: var(--sp-3) var(--sp-4);
}

/* Band: surface, radius 32px, padding 64px 48px 32px (1071), noise + L→R gradient overlay */
.site-footer__band {
	position: relative;
	overflow: hidden;
	background: var(--surface);
	border-radius: 32px;
	padding: 64px 32px 32px;
}

@media (min-width: 768px) {
	.site-footer__band {
		padding: 64px 40px 32px;
	}
}

@media (min-width: 1025px) {
	.site-footer__band {
		padding: 64px 48px 32px;
	}
}

/* Left-to-right surface gradient over the (optional) photo treatment (1071 custom CSS) */
.site-footer__band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	border-radius: inherit;
	background: linear-gradient(
		90deg,
		#171717 0%,
		rgba(23, 23, 23, 0.9) 50%,
		rgba(23, 23, 23, 0) 100%
	);
}

.site-footer__band > * {
	position: relative;
	z-index: 2;
}

.site-footer__cta {
	max-width: 480px;
}

/* Logo: Space Grotesk 48px desktop / 42 ≤1024 / 36 mobile, tracking -2.4px (1071) */
.site-footer__logo {
	margin: 0 0 var(--sp-3);
	font-family: var(--font-head);
	font-size: 36px;
	font-weight: 700;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: -2.4px;
	line-height: 1;
}

@media (min-width: 1025px) {
	.site-footer__logo {
		font-size: 48px;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.site-footer__logo {
		font-size: 42px;
	}
}

/* Tagline: Inter 14px / 12px mobile, line-height 1.625 (1071) */
.site-footer__tagline {
	margin: 0;
	max-width: 384px;
	font-size: 12px;
	line-height: 1.625;
}

@media (min-width: 768px) {
	.site-footer__tagline {
		font-size: 14px;
	}
}

/* Social: absolute right on desktop (1071 Social Media container: justify-end) */
.site-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-top: var(--sp-5);
}

@media (min-width: 768px) {
	.site-footer__social {
		position: absolute;
		top: 64px;
		right: 48px;
		margin-top: 0;
	}
}

.site-footer__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	color: var(--text-secondary);
	transition: color var(--ease-state);
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
	color: var(--text-primary);
}

/* Bottom: margin-top 64px, padding-top 32px, border-top divider (1071) */
.site-footer__bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-3);
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--divider);
}

@media (min-width: 768px) {
	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

/* Nav: Inter 10px/400 uppercase tracking 1px secondary (1071) */
.footer-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--sp-3);
}

.footer-nav__list a {
	font-size: 10px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--text-secondary);
}

.footer-nav__list a:hover,
.footer-nav__list a:focus-visible {
	color: var(--text-primary);
}

.site-footer__copy {
	margin: 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 1px;
	line-height: 1.5;
	color: var(--text-secondary);
}
