/* AV Capital - direction B "Ledger"
   A hairline frame like a terminal panel. The wordmark sits large at the bottom left,
   the only movement is a UTC clock in the corner: the market never stops, the page says nothing. */

:root {
  --surface: #0A0A0B;
  --ink: #F5F5F4;
  --ink-dim: #9A999E;
  --border: #232326;

  --bg: var(--surface);
  --fg: var(--ink);
  --muted-fg: var(--ink-dim);
  --accent: var(--ink);
  --accent-fg: var(--surface);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Karla', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  --inset: clamp(16px, 3vw, 32px);
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.30, 1);
}

body { padding: var(--inset); }

.frame {
  min-height: calc(100dvh - 2 * var(--inset));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: var(--pad);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mark { width: 32px; height: 32px; }
.mark polyline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.clock,
.bottom {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.clock span { letter-spacing: 0.04em; }

.body {
  align-self: end;
  padding-top: 64px;
}

.tagline {
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 16px;
  opacity: 0;
  animation: rise 1200ms var(--ease) 500ms forwards;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 9.4vw, 144px);
  line-height: 0.95;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  animation: rise 1400ms var(--ease) 150ms forwards;
}

.bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.bottom p { max-width: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark, .tagline { opacity: 1; animation: none; }
}

/* 404: the wordmark leads home */
.wordmark a { text-decoration: none; }
.wordmark a:hover { color: var(--ink-dim); }
.wordmark a:focus-visible { outline-offset: 8px; }
