/* Shores of Hazeron community server site.
   Look borrowed from the game itself: black space, navy panels with a bevelled edge, gold hover glow, cream italic titles. */
:root {
	--bg: #000;
	--panel: #0a1533;
	--panel-2: #0d1b40;
	--band: #142b66;
	--bevel: #193680 #0a1533 #050a19 #142b66;
	--gold-edge: #fffcb9 #a3772f #7a4f0c #fedc69;
	--gold: #fedc69;
	--cream: #d2cf8b;
	--text: #e8e9f0;
	--muted: #9aa3bf;
	--link: #9fc2ff;
	--ok: #5fd38a;
	--warn: #f2c14e;
	--bad: #ff6b6b;
	--radius: 20px;
	color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	background: var(--bg) url(../img/tile.png) repeat;
	color: var(--text);
	font: 16px/1.6 "Ubuntu", Helvetica, Arial, sans-serif;
	-webkit-text-size-adjust: 100%;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 16px; }

/* ---- Header: slim navy bar with the gate emblem --------------------------- */
.top {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 10px 18px;
	padding: 10px 16px;
	margin-bottom: 18px;
	background: linear-gradient(180deg, #17307a, var(--band) 55%, #0e1f4d);
	border: 2px solid; border-color: var(--bevel);
	border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; transition: box-shadow .4s; }
.brand:hover img { box-shadow: 0 0 16px 3px var(--gold); }

/* Wordmark: italic cream-to-gold like the game's own title lettering. */
.wordmark {
	font-style: italic; font-weight: 500;
	font-size: 26px; line-height: 1.1; letter-spacing: .01em;
	background: linear-gradient(100deg, #b9b06a 0%, #fffbd0 38%, #f2e48e 55%, #a39a52 100%);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	white-space: nowrap;
}
.wordmark i { font-weight: 400; opacity: .85; }
h1.wordmark { font-size: clamp(34px, 7vw, 76px); margin: 0; white-space: normal; padding-right: .1em; filter: drop-shadow(0 3px 10px rgba(0,0,0,.9)); }

nav.main {
	display: flex; flex-wrap: wrap; gap: 6px;
	justify-content: flex-end;
}

/* Page banner (inner pages): a strip of the splash art behind the page title. */
.banner {
	position: relative; overflow: hidden;
	min-height: 130px;
	display: flex; align-items: flex-end;
	padding: 18px 24px;
	margin-bottom: 18px;
	border: 2px solid; border-color: var(--bevel);
	border-radius: var(--radius);
	background: linear-gradient(90deg, rgba(0,0,0,.85), rgba(0,0,0,.25) 70%), url(../img/hero.jpg) center 70% / cover no-repeat;
}
.banner h1 { margin: 0; font-weight: 500; font-style: italic; font-size: clamp(28px, 4vw, 40px); color: #fff6c8; line-height: 1.1; }
.banner p { margin: 4px 0 0; color: var(--cream); }
.btn, nav.main a {
	display: inline-block;
	padding: 6px 14px;
	border: 2px solid #0a1533;
	border-radius: 8px;
	background: #000 linear-gradient(#1b1b1b, #000);
	color: #fff;
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	transition: border-color .4s, box-shadow .4s;
}
.btn:hover, nav.main a:hover, nav.main a[aria-current="page"] {
	border-color: var(--gold-edge);
	text-decoration: none;
}
nav.main a[aria-current="page"] { box-shadow: 0 0 10px 1px rgba(254,220,105,.35); }
nav.main a.ext::after { content: " \2197"; color: var(--muted); font-size: 12px; }

.btn.primary {
	background: linear-gradient(#f4dc83, #c39a3e);
	border-color: #fffcb9 #a3772f #7a4f0c #fedc69;
	color: #1a1204;
	font-weight: 700;
	font-size: 17px;
	padding: 10px 22px;
}
.btn.primary:hover { box-shadow: 0 0 20px 4px var(--gold); }
.btn.big { font-size: 17px; padding: 10px 22px; }

/* ---- Panels -------------------------------------------------------------- */
.panel {
	background: var(--panel);
	border: 2px solid;
	border-color: var(--bevel);
	border-radius: var(--radius);
	padding: 18px 22px;
	margin-bottom: 18px;
	transition: border-color .4s;
}
.panel.glow:hover { border-color: var(--gold-edge); }
.panel h2, .panel h3 {
	margin: 0 0 10px;
	color: var(--cream);
	font-weight: 500;
	font-style: italic;
	line-height: 1.25;
}
.panel h2::after {
	content: ""; display: block;
	width: 56px; height: 2px; margin-top: 6px;
	background: linear-gradient(90deg, var(--gold), transparent);
}
.panel h2 { font-size: 24px; }
.panel h3 { font-size: 19px; }
.panel p:last-child, .panel ul:last-child, .panel ol:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 0 18px;
	align-items: start;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	aspect-ratio: 1280 / 465;
	min-height: 320px;
	background: #000 url(../img/hero.jpg) no-repeat;
	background-size: cover;
	background-position: center top;
}
.hero .over {
	position: absolute; left: 0; top: 0; bottom: 0;
	width: min(100%, 640px);
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
	padding: 26px 30px;
	background: linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.6) 70%, transparent);
}
.hero .sub {
	margin: 2px 0 12px;
	font-style: italic; font-size: 19px; color: var(--cream);
}
.hero p { margin: 0 0 16px; max-width: 34em; color: #dfe3f2; }
.hero .pill { margin-bottom: 14px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- Status -------------------------------------------------------------- */
.pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 3px 12px;
	border-radius: 999px;
	background: rgba(0,0,0,.55);
	border: 1px solid #23397a;
	font-size: 14px;
	white-space: nowrap;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.dot.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.stat { background: var(--panel-2); border-radius: 12px; padding: 10px 12px; }
.stat b { display: block; font-size: 26px; font-weight: 500; color: #fff; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }

table.svc { width: 100%; border-collapse: collapse; }
table.svc td { padding: 8px 4px; border-top: 1px solid #1c2c5c; }
table.svc td:last-child { text-align: right; white-space: nowrap; }

/* ---- News ---------------------------------------------------------------- */
.news-item { padding: 14px 0; border-top: 1px solid #1c2c5c; }
.news-item:first-of-type { border-top: 0; padding-top: 0; }
.news-item h3 { margin: 0 0 2px; font-size: 19px; }
.news-item .meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.tag {
	display: inline-block; margin-left: 6px;
	padding: 0 8px; border-radius: 999px;
	font-size: 12px; background: #1d3270; color: #cfe0ff;
}
.tag.update { background: #4a3a10; color: #ffe7a0; }
.tag.maintenance { background: #4a1d1d; color: #ffc9c9; }
.news-item p { margin: 0 0 8px; }

/* ---- Lists / steps --------------------------------------------------------- */
ol.steps { padding-left: 1.3em; margin: 0; }
ol.steps li { margin-bottom: 8px; }
ol.steps li::marker { color: var(--gold); font-weight: 700; }
.panel ul { padding-left: 1.2em; }
kbd {
	font: 13px/1 "Ubuntu Mono", Consolas, monospace;
	background: #1a2550; border: 1px solid #2c3f80; border-bottom-width: 2px;
	border-radius: 4px; padding: 2px 5px;
}
.note {
	border-left: 3px solid var(--gold);
	background: rgba(254,220,105,.07);
	padding: 10px 14px; border-radius: 0 10px 10px 0;
	margin: 12px 0;
}
.shot { border-radius: 12px; border: 1px solid #1c2c5c; margin: 10px 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

[hidden] { display: none !important; }

/* ---- Footer -------------------------------------------------------------- */
footer {
	margin-top: 8px;
	padding: 16px 4px 28px;
	color: var(--muted);
	font-size: 13px;
	text-align: center;
	border-top: 1px solid #14214a;
}
footer a { color: var(--muted); text-decoration: underline; }

/* ---- Small screens ------------------------------------------------------- */
@media (max-width: 980px) {
	.top { border-radius: var(--radius); justify-content: center; }
	nav.main { justify-content: center; }
}
@media (max-width: 860px) {
	.grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.wrap { padding: 12px 16px; }
	.top { padding: 10px; }
	.brand img { width: 38px; height: 38px; }
	.wordmark { font-size: 22px; }
	nav.main a { padding: 4px 9px; font-size: 14px; }
	.hero { aspect-ratio: auto; min-height: 460px; background-position: 72% top; }
	.hero .over { width: 100%; justify-content: flex-end; padding: 20px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85) 35%); }
	.hero .sub { font-size: 16px; }
	.banner { min-height: 100px; padding: 14px 16px; }
	.panel { padding: 16px; }
}
