/* nuco.unm.edu — base stylesheet */

:root {
  --text:        #37352f;
  --text-muted:  #787774;
  --bg:          #ffffff;
  --surface:     #f1f1ef;
  --rule:        rgba(55, 53, 47, 0.16);
  --link-underline: rgba(55, 53, 47, 0.4);

  --content-width: 46rem;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Helvetica, "Apple Color Emoji", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text:        #d4d4d4;
    --text-muted:  #9b9b9b;
    --bg:          #191919;
    --surface:     #252525;
    --rule:        rgba(255, 255, 255, 0.13);
    --link-underline: rgba(255, 255, 255, 0.35);
  }
}

:root[data-theme="dark"] {
  --text:        #d4d4d4;
  --text-muted:  #9b9b9b;
  --bg:          #191919;
  --surface:     #252525;
  --rule:        rgba(255, 255, 255, 0.13);
  --link-underline: rgba(255, 255, 255, 0.35);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 5.5rem 1rem 6rem;
}

/* --- links ------------------------------------------------------------- */

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--link-underline);
  transition: background-color 120ms ease;
}

a:hover  { background: var(--surface); }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --- masthead ---------------------------------------------------------- */

h1 {
  margin: 0 0 1.75rem;
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.credential {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.callout {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 4px;
}

.callout-icon { font-size: 1.125rem; line-height: 1; }

/* --- intro quote ------------------------------------------------------- */

.intro {
  margin: 3rem 0;
  padding-left: 0.875rem;
  border-left: 3px solid var(--text);
  font-size: 1.1875rem;
  line-height: 1.5;
}

/* --- sections ---------------------------------------------------------- */

section { margin: 2.5rem 0; }

.lead {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}

.lead-icon { font-size: 1rem; }

.interests ul {
  margin: 0;
  padding-left: 1.5rem;
}

.interests li { margin: 0.25rem 0; }

/* --- profile cards ----------------------------------------------------- */

.profile-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-cards li { flex: 1 1 10rem; }

.profile-cards a {
  display: block;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
}

.profile-cards a:hover { filter: brightness(0.96); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .profile-cards a:hover { filter: brightness(1.3); }
}

/* --- small screens ----------------------------------------------------- */

@media (max-width: 34rem) {
  .page { padding-top: 3.5rem; }
  h1 { font-size: 2rem; }
  .intro { font-size: 1.0625rem; }
}
