/* Foundation: design tokens, global resets and desktop token overrides. */
:root {
  --color-page-deep: #101718;
  --color-page-cold: #172225;

  --color-surface: #1d2727;
  --color-surface-raised: #273231;
  --color-surface-muted: #303b39;
  --color-surface-input: #36413f;

  --color-border: #465350;
  --color-border-strong: #68736d;

  --color-text: #e1ded2;
  --color-text-strong: #f0ecdf;
  --color-text-muted: #9da69f;

  --color-lake: #35515c;
  --color-lake-bright: #557889;

  --color-forest: #344b3d;
  --color-leaf: #738d55;
  --color-leaf-bright: #99ad76;

  --color-amber: #c38a3d;
  --color-amber-bright: #dda85c;

  --color-ruby: #984249;
  --color-ruby-bright: #bd5a61;

  /* Background overlay: lower alpha shows more of the image. */
  --overlay-top: rgb(9 15 16 / 35%);
  --overlay-bottom: rgb(9 14 15 / 45%);

  /* Translucent frames over the background image. */
  --frame-hud: rgb(18 27 28 / 78%);
  --frame-workspace: rgb(18 27 28 / 40%);
  --frame-card: rgb(29 39 39 / 72%);

  --radius-small: 4px;
  --radius-medium: 5px;

  --space-1: 0.2rem;
  --space-2: 0.4rem;
  --space-3: 0.6rem;
  --space-4: 0.8rem;
  --space-5: 1rem;
  --space-6: 1.4rem;

  --shadow-panel:
    0 12px 32px rgb(0 0 0 / 26%), inset 0 1px 0 rgb(255 255 255 / 4%);
}

/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
}
body {
  margin: 0;

  min-width: 320px;
  min-height: 100vh;

  background:
    linear-gradient(var(--overlay-top), var(--overlay-bottom)),
    url("../assets/runegate-mountains.png") center center / cover fixed,
    linear-gradient(155deg, var(--color-page-cold), var(--color-page-deep));

  color: var(--color-text);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 14px;
  line-height: 1.4;
}
button,
input,
select {
  font: inherit;
}

/* --------------------------------------------------
   ACCESSIBILITY HELPERS
-------------------------------------------------- */
.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0 0 0 0);

  white-space: nowrap;

  border: 0;
}

/* --------------------------------------------------
   SHARED
-------------------------------------------------- */
[hidden] {
  display: none !important;
}

.panel-kicker {
  margin: 0;

  color: var(--color-amber);

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 981px) {
  body {
    font-size: 13px;
    line-height: 1.35;
  }
}
