/* iiiai.us — shared styles
   Palette: #f8f8f6 bg · #1a1a1a text · #1a3a6b accent · #e4e4e0 border
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #f8f8f6;
  --surface:  #ffffff;
  --border:   #e4e4e0;
  --text:     #1a1a1a;
  --muted:    #6b6b6b;
  --faint:    #9b9b9b;
  --accent:   #1a3a6b;
  --accent-h: #122b52;
  --rule:     1px solid var(--border);
  --max:      1100px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ──────────────────────────────────────────────── */

.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(248,248,246,0.96);
  backdrop-filter: blur(8px);
  border-bottom: var(--rule);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 32px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text); text-decoration: none;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.82rem; color: var(--muted); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* ── Layout primitives ────────────────────────────────── */

.page-body { padding-top: 56px; }

.container {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
}

.section { padding: 80px 0; }
.section + .section { border-top: var(--rule); }

.section-label {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 24px;
}

/* ── Typography ───────────────────────────────────────── */

h1 { font-size: 2.6rem; font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 400; line-height: 1.3; letter-spacing: -0.01em; }
h3 { font-size: 1rem; font-weight: 500; }

.lead {
  font-size: 1.05rem; color: var(--muted); max-width: 640px;
  line-height: 1.75; margin-top: 20px;
}

/* ── Buttons ─────────────────────────────────────────── */

.btn {
  display: inline-block; text-decoration: none;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
  border-radius: 3px; transition: all 0.15s; cursor: pointer;
  border: none; font-family: var(--font);
}
.btn-primary {
  background: var(--accent); color: #fff;
  padding: 10px 22px;
}
.btn-primary:hover { background: var(--accent-h); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent); padding: 9px 21px;
}
.btn-outline:hover { background: rgba(26,58,107,0.06); }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); padding: 9px 21px;
}
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── Cards ───────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px; background: var(--border);
  border: var(--rule);
}
.card {
  background: var(--surface);
  padding: 32px 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.card .card-label {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

/* ── Rule divider ─────────────────────────────────────── */

.rule { border: none; border-top: var(--rule); }

/* ── Footer ──────────────────────────────────────────── */

.site-footer {
  border-top: var(--rule);
  padding: 40px 0;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-inner p { font-size: 0.78rem; color: var(--faint); }
.footer-inner a { color: var(--faint); text-decoration: none; }
.footer-inner a:hover { color: var(--muted); }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-links { gap: 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
