/* ============================================================
   Norman J. Steinert — Personal Academic Website
   Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --bg:        #0A0F1E;
  --surface:   #111827;
  --surface2:  #162035;
  --border:    rgba(75, 158, 255, 0.13);
  --border2:   rgba(75, 158, 255, 0.22);
  --accent:    #4B9EFF;
  --accent2:   #7BAAEE;
  --text:      #F0F4FF;
  --text2:     #C2D8F5;
  --text3:     #8AABCF;
  --muted:     #4A6A8A;
  --muted2:    #6B8FBC;
  --serif:     'DM Serif Display', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --radius:    10px;
  --nav-h:     62px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text3);
  line-height: 1.7;
  font-size: 15px;
  min-height: 100vh;
}

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

strong { color: var(--text2); font-weight: 500; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  color: var(--muted2);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
}

.nav-links a:hover { color: var(--text2); }
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---- Page wrapper ---- */
.page { max-width: 900px; margin: 0 auto; padding: 0 48px 80px; }

/* ---- Section label ---- */
.label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 20px;
  display: block;
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 48px 0;
}

/* ---- Footer ---- */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  max-width: 100%;
}

.footer a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer a:hover { color: var(--accent); }

/* ---- Pill / tag ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--accent);
  border: 0.5px solid rgba(75,158,255,0.3);
  padding: 5px 11px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}
.pill:hover {
  background: rgba(75,158,255,0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}

/* ---- Responsive ---- */
@media (max-width: 700px) {
  .nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .page { padding: 0 20px 60px; }
  .footer { padding: 18px 20px; flex-direction: column; gap: 8px; text-align: center; }
}
