/* Vector Life AI — public site. System fonts only; no external requests. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #16181d;
  --muted: #5b616e;
  --rule: #e4e5e8;
  --accent: #0f6e5c;
  --accent-soft: #e7f2ef;
  --measure: 42rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111316;
    --surface: #181b1f;
    --text: #e8e9ec;
    --muted: #a0a6b1;
    --rule: #2a2e35;
    --accent: #5cc8b0;
    --accent-soft: #16302a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
  padding-left: max(1.25rem, env(safe-area-inset-left));
  padding-right: max(1.25rem, env(safe-area-inset-right));
}

/* Header */

.site-header {
  padding: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex: none;
}

/* Home */

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}

.hero .mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero .tagline {
  margin: 0 0 1.75rem;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  line-height: 1.35;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.hero .status {
  margin: 0;
  display: inline-block;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.95rem;
}

/* Document pages */

.doc {
  flex: 1;
  padding: 1rem 0 4rem;
}

.doc .back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.doc h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.doc .updated {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doc h2 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.doc section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.doc p,
.doc ul {
  margin: 0 0 1rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.45rem;
}

.doc li::marker {
  color: var(--muted);
}

.doc blockquote {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: var(--accent-soft);
}

.doc blockquote p:last-child {
  margin-bottom: 0;
}

.doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: var(--accent-soft);
}

.doc a {
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}
