/* SixProsper design system: system font stack (no web-font requests = better LCP),
   navy + amber palette, light theme by default with dark-mode support. */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-elev: #ffffff;
  --text: #0b1220;
  --text-muted: #55607a;
  --line: #e3e7f0;
  --brand: #0b1220;
  --brand-2: #1d3a8a;
  --accent: #f59e0b;
  --accent-ink: #1a1200;
  --link: #1d3a8a;
  --notice-bg: #fff8e6;
  --notice-line: #f5d78a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #101a30;
    --bg-elev: #141f38;
    --text: #eef2fa;
    --text-muted: #a4aec6;
    --line: #22304f;
    --brand: #eef2fa;
    --brand-2: #8fb0ff;
    --link: #9db9ff;
    --notice-bg: #2a2410;
    --notice-line: #6b5314;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-alt: #101a30; --bg-elev: #141f38; --text: #eef2fa; --text-muted: #a4aec6;
  --line: #22304f; --brand: #eef2fa; --brand-2: #8fb0ff; --link: #9db9ff; --notice-bg: #2a2410; --notice-line: #6b5314;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--brand); }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 60ch; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin-bottom: 0.8em;
}
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--brand-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; padding: 8px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 800px) {
  .nav-toggle { display: flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 8px 16px 16px; gap: 2px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); padding: clamp(48px, 8vw, 96px) 0 40px; border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 820px; }
.hero h1 { max-width: 20ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--text-muted); font-size: 0.95rem; }
.hero-facts strong { color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform 0.12s ease, background 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb020; }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.link-arrow::after { content: " \2192"; }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tight { padding-top: 32px; }
.section-head { max-width: 62ch; margin-bottom: 28px; }
.section-head p { color: var(--text-muted); }
.section-cta { margin-top: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.3fr 1fr; }
  .two-col-wide { grid-template-columns: 2fr 1fr; }
}

/* Cards */
.card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-link { display: block; text-decoration: none; color: inherit; }
.card-title { font-size: 1.25rem; margin: 12px 0 2px; }
.card-domain { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.card-text { color: var(--text); margin-bottom: 12px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tag { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--notice-bg); color: var(--accent-ink); border: 1px solid var(--notice-line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag { color: var(--text); } }
:root[data-theme="dark"] .tag { color: var(--text); }
.tag-muted { background: var(--bg-alt); color: var(--text-muted); border-color: var(--line); }
.project-card:hover { border-color: var(--accent); }
.project-logo { width: 56px; height: 56px; border-radius: 12px; }
.project-logo-lg { width: 80px; height: 80px; border-radius: 18px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); margin: 0; }
.feature-grid .feature { padding: 20px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); }

/* Team */
.team-mini { display: grid; gap: 12px; }
.team-mini-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.team-mini-card img { border-radius: 50%; }
.team-list { display: grid; gap: 20px; }
.team-card { display: grid; gap: 20px; grid-template-columns: 1fr; }
.team-card img { border-radius: 16px; width: 160px; height: 160px; object-fit: cover; }
.team-card .card-title { margin-top: 0; }
@media (min-width: 640px) { .team-card { grid-template-columns: 160px 1fr; } }

/* Pages */
.page { padding: 32px 0 72px; }
.page-center { text-align: center; padding-top: 80px; }
.page-center .hero-actions { justify-content: center; }
.page-head { margin-bottom: 32px; }
.project-head { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 640px) { .project-head { grid-template-columns: auto 1fr; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }
.prose ul li { margin-bottom: 0.4em; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.88rem; color: var(--text-muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.notice { background: var(--notice-bg); border: 1px solid var(--notice-line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 32px; }
.notice-soft { background: var(--bg-alt); }
.facts { display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0 0 1.5em; }
.facts div { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.facts dd { margin: 0; font-weight: 500; }
.facts-compact { grid-template-columns: 1fr; gap: 0; }
.sidebar { display: grid; gap: 16px; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.big-link { font-size: 1.4rem; font-weight: 700; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1em 0 1.5em; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
@media (max-width: 640px) { .table { display: block; overflow-x: auto; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 48px 0 24px; margin-top: 40px; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-about { grid-column: span 1; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-2); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.disclaimer { max-width: 80ch; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
