/* ============================================================
   Nandprojects – shared stylesheet
   ============================================================ */

:root {
  --accent:    #4f6ef7;
  --accent-dk: #3a55d4;
  --bg:        #ffffff;
  --surface:   #f5f6fa;
  --border:    #e2e4ed;
  --text:      #1a1c23;
  --muted:     #6b7280;
  --radius:    12px;
  --max-w:     900px;
  --font:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #0f1117;
    --surface: #1a1d27;
    --border:  #2a2d3a;
    --text:    #e8eaf0;
    --muted:   #9ca3af;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}
.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 60px;
  gap: 1rem;
}
.site-nav__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.site-nav__brand:hover { text-decoration: none; color: var(--accent); }
.site-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}
.site-nav__links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav__links a:hover { color: var(--accent); text-decoration: none; }

/* ── Page wrapper ── */
.page-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}
.hero__logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #fff;
  font-weight: 900;
  letter-spacing: -1px;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero__tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dk); text-decoration: none; }

/* ── Sections ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.section + .section { border-top: 1px solid var(--border); }
.section__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.section__body {
  color: var(--muted);
  max-width: 660px;
}

/* ── Project cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.card__title {
  font-weight: 700;
  font-size: 1rem;
}
.card__desc {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start;
}

/* ── Prose (legal pages) ── */
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 0.5rem; }
.prose .meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 0.5rem; }
.prose h3 { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.prose p  { color: var(--muted); margin-bottom: 0.75rem; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.5rem; margin-bottom: 0.75rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a  { color: var(--accent); }

/* ── Contact card ── */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
}
.contact-card__email {
  font-size: 1.1rem;
  font-weight: 600;
}
.contact-card__label {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .5rem;
}
.contact-card__note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .88rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 1.5rem;
}
.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer__copy {
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer__links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  list-style: none;
}
.site-footer__links a {
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer__links a:hover { color: var(--accent); text-decoration: none; }
