/* Shared look for sveaserver.se: the launcher page's palette and type, plus the menu every page carries. */
:root {
  --bg: #0E0F13;
  --surface: #15171C;
  --surface-2: #1A1D24;
  --border: #2A2E38;
  --border-strong: #323A49;
  --gold: #E8B94A;
  --gold-dim: #B8913A;
  --ice: #6CB6FF;
  --ice-soft: #A9D4FF;
  --text: #E8EAED;
  --muted: #969CA8;
  --faint: #5B616C;
  --up: #7FD39A;
  --down: #E57C64;
  --display: "Cinzel", "Georgia", serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ice); }

/* ---------- top bar: brand left, menu right ---------- */
.topbar {
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.topbar.solid {
  position: sticky;
  top: 0;
  padding: 12px 20px;
  background: rgba(14,15,19,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(21,23,28,0.85);
  border: 1px solid var(--border-strong);
}
.topbar.solid .brand img { width: 42px; height: 42px; padding: 5px; }
.brand span { display: block; font-family: var(--display); line-height: 1; }
.brand .top { color: var(--gold); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; }
.brand .bottom { color: var(--text); font-weight: 600; font-size: 12px; letter-spacing: 0.32em; margin-top: 4px; }

.menu {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: rgba(21,23,28,0.78);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}
.menu a:hover { color: var(--text); background: var(--surface-2); }
.menu a:focus-visible { outline: 2px solid var(--ice); outline-offset: 1px; }
.menu a[aria-current="page"] { color: var(--gold); background: var(--surface-2); }

/* ---------- picture header with snow ---------- */
.hero {
  position: relative;
  height: clamp(300px, 52vw, 85vh);
  background: url("/assets/bg.jpg") center 12% / cover no-repeat;
}
.hero.short { height: clamp(220px, 30vw, 360px); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,15,19,0.35) 0%, rgba(14,15,19,0) 25%, rgba(14,15,19,0) 55%, rgba(14,15,19,0.75) 82%, var(--bg) 100%);
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

main { position: relative; max-width: 900px; margin: 0 auto; padding: 0 16px 56px; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.1;
  color: var(--text);
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.lede { color: var(--muted); max-width: 60ch; }

.plaque {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(470px, 90vw);
  aspect-ratio: 800 / 193;
  padding-bottom: 1.5%;
  background: url("/assets/plaque.png") center / contain no-repeat;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 5.4vw, 30px);
  letter-spacing: 0.14em;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.9), 0 0 18px rgba(0,0,0,0.7);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.55));
  transition: filter 0.15s ease, transform 0.15s ease;
  user-select: none;
}
.plaque:hover { filter: brightness(1.12) drop-shadow(0 10px 22px rgba(108,182,255,0.28)); }
.plaque:active { filter: brightness(0.82) drop-shadow(0 6px 12px rgba(0,0,0,0.6)); transform: translateY(1px); }
.plaque:focus-visible { outline: 2px solid var(--ice); outline-offset: 6px; border-radius: 10px; }

kbd {
  font-family: inherit;
  font-size: 0.9em;
  padding: 1px 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
}

footer.site {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar { flex-direction: column; align-items: flex-start; padding: 14px 16px 0; }
  .topbar.solid { padding: 10px 16px; }
  .brand img { width: 44px; height: 44px; }
  .brand .top { font-size: 19px; }
  .menu { max-width: 100%; }
  .menu a { padding: 7px 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .plaque { transition: none; }
  .plaque:active { transform: none; }
}
