/* Frostpeak — download page.
   The palette is lifted straight out of the game's palette.gd: the mountain is
   a white slope under a grey-blue sky, and the only saturated colour anywhere
   is the marker orange, which is why it is the only thing used for a button. */

:root {
  --bg:        #0e1116;
  --bg-raised: #151a21;
  --edge:      #262d37;
  --text:      #dde3e9;
  --text-dim:  #8a95a2;
  --snow:      #e8edf2;
  --marker:    #e6a52b;
  --marker-dk: #c98a17;
  --pine:      #3d5a49;
  --maxw:      1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--marker); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
}
.hero-img {
  position: absolute; inset: 0;
  background: url("shots/hero.webp") center 38% / cover no-repeat;
  /* The screenshot is almost entirely white snow, so the text needs a real
     scrim rather than a token overlay to stay legible. */
  filter: saturate(0.9);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(14,17,22,.55) 0%, rgba(14,17,22,.25) 35%, rgba(14,17,22,.92) 88%,
    var(--bg) 100%);
}
.hero-inner { position: relative; padding: 0 0 68px; width: 100%; }

.eyebrow {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--marker); margin: 0 0 14px; font-weight: 600;
}
h1 {
  font-size: clamp(48px, 9vw, 104px);
  line-height: .95; margin: 0 0 18px; letter-spacing: -.03em; font-weight: 700;
}
.tagline {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--text);
  max-width: 46ch; margin: 0 0 32px;
}

/* ---- buttons ------------------------------------------------------------- */

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 15px 28px; border-radius: 4px;
  font-weight: 650; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; transition: transform .12s, background .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--marker); color: #16120a; }
.btn-primary:hover { background: var(--marker-dk); }
.btn-ghost {
  background: rgba(255,255,255,.05); color: var(--text);
  border-color: var(--edge);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn .meta { font-size: 13px; font-weight: 500; opacity: .72; }

/* ---- sections ------------------------------------------------------------ */

section { padding: 84px 0; border-bottom: 1px solid var(--edge); }
section:last-of-type { border-bottom: none; }

h2 {
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.02em;
  margin: 0 0 10px;
}
.lede { color: var(--text-dim); max-width: 62ch; margin: 0 0 40px; font-size: 17px; }

.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-raised); border: 1px solid var(--edge);
  border-radius: 6px; padding: 26px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-dim); font-size: 15px; }

/* ---- shots --------------------------------------------------------------- */

.shots { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shot {
  border: 1px solid var(--edge); border-radius: 6px; overflow: hidden;
  background: var(--bg-raised);
}
.shot figcaption {
  padding: 13px 16px; font-size: 14px; color: var(--text-dim);
  border-top: 1px solid var(--edge);
}
.shot.wide { grid-column: 1 / -1; }

/* ---- controls table ------------------------------------------------------ */

.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 11px 0; border-bottom: 1px solid var(--edge); vertical-align: top; }
.keys tr:last-child td { border-bottom: none; }
.keys td:first-child { width: 190px; color: var(--snow); }
.keys td:last-child { color: var(--text-dim); }
kbd {
  display: inline-block; padding: 2px 8px; margin-right: 4px;
  background: #1d232c; border: 1px solid var(--edge);
  border-bottom-width: 2px; border-radius: 4px;
  font: 600 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--snow);
}

/* ---- two-column ---------------------------------------------------------- */

.cols { display: grid; gap: 48px; grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

dl.spec { margin: 0; }
dl.spec dt {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 22px;
}
dl.spec dt:first-child { margin-top: 0; }
dl.spec dd { margin: 5px 0 0; color: var(--text); }

.note {
  background: var(--bg-raised); border: 1px solid var(--edge);
  border-left: 3px solid var(--marker);
  border-radius: 4px; padding: 18px 22px; margin: 28px 0 0;
  font-size: 15px; color: var(--text-dim);
}
.note strong { color: var(--text); font-weight: 650; }

footer {
  padding: 46px 0 64px; color: var(--text-dim); font-size: 14px;
}
footer p { margin: 0 0 6px; }

/* ---- phones and tablets (touch only; desktop is untouched) --------------- */
/* .jd-desktop-only is the shared "computer app" note used on Jordan's download
   pages; .jd-phone-note warns that the browser build needs a keyboard. */

.jd-desktop-only,
.jd-phone-note { display: none; }

@media (hover: none) and (pointer: coarse) and (max-width: 940px) {
  .jd-desktop-only {
    display: block; box-sizing: border-box; max-width: 560px;
    margin: 0 0 20px; padding: 12px 16px;
    background: #221f1c; color: #d9d5ce; border: 1px solid #3b3835; border-radius: 6px;
    font: 500 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
    letter-spacing: 0; text-align: left; text-transform: none;
  }
  .jd-phone-note {
    display: block; max-width: 560px; margin: 14px 0 0;
    font-size: 14px; line-height: 1.5; color: var(--text-dim);
  }
}
