/* Cala Launch
   Aubergine and cream. Square corners, hairline rules, no shadows.
   Tokens mirror the active Novamira design exactly. */

@font-face {
	font-family: "DM Serif Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/dmserif-regular.woff2") format("woff2");
}

@font-face {
	font-family: "DM Serif Display";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/dmserif-italic.woff2") format("woff2");
}

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/dmsans.woff2") format("woff2");
}

:root {
	--cream: #f5efe5;
	--aubergine: #4b2440;
	--ink: #241f20;
	--sage: #8f9a84;

	--rule-dark: rgba(75, 36, 64, 0.2);
	--rule-light: rgba(245, 239, 229, 0.24);

	--font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
	--font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

	--shell: 1180px;
	--gutter: 24px;
	--edge: max(var(--gutter), calc((100vw - var(--shell)) / 2));
	--section: clamp(72px, 10vw, 120px);
}

/* Reset kept at zero specificity so component rules always win. */
:where(*, *::before, *::after) {
	box-sizing: border-box;
}

:where(body, h1, h2, h3, p, ul, li, figure) {
	margin: 0;
	padding: 0;
}

:where(ul) {
	list-style: none;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	position: relative;
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	font-weight: 400;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

.shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--aubergine);
	color: var(--cream);
	padding: 12px 20px;
	font-size: 0.875rem;
}

.skip:focus {
	left: 0;
}

/* Masthead */

.masthead {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 3;
	padding-block: clamp(20px, 3vw, 34px);
}

.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.masthead__logo {
	width: clamp(132px, 17vw, 196px);
	height: auto;
}

.masthead__logo--text {
	font-family: var(--font-display);
	font-size: 1.6rem;
	color: var(--cream);
}

.masthead__status {
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgba(245, 239, 229, 0.72);
	white-space: nowrap;
}

/* Hero */

.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(94svh, 880px);
	padding-block: clamp(140px, 20vh, 200px) clamp(56px, 9vh, 104px);
	background: var(--aubergine);
	overflow: hidden;
}

.hero__photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 54% 54%;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			100deg,
			rgba(75, 36, 64, 0.93) 0%,
			rgba(75, 36, 64, 0.82) 26%,
			rgba(75, 36, 64, 0.42) 58%,
			rgba(75, 36, 64, 0.12) 85%,
			rgba(75, 36, 64, 0.04) 100%
		),
		linear-gradient(to top, rgba(36, 31, 32, 0.42), rgba(36, 31, 32, 0) 46%);
}

.hero__inner {
	position: relative;
	z-index: 2;
}

.hero__title {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--cream);
	font-size: clamp(3.4rem, 9vw, 7.2rem);
	line-height: 1.08;
	letter-spacing: -0.005em;
	max-width: 28ch;
	text-shadow: 0 1px 30px rgba(36, 31, 32, 0.28);
}

.hero__title em {
	display: inline-block;
	font-style: italic;
	line-height: 1.14;
	padding-bottom: 0.06em;
	color: rgba(245, 239, 229, 0.78);
}

.hero__line {
	margin-top: clamp(14px, 1.8vw, 22px);
	max-width: 30ch;
	text-wrap: balance;
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.25rem, 2.1vw, 1.9rem);
	line-height: 1.24;
	padding-bottom: 0.06em;
	color: rgba(245, 239, 229, 0.82);
}

/* Buttons */

.button {
	display: inline-block;
	margin-top: clamp(28px, 3.4vw, 40px);
	padding: 15px 28px;
	border-radius: 0;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button--ghost {
	border: 1px solid rgba(245, 239, 229, 0.55);
	color: var(--cream);
}

.button--ghost:hover,
.button--ghost:focus-visible {
	background: var(--cream);
	color: var(--aubergine);
	border-color: var(--cream);
}

.button--solid {
	border: 1px solid var(--aubergine);
	background: var(--aubergine);
	color: var(--cream);
}

.button--solid:hover,
.button--solid:focus-visible {
	background: transparent;
	color: var(--aubergine);
}

/* Standards */

.standards {
	padding-block: var(--section);
	background: var(--cream);
}

.standards__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: clamp(24px, 4vw, 56px);
	border-bottom: 1px solid var(--rule-dark);
}

.standards__item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(12px, 1.4vw, 18px);
	border-top: 1px solid var(--rule-dark);
	padding-block: clamp(22px, 2.6vw, 32px);
	padding-right: clamp(12px, 2vw, 28px);
	font-family: var(--font-display);
	font-size: clamp(1.0625rem, 1.5vw, 1.3rem);
	line-height: 1.24;
	color: var(--aubergine);
}

/* One stroke weight across the set, square ends, so the glyphs read as drawn
   by the same hand as the hairline rules they sit on. */
.standards__icon {
	width: clamp(42px, 3.6vw, 52px);
	height: clamp(42px, 3.6vw, 52px);
	flex: none;
	fill: none;
	stroke: var(--aubergine);
	stroke-width: 1.1;
	stroke-linecap: butt;
	stroke-linejoin: miter;
}

/* Image and text bands */

.band {
	display: grid;
	grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
	align-items: stretch;
}

.band__media {
	position: relative;
	min-height: clamp(420px, 54vw, 760px);
}

.band__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.band__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: var(--section);
	gap: 1.1em;
}

.band__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	line-height: 1.1;
	letter-spacing: -0.005em;
	margin-bottom: 0.15em;
}

.band__text p {
	max-width: 34rem;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.band--proof {
	background: var(--cream);
}

.band--proof .band__text {
	padding-left: clamp(28px, 5vw, 72px);
	padding-right: var(--edge);
	color: var(--ink);
}

.band--proof .band__title {
	color: var(--aubergine);
}

.band--mother {
	background: var(--aubergine);
	color: var(--cream);
}

.band--mother .band__text {
	padding-left: var(--edge);
	padding-right: clamp(28px, 5vw, 72px);
}

.band--mother .band__title {
	color: var(--cream);
}

.band--mother .band__text p {
	color: rgba(245, 239, 229, 0.84);
}

.band--mother {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.28fr);
}

/* Closing */

.closing {
	padding-block: var(--section);
	background: var(--cream);
}

.closing__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
	gap: clamp(40px, 6vw, 90px);
	align-items: start;
}

.closing__logo {
	width: clamp(190px, 22vw, 280px);
	height: auto;
}

.closing__tagline {
	margin-top: 14px;
	font-family: var(--font-display);
	font-size: clamp(1.25rem, 1.9vw, 1.6rem);
	line-height: 1.2;
	color: var(--aubergine);
}

.closing__tagline em {
	font-style: italic;
	display: inline-block;
	padding-bottom: 0.06em;
}

.closing__title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	line-height: 1.1;
	color: var(--aubergine);
	margin-bottom: 0.4em;
}

.closing__body p {
	max-width: 34rem;
	font-size: 1.0625rem;
	line-height: 1.65;
}

/* Colophon */

.colophon {
	padding-block: clamp(28px, 4vw, 42px);
	background: var(--aubergine);
	color: rgba(245, 239, 229, 0.72);
}

.colophon__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 10px clamp(24px, 5vw, 56px);
	font-size: 0.875rem;
	letter-spacing: 0.01em;
}

/* Collapse */

@media (max-width: 860px) {
	.band,
	.band--mother {
		grid-template-columns: minmax(0, 1fr);
	}

	.band__media {
		order: -1;
		min-height: clamp(300px, 72vw, 460px);
	}

	.band--proof .band__text,
	.band--mother .band__text {
		padding-inline: var(--gutter);
	}

	.standards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.closing__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 44px;
	}

	.hero {
		min-height: 100svh;
	}

	.hero__title {
		max-width: none;
	}
}

@media (max-width: 560px) {
	.masthead__status {
		display: none;
	}

	.standards__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.button {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
