/* ==========================================================================
   Base · reset, ground, type, utilities
   ========================================================================== */

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

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--ink);
  overflow: hidden;
  background-color: #e8eef6;
  background-image:
    radial-gradient(1100px 760px at 6% -10%, #d7e4f2 0%, rgba(215, 228, 242, 0) 62%),
    radial-gradient(960px 720px at 98% 4%, #dfe8f3 0%, rgba(223, 232, 243, 0) 58%),
    radial-gradient(1000px 780px at 84% 112%, #d6e2f0 0%, rgba(214, 226, 240, 0) 58%),
    linear-gradient(158deg, #eff4f9 0%, #e5ecf4 50%, #e2eaf2 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:root[data-theme="dark"] body {
  background-color: #05192b;
  background-image:
    radial-gradient(1180px 800px at -4% -14%, rgba(18, 116, 178, .78) 0%, rgba(18, 116, 178, 0) 62%),
    radial-gradient(980px 740px at 104% -8%, rgba(10, 80, 132, .85) 0%, rgba(10, 80, 132, 0) 58%),
    radial-gradient(1040px 860px at 84% 114%, rgba(150, 104, 28, .32) 0%, rgba(150, 104, 28, 0) 58%),
    radial-gradient(820px 700px at 6% 112%, rgba(14, 80, 128, .55) 0%, rgba(14, 80, 128, 0) 60%),
    linear-gradient(152deg, #061d31 0%, #041b2b 48%, #06192a 100%);
}

/* film grain: keeps the large blurs from banding */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .30;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--sky-600); text-decoration: none; }
img, svg { display: block; }
svg.ic { width: 16px; height: 16px; flex: none; }
table { border-collapse: collapse; border-spacing: 0; }
::selection { background: rgba(26, 142, 205, .26); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* scrollbars ------------------------------------------------------------- */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(60, 110, 145, .32) transparent;
}
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: rgba(60, 110, 145, .28);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(40, 95, 135, .46); background-clip: content-box; }
*::-webkit-scrollbar-corner { background: transparent; }

/* utilities -------------------------------------------------------------- */
[hidden] { display: none !important; }
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -.01em;
}
.mono { font-family: var(--font-mono); font-size: .95em; }
.muted { color: var(--ink-muted); }
.faint { color: var(--ink-faint); }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* reduced motion: keep the content, drop the travel ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

