:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #30302e;
  --muted: #73736d;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--serif); -webkit-font-smoothing: antialiased; }
main { width: min(100%, 628px); margin: 0 auto; padding: 64px 26px 44px; }
.intro-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
h1 { margin: 0; font-size: 25px; line-height: 1.25; font-weight: 400; letter-spacing: -.6px; }
h2 { margin: 0 0 9px; font-size: 16px; line-height: 1.4; font-weight: 600; }
p { margin: 0 0 20px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-decoration-color: #b1b1aa; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
button:focus-visible, a:focus-visible { outline: 2px solid #5c6748; outline-offset: 4px; }
.portrait { display: block; flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.highlight { display: inline; border: 0; border-bottom: 1px dotted #92968b; padding: 0; background: transparent; line-height: inherit; }
.highlight:hover, .highlight[aria-expanded=true] { border-bottom-style: solid; color: #46533a; }
.experience, .hobbies { margin-top: 29px; }
.experience p, .hobbies p { margin-bottom: 16px; }
.invitation { margin: 29px 0 0; }
.contact { display: flex; flex-wrap: wrap; gap: 14px 23px; margin-top: 23px; font-size: 14px; }
.contact a { display: inline-flex; align-items: center; gap: 7px; }
.contact img { flex: none; width: 18px; height: 18px; object-fit: contain; }
.contact .cal-logo { width: 43px; height: 18px; }
#detail-card { position: fixed; inset: auto; margin: 0; padding: 0; width: 320px; max-width: calc(100vw - 28px); max-height: calc(100dvh - 32px); overflow: auto; background: white; color: var(--ink); border: 1px solid #deded8; border-radius: 3px; box-shadow: 0 5px 22px #0000000d; z-index: 10; }
#detail-card::backdrop { background: transparent; pointer-events: none; }
.card-body { padding: 21px; }
.card-body h3 { font-size: 21px; line-height: 1.25; font-weight: 400; letter-spacing: -.35px; margin: 4px 0 12px; padding-right: 14px; }
.card-body p { font-size: 14px; line-height: 1.6; margin: 0 0 13px; }
.card-body p:last-child { margin-bottom: 0; }
.card-body a { display: inline-block; font-size: 13px; margin-top: 3px; }
.eyebrow, .card-note { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.eyebrow { margin-bottom: 8px; }
.close-detail { position: absolute; top: 7px; right: 7px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid #ddd; background: #ffffffed; font: 21px/1 var(--serif); }
.card-image { display: block; width: 100%; height: 200px; object-fit: cover; }
.whitebox-group { height: auto; object-fit: contain; }
.hobby-large { height: auto; aspect-ratio: 1; object-fit: contain; }
.lab-photo { height: 235px; object-position: center 57%; }
.context-photo { margin: 0; }
.context-photo figcaption { padding: 10px 21px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.context-photo + .card-body { padding-top: 15px; }
@media (max-width: 600px) {
  main { padding: 33px 23px 32px; }
  .intro-heading { margin-bottom: 25px; }
  h1 { font-size: 24px; }
  .portrait { width: 104px; height: 104px; }
  .close-detail { width: 34px; height: 34px; }
  #detail-card { max-height: calc(100dvh - 40px); }
}
