/* The forum archive's only stylesheet (copied to archive/archive.css by build-archive.php).
   Dark, in the colours of the SA menu backgrounds (menu/images). The content's inline colours were written for a
   white forum; build-archive.php drops backgrounds and lightens text colours (darkStyle()). */

@font-face {
	font-family: 'Pricedown';
	src: url('/menu/fonts/Pricedown/PricedownBl-Regular.woff2') format('woff2'),
		url('/menu/fonts/Pricedown/PricedownBl-Regular.woff') format('woff');
	font-display: swap;
}

:root {
	--night: #0e0c0a;
	--night-2: #15120f;
	--panel: #1b1713;
	--panel-hover: #241f19;
	--line: rgb(255 255 255 / 0.08);
	--text: #eee6d8;
	--muted: #a2988a;
	--gold: #e8b54d;
	--sunset: #d9782b;
	--sheet: #1a1612;
	--sheet-head: #211c17;
	--ink: #e9e1d3;
	--ink-muted: #a2988a;
	--sheet-line: rgb(255 255 255 / 0.09);
	--radius: 10px;
	color-scheme: dark;
}

* {
	box-sizing: border-box;
}

html {
	background: var(--night);
	color: var(--text);
	font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgb(217 120 43 / 0.12), transparent 60%),
		var(--night);
}

main {
	flex: 1;
}

a {
	color: var(--gold);
	text-underline-offset: 0.18em;
}

a:hover {
	color: #fff;
}

.wrap {
	width: 100%;
	max-width: 80rem;
	margin: 0 auto;
	padding: 0 1rem;
}

@media (min-width: 640px) {
	.wrap {
		padding: 0 1.5rem;
	}
}

.wordmark {
	font-family: 'Pricedown', Impact, 'Arial Black', sans-serif;
	font-weight: normal;
	letter-spacing: 0.02em;
	line-height: 1;
	color: var(--gold);
	text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

/* ------------------------------------------------------------------ header */

header.site {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgb(14 12 10 / 0.88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

header.site .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text);
	text-decoration: none;
}

.brand .wordmark {
	font-size: 2.1rem;
}

.brand-text {
	display: flex;
	flex-direction: column;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
}

.brand-text small {
	color: var(--muted);
	font-weight: 400;
	font-size: 0.78rem;
}

header.site nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

header.site nav a {
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	color: var(--text);
	font-size: 0.92rem;
	text-decoration: none;
}

header.site nav a:hover,
header.site nav a[aria-current] {
	background: var(--panel-hover);
	color: var(--gold);
}

header.site nav a.map {
	background: var(--gold);
	color: #1a1309;
	font-weight: 600;
}

header.site nav a.map:hover {
	background: #fff;
	color: #1a1309;
}

/* ------------------------------------------------------------------ hero and bands */

.hero,
.band {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}

.hero::before,
.band::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -2;
	background: var(--scene) right center / cover no-repeat;
	filter: saturate(1.1);
}

.hero::after,
.band::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, var(--night) 0%, rgb(14 12 10 / 0.92) 38%, rgb(14 12 10 / 0.45) 75%, rgb(14 12 10 / 0.2) 100%),
		linear-gradient(0deg, var(--night) 0%, transparent 45%);
}

.hero {
	--scene: url('/menu/images/back3.v1.webp');
	padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
}

.scene-city { --scene: url('/menu/images/back8.v1.webp'); }
.scene-hills { --scene: url('/menu/images/back4.v1.webp'); }
.scene-sunset { --scene: url('/menu/images/back2.v1.webp'); }
.scene-night { --scene: url('/menu/images/back5.v1.webp'); }

.eyebrow {
	margin: 0 0 0.75rem;
	color: var(--sunset);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.hero h1 {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.hero h1 .wordmark {
	font-size: clamp(5rem, 16vw, 9.5rem);
	text-shadow: 4px 4px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

.hero h1 .sub {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hero .lead {
	max-width: 36rem;
	margin: 1rem 0 0;
	color: #d9cfbf;
	font-size: 1.08rem;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.75rem 0 0;
}

.stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
}

.stats li {
	display: flex;
	flex-direction: column;
	min-width: 7.5rem;
	padding: 0.7rem 1rem;
	background: rgb(27 23 19 / 0.75);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 0.82rem;
}

.stats strong {
	color: var(--text);
	font-size: 1.6rem;
	line-height: 1.1;
}

.band {
	padding: 2.25rem 0 1.75rem;
}

.band h1 {
	max-width: 50rem;
	margin: 0.6rem 0 0;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	line-height: 1.2;
	text-shadow: 0 2px 12px rgb(0 0 0 / 0.6);
}

.band .lead {
	max-width: 42rem;
	margin: 0.5rem 0 0;
	color: #d6ccbc;
}

.band .meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	align-items: center;
	margin: 0.9rem 0 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.band .meta span:not(.avatar) + span::before {
	content: '·';
	margin-right: 1rem;
	color: rgb(255 255 255 / 0.25);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0.5rem;
	color: var(--muted);
	font-size: 0.85rem;
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--gold);
}

.crumbs .sep {
	color: rgb(255 255 255 / 0.25);
}

/* ------------------------------------------------------------------ buttons */

.button {
	display: inline-flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.7rem 1.2rem;
	background: var(--gold);
	color: #1a1309;
	border: 1px solid var(--gold);
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.button:hover {
	background: #fff;
	border-color: #fff;
	color: #1a1309;
}

.button.ghost {
	background: rgb(14 12 10 / 0.5);
	color: var(--text);
	border-color: rgb(255 255 255 / 0.25);
}

.button.ghost:hover {
	background: rgb(255 255 255 / 0.1);
	color: #fff;
}

.button small {
	font-weight: 500;
	opacity: 0.75;
}

/* ------------------------------------------------------------------ home */

.body {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

h2.section {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 2.5rem 0 1rem;
	font-size: 0.85rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

h2.section::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--line);
}

.body > section:first-child h2.section {
	margin-top: 0.5rem;
}

.tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tiles a {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	height: 100%;
	padding: 1rem 1.1rem;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.tiles a:hover {
	background: var(--panel-hover);
	border-color: rgb(232 181 77 / 0.5);
	transform: translateY(-2px);
}

.tiles strong {
	color: var(--gold);
}

.tiles span {
	color: var(--muted);
	font-size: 0.88rem;
}

.categories {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 1rem;
	align-items: start;
}

.category,
.panel {
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}

.panel + .panel {
	margin-top: 1.25rem;
}

.panel h2,
.category h3 {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding: 0.85rem 1.1rem;
	background: linear-gradient(90deg, rgb(232 181 77 / 0.12), transparent);
	border-bottom: 1px solid var(--line);
	border-top: 2px solid var(--gold);
	font-size: 1rem;
}

.panel h2 {
	color: var(--muted);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.category h3 a {
	color: var(--text);
	text-decoration: none;
}

.category h3 a:hover {
	color: var(--gold);
}

.category h3 .count {
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 500;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ lists */

ul.forums,
ul.topics {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.forums li,
ul.topics li {
	display: flex;
	gap: 0.9rem;
	align-items: center;
	border-top: 1px solid var(--line);
}

ul.forums li:first-child,
ul.topics li:first-child {
	border-top: 0;
}

ul.forums li {
	padding-right: 1.1rem;
}

ul.forums li > a {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 0.7rem 0 0.7rem 1.1rem;
	color: var(--text);
	text-decoration: none;
}

ul.forums li:hover {
	background: var(--panel-hover);
}

ul.forums li:hover .name {
	color: var(--gold);
}

ul.forums .name {
	font-weight: 600;
}

ul.forums .desc {
	color: var(--muted);
	font-size: 0.85rem;
}

.count {
	min-width: 2rem;
	padding: 0.1rem 0.55rem;
	background: rgb(255 255 255 / 0.06);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.8rem;
	text-align: center;
}

.count.page {
	color: var(--gold);
}

ul.topics li {
	padding: 0.8rem 1.1rem;
}

ul.topics li:hover {
	background: var(--panel-hover);
}

ul.topics .text {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

ul.topics .title {
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
}

ul.topics .title:hover {
	color: var(--gold);
}

ul.topics .meta {
	color: var(--muted);
	font-size: 0.84rem;
}

ul.topics .meta .forum {
	color: var(--gold);
	text-decoration: none;
}

.stat {
	color: var(--muted);
	font-size: 0.8rem;
	text-align: right;
	white-space: nowrap;
}

.stat strong {
	display: block;
	color: var(--text);
	font-size: 1rem;
}

.avatar {
	--hue: 35;
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: linear-gradient(135deg, hsl(var(--hue) 55% 42%), hsl(calc(var(--hue) + 40) 60% 28%));
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
}

.avatar.file {
	background: rgb(232 181 77 / 0.15);
	color: var(--gold);
	font-size: 1.1rem;
}

.band .meta .avatar {
	width: 1.9rem;
	height: 1.9rem;
	font-size: 0.72rem;
}

/* ------------------------------------------------------------------ posts and sheets */

.thread {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.post,
.sheet {
	background: var(--sheet);
	color: var(--ink);
	border-radius: var(--radius);
	border: 1px solid var(--line);
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

.post {
	overflow: hidden;
}

.post > header {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	padding: 0.75rem 1.25rem;
	background: var(--sheet-head);
	border-bottom: 1px solid var(--sheet-line);
}

.post > header div {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.post > header time {
	color: var(--ink-muted);
	font-size: 0.82rem;
}

.post > header .number {
	color: var(--ink-muted);
	font-size: 0.82rem;
	text-decoration: none;
}

.post > .content {
	padding: 1rem 1.25rem 1.25rem;
}

.post.first {
	border-top: 3px solid var(--gold);
}

.sheet {
	padding: clamp(1.25rem, 3vw, 2.25rem);
}

.sheet > .content + .content,
.sheet > .columns + .content,
.sheet > .content + .columns {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--sheet-line);
}

.sheet .shot img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.sheet .button {
	margin-top: 0.5rem;
}

.sheet .button:hover {
	background: var(--sunset);
	border-color: var(--sunset);
	color: #fff;
}

.content {
	overflow-wrap: break-word;
}

.content a {
	color: var(--gold);
}

.content a:hover {
	color: #fff;
}

/* Borders written in the content's inline styles were meant for white; one quiet colour for all of them */
.content * {
	border-color: var(--sheet-line) !important;
}

.content img,
.content video {
	max-width: 100%;
	height: auto;
}

.content .table {
	overflow-x: auto;
	margin: 1rem 0;
}

.content table {
	border-collapse: collapse;
}

/* Words in table cells stay whole; a wide table scrolls inside .table instead of squeezing its columns */
.content td,
.content th {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

.content th {
	white-space: nowrap;
	background: rgb(255 255 255 / 0.05);
}

.content table tr:nth-child(even) td {
	background: rgb(255 255 255 / 0.02);
}

.content td,
.content th {
	padding: 0.3rem 0.55rem;
	vertical-align: top;
}

.content hr {
	border: 0;
	border-top: 1px solid var(--sheet-line);
	margin: 1.5rem 0;
}

.content blockquote {
	margin: 1rem 0;
	padding: 0.6rem 1rem;
	background: rgb(255 255 255 / 0.04);
	border-left: 3px solid var(--gold) !important;
	border-radius: 0 6px 6px 0;
}

.content cite {
	display: block;
	color: var(--ink-muted);
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 600;
}

.content details {
	margin: 1rem 0;
	padding: 0.6rem 1rem;
	border: 1px solid var(--sheet-line);
	border-radius: 6px;
}

.content summary {
	cursor: pointer;
	font-weight: 600;
}

.content pre {
	overflow-x: auto;
	padding: 0.75rem 1rem;
	background: #0f0d0b;
	border-radius: 6px;
}

.content iframe {
	display: block;
	width: 100%;
	max-width: 720px;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
	border-radius: 8px;
}

.mention {
	font-weight: 600;
}

.columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

/* ------------------------------------------------------------------ events */

.events {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.events > li {
	display: grid;
	grid-template-columns: 5rem 1fr;
	gap: 1rem;
	align-items: start;
}

.events .date {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.6rem 0;
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 2px solid var(--sunset);
	border-radius: var(--radius);
	color: var(--muted);
	font-size: 0.85rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.events .date strong {
	color: var(--text);
	font-size: 1.6rem;
}

.events .date small {
	font-size: 0.72rem;
}

.events .sheet {
	padding: 1rem 1.25rem;
}

.events > li > .sheet > h2 {
	margin: 0;
	font-size: 1.1rem;
}

.events > li > .sheet > .meta {
	margin: 0.1rem 0 0.5rem;
	color: var(--ink-muted);
	font-size: 0.85rem;
}

/* ------------------------------------------------------------------ footer */

footer.site {
	padding: 2.5rem 0;
	background: var(--night-2);
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.88rem;
}

footer.site .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 3rem;
	align-items: flex-start;
	justify-content: space-between;
}

footer.site .wrap > div {
	display: flex;
	gap: 1rem;
	align-items: center;
	max-width: 36rem;
}

footer.site p {
	margin: 0;
}

.wordmark.small {
	font-size: 2.2rem;
}

footer.site nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

footer.site nav a {
	color: var(--text);
	text-decoration: none;
}

footer.site nav a:hover {
	color: var(--gold);
}

@media (max-width: 640px) {
	.brand-text {
		display: none;
	}

	header.site nav a {
		padding: 0.35rem 0.55rem;
		font-size: 0.85rem;
	}

	.hero::after,
	.band::after {
		background: linear-gradient(0deg, var(--night) 0%, rgb(14 12 10 / 0.75) 100%);
	}

	.categories {
		grid-template-columns: 1fr;
	}

	.events > li {
		grid-template-columns: 1fr;
	}

	.events .date {
		flex-direction: row;
		gap: 0.4rem;
		justify-content: center;
	}

	.stat {
		display: none;
	}
}

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

	.tiles a:hover {
		transform: none;
	}
}
