:root {
  --bg: #061520;
  --gold: #e0bc78;
  --gold-deep: #c6a15b;
  --text: #f7f4ee;
  --muted: rgba(247, 244, 238, 0.78);
  --gutter: clamp(16px, 2.4vw, 40px);
  --page: min(1120px, calc(100% - (var(--gutter) * 2)));
  --display: "Palatino Linotype", Palatino, Georgia, serif;
  --ui: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  margin: 0;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(6, 21, 32, 0.35) 0%, rgba(6, 21, 32, 0.88) 420px, var(--bg) 720px),
    url("/hiscores/assets/forest-top.3pdo-w3pfb-1c.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  font: 16px/1.55 var(--ui);
}

img { max-width: 100%; }

.sitenav {
  position: relative;
  z-index: 20;
  background: #071018;
  border-bottom: 2px solid var(--gold-deep);
}

.sitenav-inner,
.hero-copy,
.banner-inner,
main {
  width: var(--page);
  margin-left: auto;
  margin-right: auto;
}

.sitenav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.sitenav-brand {
  color: #f6e7c4;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(16px, 2vw, 18px);
  flex: 0 0 auto;
}

.sitenav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.sitenav-links a,
.sitenav-links button {
  color: var(--text);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 3px;
  background: none;
  border: 0;
  cursor: pointer;
}

.sitenav-links a.here,
.sitenav-links a:hover,
.sitenav-links button:hover {
  color: #1a1208;
  background: linear-gradient(#f3d7a0, #c49245);
}

.sitenav-links form { margin: 0; }

.sitenav-who {
  color: #f6e7c4;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 4px 8px 10px;
}

.hero,
.banner {
  position: relative;
  min-height: clamp(280px, 46vw, 420px);
  display: flex;
  align-items: flex-end;
  border-bottom: 4px solid var(--gold);
  background-color: #123;
  background-image: url("/hiscores/assets/vista-desktop.1hfdlvv5pswxi.webp");
  background-position: center 40%;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before,
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 10, 18, 0.82) 0%, rgba(4, 10, 18, 0.62) 28%, rgba(4, 10, 18, 0.22) 58%, rgba(4, 10, 18, 0) 78%),
    linear-gradient(180deg, rgba(4, 10, 18, 0.2) 0%, rgba(4, 10, 18, 0.55) 100%);
}

.hero-copy,
.banner-inner {
  position: relative;
  z-index: 1;
  padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 56px);
}

.kicker {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  font-family: var(--ui);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #ffe7b8;
}

.hero .kicker,
.banner .kicker {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.75);
}

.hero h1,
.banner h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 6px 22px rgba(0, 0, 0, 0.75);
}

.hero .tag,
.banner .lead {
  max-width: 62ch;
  min-height: 3em;
  margin: 12px 0 0;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 3px 14px rgba(0, 0, 0, 0.8);
}

main { padding: clamp(20px, 3vw, 28px) 0 clamp(40px, 6vw, 64px); }

@media (max-width: 720px) {
  .sitenav-inner { display: block; padding: 10px 0 12px; }
  .sitenav-links { justify-content: flex-start; margin-top: 6px; }
  .sitenav-who { display: inline-block; padding-left: 12px; }
}
