/* Standalone homepage styles. No build step or framework required. */
:root {
  --cardinal: #990000;
  --cardinal-dark: #6b0000;
  --gold: #ffcc00;
  --ink: #202020;
  --muted: #66615d;
  --line: #dedbd6;
  --soft: #f8f6f1;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --width: 57.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.75rem;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--gold);
  color: #300;
}

a {
  color: var(--cardinal);
  text-decoration-color: rgb(153 0 0 / 35%);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--cardinal-dark);
  text-decoration-color: currentColor;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 0.18rem solid var(--gold);
  outline-offset: 0.2rem;
}

.container {
  width: min(calc(100% - 2.5rem), var(--width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  padding: 0.55rem 0.8rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 0.18rem solid var(--gold);
  background: var(--cardinal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.4rem;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.8rem;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.08;
  text-decoration: none;
}

.brand:hover {
  color: var(--gold);
}

.usc-logo-frame {
  position: relative;
  display: block;
  width: 6.2rem;
  height: 3.8rem;
  overflow: hidden;
}

.usc-logo-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9.2rem;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.university-name {
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  color: var(--gold);
}

.intro {
  padding-block: clamp(3.75rem, 8vw, 5.5rem) clamp(3.5rem, 7vw, 5rem);
}

.intro-copy {
  display: flow-root;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.role {
  margin: 0.65rem 0 1.75rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.intro-copy > p:not(.role, .profile-links, .current) {
  margin: 0 0 1rem;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  margin: 1.45rem 0;
}

.profile-links a,
.paper-link {
  font-size: 0.84rem;
  font-weight: 650;
}

.current {
  margin: 1.4rem 0 0;
  padding: 0.75rem 0.9rem;
  border-left: 0.2rem solid var(--gold);
  background: var(--soft);
  color: #4f4b47;
  font-size: 1rem;
}

.current .status-icon {
  display: inline-block;
  margin-right: 0.55rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.1em;
  line-height: 1;
  vertical-align: -0.05em;
}

.seeking-highlight {
  display: block;
  margin-top: 0.55rem;
  color: var(--cardinal);
  font-weight: 700;
}

.portrait {
  float: right;
  width: 13.75rem;
  margin: 0.15rem 0 1.5rem clamp(2.5rem, 7vw, 5rem);
}

.portrait img {
  width: 13.75rem;
  height: 13.75rem;
  border-radius: 0.35rem;
  object-fit: cover;
  object-position: 34% center;
}

.page-section {
  padding-block: 2.9rem;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 1.55rem;
  color: var(--cardinal);
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2::after {
  display: block;
  width: 2.5rem;
  height: 0.18rem;
  margin-top: 0.48rem;
  background: var(--gold);
  content: "";
}

.page-section > p {
  max-width: 45rem;
  margin: 0 0 1rem;
}

.misc-layout {
  display: block;
}

.misc-copy p {
  max-width: 45rem;
  margin: 0 0 1rem;
}

.misc-copy p:last-child {
  margin-bottom: 0;
}

.cat-photo {
  width: 100%;
  margin: 1.75rem 0 0;
}

.cat-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}

.cat-photo figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  text-align: right;
  text-transform: uppercase;
}

.dated-list,
.publication-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dated-list li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.72rem 0;
  border-top: 1px solid #eeeae5;
}

.dated-list li:last-child {
  border-bottom: 1px solid #eeeae5;
}

.dated-list time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.dated-list span {
  font-size: 1rem;
  line-height: 1.55;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.75rem;
}

.topic-list p {
  margin: 0;
  padding-left: 1rem;
  border-left: 0.16rem solid var(--gold);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.4;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-row > a {
  font-size: 0.78rem;
  font-weight: 650;
}

.publication-list {
  border-bottom: 1px solid #eeeae5;
}

.publication-list li {
  position: relative;
  padding: 1.35rem 5rem 1.35rem 0;
  border-top: 1px solid #eeeae5;
}

.publication-extra[hidden] {
  display: none;
}

.publication-list .venue {
  margin: 0 0 0.3rem;
  color: var(--cardinal);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.publication-list h3 {
  max-width: 43rem;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.38;
}

.publication-list li > p:last-of-type {
  max-width: 43rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.publication-list li > p:last-of-type strong {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.18em;
  text-underline-offset: -0.04em;
  text-decoration-skip-ink: none;
}

.paper-link {
  position: absolute;
  top: 1.35rem;
  right: 0;
}

.publication-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem auto 0;
  padding: 0.45rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--cardinal);
  font: 650 0.8rem/1 var(--sans);
  cursor: pointer;
}

.publication-toggle[hidden] {
  display: none;
}

.publication-toggle:hover {
  color: var(--cardinal-dark);
}

.publication-toggle-icon {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1;
}

.publication-extra:not([hidden]) {
  animation: reveal-publication 220ms ease-out both;
}

@keyframes reveal-publication {
  from {
    opacity: 0;
    transform: translateY(-0.35rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.8rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 50rem) {
  html {
    scroll-padding-top: 7.5rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 3.6rem;
    padding-block: 0.75rem;
  }

  .brand {
    gap: 0.7rem;
    font-size: 1.08rem;
  }

  .usc-logo-frame {
    width: 5.75rem;
    height: 3.35rem;
  }

  .usc-logo-frame img {
    width: 8.5rem;
  }

  nav {
    justify-content: flex-start;
    gap: 0.45rem 0.9rem;
  }

  nav a {
    font-size: 0.74rem;
  }

}

@media (max-width: 43rem) {

  .intro {
    padding-block: 3rem;
  }

  .intro-copy {
    display: flex;
    flex-direction: column;
  }

  .portrait {
    order: 99;
    float: none;
    width: 10rem;
    margin: 2.25rem 0 0;
  }

  .portrait img {
    width: 10rem;
    height: 10rem;
  }

  .topic-list {
    grid-template-columns: 1fr;
  }

  .topic-list {
    gap: 1.25rem;
  }

}

@media (max-width: 31rem) {
  html {
    scroll-padding-top: 6.75rem;
  }

  .brand {
    gap: 0.45rem;
    font-size: 0.78rem;
  }

  .usc-logo-frame {
    width: 4.5rem;
    height: 2.8rem;
  }

  .usc-logo-frame img {
    width: 6.65rem;
  }

  nav {
    gap: 0.4rem 0.65rem;
  }

  .container {
    width: min(calc(100% - 1.8rem), var(--width));
  }

  h1 {
    font-size: 2.2rem;
  }

  .dated-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .publication-list li {
    padding-right: 0;
  }

  .paper-link {
    position: static;
    display: inline-block;
    margin-top: 0.55rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 23rem) {
  html {
    scroll-padding-top: 8.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .publication-extra:not([hidden]) {
    animation: none;
  }
}

@media print {
  .site-header,
  footer {
    display: none;
  }

  .publication-extra[hidden] {
    display: list-item;
  }

  .publication-toggle {
    display: none;
  }

  .intro,
  .page-section {
    padding-block: 1.5rem;
  }

  a {
    color: #000;
  }
}
