/* Sharklet website. Colours, gradients and type follow the in-game main menu (Figma: Home, New Flight). */

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("fonts/montserrat-latin.woff2?v=06b16db7a9") format("woff2");
}

:root {
	--bg: #0d1015;
	--panel: rgba(22, 17, 21, 0.8);
	--panel-border: rgba(177, 56, 151, 0.1);
	--card-border: rgba(255, 255, 255, 0.1);
	--text: #ffffff;
	--text-dim: rgba(255, 255, 255, 0.62);
	--text-faint: rgba(255, 255, 255, 0.4);
	--pink-top: #ff0075;
	--pink-bottom: #ff0391;
	--pink-shadow: rgba(255, 0, 120, 0.47);
	--radius: 12px;
	--page: 1124px;
}

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

html {
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--text);
	font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 500;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Page background: the main menu Home screen, a blurred cockpit under a pink wash from the top. */

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(158, 0, 105, 0.56) 4%, rgba(255, 0, 161, 0) 27%),
		url("assets/menu-bg.webp?v=b299d10c81") center / cover no-repeat;
}

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

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--pink-bottom);
	outline-offset: 3px;
}

.wrap {
	width: min(var(--page), 100% - 40px);
	margin-inline: auto;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	padding: 8px 14px;
	background: var(--pink-top);
	border-radius: 6px;
	font-weight: 700;
}

.skip-link:focus {
	left: 8px;
}

/* Headings use the menu's silver gradient title. */

.title {
	margin: 0;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	background: linear-gradient(180deg, #ffffff 26.75%, #cacaca 79.487%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.title--silver {
	background-image: linear-gradient(180deg, #ffffff 0%, #999999 100%);
}

.eyebrow {
	margin: 0 0 10px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--pink-bottom);
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(13, 16, 21, 0.72);
	backdrop-filter: blur(21.7px);
	-webkit-backdrop-filter: blur(21.7px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 68px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.brand img {
	width: 38px;
	height: 38px;
}

.brand .title {
	font-size: 1.35rem;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Buttons: the pink "FLY NOW" button from the New Flight screen. */

.btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 60px;
	padding: 0 20px;
	overflow: hidden;
	border: 1px solid rgba(177, 56, 151, 0.04);
	border-radius: 6px;
	font-size: 1.25rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn--primary {
	min-width: 300px;
	background:
		url("assets/btn-stripe2.svg?v=51f15d4244") right -18px top / 126px 100% no-repeat,
		url("assets/btn-stripe1.svg?v=c0883791c1") right -13px top / 185px 100% no-repeat,
		linear-gradient(180deg, var(--pink-top) 0%, var(--pink-bottom) 100%);
	box-shadow: 0 4px 22.7px var(--pink-shadow);
	text-shadow: 0 4px 4px rgba(0, 0, 0, 0.15);
}

.btn--primary:hover {
	box-shadow: 0 6px 30px rgba(255, 0, 120, 0.65);
}

.btn--primary img {
	width: 22px;
	height: 22px;
}

.btn--small {
	min-height: 40px;
	padding: 0 16px;
	font-size: 0.85rem;
	line-height: 1;
	background: linear-gradient(180deg, var(--pink-top) 0%, var(--pink-bottom) 100%);
	box-shadow: 0 2px 10px rgba(255, 0, 120, 0.3);
}

.btn--plain {
	background: var(--panel);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: none;
	color: var(--text-dim);
}

.btn--plain:hover,
.btn--plain[aria-current="page"] {
	border-color: rgba(255, 0, 153, 0.45);
	color: var(--text);
}

/* Hero */

.hero {
	padding: clamp(56px, 9vw, 104px) 0;
}

.badge {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 14px;
	background: var(--panel);
	border: 1px solid rgba(255, 0, 153, 0.45);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #ff4fb0;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.hero h1 {
	font-size: clamp(2.4rem, 7vw, 4.25rem);
	letter-spacing: 0.01em;
}

.hero .pitch {
	max-width: 30ch;
	margin: 14px 0 32px;
	font-size: clamp(1.1rem, 2.4vw, 1.4rem);
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* Sections */

.section {
	padding: clamp(48px, 7vw, 80px) 0;
}

.section--tight {
	padding-top: 0;
}

.section-title {
	margin-bottom: 28px;
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
}

/* What's coming: the New Flight aircraft card (Figma 2306:79). A faint pink box with two dark
   stripes on the right and a soft pink glow rising from the bottom, kept gentler than the menu's. */

.coming {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.coming li {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 22px 24px 26px;
	background:
		url("assets/card-stripe-1.svg?v=8c4833388d") right -9px top / 106px 100% no-repeat,
		url("assets/card-stripe-2.svg?v=2c5273ae69") right -5px top / 269px 100% no-repeat,
		rgba(177, 56, 151, 0.05);
	border: 2px solid rgba(177, 56, 151, 0.1);
	border-radius: 3px;
}

.coming li::before {
	content: "";
	position: absolute;
	inset: 35% -4px -20px;
	z-index: -1;
	background: linear-gradient(0deg, rgba(255, 0, 153, 0.22) 0%, rgba(0, 0, 0, 0) 83.173%);
	filter: blur(19.11px);
	pointer-events: none;
}

.coming h3 {
	margin: 0 0 10px;
	font-size: clamp(1.35rem, 2.2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	background: linear-gradient(180deg, #ffffff 43.762%, #999999 79.487%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.coming p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

/* Blog: post cards and articles */

.posts {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--panel);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
	text-decoration: none;
	transition: border-color 0.15s, transform 0.15s;
}

.post-card:hover {
	border-color: rgba(255, 0, 153, 0.45);
	transform: translateY(-2px);
}

.post-card img {
	width: 100%;
	aspect-ratio: 16 / 8;
	object-fit: cover;
}

.post-card div {
	padding: 18px 22px 22px;
}

.post-card time,
.post-meta {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pink-bottom);
}

.post-card h3 {
	margin: 6px 0 6px;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.post-card p {
	margin: 0;
	color: var(--text-dim);
}

.article {
	min-width: 0;
	max-width: 760px;
	margin-inline: auto;
}

.post-series {
	margin: 6px 0 0;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-faint);
}

.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 760px) 260px;
	justify-content: center;
	align-items: start;
	gap: 48px;
}

.post-sidebar {
	position: sticky;
	top: 92px;
	isolation: isolate;
	overflow: hidden;
	padding: 18px;
	/* Same look as the "What's coming" boxes. */
	background:
		url("assets/card-stripe-1.svg?v=8c4833388d") right -9px top / 106px 100% no-repeat,
		url("assets/card-stripe-2.svg?v=2c5273ae69") right -5px top / 269px 100% no-repeat,
		rgba(177, 56, 151, 0.05);
	border: 2px solid rgba(177, 56, 151, 0.1);
	border-radius: 3px;
}

.post-sidebar::before {
	content: "";
	position: absolute;
	inset: 35% -4px -20px;
	z-index: -1;
	background: linear-gradient(0deg, rgba(255, 0, 153, 0.22) 0%, rgba(0, 0, 0, 0) 83.173%);
	filter: blur(19.11px);
	pointer-events: none;
}

.post-sidebar-title {
	margin: 0 0 12px;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-dim);
}

.post-links {
	display: grid;
	gap: 6px;
	max-height: 60vh;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.post-links a {
	display: block;
	padding: 10px 12px;
	border-radius: 3px;
	text-decoration: none;
}

.post-links a:hover {
	background: rgba(255, 255, 255, 0.04);
}

.post-links a[aria-current="page"] {
	background: rgba(255, 0, 153, 0.08);
}

.post-links time {
	display: block;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pink-bottom);
}

.post-links span {
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.35;
}

.article h1 {
	margin: 10px 0 28px;
	font-size: clamp(2rem, 6vw, 3.2rem);
}

.article-cover {
	width: 100%;
	margin-bottom: 36px;
	border: 3px solid var(--card-border);
	border-radius: var(--radius);
}

.article h2 {
	margin: 44px 0 12px;
	font-size: clamp(1.3rem, 3vw, 1.7rem);
}

.article p {
	margin: 0 0 18px;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.78);
}

.article figure {
	margin: 28px 0;
}

.article figure img {
	width: 100%;
	border: 3px solid var(--card-border);
	border-radius: var(--radius);
}

.article h3 {
	margin: 32px 0 10px;
	font-size: 1.15rem;
	font-weight: 700;
}

.article ul,
.article ol {
	margin: 0 0 18px;
	padding-left: 22px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1.05rem;
}

.article li {
	margin-bottom: 8px;
}

.article strong {
	color: var(--text);
}

.article a:not(.btn) {
	color: #ff4fb0;
}

.article blockquote {
	margin: 0 0 18px;
	padding: 14px 18px;
	background: var(--panel);
	border-left: 3px solid var(--pink-bottom);
	border-radius: 0 8px 8px 0;
	font-size: 1.05rem;
	color: var(--text);
}

.article code {
	padding: 2px 6px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 4px;
	font-size: 0.92em;
}

.article figcaption {
	margin-top: 10px;
	font-size: 0.85rem;
	color: var(--text-faint);
}

.back-link {
	display: inline-block;
	margin-bottom: 24px;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-dim);
}

.back-link:hover {
	color: var(--text);
}

/* Credits page */

.prose {
	max-width: 760px;
}

.prose h1 {
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	margin-bottom: 16px;
}

.prose h2 {
	margin: 40px 0 12px;
	font-size: 1.3rem;
}

.prose p,
.prose li {
	color: var(--text-dim);
}

.prose a {
	color: #ff4fb0;
}

.credit-list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.credit-list li {
	padding: 18px 20px;
	background: var(--panel);
	border: 2px solid var(--panel-border);
	border-radius: var(--radius);
}

.credit-list strong {
	display: block;
	margin-bottom: 4px;
	color: var(--text);
	font-weight: 700;
}

/* Footer */

.site-footer {
	padding: 36px 0 44px;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-size: 0.85rem;
	color: var(--text-faint);
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
}

.site-footer p {
	margin: 0;
}

.footer-links {
	display: flex;
	gap: 20px;
	font-weight: 700;
}

.footer-links a {
	text-decoration: none;
	color: var(--text-dim);
}

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

/* Smaller screens */

@media (max-width: 1100px) {
	.post-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.post-sidebar {
		position: relative;
		width: 100%;
		max-width: 760px;
		margin-inline: auto;
	}
}

@media (max-width: 900px) {
	.coming {
		grid-template-columns: repeat(2, 1fr);
	}

}

@media (max-width: 640px) {
	.coming,
	.posts {
		grid-template-columns: 1fr;
	}

	.btn--primary {
		min-width: 0;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn,
	.post-card {
		transition: none;
	}
}
