/* Two font definitions, both Outfit. */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f7f2;
  --surface: #edf0e9;
  --contact: #e6ece5;
  --text: #25332e;
  --muted: #626c65;
  --accent: #2c6252;
  --accent-hover: #1c473a;
  --on-accent: #ffffff;
  --line: #d9ded4;
  --orbit: #ccd7c9;
  --header: #f7f7f2ed;
  --serif: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* The OS preference remains the fallback, including when JavaScript is disabled. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #151e1c;
    --surface: #1b2622;
    --contact: #21312a;
    --text: #e9ede5;
    --muted: #abb6ad;
    --accent: #a6cbb4;
    --accent-hover: #c1ddcb;
    --on-accent: #15251d;
    --line: #35433b;
    --orbit: #3a4d40;
    --header: #151e1ced;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #151e1c;
  --surface: #1b2622;
  --contact: #21312a;
  --text: #e9ede5;
  --muted: #abb6ad;
  --accent: #a6cbb4;
  --accent-hover: #c1ddcb;
  --on-accent: #15251d;
  --line: #35433b;
  --orbit: #3a4d40;
  --header: #151e1ced;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 220ms ease, color 220ms ease;
}
::selection { background: var(--accent); color: var(--on-accent); }
/* No italics anywhere: Outfit has no italic and synthetic oblique looks poor. */
em, i, cite { font-style: normal; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
button { font: inherit; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; }
h2 { color: var(--accent); }
h2 { font-size: clamp(2.4rem, 4vw, 3.35rem); line-height: 1.13; letter-spacing: -.035em; }
h3 { line-height: 1.35; }
.wrap { width: min(1120px, calc(100% - 112px)); margin-inline: auto; }
.icon { width: 19px; height: 19px; }
.eyebrow, .small-label {
  font-size: 11px;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: .13em;
  line-height: 1.6;
}
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.section-pad { padding-block: 94px; }
.section-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; }
.prose { color: var(--muted); line-height: 1.85; }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose a { color: var(--accent); text-decoration-color: var(--orbit); transition: text-decoration-color 160ms; }
.prose a:hover { text-decoration-color: currentColor; }
.section-intro { margin-top: 24px; max-width: 350px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; color: var(--accent); }
.text-link .icon, .button .icon { transition: transform 180ms ease; }
.text-link:hover .icon { transform: translate(2px, -2px); }
.text-link:hover { text-decoration: underline; }
.small-link { font-size: 13px; }
.small-link .icon { width: 14px; height: 14px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  min-height: 50px;
  padding: 12px 23px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:hover .icon-arrow_right { transform: translateX(3px); }
.button-primary { background: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); }
.button-outline { color: var(--accent); border-color: var(--orbit); }
.button-outline:hover { border-color: var(--accent); background: var(--surface); }
.skip-link { position: fixed; top: 12px; left: 16px; padding: 8px 16px; background: var(--bg); z-index: 100; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* A compact, always-visible navigation; no mobile menu required. */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--header); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; min-height: 86px; gap: 34px; }
.wordmark { text-decoration: none; font-weight: 550; font-size: 15px; letter-spacing: -.02em; margin-right: auto; }
.navigation { display: flex; align-items: center; gap: 31px; }
.navigation a { position: relative; padding-block: 15px; color: var(--muted); font-size: 13px; text-decoration: none; transition: color 160ms ease; }
.navigation a::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 7px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.navigation a:hover, .navigation a[aria-current] { color: var(--accent); }
.navigation a:hover::after, .navigation a[aria-current]::after { transform: scaleX(1); }
.theme-toggle { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 40px; height: 40px; flex-shrink: 0; padding: 9px; background: transparent; color: var(--text); cursor: pointer; transition: background 180ms, transform 180ms; }
.theme-toggle:hover { background: var(--surface); transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun-icon { display: block; }
  :root:not([data-theme="light"]) .moon-icon { display: none; }
}

/* Clip only the decorative orbits as they approach narrow viewport edges. */
.about-section { overflow: clip; }

/* Intro: a little personality, without a stock starfield. */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 86px; padding-block: 83px 78px; }
.hero-eyebrow { font-size: 10px; letter-spacing: .15em; margin-bottom: 25px; }
h1 { font-size: clamp(4.5rem, 8.5vw, 7.4rem); line-height: .99; letter-spacing: -.035em; }
.name-accent { color: var(--accent); }
.hero-intro { max-width: 440px; font-size: 18px; line-height: 1.75; color: var(--muted); margin-top: 27px; }
.affiliation { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-decoration: none; margin-top: 17px; color: var(--accent); }
.affiliation .icon { width: 12px; height: 12px; }
.affiliation:hover { text-decoration: underline; }
.hero-actions { display: flex; align-items: center; gap: 27px; margin-top: 31px; }
.hero-actions .text-link { font-size: 13px; }
.hero-visual { position: relative; width: 100%; max-width: 370px; justify-self: center; margin-top: 6px; }
.portrait { position: relative; z-index: 1; }
.portrait > img { width: 100%; height: 440px; object-fit: cover; object-position: center 52%; border-radius: 180px 180px 5px 5px; }
.orbital-decoration { position: absolute; inset: -29px -34px 50px; border: 1px solid var(--orbit); border-radius: 50%; transform: rotate(24deg); }
.orbital-decoration span { position: absolute; inset: 20px -20px; border: 1px solid var(--orbit); border-radius: 50%; }
.orbital-decoration span + span { inset: 44px -35px; }
.interest-strip { display: flex; justify-content: flex-start; align-items: center; gap: 24px; padding-block: 23px; border-block: 1px solid var(--line); }
.interest-strip ul { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; list-style: none; padding: 0; margin: 0; }
.interest-strip li { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text); }
.interest-strip li::before { content: "+"; color: var(--accent); font-size: 15px; font-weight: 400; }
.about-details { padding-block: 85px 92px; }
.about-details { grid-template-columns: max-content 1fr; gap: 80px; }
.about-prose { font-size: 15px; max-width: 620px; }

/* Research images are real figures from Hannah's work. */
.research-section { background: var(--surface); border-block: 1px solid var(--line); }
.section-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 27px; }
.research-intro { max-width: 450px; margin-bottom: 47px; font-size: 15px; }
.research-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.research-card { min-width: 0; display: flex; flex-direction: column; }
.research-image { position: relative; display: block; aspect-ratio: 1.7; background: #0a100e; overflow: hidden; border-radius: 5px; isolation: isolate; cursor: zoom-in; }
.research-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; transition: transform 500ms cubic-bezier(.2,.7,.3,1); }
.research-card:first-child .research-image img { object-fit: contain; }
.research-image:hover img { transform: scale(1.035); }
.image-caption { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 20px 15px; color: #fff; font-size: 10px; letter-spacing: .035em; background: linear-gradient(transparent, #000b); }
.image-caption .icon { width: 15px; height: 15px; }
.research-card-body { display: flex; flex-direction: column; flex: 1; padding-top: 25px; }
.project-kicker { font-size: 9px; letter-spacing: .11em; gap: 12px; margin-bottom: 12px; }
.research-card h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -.025em; }
.research-card .prose { margin-top: 13px; font-size: 14px; line-height: 1.85; }
.project-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 23px; padding-top: 24px; margin-top: auto; }
.project-links .small-link { font-size: 12px; gap: 7px; }
.current-project { margin-top: 52px; padding: 32px 37px; border: 1px solid var(--orbit); border-radius: 5px; }
.current-copy .eyebrow { font-size: 9px; margin-bottom: 9px; }
.current-copy h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.current-copy .prose { font-size: 13px; margin-block: 9px 12px; max-width: 780px; }
.current-copy .small-link { font-size: 12px; }

/* Research figures expand in a modal lightbox, created by site.js. Without
   JavaScript the same link opens the full-size image directly. */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(1100px, 93vw);
  max-height: 88vh;
  overflow: visible;
  color: #fff;
}
.lightbox[open] { animation: lightbox-in 240ms ease both; }
.lightbox[open]::backdrop { animation: backdrop-in 240ms ease both; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } }
@keyframes backdrop-in { from { opacity: 0; } }
.lightbox::backdrop { background: #06100cd9; backdrop-filter: blur(6px); }
.lightbox img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1100px, 93vw);
  max-height: 78vh;
  margin-inline: auto;
  border-radius: 6px;
  box-shadow: 0 24px 70px #00000059;
}
.lightbox-caption { margin-top: 15px; text-align: center; font-size: 12px; letter-spacing: .04em; color: #e9ede5cc; }
.lightbox-caption[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  background: #0b1512e6;
  color: #fff;
  cursor: pointer;
}
.lightbox-close:hover { background: #0b1512; border-color: #ffffff80; }
.lightbox-close svg { width: 20px; height: 20px; }
body.lightbox-open { overflow: hidden; }

/* A simple typographic timeline, editable as ordinary Markdown. */
.cv-section { padding-block: 100px; }
.cv-section .button { margin-top: 30px; }
.cv-section .section-grid { grid-template-columns: max-content 1fr; gap: 80px; }
.download-note { font-size: 10px; color: var(--muted); margin-top: 10px; letter-spacing: .03em; }
.education { position: relative; padding-left: 30px; border-left: 1px solid var(--line); font-size: 14px; }
.education h3 { position: relative; font-size: 17px; font-weight: 500; color: var(--text); margin-bottom: 8px; letter-spacing: -.02em; }
.education h3::before { content: ""; position: absolute; top: 7px; left: -35px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--accent); background: var(--bg); }
.education h3:first-child::before { background: var(--accent); }
.education h3:not(:first-child) { margin-top: 33px; padding-top: 28px; border-top: 1px solid var(--line); }
.education h3:not(:first-child)::before { top: 35px; }
.education h3 + p { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.education h3 + p strong { color: var(--accent); }
.education p + p { margin-top: 6px; }
.education p:has(+ h3), .education p:last-child { font-size: 13px; }

.contact-section { background: var(--contact); border-block: 1px solid var(--line); padding-block: 75px 80px; }
.contact-grid { align-items: center; }
.contact-section .section-intro { font-size: 14px; max-width: 360px; margin-top: 20px; }
.email-link { display: inline-flex; align-items: center; gap: 15px; margin-top: 27px; padding-bottom: 7px; border-bottom: 1px solid var(--accent); text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -.025em; color: var(--accent); transition: gap 180ms ease; }
.email-link:hover { gap: 21px; }
.email-link .icon { width: 17px; height: 17px; }
.contact-details { padding-left: 45px; border-left: 1px solid var(--orbit); }
.contact-details h3 { margin-bottom: 17px; font-size: 10px; }
address { font-size: 14px; line-height: 1.9; font-style: normal; color: var(--muted); }
.social-links { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 27px; }
.social-link { gap: 9px; }
.social-link .icon { width: 18px; height: 18px; transition: none; }
.social-link:hover .icon { transform: none; }
.site-footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 10px; }
.footer-name { display: flex; align-items: center; }
.site-footer .small-link { font-size: 10px; }

/* Progressive animation: all content is visible if JS or the observer fails. */
@keyframes arrive {
  from { opacity: .25; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: arrive 650ms ease both; }
  .hero-visual { animation: arrive 850ms ease both; }
  .revealed { animation: arrive 650ms ease both; }
}

@media (min-width: 1500px) {
  .hero { padding-block: 104px 96px; }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 72px); }
  .hero { gap: 55px; }
  .hero-visual { max-width: 310px; }
  .portrait > img { height: 380px; }
  .section-grid { gap: 55px; }
  .hero-actions { gap: 18px; }
  .hero-actions .button { gap: 15px; padding-inline: 18px; }
  .interest-strip { flex-wrap: wrap; gap: 8px; }
  .contact-details { padding-left: 30px; }
  .research-card h3 { font-size: 25px; }
}
@media (max-width: 800px) {
  .header-inner { gap: 24px; }
  .navigation { gap: 23px; }
  .hero { gap: 45px; padding-block: 64px; }
  h1 { font-size: 82px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .portrait > img { height: 365px; }
  .orbital-decoration { inset-inline: -18px; }
  .orbital-decoration span { inset-inline: -10px; }
  .orbital-decoration span + span { inset-inline: -18px; }
  .section-grid { gap: 35px; }
  .research-grid { gap: 26px; }
  .current-project { padding: 26px; }
  .email-link { font-size: 15px; gap: 8px; }
  .contact-details { padding-left: 24px; }
  .social-links { gap: 16px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 125px; }
  .wrap { width: calc(100% - 44px); }
  .header-inner { flex-wrap: wrap; min-height: 0; gap: 0; padding-top: 14px; }
  .wordmark { font-size: 14px; }
  .theme-toggle { width: 36px; height: 36px; padding: 7px; }
  .navigation { width: 100%; order: 3; justify-content: space-between; gap: 24px; margin-top: 5px; }
  .navigation a { padding-block: 11px 15px; font-size: 12px; }
  .navigation a::after { bottom: 8px; }
  .hero { grid-template-columns: 1fr; gap: 53px; padding-block: 47px 42px; }
  .hero-eyebrow { margin-bottom: 20px; font-size: 9px; }
  h1 { font-size: clamp(4.5rem, 15vw, 6rem); }
  .hero-intro { margin-top: 23px; font-size: 17px; max-width: 450px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 22px; margin-top: 27px; }
  .hero-actions .button { font-size: 12px; padding-inline: 18px; }
  .hero-actions .text-link { font-size: 12px; gap: 7px; }
  .hero-visual { width: 76%; max-width: 320px; margin-top: 4px; }
  .portrait > img { height: auto; aspect-ratio: .83; }
  .orbital-decoration { inset-block: -20px 50px; transform: rotate(12deg); }
  .interest-strip { padding-block: 20px; }
  .interest-strip ul { column-gap: 17px; row-gap: 4px; }
  .interest-strip li { font-size: 10px; gap: 7px; }
  .interest-strip li::before { font-size: 13px; }
  .section-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-pad, .about-details { padding-block: 62px; }
  .eyebrow { font-size: 10px; }
  h2 { font-size: 42px; }
  .about-prose { font-size: 14px; }
  .section-topline { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 25px; }
  .section-topline .small-link { font-size: 11px; }
  .research-intro { margin-bottom: 31px; font-size: 14px; }
  .research-grid { grid-template-columns: 1fr; gap: 42px; }
  .research-image { aspect-ratio: 1.65; }
  .research-card-body { padding-top: 20px; }
  .research-card h3 { font-size: 27px; }
  .project-links { padding-top: 19px; }
  .current-project { margin-top: 39px; padding: 25px 21px; }
  .current-copy h3 { font-size: 18px; }
  .current-copy .small-link { font-size: 11px; }
  .section-intro { font-size: 14px; }
  .cv-section .section-grid { grid-template-columns: 1fr; gap: 41px; }
  .education { margin-left: 5px; padding-left: 25px; }
  .education h3::before { left: -30px; }
  .education h3 { font-size: 16px; }
  .contact-grid { gap: 35px; }
  .email-link { font-size: clamp(14px, 4.2vw, 19px); gap: 14px; }
  .contact-details { padding: 29px 0 0; border-left: 0; border-top: 1px solid var(--orbit); }
  .social-links { gap: 28px; }
  .site-footer { flex-wrap: wrap; gap: 14px; padding-block: 26px; }
  .footer-affiliation { display: none; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 36px); }
  .hero-actions { gap: 15px; }
  .hero-actions .button { gap: 10px; padding-inline: 12px; }
  .hero-actions .text-link { gap: 5px; }
  .hero-actions .text-link .icon { width: 14px; }
  h2 { font-size: 37px; }
  .interest-strip ul { column-gap: 12px; }
  .interest-strip li { font-size: 9px; }
  .project-links { column-gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root, :root[data-theme], :root:not([data-theme]) { --bg: #fff; --surface: #fff; --contact: #fff; --text: #111; --muted: #333; --accent: #174936; --line: #ddd; --orbit: #ddd; color-scheme: light; }
  body { font-size: 11pt; }
  .site-header, .hero-visual, .hero-actions, .interest-strip, .site-footer, .download-note { display: none; }
  .wrap { width: 100%; }
  .hero, .section-grid { display: block; }
  .hero, .section-pad, .about-details { padding-block: 20px; }
  h1 { font-size: 48pt; }
  h2 { font-size: 25pt; margin-bottom: 15px; }
  .research-card { break-inside: avoid; }
  .research-image { max-height: 180px; }
  .education { margin-top: 25px; }
  .contact-details { border: 0; padding: 20px 0 0; }
  a { text-decoration: underline; }
}
