@font-face {
	font-family: 'RuneHelper Serif';
	font-weight: 400;
	font-display: swap;
	src: url('/static/runehelper/fonts/DejaVuSerifCondensed.ttf') format('truetype');
}

:root {
	--bg: #050505;
	--unique: #d27b3a;
	--magic: #8c8cff;
	--grey: #8f8a82;
	--white: #dcd6c8;
	--frame: #5b4a33;
	--frame-light: #9b7f55;
	--bronze: #c9a877;
	--title: 'RuneHelper Serif', 'DejaVu Serif Condensed', Georgia, serif;
	--body: Georgia, 'DejaVu Serif', 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--white);
	font: 17px/1.6 var(--body);
}

a { color: var(--unique); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--unique); outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 24px;
	min-height: 72px;
}

.wordmark {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--unique);
	text-decoration: none;
	font: 400 21px var(--title);
	text-transform: uppercase;
	letter-spacing: .12em;
}

.wordmark img { width: 30px; height: 30px; }

.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 26px; }

.top nav a, .lang summary {
	color: var(--grey);
	text-decoration: none;
	font: 400 14px var(--title);
	text-transform: uppercase;
	letter-spacing: .1em;
}

.top nav a:hover, .lang summary:hover, .lang[open] summary { color: var(--white); }

.lang { position: relative; }

.lang summary { list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ' \25BE'; font-size: 13px; }

.lang ul {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	z-index: 10;
	min-width: 150px;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: rgba(0, 0, 0, .95);
	border: 1px solid var(--frame);
	box-shadow: 0 0 0 3px #120e09, 0 16px 40px rgba(0, 0, 0, .8);
}

.lang li a { display: block; padding: 6px 18px; color: var(--white); text-decoration: none; }
.lang li a:hover, .lang li a[aria-current="page"] { color: var(--unique); }

.scene {
	display: grid;
	grid-template-columns: 500px 1fr;
	align-items: center;
	min-height: 780px;
}

.scene .shot {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: end;
	width: 72%;
	margin: 0;
	border: 1px solid #1d1a15;
	box-shadow: 0 0 120px rgba(0, 0, 0, .9);
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%);
	mask-image: linear-gradient(to right, transparent 0, #000 22%);
}

.scene .shot img { display: block; width: 100%; height: auto; }

.tooltip {
	grid-column: 1;
	grid-row: 1;
	position: relative;
	z-index: 2;
	background: rgba(0, 0, 0, .92);
	border: 1px solid var(--frame);
	outline: 1px solid #000;
	box-shadow: 0 0 0 3px #120e09, 0 30px 80px rgba(0, 0, 0, .9);
	text-align: center;
}

.tooltip header {
	padding: 12px 18px 10px;
	background: linear-gradient(#3a2412, #1c1109 55%, #2a180c);
	border-bottom: 1px solid var(--frame-light);
}

.tooltip h1, .tooltip .base {
	margin: 0;
	color: var(--unique);
	font: 400 24px/1.3 var(--title);
	text-transform: uppercase;
	letter-spacing: .08em;
}

.tooltip .base { font-size: 16px; letter-spacing: .1em; }

.tooltip .body { padding: 8px 22px 20px; }
.tooltip p { margin: 6px 0; }

.prop { color: var(--grey); }
.prop b { color: var(--white); font-weight: normal; }
.mod { color: var(--magic); }
.flavour { color: var(--unique); font-style: italic; }

.sep {
	height: 1px;
	width: 86%;
	margin: 12px auto;
	background: linear-gradient(to right, transparent, var(--frame-light), transparent);
}

.actions { display: grid; gap: 10px; margin-top: 20px; }
.actions .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
	display: block;
	padding: 11px 16px;
	border: 1px solid var(--frame-light);
	background: linear-gradient(#2b2117, #15100b);
	box-shadow: inset 0 1px 0 rgba(255, 220, 160, .15);
	color: #e9d9b8;
	text-decoration: none;
	font: 400 15px var(--title);
	text-transform: uppercase;
	letter-spacing: .1em;
}

.btn:hover { border-color: var(--unique); color: #fff3dc; }
.btn small { margin-left: 8px; color: var(--grey); font: 14px var(--body); letter-spacing: 0; text-transform: none; }

.release { margin: 14px 0 0; color: var(--grey); font-size: 14px; }
.release a { color: var(--grey); }
.release a:hover { color: var(--white); }

section { padding: 64px 0; }

.title {
	display: flex;
	align-items: center;
	gap: 22px;
	margin: 0 0 44px;
	color: var(--bronze);
	font: 400 25px var(--title);
	text-transform: uppercase;
	letter-spacing: .12em;
}

.title::before, .title::after { content: ''; flex: 1; height: 1px; }
.title::before { background: linear-gradient(to right, transparent, var(--frame-light)); }
.title::after { background: linear-gradient(to left, transparent, var(--frame-light)); }

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

.steps b { display: block; margin-bottom: 12px; color: var(--frame-light); font: 400 46px/1 var(--title); }
.steps p { margin: 0; color: var(--grey); }
.steps strong { color: var(--white); font-weight: normal; }

kbd, code {
	padding: 1px 6px;
	border: 1px solid var(--frame);
	background: #15100b;
	color: var(--white);
	font-family: ui-monospace, 'DejaVu Sans Mono', monospace;
	font-size: .82em;
	white-space: nowrap;
}

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 72px; }
.faq h3 { margin: 0 0 8px; color: var(--unique); font: 400 21px var(--title); letter-spacing: .01em; }
.faq p { margin: 0; color: var(--grey); }

.privacy { max-width: 900px; margin: 0 auto; color: var(--grey); }
.privacy p, .privacy ul { margin: 0 0 16px; }
.privacy li { margin-bottom: 8px; }
.privacy strong { color: var(--white); font-weight: normal; }

footer { border-top: 1px solid #1d1a15; padding: 28px 0 44px; color: var(--grey); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--grey); }
footer a:hover { color: var(--white); }

@media (max-width: 1000px) {
	.scene { grid-template-columns: 1fr; min-height: 0; padding-top: 12px; }
	.scene .shot { grid-row: 2; width: 100%; margin-top: 28px; -webkit-mask-image: none; mask-image: none; }
	.steps, .faq { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 520px) {
	.top nav { gap: 6px 16px; }
	.top nav a[href^="#"]:not([href="#download"]) { display: none; }
	.tooltip p { font-size: 15px; }
	.tooltip h1 { font-size: 21px; }
	.tooltip .base { font-size: 14px; }
	.tooltip .body { padding: 6px 14px 18px; }
	.actions .row { grid-template-columns: 1fr; }
}
