/* Dark is the default, including when JavaScript is unavailable. */
:root {
  color-scheme: dark;
  --ink: #eef0f4;
  --muted: #a2a9b7;
  --secondary: #b6becb;
  --body-copy: #c3cad5;
  --faint: #8c96a8;
  --line: #2b313d;
  --link-line: #53617d;
  --blue: #8da5ff;
  --paper: #111318;
  --wash: #1c212b;
  --selection-bg: #354473;
  --selection-ink: #f1f4ff;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ink: #202224;
  --muted: #666a73;
  --secondary: #61656d;
  --body-copy: #50545b;
  --faint: #707580;
  --line: #e5e6e8;
  --link-line: #bec1c7;
  --blue: #264eee;
  --paper: #fff;
  --wash: #f7f8fa;
  --selection-bg: #dfe6ff;
  --selection-ink: #1a35bc;
}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;font-size:17px;line-height:1.8;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}a,button{touch-action:manipulation}a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:7px;border-radius:2px}::selection{background:var(--selection-bg);color:var(--selection-ink)}.shell{max-width:1100px;margin:auto;padding:0 42px}.skip{position:absolute;top:-90px;left:20px;background:var(--ink);color:var(--paper);padding:10px;z-index:20}.skip:focus{top:10px}.header{height:122px;display:flex;align-items:center;justify-content:space-between;gap:25px}.wordmark{font-family:Georgia,serif;font-size:31px;line-height:1;font-weight:500;letter-spacing:-1.8px}.wordmark span{color:var(--blue)}nav{display:flex;gap:32px;font-size:14px;line-height:1.5}nav a{position:relative;padding:8px 0;color:var(--muted)}nav a:hover,nav a[aria-current=page]{color:var(--ink)}nav a[aria-current=page]:after{content:"";height:2px;background:var(--blue);position:absolute;bottom:0;left:0;right:0}.hero{display:grid;grid-template-columns:1.35fr 1fr;align-items:center;gap:35px;padding:54px 0 84px}.eyebrow,.section-kicker{font-size:12px;line-height:1.5;letter-spacing:.15em;font-weight:500;text-transform:uppercase;color:var(--muted)}.hero h1{font-family:Georgia,'Times New Roman',serif;font-size:108px;font-weight:400;letter-spacing:-7px;line-height:1.05;margin:18px 0 30px}.hero h1 span{color:var(--blue)}.intro{font-size:28px;line-height:1.55;font-weight:500;letter-spacing:-1.1px;margin:0 0 20px;word-break:keep-all}.intro-detail{max-width:470px;color:var(--secondary);font-size:16px;line-height:1.95;margin:0;word-break:keep-all}.art{margin:0;display:flex;align-items:center;justify-content:center;position:relative}.art img{display:block;width:100%;max-width:370px;aspect-ratio:4/5;object-fit:contain}.section{border-top:1px solid var(--line);padding:34px 0 56px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 27px}.section-head h2{font-family:Georgia,serif;font-size:27px;font-weight:400;line-height:1.35;letter-spacing:-.7px;margin:0}.text-link{font-size:14px;color:var(--muted);border-bottom:1px solid var(--link-line);line-height:1.65}.text-link:hover{color:var(--blue);border-color:var(--blue)}.project-list{display:grid;grid-template-columns:1fr 1fr;gap:44px}.project{display:block;padding:0 0 8px}.project-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:6px}.project h3{font-size:21px;font-weight:500;line-height:1.5;letter-spacing:-.5px;margin:0}.project a h3,.project-link h3{transition:color .18s}.project-link:hover h3{color:var(--blue)}.project p{font-size:16px;line-height:1.8;color:var(--secondary);word-break:keep-all;margin:6px 0 12px;max-width:390px}.meta{font-size:12px;line-height:1.6;color:var(--muted);letter-spacing:.03em}.project-number{font-family:Georgia,serif;font-size:15px;color:var(--faint)}.writing-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 0 21px}.writing-row h3{font-size:20px;line-height:1.6;letter-spacing:-.6px;font-weight:400;margin:0;word-break:keep-all}.status{font-size:12px;color:var(--muted);white-space:nowrap;border:1px solid var(--line);padding:2px 9px;border-radius:20px}.small-note{font-size:14px;color:var(--muted);margin:0;word-break:keep-all}.about{display:grid;grid-template-columns:1fr 2.05fr;gap:44px}.about h2{font-family:Georgia,serif;font-size:27px;font-weight:400;line-height:1.35;margin:0}.about-copy p{font-size:17px;line-height:1.95;word-break:keep-all;margin:0 0 14px;color:var(--body-copy)}.about-copy p:last-child{margin-bottom:0}.footer{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid var(--line);padding:27px 0 40px;font-size:12px;line-height:1.6;color:var(--muted)}.footer a:hover{color:var(--blue)}.page-hero{padding:56px 0 70px}.page-hero h1{font-family:Georgia,serif;font-size:74px;letter-spacing:-3px;line-height:1.1;font-weight:400;margin:20px 0 22px}.page-hero p{font-size:18px;color:var(--secondary);margin:0;word-break:keep-all}.work-detail{display:grid;grid-template-columns:100px 1fr;gap:30px;padding:36px 0 45px;border-top:1px solid var(--line)}.work-detail .work-index{font-family:Georgia,serif;font-size:40px;color:var(--faint);font-weight:400;line-height:1.35}.work-detail h2{font-size:29px;line-height:1.45;font-weight:500;letter-spacing:-.7px;margin:0 0 12px}.work-detail p{font-size:17px;color:var(--secondary);line-height:1.95;max-width:700px;word-break:keep-all;margin:0 0 22px}.work-detail .meta{margin:0 0 20px;font-size:13px;letter-spacing:.04em}.project-action{display:inline-block;color:var(--blue);font-size:15px;border-bottom:1px solid var(--link-line);line-height:1.65}.project-action:hover{border-color:var(--blue)}.work-detail .quiet{font-size:13px;color:var(--faint)}.writing-intro{max-width:680px;margin-bottom:48px}.writing-list{border-top:1px solid var(--line);min-height:265px}.writing-list .writing-row{padding:30px 0 26px;border-bottom:1px solid var(--line)}.writing-list .writing-row h2{font-size:24px;font-weight:400;line-height:1.6;letter-spacing:-.7px;margin:0}.writing-list .small-note{margin-top:27px}.colophon{margin:15px 0 60px;padding:30px 0 0;border-top:1px solid var(--line);max-width:730px}.colophon p{font-size:14px;color:var(--muted);line-height:1.9;margin:0;word-break:keep-all}.header,.hero,.page-hero,.section,.work-detail,.writing-list{animation:appear .5s ease-out both}.hero,.page-hero{animation-delay:.06s}.section{animation-delay:.12s}@keyframes appear{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:1500px){.shell{max-width:1150px}.hero{padding-top:75px;padding-bottom:100px}}



.backed-list{list-style:none;padding:0;margin:0 0 68px;border-top:1px solid var(--line)}.backed-list li{border-bottom:1px solid var(--line)}.backed-list a{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 0}.backed-list h2{margin:0;font-size:24px;line-height:1.5;font-weight:400;letter-spacing:-.6px}.backed-list .company-domain{font-size:14px;color:var(--muted)}.backed-list a:hover h2{color:var(--blue)}
.backed-list .company-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.backed-list .company-tag { display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.5; color: var(--muted); background: var(--wash); white-space: nowrap; }
.backed-list .company-description { max-width: 600px; margin: 6px 0 0; font-size: 15px; line-height: 1.75; color: var(--secondary); }
.backed-list .company-domain { flex-shrink: 0; }

/* Keep the original ink artwork, without a light rectangle in dark mode. */
.art { background: var(--paper); }
.art img { filter: invert(1) hue-rotate(180deg); mix-blend-mode: screen; }
:root[data-theme="light"] .art img { filter: none; mix-blend-mode: normal; }

.header-actions { display: flex; align-items: center; gap: 25px; }
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color .18s, background-color .18s, border-color .18s;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); background: var(--wash); border-color: var(--link-line); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }



/* Comfortable touch targets and mobile browser defaults. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
.shell {
  padding-left: max(42px, env(safe-area-inset-left));
  padding-right: max(42px, env(safe-area-inset-right));
}
.hero-copy, .about-copy, .company-name { min-width: 0; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; }
nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.theme-toggle { width: 44px; height: 44px; }
.theme-toggle:focus-visible { border-radius: 50%; }
.text-link, .project-action {
  display: inline-flex; align-items: center; min-height: 44px; border: 0;
  text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 5px;
}
.text-link:hover, .project-action:hover { text-decoration-color: var(--blue); }

@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  html { scroll-padding-top: 24px; }
  .shell {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
  .header { height: 104px; gap: 20px; }
  .wordmark { font-size: 30px; }
  .header-actions { gap: 18px; }
  nav { gap: 20px; font-size: 14px; }

  /* The decorative artwork gets its own cell, never on top of the name. */
  .hero {
    grid-template-columns: minmax(0, 1fr) clamp(80px, 20vw, 140px);
    align-items: center; gap: 20px 16px; padding: 28px 0 40px;
  }
  .hero-copy { display: contents; }
  .hero h1 {
    grid-column: 1; grid-row: 1;
    font-size: clamp(48px, 14vw, 76px); letter-spacing: -.055em;
    line-height: 1.06; margin: 0;
  }
  .art {
    grid-column: 2; grid-row: 1; position: static;
    width: 100%; height: auto; margin: 0; align-self: center;
    z-index: auto; opacity: 1;
  }
  .art img { width: 100%; max-width: 140px; height: auto; aspect-ratio: auto; }
  .intro {
    grid-column: 1 / -1; grid-row: 2; margin: 0; max-width: 28ch;
    font-size: clamp(22px, 5.7vw, 26px); letter-spacing: -.035em;
    line-height: 1.5; text-wrap: balance; word-break: normal;
  }
  .intro-detail {
    grid-column: 1 / -1; grid-row: 3;
    font-size: 16px; line-height: 1.8; margin: 0; max-width: 40rem;
    word-break: normal;
  }
  .section { padding: 28px 0 40px; }
  .section-head { margin-bottom: 16px; gap: 16px; }
  .section-head h2, .about h2 { font-size: 25px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-copy p { font-size: 16px; line-height: 1.85; margin-bottom: 18px; word-break: normal; }
  .about-copy p:last-child { margin-bottom: 0; }
  .text-link {
    display: inline-flex; align-items: center; min-height: 44px; border: 0;
    text-decoration: underline; text-underline-offset: 5px;
  }
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .project p, .work-detail p { word-break: normal; }
  .page-hero { padding: 32px 0 40px; }
  .page-hero h1 {
    font-size: clamp(44px, 12vw, 62px); letter-spacing: -.05em;
    line-height: 1.1; margin: 14px 0 20px; text-wrap: balance;
  }
  .page-hero p { font-size: 17px; line-height: 1.75; word-break: normal; }
  .work-detail { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 28px 0 36px; }
  .work-detail .work-index { font-size: 24px; }
  .work-detail h2 { font-size: 26px; }
  .project-action { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 600px) {
  .shell {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .header {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    height: auto; min-height: 124px; padding: 18px 0 14px; gap: 10px 16px;
  }
  .header-actions { display: contents; }
  .header nav {
    grid-column: 1 / -1; grid-row: 2; display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  }
  .header nav a { padding: 8px 4px; }
  .header nav a[aria-current=page]:after {
    left: 50%; right: auto; bottom: 1px; width: 20px; transform: translateX(-50%);
  }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .hero { padding-top: 24px; }
  .section-head { margin-bottom: 12px; }
  .writing-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 0; }
  .writing-row h3, .writing-list .writing-row h2 { font-size: 20px; line-height: 1.55; letter-spacing: -.4px; }
  .status { margin: 0; padding: 4px 10px; line-height: 1.5; }
  .writing-list { min-height: 230px; }
  .writing-list .writing-row { padding: 24px 0; }
  .backed-list { margin-bottom: 40px; }
  .backed-list a { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 88px; padding: 20px 0; }
  .backed-list h2 { font-size: 22px; line-height: 1.5; }
  .backed-list .company-domain { font-size: 13px; line-height: 1.7; }
  .footer {
    flex-direction: column; align-items: flex-start; gap: 6px;
    padding: 24px 0 max(30px, env(safe-area-inset-bottom));
  }
  .footer .footer-note { max-width: none; text-align: left; }
}

/* Phones in landscape should not inherit the tall desktop hero. */
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .header { height: 84px; }
  .hero { grid-template-columns: minmax(0, 1fr) 112px; gap: 16px 24px; padding: 20px 0 32px; }
  .hero h1 { font-size: 64px; }
  .art img { max-width: 112px; }
  .intro { max-width: 40ch; }
}


/* Quiet, age-based milestones in About. Shared theme tokens preserve contrast. */
.about-heading .section-kicker { margin: 12px 0 0; }
.milestones-list { margin: 0; min-width: 0; }
.milestone { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; padding-bottom: 22px; }
.milestone:last-child { padding-bottom: 0; }
.milestone dt { margin: 0; padding-top: 2px; font-size: 13px; line-height: 1.9; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.milestone dd { margin: 0; min-width: 0; font-size: 16px; line-height: 1.9; color: var(--body-copy); word-break: normal; }
.milestone strong { font-weight: 600; color: var(--ink); }
@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .milestone { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding-bottom: 20px; }
  .milestone dt { font-size: 12px; padding-top: 3px; }
  .milestone dd { font-size: 16px; line-height: 1.85; }
}


/* A restrained reading column for published theses. */
.thesis-entry { min-height: 64px; }
.thesis-entry:hover h2, .thesis-entry:hover h3 { color: var(--blue); }
.read-label { font-size: 13px; color: var(--blue); white-space: nowrap; }
.thesis-article { max-width: 680px; margin: 0 auto; padding: 48px 0 64px; }
.article-header { margin-bottom: 36px; }
.article-header h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.12; font-weight: 400; letter-spacing: -.04em; margin: 24px 0 20px; text-wrap: balance; word-break: normal; }
.article-byline { margin: 0; font-size: 14px; color: var(--muted); }
.article-body { color: var(--body-copy); font-size: 18px; line-height: 1.95; word-break: normal; }
.article-body p { margin: 0 0 1.4em; }
.article-body p:last-child { color: var(--ink); margin-bottom: 0; }
.article-footer { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 28px; }
@media (max-width: 760px), (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .thesis-article { padding: 24px 0 40px; }
  .article-header { margin-bottom: 28px; }
  .article-header h1 { font-size: clamp(36px, 10vw, 50px); line-height: 1.15; margin: 18px 0 16px; }
  .article-body { font-size: 17px; line-height: 1.85; }
}
