/* Base layer: reset, typography, app frame. */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--su-bg);
  color: var(--su-text);
  font: 14px/1.45 var(--su-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--su-font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
  font-weight: 600;
}
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; color: var(--su-muted); }

p { margin: 0 0 var(--su-gap-3); }

a { color: var(--su-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--su-gold);
  outline-offset: 2px;
}

::selection { background: rgba(243, 193, 75, 0.35); }

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

.muted { color: var(--su-muted); }
.gold { color: var(--su-gold); }
.danger-text { color: var(--su-disc); }
.mono { font-family: var(--su-font-mono); }
.small { font-size: 12px; }

.note {
  font-size: 10px;
  color: var(--su-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* App frame */
#app {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.view {
  flex: 1;
  width: 100%;
  max-width: var(--su-maxw);
  margin: 0 auto;
  padding: var(--su-gap-5) var(--su-gap-4) calc(var(--su-gap-6) * 2);
}
.view.full-bleed { max-width: none; padding: 0; }

.row { display: flex; gap: var(--su-gap-3); align-items: center; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: var(--su-gap-3); }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.center { display: flex; align-items: center; justify-content: center; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--su-gap-4);
}

hr {
  border: none;
  border-top: 1px solid var(--su-edge);
  margin: var(--su-gap-4) 0;
}

/* Scrollbars on dark */
* { scrollbar-color: var(--su-raise) var(--su-deep); scrollbar-width: thin; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
