/*
  aug2026.css
  Visual refresh modeled on stanfordlawreview.org:
  - cardinal-red banner with serif site title
  - dark-grey nav bar with uppercase white menu links
  - "Crimson Text" serif for headings and body copy
*/

:root {
  --slr-red: #b33030;
  --slr-red-dark: #8d0707;
  --slr-ink: #1a1a1a;
  --slr-grey-dark: #3d3c38;
  --slr-grey-darker: #252b2c;
  --slr-grey-hover: #4b453e;
  --slr-grey-mid: #737373;
  --slr-grey-border: #d9d9d9;
  --slr-grey-bg: #fafafa;
  --slr-gold: #e89c2e;
  --serif: "Crimson Text", Georgia, "Times New Roman", serif;
  --sans: proxima-nova, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 56px;
}

body {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  color: var(--slr-ink);
  background-color: #fff;
}

a {
  color: var(--slr-red);
  text-decoration: underline;
}

a:hover {
  color: var(--slr-red-dark);
}

img {
  max-width: 100%;
}

/* ---------- Banner ---------- */

.site-banner {
  background-color: var(--slr-red);
  color: #fff;
  text-align: center;
  padding: 40px 40px;
}

.site-banner .site-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 42px;
  line-height: 1;
  margin: 0;
  letter-spacing: 1.2px;
  font-variant: small-caps;
}

.banner-contact {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: #fbe3e3;
  margin: 14px 0 0;
}

.banner-contact img {
  vertical-align: middle;
  margin-right: 2px;
}

.site-banner a {
  color: #fff;
  text-decoration: underline;
}

.site-banner a:hover {
  color: #fbe3e3;
}

@media (max-width: 600px) {
  .site-banner .site-title {
    font-size: 40px;
  }

  .banner-contact {
    font-size: 17px;
  }
}

/* ---------- Nav / menu ---------- */

.site-nav {
  background-color: var(--slr-grey-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 9px 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background-color 150ms ease-in, border-color 150ms ease-in;
}

.site-nav a:hover,
.site-nav li.active a {
  background-color: var(--slr-grey-hover);
  border-bottom-color: var(--slr-gold);
  text-decoration: none;
}

/* ---------- Page content ---------- */

.page-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 45px 25px 70px;
}

.page-content h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 6px;
}

.page-content h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 31px;
  line-height: 1.15;
  color: var(--slr-red);
  border-bottom: 2px solid var(--slr-grey-border);
  padding-bottom: 10px;
  margin: 52px 0 22px;
}

.page-content h4 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  margin: 34px 0 14px;
}

.page-content p,
.page-content li,
.page-content td {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.65;
}

.profile-block {
  margin-bottom: 10px;
}

.profile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 4px;
  margin-top: 20px;
}

.contact-links img {
  vertical-align: middle;
}

.profile-photo {
  flex: none;
}

.profile-photo img {
  display: block;
  height: 240px;
  width: auto;
  border: 1px solid var(--slr-grey-border);
  border-radius: 4px;
  padding: 4px;
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* ---------- Career timeline ---------- */

.timeline {
  width: 400px;
  max-width: 100%;
  margin: 14px 0;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 26px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: -4px;
  width: 2px;
  background: var(--slr-grey-border);
}

.timeline-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--slr-grey-border);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.timeline-icon img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.timeline-content {
  padding-top: 3px;
}

.page-content .timeline-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--slr-ink);
  margin: 0;
}

.page-content .timeline-org {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--slr-grey-mid);
  margin: 0px 0 0;
}

/* ---------- Publications table ---------- */

table {
  border-collapse: collapse;
  width: 100%;
}

table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--slr-grey-border);
  vertical-align: top;
}

table tr:last-child td {
  border-bottom: none;
}

table .year {
  font-weight: 700;
  font-size: 30px;
  border: 0;
  background: #fff;
}

.patent-no {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85em;
  letter-spacing: 0.2px;
}

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

#footer + small,
small {
  color: var(--slr-grey-mid);
  font-family: var(--sans);
}

h5 {
  text-align: right;
  font-family: var(--sans);
  color: var(--slr-grey-mid);
  font-size: 13px;
}
