/* ==========================================================================
   luism-design — base: tokens, reset, typography, layout
   ========================================================================== */

:root {
	/* Color */
	/* Brand: from the original luism.design (logo ink, #006CFF accent). */
	--lm-paper: #FFFFFF;
	--lm-ink: #232524;
	--lm-graphite: #6B6B6B;
	--lm-line: #EAEAEA;
	--lm-white: #FFFFFF;
	--lm-accent: #006CFF;
	--lm-project: var(--lm-accent);

	/* Type */
	/* Neusa Next Std + Neusa Next Std Wide, Adobe Fonts kit gsq1rrj. */
	--lm-font-display: "neusa-next-std-wide", "Helvetica Neue", Arial, sans-serif;
	--lm-font-text: "neusa-next-std", "Helvetica Neue", Arial, sans-serif;
	--lm-font-mono: "neusa-next-std-wide", "Helvetica Neue", Arial, sans-serif; /* labels */
	--lm-fw-display: 500;

	--lm-fs-hero: clamp(2.5rem, 7vw, 7rem);
	--lm-fs-xl: clamp(2.25rem, 5vw, 4.5rem);
	--lm-fs-lg: clamp(1.5rem, 3vw, 2.5rem);
	--lm-fs-md: clamp(1.25rem, 2vw, 1.625rem);
	--lm-fs-base: 1.0625rem;
	--lm-fs-sm: 0.875rem;
	--lm-fs-label: 0.75rem;

	/* Layout */
	--lm-max: 1440px;
	--lm-pad: clamp(1rem, 4vw, 3rem);
	--lm-gutter: clamp(1rem, 2.5vw, 2rem);
	--lm-space-section: clamp(5rem, 12vw, 10rem);
	--lm-header-h: 4.5rem;

	/* Motion */
	--lm-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Reset ------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--lm-header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body,
body.lm {
	margin: 0;
	background: var(--lm-paper);
	color: var(--lm-ink);
	font-family: var(--lm-font-text);
	font-size: var(--lm-fs-base);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

body.lm-menu-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--lm-project); }

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

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

::selection { background: var(--lm-ink); color: var(--lm-paper); }

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

/* Typography --------------------------------------------------------------- */

h1, h2, h3 {
	font-family: var(--lm-font-display);
	font-weight: var(--lm-fw-display);
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

em { font-style: italic; }
h1 em, h2 em, h3 em { font-family: var(--lm-font-display); }

.lm-label {
	font-family: var(--lm-font-mono);
	font-size: var(--lm-fs-label);
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lm-graphite);
}

.lm-label a { text-decoration: none; }

.lm-prose { max-width: 68ch; }
.lm-prose > * + * { margin-top: 1em; }
.lm-prose p, .lm-prose li { text-wrap: pretty; }
.lm-prose ul, .lm-prose ol { padding-left: 1.25em; }
.lm-prose h2, .lm-prose h3 { font-size: var(--lm-fs-lg); margin-top: 1.5em; }
.lm-prose a { text-decoration: underline; }
.lm-prose img { margin-block: 2rem; }

/* Layout ------------------------------------------------------------------- */

.lm-wrap {
	width: 100%;
	max-width: var(--lm-max);
	margin-inline: auto;
	padding-inline: var(--lm-pad);
}

.lm-main { display: block; outline: none; }

.lm-section { padding-block: var(--lm-space-section) 0; }

.lm-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	flex-wrap: wrap;
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	border-bottom: 1px solid var(--lm-line);
}

.lm-section__title { font-size: var(--lm-fs-lg); }

.lm-empty { color: var(--lm-graphite); padding-block: 2rem; }

/* Reveal ------------------------------------------------------------------- */

.lm-js [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 600ms var(--lm-ease), transform 600ms var(--lm-ease);
	transition-delay: var(--lm-delay, 0ms);
}

.lm-js [data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.lm-js [data-reveal] { opacity: 1; transform: none; transition: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
