:root {
  --paper: #f7f7f2;
  --ink: #162d39;
  --muted: #52666b;
  --accent: #176b65;
  --line: #d8dfd9;
  --white: #fff;
  --sans: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif: Georgia,"Times New Roman",serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid #af6844;
  outline-offset: 5px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 10;
}

.skip:focus {
  top: 10px;
}

.wrap {
  width: min(1080px,calc(100% - 80px));
  margin: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 29px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
  margin-right: 8px;
  font-family: var(--serif);
  font-size: 21px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  padding: 77px 0 71px;
}

.eyebrow,.section-kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(55px,6.6vw,82px);
  letter-spacing: -.055em;
  line-height: 1.08;
  font-weight: 400;
  margin: 17px 0 22px;
}

.hero .affiliation {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.hero-copy {
  padding-top: 33px;
}

.hero-copy p {
  font-size: 21px;
  line-height: 1.6;
  letter-spacing: -.025em;
  margin: 0 0 23px;
}

.hero-copy .support {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.topics span {
  border: 1px solid #cdd9d0;
  border-radius: 3px;
  padding: 4px 9px;
  font-size: 11px;
  color: #4a665d;
  background: #f0f3ed;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 25px 0 25px;
  border-top: 1px solid var(--ink);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 7px 0 0;
}

.section-header p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 3px;
}

.research-list {
  display: grid;
  gap: 20px;
}

.project {
  display: grid;
  grid-template-columns: 365px 1fr;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #fcfcf8;
}

.visual {
  margin: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.visual .image-box {
  padding: 26px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 250px;
}

.visual img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 275px;
  object-fit: contain;
}

.visual figcaption {
  font-size: 10px;
  padding: 12px 18px;
  color: var(--muted);
  border-top: 1px solid #eef0ec;
  line-height: 1.5;
}

.project-body {
  padding: 25px 29px 24px;
  min-width: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  align-items: center;
  font-size: 10px;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.status {
  background: #eaf0e9;
  color: #42614f;
  border-radius: 3px;
  padding: 2px 6px;
  letter-spacing: .025em;
}

.status.public {
  background: #e3efeb;
  color: #22685f;
}

.project h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -.035em;
}

.project h3 .subtitle {
  font-size: 17px;
  font-weight: 450;
  letter-spacing: -.02em;
}

.summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 13px 0 14px;
}

.links {
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
  font-size: 12px;
}

.links a {
  font-weight: 600;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.role {
  font-size: 11px;
  color: var(--muted);
  margin: 10px 0 0;
}

.background {
  padding-top: 65px;
  padding-bottom: 65px;
}

.background .section-header {
  padding-bottom: 30px;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.background-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
}

.background-icon {
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  color: var(--accent);
  line-height: 1.3;
}

.background h3 {
  font-size: 15px;
  margin: 0 0 2px;
  font-weight: 600;
}

.background p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.background .date {
  font-size: 11px;
  margin-top: 8px;
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--line);
  padding: 23px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}

footer a {
  text-decoration: none;
}

@media(min-width:1400px) {
  .wrap {
    width: 1080px;
  }
}

@media(max-width:900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 35px;
    padding: 55px 0;
  }
  .hero-copy p {
    font-size: 19px;
  }
  .project {
    grid-template-columns: 290px 1fr;
  }
  .project-body {
    padding: 22px;
  }
  .project h3 {
    font-size: 20px;
  }
  .background-grid {
    gap: 28px;
  }
}

@media(max-width:680px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .header {
    padding: 20px 0;
  }
  .nav {
    gap: 20px;
  }
  .nav a {
    font-size: 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 43px 0 40px;
  }
  .hero h1 {
    font-size: 60px;
    margin: 13px 0 15px;
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero-copy p {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .hero-copy .support {
    font-size: 14px;
  }
  .topics {
    margin-top: 20px;
  }
  .section-header {
    align-items: start;
    gap: 16px;
  }
  .section-header p {
    max-width: 135px;
    font-size: 10px;
    text-align: right;
    margin-top: 15px;
  }
  h2 {
    font-size: 29px;
  }
  .project {
    grid-template-columns: 1fr;
  }
  .visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .visual .image-box {
    min-height: 0;
    padding: 24px 18px;
  }
  .visual img {
    max-height: 230px;
  }
  .visual figcaption {
    padding: 9px 16px;
    font-size: 9px;
  }
  .project-body {
    padding: 23px 22px;
  }
  .project h3 {
    font-size: 22px;
  }
  .project h3 .subtitle {
    font-size: 18px;
  }
  .summary {
    font-size: 14px;
  }
  .background {
    padding: 45px 0;
  }
  .background-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  footer {
    font-size: 10px;
    padding-bottom: 22px;
  }
}

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

@media print {
  .wrap {
    width: 100%;
  }
  .hero {
    padding: 25px 0;
  }
  .project {
    break-inside: avoid;
  }
  .background {
    padding: 25px 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.research-link {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.research-link:hover {
  text-decoration: underline;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.email-link {
  font-size: 13px;
  text-decoration: none;
  font-weight: 550;
}

.email-link:hover {
  text-decoration: underline;
}

footer {
  flex-wrap: wrap;
}

.footer-email {
  overflow-wrap: anywhere;
}

@media(max-width:680px) {
  footer {
    gap: 10px 18px;
  }
  .footer-email {
    order: 3;
    flex-basis: 100%;
  }
}

@media(max-width:380px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}

/* Project cards link to standalone pages without JavaScript. */
.project {
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.project:hover, .project:focus-within {
  border-color: #93b0a5;
  box-shadow: 0 3px 14px #162d3909;
}

.project-title {
  color: inherit;
  text-decoration: none;
}

.project-title::after {
  content: "";
  position: absolute;
  inset: 0;
}

.project-title:focus-visible {
  outline: none;
}

.project-title:focus-visible::after {
  outline: 3px solid #af6844;
  outline-offset: -4px;
}

.project .links a, .project-entry {
  position: relative;
  z-index: 1;
}

.project-entry {
  display: inline-block;
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.project-entry:hover {
  text-decoration: underline;
}

.project-placeholder {
  background: #eef2eb;
  border-right: 1px solid var(--line);
  padding: 27px 29px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--accent);
}

.placeholder-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.placeholder-title {
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
}

.placeholder-number {
  align-self: flex-end;
  font-size: 12px;
  color: var(--muted);
}

.project-upcoming .project-body {
  align-self: center;
}

.hobbies {
  padding-bottom: 65px;
}

.hobby-card {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 620px;
  padding: 10px 0 0;
}

.hobby-mark {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border: 1px solid var(--line);
  background: #eef2eb;
  border-radius: 50%;
  color: var(--accent);
}

.hobby-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hobby-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 4px;
}

.hobby-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Project detail pages. */
.back-link {
  display: inline-block;
  margin-top: 34px;
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.project-hero {
  max-width: 890px;
  padding: 39px 0 36px;
}

.project-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.3vw, 64px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.12;
  margin: 20px 0 12px;
  overflow-wrap: break-word;
}

.project-subtitle {
  font-size: clamp(20px, 2.5vw, 27px);
  letter-spacing: -.025em;
  line-height: 1.35;
  margin: 0 0 25px;
}

.project-intro {
  max-width: 760px;
  font-size: 17px;
  color: var(--muted);
  margin: 20px 0;
}

.project-hero .links {
  font-size: 13px;
  margin-top: 24px;
}

.project-hero .role {
  margin-top: 14px;
}

.project-figure {
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}

.project-figure .image-box {
  padding: 30px;
}

.project-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
}

.project-figure figcaption {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  padding: 12px 20px;
}

.project-content {
  max-width: 780px;
  margin: 43px auto 65px;
}

.project-section + .project-section {
  margin-top: 35px;
}

.project-section h2 {
  font-size: 28px;
}

.project-section p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  margin: 14px 0 0;
}

.placeholder-note {
  padding: 32px;
  background: #eef2eb;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.more-projects {
  border-top: 1px solid var(--ink);
  padding: 28px 0 45px;
}

.more-projects h2 {
  font-size: 25px;
}

.project-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 20px;
  font-size: 13px;
}

.project-nav-links a {
  text-decoration: none;
}

.project-nav-links a:hover {
  text-decoration: underline;
}

.project-nav-links [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px 25px;
  }
  .nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .project-placeholder {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hobbies {
    padding-bottom: 45px;
  }
  .hobby-card {
    gap: 16px;
  }
  .project-hero {
    padding: 30px 0;
  }
  .project-hero h1 {
    font-size: 40px;
  }
  .project-intro {
    font-size: 16px;
  }
  .project-figure .image-box {
    padding: 16px;
  }
  .project-figure figcaption {
    font-size: 10px;
    padding: 10px 14px;
  }
  .project-content {
    margin: 32px auto 45px;
  }
  .project-section h2 {
    font-size: 26px;
  }
  .project-section p {
    font-size: 15px;
  }
  .placeholder-note {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project {
    transition: none;
  }
}

@media print {
  .back-link, .more-projects {
    display: none;
  }
  .project-hero {
    padding-top: 20px;
  }
  .project-section, .project-figure {
    break-inside: avoid;
  }
}

.interest-label {
  margin-bottom: 15px;
}
