:root {
  --ink: #061619;
  --ink-soft: #0a2226;
  --ink-lift: #103036;
  --sand: #eee5d1;
  --sand-dim: #a9aa9d;
  --aqua: #5ee6d5;
  --warning: #ffb15a;
  --danger: #ff756d;
  --line: rgba(238, 229, 209, 0.14);
  --line-strong: rgba(238, 229, 209, 0.28);
  --page: min(1480px, calc(100vw - 48px));
  color-scheme: dark;
  font-family: "Instrument Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--sand);
  background: radial-gradient(circle at 85% 0, rgba(94, 230, 213, 0.05), transparent 30rem), var(--ink);
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.section-shell { width: var(--page); margin-inline: auto; }
.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; }
.eyebrow { font: 500 0.65rem/1.2 "DM Mono", monospace; letter-spacing: 0.12em; color: var(--aqua); text-transform: uppercase; }

.site-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; width: max-content; }
.brand-copy { display: flex; align-items: baseline; gap: 10px; font-size: .8rem; line-height: 1; font-weight: 500; letter-spacing: 0; }
.brand-name { font-size: .86rem; font-weight: 720; letter-spacing: .12em; }
.brand-copy > span:last-child { color: var(--sand-dim); font-weight: 450; }
.brand-mark { height: 16px; display: flex; align-items: end; gap: 2px; }
.brand-mark i { display: block; width: 3px; border-radius: 4px; background: var(--aqua); animation: mark-wave 2.4s ease-in-out infinite; }
.brand-mark i:nth-child(1) { height: 6px; animation-delay: -0.5s; }
.brand-mark i:nth-child(2) { height: 15px; animation-delay: -0.25s; }
.brand-mark i:nth-child(3) { height: 10px; }
@keyframes mark-wave { 50% { transform: scaleY(.55); opacity: .65; } }
.refresh-button { justify-self: end; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: none; font-size: 0.7rem; cursor: pointer; }
.refresh-icon { color: var(--aqua); font: 0.9rem "DM Mono", monospace; }
.refresh-button.is-loading .refresh-icon { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen { min-height: calc(100svh - 68px); display: grid; place-content: center; text-align: center; gap: 8px; }
.loading-screen p { margin-top: 18px; }
.loading-screen small { color: var(--sand-dim); font: .65rem "DM Mono", monospace; }
.loading-wave { height: 46px; display: flex; align-items: end; justify-content: center; gap: 5px; }
.loading-wave span { width: 4px; height: 16px; border-radius: 4px; background: var(--aqua); animation: load-wave 1s ease-in-out infinite alternate; }
.loading-wave span:nth-child(2) { animation-delay: 90ms; }
.loading-wave span:nth-child(3) { animation-delay: 180ms; }
.loading-wave span:nth-child(4) { animation-delay: 270ms; }
.loading-wave span:nth-child(5) { animation-delay: 360ms; }
@keyframes load-wave { to { height: 44px; opacity: .35; } }

.site-footer { width: var(--page); margin: 50px auto 0; padding: 24px 0 34px; display: flex; justify-content: flex-end; gap: 18px; border-top: 1px solid var(--line); color: var(--sand-dim); font: .61rem/1.5 "DM Mono", monospace; }

@media (max-width: 720px) {
  :root { --page: calc(100vw - 28px); }
  .site-header { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 12px 14px; }
  .brand-copy { align-items: start; flex-direction: column; gap: 4px; }
  .brand-copy > span:last-child { font-size: .7rem; }
  .date-switcher { grid-column: 1 / -1; grid-row: 2; }
  .refresh-label { display: none; }
  .site-footer { flex-direction: column; }
}

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