/* SafeguardsMark apex stub — Phase 0, pre-launch.
 * Brand tokens: dark blue-slate #171A28, amber #D4841A, warm off-white #F5F2EA.
 * Fonts: Sora (display) + Inter (body) + JetBrains Mono (mono).
 * Only layout classes used by index.html are defined here. */

:root {
  /* SafeguardsMark brand tokens */
  --bg:           #171A28;   /* dark blue-slate — page ground */
  --panel:        #1F2335;   /* raised surface — slightly lighter than ground */
  --ink:          #F5F2EA;   /* warm off-white — body text */
  --ink-soft:     #B8B4A8;   /* muted text */
  --ink-mute:     #98978F;   /* de-emphasized text — lc-gap-safeguardsmark-01: was #7A7870 (3.59-3.9:1 on stamp/footer — AA FAIL); now 5.4-5.9:1, same warm-neutral hue */
  --primary:      #D4841A;   /* amber — accent, CTAs, element-complete indicators */
  --primary-fg:   #FFFFFF;
  --primary-soft: rgba(212,132,26,.12);
  --primary-ring: rgba(212,132,26,.32);
  --line:         rgba(245,242,234,.08);
  --line-strong:  rgba(245,242,234,.14);

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle dark noise grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9000; pointer-events: none; opacity: .015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.stub-page {
  position: relative;
  z-index: 1;
}
.stub-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vh, 88px) 24px;
  position: relative; z-index: 1;
}
.stub-card {
  width: min(580px, 100%);
  text-align: center;
  position: relative;
  padding: 28px 32px 24px;
  background: rgba(31, 35, 53, 0.82);
  backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(212, 132, 26, 0.22);
  border-radius: 4px;
}

/* Corner brackets — amber */
.stub-card::before, .stub-card::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--primary);
  border-style: solid;
  opacity: 0.65;
}
.stub-card::before { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.stub-card::after  { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.stub-card .corners {
  position: absolute; bottom: 0; left: 0; right: 0; height: 20px;
}
.stub-card .corners::before, .stub-card .corners::after {
  content: "";
  position: absolute; width: 20px; height: 20px;
  border-color: var(--primary); border-style: solid; opacity: 0.65;
}
.stub-card .corners::before { bottom: 0; left: 0;  border-width: 0 0 1.5px 1.5px; }
.stub-card .corners::after  { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

/* ── Wordmark: "Safeguards" ink + "Mark" amber, fading amber rule ── */
.stub-wm {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}
.wm-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.wm-mark { color: var(--primary) }
.wm-rule {
  height: 3px;
  width: 72%;
  margin-top: .28em;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), rgba(212,132,26,0));
}

/* ── Stamp line ── */
.stub-stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
}

/* ── Ornamental divider ── */
.stub-rule {
  width: 56px;
  height: 1.5px;
  background: var(--primary);
  margin: 0 auto 20px;
  opacity: 0.55;
}
.stub-rule .pip {
  display: block;
  width: 4px; height: 4px;
  background: var(--primary);
  border-radius: 50%;
  margin: -3px auto;
}

/* ── Headline ── */
.stub-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

/* ── Seal line (plain-spoken description, in mono) ── */
.stub-seal-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  background: rgba(245,242,234,.04);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--primary);
  padding: 11px 14px;
  border-radius: 5px;
  margin-bottom: 20px;
  line-height: 1.55;
  text-align: left;
}

/* ── Body ── */
.stub-body {
  font-size: 0.97rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* ── Contact (capture removal 2026-07-10 — plain mailto, no capture mechanism) ── */
.stub-contact {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: .01em;
  margin-bottom: 8px;
}
.stub-contact a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color .2s var(--ease);
}
.stub-contact a:hover { border-color: var(--primary) }

@media (max-width: 440px) {
  .stub-card { padding: 24px 20px 20px }
}

/* ── Footer ── */
.stub-foot {
  text-align: center;
  padding: 28px 24px 24px;
  border-top: 1px solid var(--line);
  position: relative; z-index: 1;
}
.stub-foot .dba {
  font-family: var(--font-mono);
  font-size: 0.70rem;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 10px;
}
.stub-foot .legal {
  font-size: 0.72rem;
  color: var(--ink-mute);
  max-width: 640px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.stub-foot .note {
  font-size: 0.72rem;
  color: var(--ink-mute);
  margin: 0;
}
