/* Hearthfrost site: a frozen night sky, the warm Heartfire, and the game's own fonts (Lilita One + Fredoka, SIL Open Font License, see fonts/). */
@font-face { font-family: 'Lilita One'; src: url('fonts/lilita-one-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0b1233;
  --bg-2: #111b4a;
  --paper: #16225a;
  --paper-hi: #1d2c75;
  --ink: #f4fbff;
  --muted: #a9bce8;
  --line: #2b3d8f;
  --link: #ffc266;
  --link-hi: #ffd86b;
  --fire: #ff7a2f;
  --fire-hi: #ffb347;
  --fire-ink: #2a1304;
  --fire-lip: #b8481a;
  --gold: #ffd86b;
  --gold-ink: var(--gold);
  --ice: #8fd0ff;
  --aurora: #3de6c5;
  --violet: #a58bff;
  --night: #070c26;
  --radius: 16px;
  --display: 'Lilita One', 'Fredoka', system-ui, sans-serif;
  --body: 'Fredoka', 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eaf4ff;
    --bg-2: #f6fbff;
    --paper: #ffffff;
    --paper-hi: #f1f7ff;
    --ink: #17235f;
    --muted: #4d63a8;
    --line: #c9dcf5;
    --link: #b24400;
    --link-hi: #8f3500;
    --violet: #6a4fe0;
    --aurora: #0f9d85;
    --ice: #1f7fc4;
    --gold: #b87800;
    --gold-ink: #8a5a00;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font: 400 17.5px/1.62 var(--body);
  background: radial-gradient(1200px 520px at 50% -140px, rgba(61, 230, 197, .16), transparent 70%), linear-gradient(var(--bg-2), var(--bg) 520px) var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--link-hi); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 600; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 1.6em 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 7.2vw, 3.4rem); margin-top: .35em; }
h2 { font-size: clamp(1.5rem, 4.8vw, 2rem); }
h3 { font-size: 1.28rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin: .25em 0; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #2a1304; padding: 8px 14px; border-radius: 999px; font-weight: 600; z-index: 10; }
.skip:focus { left: 12px; }

/* header and footer */
.top { background: var(--paper); background: color-mix(in srgb, var(--paper) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.35rem; letter-spacing: .01em; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 2px var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 20px; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--fire-hi); }
.nav a[aria-current] { border-bottom-color: var(--fire); }
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--night); color: #a9bce8; font-size: .93rem; }
.foot a { color: #ffc266; }
.foot .wrap { padding-top: 24px; padding-bottom: 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-bottom: 12px; font-weight: 600; }
.foot nav a { display: inline-block; padding: 8px 0; }
.foot p { margin: 0 0 .5em; }
@media (prefers-color-scheme: light) { .foot { background: #17235f; color: #cfe0ff; } }

/* home */
.hero { position: relative; margin-top: 26px; border-radius: 22px; overflow: hidden; border: 2px solid var(--line); background: var(--night); box-shadow: 0 18px 50px -18px rgba(5, 10, 40, .7), 0 0 0 1px rgba(143, 208, 255, .08); }
.hero img { width: 100%; }
.tag { font-family: var(--display); color: var(--gold-ink); font-size: 1.25rem; margin: 0 0 .45em; letter-spacing: .02em; }
.lead { font-size: 1.2rem; max-width: 46em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 22px 0 8px; }
.cta > span:not(.soon) { color: var(--muted); }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: linear-gradient(var(--fire-hi), var(--fire)); color: var(--fire-ink); font-weight: 600; font-size: 1.05rem; text-decoration: none; box-shadow: 0 4px 0 var(--fire-lip), 0 10px 22px -6px rgba(255, 122, 47, .55); transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { color: var(--fire-ink); transform: translateY(-1px); box-shadow: 0 5px 0 var(--fire-lip), 0 14px 26px -6px rgba(255, 122, 47, .6); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--fire-lip); }
.soon { display: inline-block; padding: 10px 20px; border-radius: 999px; border: 2px dashed var(--fire); color: var(--fire-hi); font-weight: 600; }
@media (prefers-color-scheme: light) { .soon { color: var(--link); } }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 214px); gap: 14px; overflow-x: auto; padding: 6px 4px 18px; scroll-snap-type: x mandatory; scrollbar-color: var(--line) transparent; }
.shots img { border-radius: 14px; border: 2px solid var(--line); scroll-snap-align: start; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6); background: var(--night); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.features li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 22px; margin: 0; overflow: hidden; }
.features li::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--fire); }
.features li:nth-child(4n+2)::before { background: var(--ice); }
.features li:nth-child(4n+3)::before { background: var(--aurora); }
.features li:nth-child(4n+4)::before { background: var(--violet); }
.features b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.22rem; margin-bottom: 2px; letter-spacing: .01em; }
.tribe { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0 0 1em; }
.tribe li { margin: 0; padding: 5px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 600; font-size: .98rem; }

/* documents (privacy, terms, support) */
.doc { padding-top: 10px; }
.doc .meta { color: var(--muted); margin-top: -.3em; }
.doc h2 { border-top: 1px solid var(--line); padding-top: .9em; }
.doc h2:first-of-type { margin-top: 1.4em; }
.box { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--fire); border-radius: var(--radius); padding: 14px 20px; margin: 0 0 1.3em; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: 9px 11px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--gold-ink); }
.table-scroll { overflow-x: auto; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 18px; margin: 0 0 10px; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 6px; }
details p:last-child { margin-bottom: .3em; }
address { font-style: normal; }
.center { text-align: center; }
code { background: var(--paper-hi); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; font-size: .92em; word-break: break-word; }
