@font-face {
	font-family: Sora;
	src: url("/sora-regular.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: Sora;
	src: url("/sora-semibold.woff2") format("woff2");
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--page: #111113;
	--band: #18191a;
	--card: #1e1f21;
	--ink: #edeef0;
	--secondary: #b2b4b7;
	--accent: #ffef00;
	--accent-hover: #f1e559;
	--accent-ink: #1c2024;
	--line: #2e2f31;
	--outline: #626469;
	--gutter: clamp(1.25rem, 5vw, 4rem);
	font:
		400 1rem / 1.55 Sora,
		system-ui,
		sans-serif;
	color: var(--ink);
	background: var(--page);
	-webkit-text-size-adjust: 100%;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

main {
	flex: 1;
}

h1,
h2,
h3,
p,
ol,
ul {
	margin: 0;
}

img {
	display: block;
}

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

/* Masthead */

.masthead {
	padding-block: 1.25rem;
}

.masthead .wrap {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
}

.wordmark {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	border-radius: 0.375rem;
}

/* Hero */

.hero {
	padding-block: clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem);
}

.hero-grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.hero-copy {
	max-width: 33rem;
}

.kicker {
	color: var(--secondary);
	font-size: 0.9375rem;
	margin-bottom: 0.5rem;
}

h1 {
	font-weight: 400;
	font-size: clamp(2.25rem, 8.6vw, 3.75rem);
	line-height: 1.04;
	letter-spacing: -0.045em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.description {
	color: var(--secondary);
	font-size: clamp(1rem, 3.8vw, 1.125rem);
	line-height: 1.5;
	margin-top: 1rem;
	max-width: 30rem;
}

.invite {
	margin-top: 2rem;
	padding: clamp(1.25rem, 5vw, 2rem);
	border: 1px solid var(--line);
	border-radius: 1.75rem;
	background: var(--card);
}

.device {
	display: flex;
	align-items: center;
	gap: 0.875rem;
}

.app-icon {
	width: 3rem;
	height: 3rem;
	border-radius: 0.75rem;
	object-fit: contain;
	flex: none;
}

.device-subtitle {
	color: var(--secondary);
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-block-start: 0.25rem;
}

.device h2 {
	font-weight: 400;
	font-size: 1.5rem;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.actions {
	display: grid;
	justify-items: start;
	margin-top: 1.5rem;
}

.browser-action {
	width: fit-content;
	margin-block-start: 0.625rem;
	gap: 0.375rem;
}

.reopen-invite {
	color: var(--secondary);
	font-size: 0.9375rem;
	margin-block-start: 0.75rem;
}

.hero-copy .app-action,
.hero-copy .app-subtitle,
.hero-copy .browser-action,
.hero-copy .reopen-invite,
.hero-copy[data-layout="native"] :is(.web-action, .web-subtitle),
html[data-ipad] .hero-copy:has(.app-action) :is(.web-action, .web-subtitle) {
	display: none;
}

.hero-copy[data-layout="native"] .app-action,
html[data-ipad] .hero-copy .app-action {
	display: inline-flex;
}

.hero-copy[data-layout="native"] .app-subtitle,
.hero-copy[data-layout="native"] .reopen-invite,
html[data-ipad] .hero-copy :is(.app-subtitle, .reopen-invite) {
	display: block;
}

.hero-copy[data-layout="native"] .browser-action,
html[data-ipad] .hero-copy .browser-action {
	display: flex;
}

/* Buttons */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 3.25rem;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.75rem 1.625rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.button::after,
.browser-action::after {
	content: "";
	flex: none;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	-webkit-mask: url("/icon-arrow.svg") center / contain no-repeat;
	mask: url("/icon-arrow.svg") center / contain no-repeat;
}

.primary {
	background: var(--accent);
	color: var(--accent-ink);
}

.primary:hover {
	background: var(--accent-hover);
}

.text-action {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.375rem;
}

.text-action:hover {
	color: var(--accent);
}

:is(.button, .text-action, .wordmark, .footer a, summary):focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
}

.out::after {
	content: "";
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	margin-left: 0.5rem;
	background: currentColor;
	-webkit-mask: url("/icon-arrow.svg") center / contain no-repeat;
	mask: url("/icon-arrow.svg") center / contain no-repeat;
}

.out::after {
	-webkit-mask-image: url("/icon-external.svg");
	mask-image: url("/icon-external.svg");
}

.hero-artwork {
	width: 100%;
	max-width: 32rem;
	height: auto;
	border-radius: clamp(1.25rem, 3vw, 2rem);
}

/* Bands */

.footer {
	padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
	border-top: 1px solid var(--line);
	background: #141416;
	color: var(--ink);
	font-size: 0.875rem;
}

.footer-top {
	display: grid;
	gap: 2.5rem;
}

.footer-kicker {
	color: var(--secondary);
	font-size: 0.6875rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.footer-headline {
	margin-block: 0.875rem 1rem;
	font-size: clamp(1.5rem, 5vw, 1.875rem);
	line-height: 1.25;
	letter-spacing: -0.03em;
}

.footer-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
}

.footer-nav ul {
	list-style: none;
	padding: 0;
}

.footer a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: inherit;
	text-decoration: none;
	border-radius: 0.25rem;
}

.footer a:hover {
	color: var(--accent);
}

.footer-mark {
	margin-block: clamp(2rem, 6vw, 3.5rem) 1.5rem;
	aspect-ratio: 114 / 20;
	background: #2a2a2c;
	-webkit-mask: url("/brand.svg") center / contain no-repeat;
	mask: url("/brand.svg") center / contain no-repeat;
}

.footer-base {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	color: var(--secondary);
	font-size: 0.75rem;
}

.preferences summary {
	display: inline-block;
	cursor: pointer;
	padding-block: 0.5rem;
	border-radius: 0.25rem;
}

.preferences label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
}

.preferences input {
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--accent);
}

/* Layout steps */

@media (max-width: 30rem) {
	.actions {
		justify-items: stretch;
	}
}

@media (min-width: 48rem) {
	h1 {
		font-size: clamp(2.25rem, 4.6vw, 3.75rem);
	}

	.hero-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: clamp(2rem, 5vw, 4rem);
	}

	.hero-artwork {
		justify-self: end;
	}

	.footer-top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
	}
}

@media (min-width: 60rem) {
	.hero-grid {
		grid-template-columns: minmax(0, 33rem) minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.button {
		transition: none;
	}
}
