/* dusk: the club's look. Change the variables; the layout follows. */
:root {
	--paper: #0f1419;
	--card: #171e26;
	--ink: #f1f3ee;
	--muted: #a7b0ba;
	--accent: #f4b740;
	--on-accent: #1a1405;
	--wash-a: rgb(244 183 64 / 0.10);
	--wash-b: rgb(96 140 210 / 0.20);
	--display: 'Bricolage Grotesque', system-ui, sans-serif;
	--display-weight: 700;
	--body: 'Inter', system-ui, sans-serif;
	/* One column for the whole page: everything shares its left edge. */
	--measure: 1080px;
	--gutter: 24px;
	--line: color-mix(in srgb, var(--ink) 11%, transparent);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	color: var(--ink);
	font-family: var(--body);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Light at the top of the page, fading into the paper: no edge where it ends. */
	background:
		radial-gradient(ellipse 80% 520px at 88% -60px, var(--wash-b), transparent 70%),
		radial-gradient(ellipse 70% 460px at 0% 120px, var(--wash-a), transparent 72%),
		var(--paper);
	background-repeat: no-repeat;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; }

/* The site bar, the same on every page: two groups at the page's edges, not the column's. The name on the left, leading; the sections and the account corner together on the right, quieter. No accent in the bar: the eyebrow and the sign-up own it. */
.site-head {
	/* Full width: Gather serves the body as a column that would otherwise shrink the bar to its contents. */
	width: 100%;
	max-width: none;
	margin-inline: auto;
	padding: 20px clamp(var(--gutter, 24px), 4vw, 56px);
	display: flex;
	align-items: center;
	gap: 10px 22px;
	flex-wrap: wrap;
}
.site-head .brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	color: inherit;
	text-decoration: none;
	font-family: var(--display);
	font-weight: var(--display-weight, 600);
	font-size: 1.3rem;
	letter-spacing: -0.015em;
}
.site-head .gather-logo { display: block; height: 32px; width: auto; max-width: 160px; }
.site-head .gather-nav { font-size: 15px; font-weight: 500; gap: 1.4em; }
.site-head .gather-nav a { color: var(--muted); text-decoration: none; }
.site-head .gather-nav a:hover,
.site-head .gather-nav a[aria-current="page"] { color: var(--ink); }
.site-head .gather-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 7px; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
/* The account corner sits in the bar, at its right, instead of floating over the page: a hairline pill, in the muted colour until someone is signed in. */
.site-head .gather-account { position: relative; top: auto; right: auto; font-size: 15px; }
.site-head .gather-account-login { font-weight: 500; color: var(--muted); border-color: var(--line); padding: 5px 14px; }
.site-head .gather-account-login:hover { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.site-head .gather-account summary { font-weight: 500; border-color: var(--line); }
@media (max-width: 600px) {
	.site-head .gather-nav { order: 3; flex-basis: 100%; }
}

/* The column. */
main {
	width: 100%;
	max-width: var(--measure);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* The top of the page: the photo runs edge to edge, with the eyebrow, the name and the lead over it. */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: flex-end;
	min-height: clamp(440px, 68vh, 680px);
	padding: clamp(40px, 8vh, 96px) 0;
	overflow: hidden;
	background: var(--card);
}
.hero-image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 60%;
}
/* A shade from the bottom and the left, so the words stay readable over the sky and the water. */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to top, rgb(10 14 19 / 0.92) 0%, rgb(10 14 19 / 0.55) 45%, rgb(10 14 19 / 0.10) 100%),
		linear-gradient(to right, rgb(10 14 19 / 0.55), transparent 70%);
}
.hero-inner { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: rgb(255 255 255 / 0.86); max-width: 44ch; }
.hero + main { margin-top: clamp(16px, 3vh, 32px); }
.eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
h1 {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: clamp(2.6rem, 7.5vw, 4.6rem);
	letter-spacing: -0.02em;
	line-height: 1.02;
	text-wrap: balance;
	margin: 0 0 22px;
}
.lead {
	font-size: clamp(1.15rem, 2.2vw, 1.35rem);
	line-height: 1.5;
	color: var(--muted);
	max-width: 38ch;
	margin: 0;
}

/* The page. */
main { padding-block: 0 56px; }
section { margin-top: clamp(40px, 6vh, 64px); }
h2 {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: clamp(1.6rem, 3.4vw, 2.1rem);
	letter-spacing: -0.015em;
	line-height: 1.15;
	text-wrap: balance;
	margin: 0 0 14px;
}
h3 {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 10px;
}
p { margin: 0 0 12px; }
.why p { font-size: clamp(1.15rem, 2vw, 1.3rem); line-height: 1.55; max-width: 60ch; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 20px;
	padding: 24px 26px;
}
.card p { color: var(--muted); margin: 0; }

/* The one thing a visitor can do: a panel in the accent's own light. */
.interested {
	background: color-mix(in srgb, var(--accent) 9%, var(--card));
	border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
	border-radius: 24px;
	padding: clamp(24px, 5vw, 40px);
}
.interested p { color: var(--muted); }
.interested .gather-widget { margin-top: 8px; border-radius: 16px; }
.pill {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
}

/* What people said, when the Social Proof Scroller is on the page. */
.gather-social-proof blockquote {
	font-family: var(--display);
	font-weight: var(--display-weight);
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	line-height: 1.3;
	text-wrap: balance;
}
.gather-social-proof figcaption { color: var(--muted); }

@media (min-width: 900px) { .cards-three { grid-template-columns: 1fr 1fr 1fr; } }

/* What we'll cover: a checked list in two columns on wide screens. */
.topics ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .topics ul { grid-template-columns: 1fr 1fr; } }
.topics li { padding-left: 28px; position: relative; color: var(--muted); }
.topics li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.topics li strong { color: var(--ink); font-weight: 600; }
.topics > p { color: var(--muted); max-width: 55ch; }

/* Who's behind this: the founder's photo beside a short note. */
.founder-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px; }
.founder-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; flex: none; }
.founder-row > div { flex: 1 1 260px; }
.founder-row h3 { margin: 0 0 6px; }
.founder-row p { margin: 0 0 8px; color: var(--muted); }
.founder-row p:last-child { margin: 0; }

/* The club's logo in the site bar, in place of the name. */
.site-head .brand-logo { display: block; height: clamp(48px, 6vw, 68px); width: auto; filter: brightness(0) invert(1); opacity: 0.35; }
/* The logo again in the hero, in full colour, above the eyebrow. */
.hero-logo { display: block; width: clamp(200px, 26vw, 320px); height: auto; margin: 0 0 22px; }
/* Sign-in sits at the far right of the bar, at the screen edge. */
.site-head gather-account,
.site-head .gather-account { margin-left: auto; }
