/* Reyes — design system stylesheet.
   Style with the var(--*) tokens and the utility/component classes below. Dark-only. */

@import "./tokens.css";

/* ---------- Base ---------- */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum";
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space-9) 0; border-bottom: 1px solid var(--border); }
.section--alt { background: var(--bg-subtle); }

/* ---------- Type scale ---------- */
.display  { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.h1       { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; }
.h2       { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; }
.h3       { font-size: 22px; line-height: 28px; font-weight: 590; letter-spacing: -0.01em; }
.body-lg  { font-size: 18px; line-height: 29px; font-weight: 400; }
.body     { font-size: 16px; line-height: 26px; font-weight: 400; }
.small    { font-size: 14px; line-height: 21px; font-weight: 450; }
.label, .eyebrow {
  font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint);
}
.timer { font-size: 64px; font-weight: 300; letter-spacing: -0.01em; font-feature-settings: "tnum"; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans); font-weight: 550; font-size: 15px; border: 0; cursor: pointer;
  border-radius: var(--radius-pill); padding: 13px 24px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: 0.18s var(--ease);
}
.btn-primary   { background: var(--grad-accent); color: var(--on-accent); }
.btn-primary:hover   { box-shadow: var(--glow-accent); transform: translateY(-1px); }
.btn-primary:active  { transform: scale(0.98); background: var(--accent-deep); }
.btn-secondary { background: var(--surface-glass); color: var(--text);
                 border: 1px solid var(--border-strong); backdrop-filter: var(--blur-glass); }
.btn-secondary:hover { border-color: var(--accent-deep); }
.btn-ghost     { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-sm { padding: 8px 14px; font-size: 14px; min-height: 36px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(123,140,247,0.40); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---------- Card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-md);
  transition: 0.2s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card .num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin-bottom: 14px; display: block; }

/* ---------- Input / field ---------- */
.field {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-md); padding: 12px 14px; font-family: var(--font-sans);
  font-size: 15px; outline: none;
}
.field::placeholder { color: var(--text-faint); }
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123,140,247,0.40); }

/* ---------- Badge ---------- */
.badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  padding: 5px 12px; display: inline-block;
}

/* ---------- Spec table (Polygraph layer) ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-faint); text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border);
}
.spec-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.spec-table td.n { font-family: var(--font-mono); color: var(--text); }

/* ---------- Ambient bloom (decorative, one per view, behind content) ---------- */
.bloom { position: relative; overflow: hidden; }
.bloom::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 520px;
  background: var(--grad-ambient); filter: blur(8px); pointer-events: none;
}
.bloom > * { position: relative; }

/* ---------- Break overlay (signature pattern) ---------- */
.overlay {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  background: #101019; min-height: 300px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 40px;
}
.overlay::before { content: ""; position: absolute; inset: 0; background: var(--grad-ambient); }
.overlay > * { position: relative; }

/* ---------- Glass (floating layers only: sticky nav, popover) ---------- */
.glass { background: var(--surface-glass); backdrop-filter: var(--blur-glass); border: 1px solid var(--border); }

@media (prefers-reduced-transparency: reduce) {
  .glass, .btn-secondary { background: var(--surface); backdrop-filter: none; }
}
