/* Humboldt subsite — standalone stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300;1,9..40,400&display=swap');

/* ── Reset ── */

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

html { font-size: 18px; -webkit-font-smoothing: antialiased; }

body {
  background: #FAFAF7;
  color: #1A1A1A;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
}

/* ── Typography ── */

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.8rem; margin-bottom: 0.4rem; }
h4 { font-size: 1rem; font-weight: 600; margin-top: 1.4rem; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; max-width: 66ch; }

a { color: #2A6B6B; text-decoration: none; transition: color 0.15s; }
a:hover { color: #1d4f4f; text-decoration: underline; }

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: #f0f0ec;
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

pre {
  background: #f5f5f2;
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

pre code { background: none; padding: 0; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
}

th {
  text-align: left;
  border-bottom: 2px solid #ddd;
  padding: 0.35rem 0.75rem 0.35rem 0;
  font-weight: 500;
}

td {
  border-bottom: 1px solid #eee;
  padding: 0.35rem 0.75rem 0.35rem 0;
  vertical-align: top;
}

/* ── Nav ── */

.subsite-nav {
  border-bottom: 1px solid #e0e0da;
  background: #FAFAF7;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 52px;
}

.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: #1A1A1A;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover { color: #2A6B6B; text-decoration: none; }

.nav-links {
  display: flex;
  gap: 0.15rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #666;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover { color: #2A6B6B; background: #f0f0ec; text-decoration: none; }
.nav-link.active { color: #2A6B6B; font-weight: 500; background: #edf5f5; }

/* ── Layout ── */

.page-main {
  padding: 3.5rem 0 5rem;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ── Page header ── */

.page-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e8e4;
}

.page-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  color: #555;
  font-style: italic;
  margin-top: 0.75rem;
  max-width: 60ch;
}

/* ── About ── */

.about-body h2 { margin-top: 2.5rem; }
.about-body ul { margin-top: 0.5rem; }
.about-body li { margin-bottom: 0.5rem; }

/* ── Footer ── */

.site-footer {
  border-top: 1px solid #e0e0da;
  padding: 1.75rem 2.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  max-width: 860px;
  margin: 0 auto;
}

.site-footer a { color: #888; }
.site-footer a:hover { color: #2A6B6B; }

/* ── Responsive ── */

@media (max-width: 640px) {
  .nav-inner { gap: 1rem; padding: 0 1.25rem; }
  .nav-brand  { font-size: 1.1rem; }
  .nav-link   { font-size: 0.75rem; padding: 0.3rem 0.5rem; }
  .container  { padding: 0 1.25rem; }
  .page-main  { padding: 2rem 0 4rem; }
}
