/* ===========================================================================
   C-Level Space — the website for summit organisers.

   Palette and typefaces are the platform's (codigo/web/src/lib/styles/
   tokens.css), which read them off zuzanaopp.com on 17/09/2026:

     #020b18  zuzanaopp.com's background     -> --night
     #e0f2fe  zuzanaopp.com's body text      -> --mist
     #06b6d4  zuzanaopp.com's accent         -> --accent (decoration only)
     #67e8f9  zuzanaopp.com's links on dark  -> --accent-text (text on night)
     #0e7490  the platform's accent on paper -> --accent-paper (text on paper)
     Cormorant Garamond for display, Inter for everything else.

   The page is night, like zuzanaopp.com. The one section on paper is the
   rules of the space: paper is what the platform itself looks like inside,
   so the rules are shown on the product's own surface.

   Fonts are self-hosted. Nothing on this page loads from another server.
   =========================================================================== */

@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Cormorant Garamond';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(fonts/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
		U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
		U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Inter Variable';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/inter-latin-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter Variable';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(fonts/inter-latin-ext-wght-normal.woff2) format('woff2-variations');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
		U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
		U+2C60-2C7F, U+A720-A7FF;
}

:root {
	color-scheme: dark;

	--night: #020b18;
	--night-sunk: #08182a;
	--mist: #e0f2fe;
	--mist-quiet: #a9bccd;
	--rule-night: #17293a;
	--accent: #06b6d4;
	--accent-text: #67e8f9;

	--paper: #ffffff;
	--paper-ink: #020b18;
	--paper-muted: #5b6b7a;
	--paper-rule: #dde7ee;
	--accent-paper: #0e7490;

	--font-display: 'Cormorant Garamond', ui-serif, Georgia, 'Times New Roman', serif;
	--font-ui: 'Inter Variable', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;

	--wide: 72rem;
	--gutter: clamp(1rem, 0.4rem + 3vw, 2.5rem);
	--radius: 3px;
}

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

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

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

body {
	margin: 0;
	background: var(--night);
	color: var(--mist);
	font-family: var(--font-ui);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
	font-family: var(--font-display);
	font-weight: 500;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

:where(a, button):focus-visible {
	outline: 2px solid var(--accent-text);
	outline-offset: 3px;
	border-radius: 2px;
}

.nobr {
	white-space: nowrap;
}

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

.skip {
	position: absolute;
	left: var(--gutter);
	top: -4rem;
	padding: 0.6rem 1rem;
	background: var(--mist);
	color: var(--night);
	border-radius: var(--radius);
	font-weight: 600;
	z-index: 10;
}
.skip:focus {
	top: 0.75rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
	border-bottom: 1px solid var(--rule-night);
}
.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 4.25rem;
}
.wordmark {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.45rem;
	letter-spacing: 0.005em;
	text-decoration: none;
	white-space: nowrap;
}
.header-link {
	font-size: 0.92rem;
	font-weight: 500;
	white-space: nowrap;
}

/* --- Buttons ------------------------------------------------------------ */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 1.5rem;
	background: var(--mist);
	color: var(--night);
	border: 1px solid var(--mist);
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
}
.button:hover {
	background: #ffffff;
	border-color: #ffffff;
}

/* --- Hero --------------------------------------------------------------- */

.hero {
	padding-block: clamp(3.5rem, 2rem + 7vw, 8.5rem) clamp(3rem, 2rem + 5vw, 6.5rem);
}
.for-whom {
	color: var(--accent-text);
	font-weight: 500;
	font-size: 1rem;
	margin-bottom: 1.4rem;
}
.hero h1 {
	font-size: clamp(2.55rem, 1.2rem + 5.6vw, 5.6rem);
	line-height: 1.02;
	letter-spacing: -0.012em;
	max-width: 13.5em;
}
.hero .lede {
	margin-top: clamp(1.6rem, 1rem + 2vw, 2.4rem);
	max-width: 38rem;
	font-size: clamp(1.06rem, 0.98rem + 0.4vw, 1.25rem);
	line-height: 1.6;
	color: var(--mist-quiet);
}
.actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2.25rem;
}
.actions .text-link {
	font-weight: 500;
}
.assurances {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 2.75rem 0 0;
	padding: 1.25rem 0 0;
	list-style: none;
	border-top: 1px solid var(--rule-night);
	font-size: 0.9rem;
	color: var(--mist-quiet);
}
.assurances li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.assurances li::before {
	content: '';
	width: 0.5rem;
	height: 1px;
	background: var(--accent);
	flex: none;
}

/* --- Photographs ---------------------------------------------------------
   Stock photographs from Unsplash, cropped so that no face can be recognised
   and no brand can be read, and self-hosted like everything else. Toned down
   a little so they sit in the night palette instead of on top of it. */

.band {
	position: relative;
	height: clamp(13rem, 34vw, 30rem);
	overflow: hidden;
	background: var(--night);
}
.band img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 85%;
	filter: saturate(0.75) brightness(0.82);
}
.band::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		var(--night) 0%,
		rgb(2 11 24 / 0) 18%,
		rgb(2 11 24 / 0) 72%,
		var(--night-sunk) 100%
	);
}
.photo {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 2rem;
	border-radius: var(--radius);
	filter: saturate(0.75) brightness(0.9);
}

/* --- The problem -------------------------------------------------------- */

.problem {
	background: var(--night-sunk);
	padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.problem .wrap {
	display: grid;
	gap: 2rem 4rem;
}
.problem h2 {
	font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem);
	line-height: 1.06;
	letter-spacing: -0.008em;
}
.problem .story {
	display: grid;
	gap: 1.4rem;
	max-width: 36rem;
	font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);
	line-height: 1.65;
}
.problem .aside {
	margin-top: 0.6rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--rule-night);
	font-size: 0.98rem;
	color: var(--mist-quiet);
}

@media (min-width: 56rem) {
	.problem .wrap {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		align-items: start;
	}
}

/* --- The rules: the one section on paper -------------------------------- */

.rules {
	background: var(--paper);
	color: var(--paper-ink);
	padding-block: clamp(3.5rem, 2rem + 6vw, 7.5rem);
}
.rules .wrap {
	display: grid;
	gap: 2.5rem 5rem;
}
.rules h2 {
	font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.8rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
}
.rules .intro {
	margin-top: 1.25rem;
	max-width: 26rem;
	color: var(--paper-muted);
	font-size: 1.02rem;
}
.rules .custom {
	margin-top: 1.75rem;
	max-width: 34rem;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.65rem);
	line-height: 1.25;
}

.charter {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: rule;
	border-top: 1px solid var(--paper-ink);
}
.charter li {
	counter-increment: rule;
	display: grid;
	grid-template-columns: 2.6rem minmax(0, 1fr);
	gap: 0 1rem;
	padding: 1.35rem 0 1.45rem;
	border-bottom: 1px solid var(--paper-rule);
}
.charter li::before {
	content: counter(rule);
	grid-row: span 2;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 2.3rem;
	line-height: 0.9;
	color: var(--accent-paper);
	font-variant-numeric: lining-nums;
}
.charter h3 {
	font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.85rem);
	line-height: 1.15;
}
.charter p {
	margin-top: 0.35rem;
	color: var(--paper-muted);
	max-width: 34rem;
}

@media (min-width: 56rem) {
	.rules .wrap {
		grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
		align-items: start;
	}
	.rules .heading {
		position: sticky;
		top: 2.5rem;
	}
	.charter li {
		grid-template-columns: 3.4rem minmax(0, 1fr);
	}
	.charter li::before {
		font-size: 2.8rem;
	}
}

/* --- For your team / one summit or a series ----------------------------- */

.organisers {
	padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.organisers .wrap {
	display: grid;
	gap: 3rem 4rem;
}
.organisers h2 {
	font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
	line-height: 1.08;
	margin-bottom: 1.25rem;
}
.organisers p + p {
	margin-top: 1rem;
}
.organisers p,
.series li {
	max-width: 32rem;
	color: var(--mist-quiet);
}
.organisers .first {
	color: var(--mist);
}
.series {
	list-style: none;
	margin: 0;
	padding: 0;
}
.series li {
	position: relative;
	padding: 0.75rem 0 0.75rem 1.25rem;
	border-top: 1px solid var(--rule-night);
}
.series li:last-child {
	border-bottom: 1px solid var(--rule-night);
}
.series li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 1.55rem;
	width: 0.5rem;
	height: 1px;
	background: var(--accent);
}

@media (min-width: 56rem) {
	.organisers .wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.organisers .team {
		padding-right: 4rem;
		border-right: 1px solid var(--rule-night);
	}
}

/* --- The team ----------------------------------------------------------- */

.about {
	border-top: 1px solid var(--rule-night);
	padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}
.about .wrap {
	display: grid;
	gap: 1.5rem 4rem;
}
.about h2 {
	font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem);
	line-height: 1.06;
	letter-spacing: -0.008em;
}
.about .story {
	display: grid;
	gap: 1.4rem;
	max-width: 36rem;
	font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);
	line-height: 1.65;
}
.about .aside {
	padding-top: 1.4rem;
	border-top: 1px solid var(--rule-night);
	font-size: 0.98rem;
	color: var(--mist-quiet);
}

@media (min-width: 56rem) {
	.about .wrap {
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		align-items: start;
	}
}

/* --- Contact ------------------------------------------------------------ */

.talk {
	border-top: 1px solid var(--rule-night);
	padding-block: clamp(4rem, 2.5rem + 6vw, 8rem);
}
.talk h2 {
	font-size: clamp(2.3rem, 1.3rem + 4vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	max-width: 12em;
}
.talk p {
	margin-top: 1.5rem;
	max-width: 34rem;
	font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);
	color: var(--mist-quiet);
}
.talk .actions {
	margin-top: 2.25rem;
}
.talk .address {
	font-weight: 500;
	color: var(--accent-text);
	overflow-wrap: anywhere;
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
	border-top: 1px solid var(--rule-night);
	padding-block: 1.75rem 2.25rem;
	font-size: 0.86rem;
	color: var(--mist-quiet);
}
.site-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-footer li:first-child {
	margin-right: auto;
}
.site-footer a {
	text-decoration: none;
}
.site-footer a:hover {
	text-decoration: underline;
}

/* --- Legal pages and 404: one column, on paper -------------------------- */

.page-paper main {
	background: var(--paper);
	color: var(--paper-ink);
	padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.prose {
	max-width: 40rem;
}
.prose h1 {
	font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem);
	line-height: 1.05;
}
.prose .updated {
	margin-top: 0.75rem;
	color: var(--paper-muted);
	font-size: 0.92rem;
}
.prose h2 {
	font-size: 1.6rem;
	line-height: 1.2;
	margin-top: 2.5rem;
}
.prose p,
.prose ul {
	margin-top: 0.8rem;
	color: #2a3a4a;
}
.prose ul {
	padding-left: 1.2rem;
}
.prose li + li {
	margin-top: 0.4rem;
}
.prose a {
	color: var(--accent-paper);
}
.prose a:focus-visible {
	outline-color: var(--accent-paper);
}

/* --- The machine asks for dark ------------------------------------------
   The legal pages are long reading, so they turn to the site's own dark.
   The rules stay on paper: that one white sheet is the design, and the rest
   of the page is already dark. */

@media (prefers-color-scheme: dark) {
	.page-paper main {
		background: var(--night-sunk);
		color: var(--mist);
	}
	.prose .updated {
		color: var(--mist-quiet);
	}
	.prose p,
	.prose ul {
		color: #c6d6e4;
	}
	.prose a {
		color: var(--accent-text);
	}
	.prose a:focus-visible {
		outline-color: var(--accent-text);
	}
}

/* Focus on paper needs the dark accent; the light one disappears on white. */
.rules :where(a, button):focus-visible {
	outline-color: var(--accent-paper);
}
