/*
 * splash.css
 *
 * Purpose:
 * Visual language for the anonymous SWARMATIC gateway.
 * Shares the workbench token set — same ink, paper, accent, and
 * typography — so the transition from splash to workbench feels
 * like entering the same system, not switching products.
 *
 * The splash is not an iframe'd swarmlet. It is a full standalone
 * page and keeps its own stylesheet rather than linking swarmlet-base.
 */

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

:root {
  --ink:        #1a2332;
  --paper:      #e9edf0;
  --warm:       #c6d5e0;
  --warm-deep:  #b8ccda;
  --rule:       #a8bfce;
  --muted:      #5a7a8a;
  --accent:     #206d6e;
  --header-bg:  #2d3748;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Mono', ui-monospace, monospace;
  background: var(--warm-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

/* ── Splash card ── */
.splash-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(28,26,23,0.12), 0 0 0 1px rgba(28,26,23,0.06);
}

/* ── Marginalia bars ── */
.splash-marginalia {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 22px;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.splash-marginalia--top {
  border-bottom: 1px solid var(--rule);
  background: var(--warm);
}

.splash-marginalia--bottom {
  border-top: 1px solid var(--rule);
  background: var(--warm);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0;
}

.splash-footnote {
  padding: 12px 18px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.splash-footnote:last-child { border-right: none; }

.splash-footnote-label {
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.splash-footnote-value {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

/* ── Hero ── */
.splash-hero {
  padding: 52px 52px 44px;
}

.splash-mark {
  display: block;
  margin-bottom: 32px;
}

.splash-wordmark {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.splash-headline {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 200;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  max-width: 380px;
}

.splash-subhead {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 44px;
  max-width: 400px;
  letter-spacing: 0.02em;
}

/* ── Actions ── */
.splash-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.splash-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: 5px;
  font-family: 'DM Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.splash-btn--primary {
  background: var(--header-bg);
  color: var(--paper);
  border: 1px solid var(--header-bg);
}
.splash-btn--primary:hover { opacity: 0.82; }

.splash-btn--secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule);
}
.splash-btn--secondary:hover { border-color: var(--muted); color: var(--ink); }

.splash-btn-arrow {
  width: 11px; height: 11px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 560px) {
  .splash-hero { padding: 36px 28px 32px; }
  .splash-headline { font-size: 22px; }
  .splash-marginalia--bottom { grid-template-columns: 1fr; }
  .splash-footnote { border-right: none; border-bottom: 1px solid var(--rule); }
  .splash-footnote:last-child { border-bottom: none; }
}
