@font-face {
	font-family: "Pirata One";
	src: url("/fonts/PirataOne-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--bg: #0b0a09;
	--panel: #14110f;
	--line: #2c241d;
	--text: #e4dac4;
	--muted: #a79b84;
	--accent: #e8862e;
	--accent-dark: #b9621a;
	--head: "Pirata One", "Palatino Linotype", Georgia, serif;
	--body: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--body);
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-text-size-adjust: 100%;
}

img, video, iframe { max-width: 100%; }
img, video { display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: #f4a257; }
a:focus-visible, button:focus-visible, summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

h1, h2, h3 {
	font-family: var(--head);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: #f1e8d4;
}
h2 { font-size: clamp(2rem, 5.5vw, 2.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip {
	position: absolute; left: -999px; top: 0; z-index: 20;
	background: var(--accent); color: #000; padding: 8px 14px;
}
.skip:focus { left: 8px; top: 8px; }

/* Top bar, over the hero or above the press kit's title. */
.topbar {
	position: absolute; top: 0; left: 0; right: 0; z-index: 5;
	display: flex; justify-content: flex-end; gap: 22px;
	padding: 14px 20px;
	font-size: 0.95rem;
	background: linear-gradient(to bottom, rgba(11, 10, 9, 0.82), rgba(11, 10, 9, 0));
}
.topbar a { color: var(--text); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.topbar a:hover { color: var(--accent); }
.topbar a[aria-current] { color: var(--accent); }

/* Hero */
.hero {
	position: relative;
	min-height: clamp(460px, 46vw, 660px);
	display: flex; align-items: flex-end; justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}
.hero > picture, .hero > picture img {
	position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero > picture img { object-fit: cover; object-position: 54% 30%; }
.hero::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to bottom, rgba(11, 10, 9, 0) 38%, rgba(11, 10, 9, 0.7) 72%, var(--bg) 100%);
}
.hero-inner {
	position: relative; z-index: 2;
	width: 100%; max-width: 860px;
	padding: 0 20px 34px;
	text-align: center;
}
.hero .logo { width: min(680px, 100%); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.7)); }
.tagline {
	font-size: clamp(1.1rem, 3.2vw, 1.45rem);
	margin: 0 0 20px;
	text-shadow: 0 1px 10px #000;
}

.btn {
	display: inline-block;
	padding: 0.8em 1.7em;
	background: var(--accent);
	color: #120b05;
	font-family: var(--head);
	font-size: 1.45rem;
	letter-spacing: 0.04em;
	text-decoration: none;
	border: 1px solid #f6b36e;
	box-shadow: 0 0 28px rgba(232, 134, 46, 0.28);
	transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover { background: #f4a257; color: #120b05; box-shadow: 0 0 36px rgba(232, 134, 46, 0.5); }
.btn.quiet {
	background: transparent; color: var(--accent); box-shadow: none;
	border-color: var(--accent-dark); font-size: 1.2rem; padding: 0.55em 1.2em;
}
.btn.quiet:hover { background: rgba(232, 134, 46, 0.1); color: #f4a257; }

/* Sections */
section { padding: 56px 0 8px; }
.facts {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
	margin: 0; padding: 18px 20px; list-style: none;
	color: var(--muted); font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase;
	border-bottom: 1px solid var(--line);
}
.intro { font-size: 1.2rem; text-align: center; max-width: 720px; margin: 0 auto; }

.video-frame {
	width: 100%; aspect-ratio: 16 / 9; background: #000;
	border: 1px solid var(--line);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.feature {
	display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center;
	padding-bottom: 28px;
}
.feature h2 { color: var(--accent); }
@media (min-width: 800px) {
	.feature { grid-template-columns: 1.25fr 1fr; gap: 44px; }
	.feature.flip .video-frame { order: 2; }
}

.gallery {
	display: grid; gap: 10px;
	grid-template-columns: repeat(2, 1fr);
	list-style: none; margin: 0; padding: 0;
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; border: 1px solid var(--line); background: #000; }
.gallery a:hover { border-color: var(--accent-dark); }
.gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

dialog#lightbox {
	padding: 0; border: 0; background: transparent;
	max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
dialog#lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
dialog#lightbox .stage {
	width: 100%; height: 100%; display: flex; flex-direction: column;
	align-items: center; justify-content: center; padding: 16px; gap: 10px;
}
dialog#lightbox img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; height: auto; object-fit: contain; }
dialog#lightbox p { margin: 0; color: var(--muted); font-size: 0.95rem; }
dialog#lightbox button {
	position: absolute; top: 10px; right: 14px;
	background: none; border: 0; color: var(--text); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 4px 10px;
}

.widget { display: flex; justify-content: center; }
.widget iframe { width: 100%; max-width: 646px; height: 190px; border: 0; }

/* Footer */
footer {
	margin-top: 64px; padding: 30px 0 44px;
	border-top: 1px solid var(--line);
	color: var(--muted); font-size: 0.95rem;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: baseline; }
footer a { color: var(--text); }
footer a:hover { color: var(--accent); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Press kit */
.press-head { padding-top: 78px; padding-bottom: 10px; }
.press-head h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); margin-bottom: 0.15em; }
.press-head p { color: var(--muted); margin: 0; }
.jump {
	display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 22px 0 0; padding: 12px 0;
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	list-style: none; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
}
.jump a { text-decoration: none; }
.press h2 { border-bottom: 1px solid var(--line); padding-bottom: 0.2em; }
.press section { padding-top: 44px; }
.press section:target h2 { color: var(--accent); }

dl.sheet { margin: 0; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--panel); }
dl.sheet dt, dl.sheet dd { margin: 0; padding: 9px 16px; }
dl.sheet dt { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; padding-bottom: 0; }
dl.sheet dd { border-bottom: 1px solid var(--line); }
dl.sheet dd:last-child { border-bottom: 0; }
@media (min-width: 640px) {
	dl.sheet { grid-template-columns: 220px 1fr; }
	dl.sheet dt { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
	dl.sheet dd { padding: 10px 16px; }
	dl.sheet dt:nth-last-of-type(1), dl.sheet dd:last-child { border-bottom: 0; }
}

.lead { font-size: 1.15rem; }
ul.features { padding-left: 1.2em; }
ul.features li { margin-bottom: 0.7em; }
ul.features strong { color: #f1e8d4; }
.note { color: var(--muted); font-size: 0.95rem; }

.cards { display: grid; gap: 22px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); }
.card video, .card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.card .meta { padding: 12px 16px 14px; font-size: 0.95rem; }
.card .meta p { margin: 0 0 6px; }
.card .meta a { margin-right: 14px; }
.card.art img { object-fit: contain; padding: 12px; background: #050505; }
.card.art.on-light img { background: #1b1814; }

.downloads { display: flex; flex-wrap: wrap; gap: 12px; }
