:root {
  --paper:#fafbfc;
  --ink:#202630;
  --muted:#657080;
  --green:#4364ce;
  --line:#e1e5ed;
  --soft:#f0f3fa;
  font-family:'DM Sans',sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:40px;
}
body {
  margin:0;
  -webkit-font-smoothing:antialiased;
}
a {
  color:inherit;
  text-decoration:none;
}
a:focus-visible {
  outline:2px solid var(--green);
  outline-offset:6px;
}
a:hover {
  color:var(--green);
}
.page {
  max-width:1136px;
  padding:0 48px;
  margin:auto;
}
header {
  height:124px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.wordmark {
  font-family:'DM Sans',sans-serif;
  font-size:34px;
  letter-spacing:-1px;
}
.wordmark span {
  color:var(--green);
}
nav {
  display:flex;
  gap:32px;
  font-size:13px;
}
nav a {
  padding:10px 0;
}
nav a:last-child {
  color:var(--green);
}
.hero {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:75px;
  align-items:center;
  padding:75px 0 100px;
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px;
  letter-spacing:1.7px;
  text-transform:uppercase;
  font-weight:600;
  color:var(--muted);
  margin:0 0 28px;
}
.status-dot,.small-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#6482d9;
  display:inline-block;
  flex-shrink:0;
}
h1,h3,.contact h2 {
  font-family:'DM Sans',sans-serif;
  font-weight:400;
  letter-spacing:-1.5px;
}
h1 {
  font-size:88px;
  line-height:.99;
  margin:0 0 28px;
}
em {
  font-weight:400;
  color:var(--green);
}
.intro {
  font-size:18px;
  line-height:1.65;
  margin:0 0 17px;
}
.bio {
  font-size:14px;
  line-height:1.9;
  color:var(--muted);
  max-width:390px;
  margin:0 0 27px;
}
.text-link {
  font-size:12px;
  display:inline-flex;
  gap:24px;
  align-items:center;
  border-bottom:1px solid #bac4b6;
  padding-bottom:7px;
}
.portrait {
  margin:0;
  transform:none;
}
.photo-frame {
  background:#edf0f5;
  padding:0;
  overflow:hidden;
  box-shadow:0 20px 50px #2026300a;
  border-radius:24px;
}
.portrait img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1/1.12;
  object-fit:cover;
  object-position:center;
  filter:saturate(.85);
  border-radius:1px;
}
.portrait figcaption {
  font-family:'DM Sans',sans-serif;
  font-style:normal;
  color:var(--muted);
  font-size:17px;
  text-align:center;
  margin:17px 0 0;
}
.section {
  border-top:1px solid var(--line);
  padding:62px 0 67px;
  display:grid;
  grid-template-columns:250px 1fr;
  gap:50px;
}
.section-label {
  display:flex;
  gap:14px;
  align-items:baseline;
  padding-top:8px;
}
.tiny-number {
  font-size:10px;
  color:#959c8e;
  font-variant-numeric:tabular-nums;
}
h2 {
  font-weight:500;
  font-size:12px;
  margin:0;
}
.section-content h3 {
  font-size:42px;
  line-height:1.12;
  margin:0 0 26px;
  letter-spacing:-.6px;
}
.muted-serif {
  color:#778296;
}
.section-content>p {
  font-size:14px;
  line-height:1.95;
  color:#596576;
  max-width:620px;
  margin:0 0 16px;
}
.background {
  display:grid;
  grid-template-columns:1fr 1fr 1.3fr;
  gap:20px;
  margin-top:32px;
  padding-top:25px;
  border-top:1px solid var(--line);
}
.background>div {
  display:flex;
  flex-direction:column;
  gap:8px;
}
.background-name {
  font-size:14px;
  font-weight:500;
}
.background>div>span:last-child {
  font-size:10px;
  color:var(--muted);
  line-height:1.6;
}
.hobbies {
  list-style:none;
  padding:0;
  margin:30px 0 0;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.hobbies li {
  display:flex;
  flex-direction:column;
  gap:14px;
  font-size:12px;
  text-align:center;
}
.hobby-art {
  display:grid;
  place-items:center;
  background:var(--soft);
  height:112px;
  border-radius:2px;
}
.hobby-art svg {
  width:48px;
  height:48px;
  stroke:#667cba;
  stroke-width:1.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  fill:none;
}
.hobby-art .filled {
  fill:#667cba;
  stroke:none;
}
.project-note {
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:24px;
  font-size:11px;
  color:var(--muted);
}
.contact {
  text-align:center;
  padding:68px 0 76px;
  border-top:1px solid var(--line);
}
.contact .eyebrow {
  justify-content:center;
  margin-bottom:20px;
}
.contact h2 {
  font-size:60px;
  letter-spacing:-1px;
  margin-bottom:20px;
}
.contact>p:not(.eyebrow) {
  font-size:14px;
  line-height:1.8;
  color:var(--muted);
}
.contact-link {
  display:inline-flex;
  gap:28px;
  align-items:center;
  background:var(--green);
  color:#fff;
  padding:15px 23px;
  border-radius:3px;
  font-size:12px;
  margin-top:18px;
  transition:background .2s;
}
.contact-link:hover {
  background:#314fae;
  color:#fff;
}
footer {
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:27px 0 34px;
  font-size:10px;
  color:var(--muted);
}
.skip-link {
  position:absolute;
  left:20px;
  top:-100px;
  padding:12px;
  background:var(--ink);
  color:white;
  z-index:5;
}
.skip-link:focus {
  top:10px;
}
@media(min-width:1400px) {
  .hero {
    padding-top:100px;
    padding-bottom:120px;
  }
}
@media(max-width:800px) {
  .page {
    padding:0 28px;
  }
  header {
    height:96px;
  }
  .hero {
    gap:35px;
    padding:45px 0 65px;
  }
  h1 {
    font-size:70px;
  }
  .intro {
    font-size:16px;
  }
  .section {
    grid-template-columns:160px 1fr;
    gap:25px;
  }
  .section-content h3 {
    font-size:36px;
  }
  .hobby-art {
    height:90px;
  }
  .desktop-break {
    display:none;
  }
}
@media(max-width:600px) {
  .page {
    padding:0 24px;
  }
  header {
    height:90px;
  }
  .wordmark {
    font-size:30px;
  }
  nav {
    gap:17px;
    font-size:11px;
  }
  nav a:nth-child(2) {
    display:none;
  }
  .hero {
    grid-template-columns:1fr;
    gap:40px;
    padding:35px 0 55px;
  }
  .hero-copy {
    max-width:420px;
  }
  h1 {
    font-size:76px;
  }
  .eyebrow {
    font-size:9px;
    margin-bottom:24px;
  }
  .intro {
    font-size:18px;
  }
  .bio {
    font-size:14px;
  }
  .portrait {
    width:80%;
    max-width:330px;
    justify-self:center;
  }
  .portrait img {
    aspect-ratio:1/1;
  }
  .section {
    display:block;
    padding:35px 0 42px;
  }
  .section-label {
    margin-bottom:26px;
    padding:0;
  }
  .section-content h3 {
    font-size:37px;
  }
  .background {
    gap:14px;
  }
  .background>div>span:last-child {
    font-size:10px;
  }
  .hobbies {
    gap:8px;
  }
  .hobby-art {
    height:85px;
  }
  .hobby-art svg {
    width:40px;
  }
  .contact {
    padding:45px 0 50px;
  }
  .contact h2 {
    font-size:48px;
  }
  footer {
    font-size:9px;
    gap:12px;
  }
  footer>span:nth-child(2) {
    display:none;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  * {
    transition:none!important;
  }
}

/* Contemporary personal homepage details. */
.wordmark { font-size:23px; font-weight:650; letter-spacing:-.9px; }
header { border-bottom:1px solid var(--line); height:100px; }
nav { gap:8px; }
nav a { padding:9px 14px; border-radius:30px; transition:background .2s; }
nav a:hover { background:var(--soft); }
nav a:last-child { border:1px solid var(--line); }
h1 { font-size:76px; font-weight:600; letter-spacing:-4.5px; line-height:1.06; }
em { font-style:normal; font-weight:inherit; }
.hero { grid-template-columns:1.35fr 1fr; gap:70px; }
.eyebrow { letter-spacing:.9px; }
.status-dot { box-shadow:0 0 0 4px #6482d915; }
.portrait figcaption { display:flex; justify-content:space-between; font-size:11px; font-weight:500; text-align:left; margin:15px 2px 0; }
.portrait figcaption span { font-weight:400; }
.text-link { border-color:#c8d2ee; }
.section-content h3 { font-size:34px; font-weight:500; letter-spacing:-1.2px; line-height:1.2; }
.background { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 28px; }
.background>div { border-left:2px solid #dce3f5; padding-left:13px; }
.background>div>span:last-child { font-size:11px; }
.hobby-art { border-radius:16px; border:1px solid #e7ebf3; }
.tiny-number { color:#72809a; }
.project-note { background:var(--soft); padding:13px 16px; border-radius:10px; width:fit-content; }
.contact h2 { font-size:46px; font-weight:500; letter-spacing:-2px; }
.contact-link { border-radius:30px; }
@media(max-width:800px) {
  .hero { gap:35px; }
  h1 { font-size:62px; letter-spacing:-3.5px; }
  .intro { font-size:16px; }
}
@media(max-width:600px) {
  header { height:85px; }
  .wordmark { font-size:22px; }
  nav { gap:4px; }
  nav a { padding:8px 10px; }
  .hero { grid-template-columns:1fr; gap:35px; }
  h1 { font-size:64px; }
  .portrait { width:100%; max-width:360px; }
  .section-content h3 { font-size:30px; }
  .contact h2 { font-size:38px; }
}

.section-content > .education-note {
  font-size:13px;
  margin:26px 0 0;
}
.project-list { margin:26px 0; }
.project-item { padding:23px 0; border-top:1px solid var(--line); }
.project-item:last-child { border-bottom:1px solid var(--line); }
.project-type { font-size:10px; color:var(--green); letter-spacing:.5px; margin:0 0 10px; }
.project-item h4 { font-size:17px; font-weight:500; letter-spacing:-.3px; margin:0 0 10px; }
.project-item > p:last-child { color:#596576; font-size:13px; line-height:1.85; margin:0; }

/* This editor is exposed only by the local development server. */
.editing { padding-top:90px; }
.editor-bar {
  position:fixed; top:0; left:0; right:0; z-index:20;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:15px 28px; background:#202630; color:white;
  box-shadow:0 3px 15px #20263018; font-size:12px;
}
.editor-bar strong { display:block; font-size:14px; margin-bottom:5px; }
#editor-status { color:#d3d9e5; }
.editor-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.editor-actions button, .editor-actions a {
  font:inherit; padding:10px 13px; border-radius:7px; cursor:pointer;
  border:1px solid #687285; color:white; background:transparent;
}
.editor-actions #editor-save { background:#4364ce; border-color:#4364ce; }
.editor-actions button:disabled { opacity:.45; cursor:default; }
.editor-actions button:focus-visible { outline:2px solid white; outline-offset:3px; }
.editing [contenteditable] { outline:1px dashed #4364ce55; outline-offset:4px; border-radius:2px; cursor:text; }
.editing [contenteditable]:hover { background:#4364ce0b; }
.editing [contenteditable]:focus { outline:2px solid #4364ce; background:#fff; }
@media(max-width:600px) {
  .editing { padding-top:140px; }
  .editor-bar { flex-direction:column; align-items:flex-start; padding:13px 18px; gap:12px; }
  .editor-actions { gap:8px; }
  .editor-actions button, .editor-actions a { padding:8px 10px; }
}
.penn-background { grid-column:1 / -1; }
.penn-roles { padding-left:16px; margin:6px 0 0; font-size:12px; line-height:1.9; color:var(--muted); }
.hobbies { grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px 16px; }
.hobbies .hobby-notes { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.hobbies .hobby-notes li, .hobby-detail { font-size:11px; line-height:1.65; color:var(--muted); margin:0; display:block; }
.thesis-link { display:inline-block; margin-top:16px; font-size:12px; color:var(--green); border-bottom:1px solid #c8d2ee; padding-bottom:4px; }
.chat-launcher { position:fixed; bottom:20px; right:20px; border:1px solid var(--line); background:var(--ink); color:white; padding:14px 19px; border-radius:30px; font:500 12px 'DM Sans',sans-serif; cursor:pointer; box-shadow:0 4px 18px #20263020; }
.chat-launcher span { margin-left:16px; }
#oliver-chat { width:min(440px,calc(100vw - 32px)); padding:28px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink); }
#oliver-chat::backdrop { background:#20263055; }
.chat-heading { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.chat-heading .eyebrow { font-size:9px; margin-bottom:12px; }
#chat-title { font-size:24px; letter-spacing:-.7px; }
#chat-close { background:transparent; border:0; font-size:25px; cursor:pointer; color:var(--muted); }
#oliver-chat p { font-size:13px; line-height:1.8; color:var(--muted); }
.chat-pending { background:var(--soft); border-radius:12px; padding:20px; margin-top:24px; }
.chat-pending strong { font-size:14px; }
.chat-pending p { margin-bottom:0; }
button:focus-visible { outline:2px solid var(--green); outline-offset:4px; }
@media(max-width:600px) { .hobbies { grid-template-columns:repeat(2,minmax(0,1fr)); } .hobbies > li:nth-child(2) { grid-row:auto; } footer { padding-bottom:90px; } }

/* A closer portrait crop, preserving the original photograph. */
.photo-frame { aspect-ratio:4/5; }
.portrait img { height:100%; aspect-ratio:auto; object-position:50% 28%; transform:scale(1.7); transform-origin:50% 24%; filter:none; }

.intro [data-copy="text-05"] { display:block; margin-bottom:8px; }
.intro .desktop-break { display:none; }

.ai-badge { display:inline-block; vertical-align:middle; margin-left:12px; font-size:10px; line-height:1; letter-spacing:.5px; padding:7px 9px; border-radius:7px; color:var(--green); background:var(--soft); }
.twin-card { border:1px solid var(--line); border-radius:18px; background:white; padding:22px; margin-top:24px; }
.chat-suggestions { display:flex; flex-wrap:wrap; gap:8px; }
.chat-suggestions button, .chat-controls button { font:inherit; font-size:12px; cursor:pointer; border:1px solid var(--line); border-radius:10px; padding:10px 13px; background:var(--soft); color:var(--ink); text-align:left; }
#chat-messages { max-height:400px; overflow-y:auto; overscroll-behavior:contain; }
.chat-message { padding:16px; margin-top:14px; border-radius:12px; background:var(--soft); overflow-wrap:anywhere; }
.chat-message-user { background:#f4f5f7; margin-left:28px; }
.chat-message strong { font-size:10px; font-weight:600; }
.chat-message p { font-size:14px; line-height:1.75; margin:6px 0 0; white-space:pre-wrap; }
#chat-form { margin-top:24px; }
#chat-form label { display:block; font-size:11px; margin-bottom:8px; }
#chat-question { width:100%; box-sizing:border-box; resize:vertical; min-height:84px; font:inherit; font-size:16px; line-height:1.6; padding:13px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:10px; }
.chat-controls { display:flex; justify-content:space-between; gap:10px; margin-top:10px; }
#chat-send { background:var(--ink); color:white; }
#chat-reset { background:transparent; }
.twin-card button:disabled { opacity:.5; cursor:wait; }
#chat-status { font-size:12px; line-height:1.6; color:var(--muted); margin:12px 0 0; }
.section-content > .chat-disclosure, .section-content > .chat-sources { font-size:11px; line-height:1.7; margin-top:14px; }
.chat-sources a { text-decoration:underline; text-underline-offset:3px; }
@media(max-width:600px) { .twin-card { padding:16px; } .chat-suggestions button { width:100%; } }
