/* Elizabeth Murnane — personal site
   Layout: top nav, left profile sidebar, right content column.
   Black and white; the only color is the muted brand icons in the sidebar. */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --rule: #e2e2e2;
  --soft: #f5f5f5;
  --scholar: #5a87d6;
  --orcid: #86a83a;
  --linkedin: #3f76b0;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #ededed;
    --muted: #9b9b9b;
    --rule: #2e2e2e;
    --soft: #1b1b1b;
    --scholar: #86a8e6;
    --orcid: #a9c96a;
    --linkedin: #7ba2cf;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; }

a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--muted);
}
a:hover { text-decoration-color: var(--fg); }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }

/* ---------- Top nav ---------- */

.top { border-bottom: 1px solid var(--rule); padding-inline: 20px; }
.top-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  padding-block: 2px;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
.nav .ext { font-size: 0.8em; margin-left: 2px; }
.nav .sep { width: 1px; height: 14px; background: var(--rule); }

/* ---------- Two columns ---------- */

.shell { padding-inline: 20px; }
.cols {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding-block: 48px 72px;
}

/* ---------- Sidebar ---------- */

.side {
  display: grid;
  gap: 16px;
  align-content: start;
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.5;
}
.photo {
  display: block;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--soft);
  border: 1px solid var(--rule);
}
.name { display: grid; gap: 6px; }
.side h1 { font-family: var(--serif); font-size: 1.45rem; }
.role { color: var(--muted); }

.links {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 7px;
}
.links li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.links li > span:not(.ico), .links li > a { min-width: 0; overflow-wrap: anywhere; }

/* Icons are SVG files used as masks, so CSS can color them. */
.ico {
  width: 16px;
  height: 16px;
  flex: none;
  background-color: var(--fg);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.ico-email    { --icon: url("../images/icons/email.svg"); }
.ico-office   { --icon: url("../images/icons/office.svg"); }
.ico-scholar  { --icon: url("../images/icons/google.svg");   background-color: var(--scholar); }
.ico-orcid    { --icon: url("../images/icons/orcid.svg");    background-color: var(--orcid); }
.ico-linkedin { --icon: url("../images/icons/linkedin.svg"); background-color: var(--linkedin); }
.ico-github   { --icon: url("../images/icons/github.svg"); }

/* ---------- Main column ---------- */

.main { min-width: 0; max-width: 680px; display: grid; gap: 44px; align-content: start; }
.main h2 {
  font-size: 1.15rem;
  padding-bottom: 8px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.main section > p + p { margin-top: 14px; }

.sub {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}
.main h2 + .sub { margin-top: 0; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.people .meta { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }

.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.courses h3 { font-size: 1.02rem; }
.courses .code {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.courses .desc { margin-top: 6px; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--rule); padding-inline: 20px; }
.foot-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding-block: 20px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Phones ---------- */

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 56px; }
  .side { grid-template-columns: 110px 1fr; column-gap: 18px; row-gap: 10px; align-items: start; }
  .photo { grid-row: span 2; }
  .links { grid-column: 1 / -1; }
}
