/* Qyntus: a small studio for games. Ember Peaks palette from Qyndra. */
@font-face {
  font-family: 'Cinzel';
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/cinzel/Cinzel_700Bold.ttf) format('truetype');
}
@font-face {
  font-family: 'Cinzel';
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/cinzel/Cinzel_900Black.ttf) format('truetype');
}

:root {
  --bg: #0b0807;
  --panel: rgba(24, 17, 13, 0.88);
  --stone: #2a211c;
  --bronze: #b0844a;
  --bronze-dim: #6e5232;
  --rune: #ffb347;
  --rune-hot: #ffe3a3;
  --fire: #ff5a1f;
  --fire-deep: #b8300f;
  --tide: #3fd0c9;
  --text: #f3e9dc;
  --muted: #a39383;
  --max: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(120% 80% at 50% 110%, #3a1408 0%, #1e0f0a 40%, var(--bg) 75%) fixed, var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--rune); text-decoration: none; }
a:hover { color: var(--rune-hot); text-decoration: underline; }
img { max-width: 100%; display: block; }

.display, h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); font-weight: 900; letter-spacing: 0.04em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 0.6em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; }
p + p { margin-top: 0.9em; }

.glow {
  background: linear-gradient(180deg, #fff1c9 0%, var(--rune) 45%, var(--fire) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 90, 31, 0.55)) drop-shadow(0 0 42px rgba(255, 90, 31, 0.35));
}
.kicker { color: var(--bronze); font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Header and footer */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: rgba(11, 8, 7, 0.72); border-bottom: 1px solid rgba(176, 132, 74, 0.2); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-family: 'Cinzel', serif; font-weight: 900; letter-spacing: 0.12em; color: var(--text); font-size: 1.15rem; }
.brand:hover { color: var(--rune-hot); text-decoration: none; }
.nav ul { display: flex; list-style: none; gap: clamp(12px, 3vw, 28px); font-size: 0.95rem; }
.nav ul a { color: var(--muted); }
.nav ul a:hover, .nav ul a[aria-current] { color: var(--rune-hot); text-decoration: none; }
footer { border-top: 1px solid rgba(176, 132, 74, 0.2); margin-top: 80px; padding: 32px 0 48px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer ul { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; }

/* Embers drifting up the page, CSS only */
.embers { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.embers i {
  position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rune-hot); box-shadow: 0 0 10px 3px rgba(255, 90, 31, 0.7);
  opacity: 0; animation: rise linear infinite;
}
.embers i:nth-child(1) { left: 6%; animation-duration: 14s; animation-delay: 0s; }
.embers i:nth-child(2) { left: 18%; animation-duration: 18s; animation-delay: 3s; width: 4px; height: 4px; }
.embers i:nth-child(3) { left: 31%; animation-duration: 12s; animation-delay: 6s; }
.embers i:nth-child(4) { left: 44%; animation-duration: 20s; animation-delay: 1s; width: 3px; height: 3px; }
.embers i:nth-child(5) { left: 57%; animation-duration: 15s; animation-delay: 8s; }
.embers i:nth-child(6) { left: 69%; animation-duration: 17s; animation-delay: 4s; width: 4px; height: 4px; }
.embers i:nth-child(7) { left: 81%; animation-duration: 13s; animation-delay: 10s; }
.embers i:nth-child(8) { left: 92%; animation-duration: 19s; animation-delay: 2s; width: 3px; height: 3px; }
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  50% { transform: translate(24px, -50vh); }
  90% { opacity: 0.6; }
  100% { transform: translate(-12px, -105vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  html { scroll-behavior: auto; }
}
main, header, footer, .nav { position: relative; z-index: 1; }

/* Sections */
.hero { text-align: center; padding: clamp(56px, 12vw, 120px) 0 40px; }
.hero .tagline { font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--muted); font-style: italic; margin-top: 14px; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px auto; }
.ornament::before, .ornament::after { content: ''; width: 90px; height: 1px; background: var(--bronze); opacity: 0.7; }
.ornament span { width: 10px; height: 10px; background: var(--bronze); transform: rotate(45deg); }
section { padding: 48px 0; }

.card {
  background: var(--panel); border: 1px solid rgba(176, 132, 74, 0.55); border-radius: 22px;
  padding: clamp(20px, 4vw, 34px); position: relative;
}
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature .icon { font-size: 1.6rem; margin-bottom: 8px; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
  font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 0.06em; color: #1a0a04;
  background: linear-gradient(180deg, #ff9a3d, var(--fire) 55%, var(--fire-deep));
  box-shadow: 0 0 28px rgba(255, 90, 31, 0.45); border: 1px solid rgba(255, 227, 163, 0.6);
}
.button:hover { color: #1a0a04; text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--rune-hot); border-color: var(--bronze); box-shadow: none; }
.button.secondary:hover { color: var(--text); border-color: var(--rune); }
.soon { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 18px; scroll-snap-type: x mandatory; }
.shots img {
  width: min(250px, 62vw); height: auto; aspect-ratio: 506 / 1100; object-fit: cover;
  flex: none; border-radius: 26px; scroll-snap-align: center;
  border: 1px solid rgba(176, 132, 74, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.app-tile { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.app-tile img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 0 34px rgba(255, 90, 31, 0.35); }
.app-tile .info { flex: 1; min-width: 220px; }

.realms { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.realm { border-left: 3px solid var(--bronze); padding: 6px 0 6px 16px; }
.realm.ember { border-color: var(--fire); }
.realm.tide { border-color: var(--tide); }

/* Long text pages (privacy, support) */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.35rem; margin: 1.8em 0 0.5em; }
.doc ul { margin: 0.6em 0 0 1.2em; }
.doc li + li { margin-top: 0.35em; }
.doc .updated { color: var(--muted); font-size: 0.9rem; }
details { border-bottom: 1px solid rgba(176, 132, 74, 0.25); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--rune-hot); }
details p { margin-top: 8px; color: var(--text); opacity: 0.9; }

@media (max-width: 560px) {
  .nav ul { gap: 14px; font-size: 0.88rem; }
  .ornament::before, .ornament::after { width: 50px; }
}
