/* ============================================================
   SpiralQIT — Public Site
   Governance-first. Restrained. Credible.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;1,8..60,300&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #f7f5f1;
  --surface:     #ffffff;
  --text:        #1c1a17;
  --text-muted:  #6b6257;
  --accent:      #5c4a2a;
  --accent-mid:  #7d6438;
  --border:      #ddd8d0;
  --border-light:#eceae5;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'Source Serif 4', Georgia, serif;
  --font-mono:   'IBM Plex Mono', 'Courier New', monospace;
  --max-w:       740px;
  --nav-h:       64px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 400; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.15s;
}
a:hover { color: var(--accent-mid); }

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

ul li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 1rem;
}
ul li:last-child { border-bottom: none; }

ul li::before {
  content: '→';
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 0.6em;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-wordmark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.nav-wordmark:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
}

.nav-links li { border: none; padding: 0; }
.nav-links li::before { display: none; }

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--border-light); color: var(--text); }
.nav-links a.active { color: var(--accent); }

/* ── Page Wrapper ───────────────────────────────────────────── */
.page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
}

/* ── Hero (homepage only) ───────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem 4rem;
  flex: 1;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
}

.hero-cta {
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.hero-cta:hover { color: var(--accent); border-color: var(--accent); }

/* ── Content Pages ──────────────────────────────────────────── */
.content {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
  width: 100%;
}

.content-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: block;
}

.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Inline link arrow */
.arrow-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.5rem;
  transition: gap 0.15s;
}
.arrow-link:hover { gap: 0.7em; }
.arrow-link::after { content: '→'; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.5rem 3rem; }
  .hero-logo { max-width: 300px; }
  .content { padding: 2.5rem 1.5rem 4rem; }
  .nav-inner { padding: 0 1.25rem; }
  .nav-links a { padding: 0.4rem 0.5rem; font-size: 0.7rem; }
}
