/* STIX Two Text, self-hosted (SIL Open Font License, fonts/OFL.txt) */
@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "STIX Two Text";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/stix-two-text-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper:  #FDFDFB;
  --ink:    #1C2127;
  --muted:  #5E6873;
  --rule:   #DADEE2;
  --accent: #A51417;   /* WashU red */
  --todo:   rgba(250, 214, 0, 0.38);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper:  #15181C;
    --ink:    #E4E7EA;
    --muted:  #98A1AB;
    --rule:   #2E343B;
    --accent: #F0827A;
    --todo:   rgba(250, 214, 0, 0.28);
  }
}

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

html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "STIX Two Text", "Times New Roman", Georgia, serif;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Placeholder highlight: delete class="todo" once the text is final. */
.todo {
  background: var(--todo);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}


/* Shared column */
.site-nav, .page, .page-footer {
  max-width: 38rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Tabs */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
}
.site-nav::after {               /* rule under the bar, inside the column */
  content: "";
  flex-basis: 100%;
  border-bottom: 1px solid var(--rule);
  margin-top: 0.65rem;
}
.site-name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav ul a {
  color: var(--muted);
  text-decoration: none;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.page { padding-top: 3.5rem; padding-bottom: 1rem; }

h1 {
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1.1;
}

/* About */
.masthead {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.headshot {
  width: 8.5rem;
  height: auto;
  flex: none;
  border-radius: 2px;
}
.masthead h1 { margin-bottom: 0.5rem; }
.masthead p { color: var(--muted); }
.contact { margin-top: 0.4rem; }

.prose { margin-top: 2.25rem; }
.prose p + p { margin-top: 1rem; }

/* Research */
.paper { margin-top: 1.75rem; }
h1 + .paper { margin-top: 2.25rem; }
.paper h2 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.paper h2 a { color: inherit; text-decoration: none; }
.paper h2 a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.note { color: var(--muted); }

details { margin-top: 0.25rem; }
summary {
  cursor: pointer;
  color: var(--accent);
  width: max-content;
}
summary::marker { color: var(--muted); }
details[open] summary { margin-bottom: 0.35rem; }

.page-footer {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 34rem) {
  html { font-size: 106.25%; }
  .site-nav { padding-top: 1rem; }
  .page { padding-top: 2.25rem; }
  .masthead { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  h1 { font-size: 2rem; }
}

@media print {
  .site-nav { display: none; }
  .todo { background: none; }
  a { color: inherit; }
}
