/* Vireo — vireolabs.app
   Static site, no build step. One stylesheet for all pages.
   Palette follows the app's dark theme (Themes/Dark.axaml) so screenshots
   blend in when they arrive: bg #1D1D1D family, accent #5294E2, green #5CB85C. */

/* ---------- fonts (self-hosted, see assets/fonts/OFL-NOTICE.txt) ---------- */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spline Sans Mono';
  src: url('fonts/spline-sans-mono.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */

:root {
  --bg: #161719;
  --bg-raised: #1d1e21;
  --bg-inset: #121315;
  --border: #2a2c30;
  --border-strong: #3c3f45;
  --text: #e8e6e1;
  --text-dim: #a2a5ab;
  --text-faint: #6d7076;
  --blue: #5294e2;
  --blue-bright: #85b5ec;
  --green: #5cb85c;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', Consolas, monospace;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- reset-ish ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
::selection { background: #2d4a6d; color: var(--text); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* mono label — the recurring "port dot + overline" motif */
.tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.4rem;
}
.tag::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(82, 148, 226, 0.18);
  flex: none;
}
.tag--green::before { background: var(--green); box-shadow: 0 0 0 3px rgba(92, 184, 92, 0.16); }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(22, 23, 25, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 64px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark svg { width: 22px; height: 22px; }
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.site-nav a { color: var(--text-dim); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #10161f;
  background: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.55em 1.1em;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { background: var(--blue-bright); border-color: var(--blue-bright); color: #10161f; }
.btn--lg { font-size: 0.9rem; padding: 0.8em 1.5em; }
.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg-raised); color: var(--text); border-color: var(--border-strong); }
@media (max-width: 640px) {
  .site-nav a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(4rem, 10vh, 7rem) 0 3.5rem;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  font-weight: 590;
  max-width: 13em;
  margin-bottom: 0.45em;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue-bright);
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.2rem 0 0;
  flex-wrap: wrap;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 2.6rem;
  display: flex;
  gap: 0.9em;
  flex-wrap: wrap;
}
.hero-meta span::after {
  content: '·';
  margin-left: 0.9em;
  color: var(--border-strong);
}
.hero-meta span:last-child::after { content: ''; }

/* background wiring ornament */
.hero-wiring {
  position: absolute;
  top: 8%;
  right: var(--gutter);
  width: min(44vw, 540px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 860px) { .hero-wiring { display: none; } }

/* staggered hero reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero .reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 640ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero .reveal:nth-child(2) { animation-delay: 90ms; }
  .hero .reveal:nth-child(3) { animation-delay: 180ms; }
  .hero .reveal:nth-child(4) { animation-delay: 270ms; }
  .hero .reveal:nth-child(5) { animation-delay: 360ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- media placeholders ---------- */

.media-frame {
  position: relative;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle, #26282c 1px, transparent 1px) 0 0 / 22px 22px,
    var(--bg-inset);
  border-radius: 4px;
  display: grid;
  place-items: center;
  min-height: 200px;
}
.media-frame.r16x9 { aspect-ratio: 16 / 9; }
.media-frame.r4x3 { aspect-ratio: 4 / 3; }
.media-frame .slot-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  line-height: 2;
  padding: 1rem;
}
.media-frame .slot-label b {
  display: block;
  font-weight: 500;
  color: var(--text-dim);
}
/* corner ticks */
.media-frame::before, .media-frame::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--border-strong);
  border-style: solid;
}
.media-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-color: var(--text-faint); }
.media-frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-color: var(--text-faint); }

.hero-shot { margin: 3.5rem 0 0; }

/* ---------- sections ---------- */

section { border-top: 1px solid var(--border); }
.section-pad { padding: clamp(3.5rem, 9vh, 6rem) 0; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature + .feature { margin-top: clamp(3.5rem, 9vh, 6rem); padding-top: clamp(3.5rem, 9vh, 6rem); border-top: 1px solid var(--border); }
.feature:nth-of-type(even) .feature-copy { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.feature p { color: var(--text-dim); }
.feature .fine {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-top: 1.3rem;
}
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .feature-copy { order: 0; }
}

/* ---------- trust strip ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-raised);
}
.trust-grid > div {
  padding: 1.6rem 1.5rem;
  border-top: 1px solid var(--border);
}
.trust-grid > div:first-child { border-top: none; }
@media (min-width: 700px) {
  .trust-grid > div { border-top: none; border-left: 1px solid var(--border); }
  .trust-grid > div:first-child { border-left: none; }
}
.trust-grid h4 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.trust-grid p { font-size: 0.92rem; color: var(--text-dim); margin: 0; }

/* ---------- beta / contact ---------- */

.beta { text-align: left; }
.beta h2 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 16em; }
.beta .email {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--blue-bright);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 2.6rem;
}
.site-footer .wrap {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.site-footer a { color: var(--text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .spacer { flex: 1; }

/* ---------- prose pages (privacy / eula / 404) ---------- */

.prose-page { padding: clamp(3rem, 8vh, 5rem) 0 4rem; }
.prose-page h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); }
.prose-page .updated {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3rem;
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.6em;
}
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 1.2em; max-width: var(--measure); }
.prose li { margin-bottom: 0.45em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  background: var(--bg-raised);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.3rem;
  max-width: var(--measure);
}

/* 404 */
.notfound {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 0;
}
.notfound .code {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
