/* ==========================================================================
   Atmosphere360 — base layer
   Design tokens, brand fonts and the global helpers shared by every page.
   Mirrors src/routes/layout.css for the standalone HTML build.
   ========================================================================== */

@font-face {
	font-family: 'Geist';
	src: url('../fonts/geist-wght--regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Geist';
	src: url('../fonts/geist-wght--medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Geist';
	src: url('../fonts/geist-wght--semibold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Instrument Serif';
	src: url('../fonts/instrumentserif-regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Instrument Serif';
	src: url('../fonts/instrumentserif-italic.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	--paper: #f4f9fd;
	--surface: #ffffff;
	--ink: #0a2536;
	--muted: #5c7a8f;
	--line: rgba(10, 37, 54, 0.13);
	--night: #062b44;
	--violet: #1f7cba;
	--magenta: #0f5f92;
	--orange: #59b2ea;
	--lavender: #e6f3fc;
	--radius: 2rem;
	font-family: 'Geist', system-ui, sans-serif;
	font-synthesis: none;
	color: var(--ink);
	background: var(--paper);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 6rem;
	/* Reserve the scrollbar's space even while scroll is locked (loader /
	   open dialog) so the page never shifts when the scrollbar appears. */
	scrollbar-gutter: stable;
	background: var(--paper);
}

body {
	margin: 0;
	min-width: 320px;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Geist', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body:has(dialog[open]),
body.menu-open {
	overflow: hidden;
}

html.app-loading,
html.app-loading body {
	overflow: hidden;
}

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

button,
a {
	-webkit-tap-highlight-color: transparent;
}

a {
	color: inherit;
	text-decoration: none;
}

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

::selection {
	background: #bfe0f7;
	color: var(--night);
}

.shell {
	width: min(100% - 2rem, 1240px);
	margin-inline: auto;
}

.display {
	font-family: 'Instrument Serif', Georgia, serif;
	font-weight: 400;
	letter-spacing: -0.035em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted);
}

.eyebrow::before {
	content: '';
	width: 0.38rem;
	height: 0.38rem;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--violet), var(--orange));
}

.section-heading {
	margin: 0.8rem 0 0;
	font-size: clamp(3rem, 6vw, 5.75rem);
	line-height: 0.92;
}

.gradient-text {
	background: linear-gradient(105deg, #2a8ace 5%, #0f5f92 50%, #59b2ea 92%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.button {
	display: inline-flex;
	min-height: 3.1rem;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	padding: 0.75rem 1.3rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
	outline: 3px solid rgba(31, 124, 186, 0.4);
	outline-offset: 3px;
}

.button-dark {
	background: var(--night);
	color: white;
	box-shadow: 0 10px 28px rgba(6, 43, 68, 0.15);
}

.button-dark:hover {
	box-shadow: 0 14px 34px rgba(31, 124, 186, 0.22);
}

.button-light {
	border-color: var(--line);
	background: rgba(255, 255, 255, 0.75);
	color: var(--ink);
}

.button-white {
	background: white;
	color: var(--night);
}

.button-outline {
	border-color: var(--line);
	background: transparent;
	color: var(--ink);
}

.button-ghost {
	border: 1px solid var(--line);
	background: transparent;
	color: var(--muted);
}

.button-outline-white {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.06);
	color: white;
}

.button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.noise::after {
	position: absolute;
	inset: 0;
	pointer-events: none;
	content: '';
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
	mix-blend-mode: soft-light;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	white-space: nowrap;
	border: 0;
	clip-path: inset(50%);
}

[hidden] {
	display: none !important;
}

@media (max-width: 640px) {
	.shell {
		width: min(100% - 1.25rem, 1240px);
	}

	:root {
		--radius: 1.4rem;
	}

	.section-heading {
		font-size: clamp(2.8rem, 14vw, 4.2rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
