/* Untamed Realms studio site. Colours follow Glowgrove's night key art: deep sky blue, lantern
   gold, moonlit cream. Fonts are the game's own (tools/site/build_assets.py, SIL OFL). */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #0b1430;
  --night-raised: #13204a;
  --ink: #f5ecd6;
  --muted: #c4c9d6;
  --gold: #f4c76c;
  --gold-bright: #ffd98e;
  --line: rgba(244, 199, 108, 0.32);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  background-image: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(244, 199, 108, 0.07), transparent 70%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--gold);
  color: var(--night);
  border-radius: 8px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* Header: a quiet bar over the top of the art. */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: linear-gradient(rgba(6, 10, 26, 0.75), transparent);
  z-index: 2;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-header nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.site-header nav a:hover { color: var(--gold-bright); }

/* Hero: the night path, the logo floating in the sky, fading into the page. */
.hero { position: relative; margin: 0; }
.hero-art {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 660px);
  object-fit: cover;
  object-position: 50% 60%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
}
.hero-logo {
  position: absolute;
  left: 50%;
  top: clamp(56px, 9vw, 120px);
  transform: translateX(-50%);
  width: min(560px, 72vw);
  margin: 0;
  z-index: 1;
  line-height: 0;
}
.hero-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 28px rgba(255, 210, 120, 0.35)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

/* The game. */
.game {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: clamp(-48px, -3vw, -16px) auto 0;
  padding: 0 16px;
  text-align: center;
}
.lede {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.game p { margin: 0 0 1rem; }

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 1.5rem 0 2rem;
}
.facts li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.actions { margin: 0; }
.button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: var(--gold);
  color: #241a06;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(244, 199, 108, 0.35);
}
.button:hover { background: var(--gold-bright); color: #241a06; box-shadow: 0 0 36px rgba(255, 217, 142, 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background 0.15s, box-shadow 0.15s; }
}

/* Studio and contact. */
.panel {
  max-width: 40rem;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 0 16px;
  text-align: center;
}
.panel h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}
.panel p { margin: 0 0 0.75rem; }
.note { color: var(--muted); font-size: 0.95rem; }

.site-footer {
  margin-top: clamp(64px, 10vw, 120px);
  padding: 24px 16px 32px;
  border-top: 1px solid rgba(196, 201, 214, 0.15);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer p { margin: 0.25rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-bright); }

/* The not-found page. */
.lost {
  max-width: 36rem;
  margin: 0 auto;
  padding: 140px 16px 0;
  text-align: center;
}
.lost h1 { font-family: var(--serif); font-weight: 600; font-size: 2rem; margin: 0 0 0.5rem; }

@media (max-width: 480px) {
  .site-header { padding-top: 10px; }
  .brand { font-size: 1.1rem; }
  .site-header nav a { font-size: 0.9rem; }
}
