:root {
  --ink: #171717;
  --muted: #6a6a6a;
  --line: #e6e6e6;
  --page: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
main { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.intro { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 74px; padding: 112px 0 122px; }
.profile-image { position: relative; width: 160px; height: 160px; margin-bottom: 17px; padding: 0; overflow: hidden; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.profile-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-image-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .2s ease; }
.profile-image:hover .profile-image-hover, .profile-image.is-revealed .profile-image-hover { opacity: 1; }
.profile-image:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.profile-name { color: var(--ink) !important; font-size: 14px !important; font-weight: 600; }
.study-title { margin-top: -3px !important; font-size: 13px !important; }
.education { margin-top: 4px !important; font-size: 12px !important; }
.profile-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: 13px; }
.profile-links a { display: inline-flex; align-items: center; gap: 6px; }
.profile-links svg { width: 14px; height: 14px; fill: currentColor; }
h1 { margin: 0 0 22px; font-size: clamp(34px, 5.2vw, 49px); letter-spacing: .035em; line-height: 1.1; font-weight: 600; }
.intro p { max-width: 430px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.intro-content p + p { margin-top: 18px; }
section#writing { border-top: 1px solid var(--line); padding: 28px 0 132px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.empty-state { max-width: 450px; margin: 25px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.empty-state span { color: var(--ink); font-size: 15px; font-style: italic; font-weight: 600; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 25px 0 31px; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  main { padding: 0 20px; }
  .intro { grid-template-columns: 1fr; gap: 26px; padding: 56px 0 80px; }
  .intro-content { display: contents; }
  .intro h1 { order: -1; margin-bottom: 0; font-size: clamp(27px, 8.5vw, 42px); letter-spacing: 0; }
  .profile-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .profile-image { grid-row: 1 / span 4; width: 128px; height: 128px; margin: 0; }
  .profile-name { margin-top: 4px !important; }
  .study-title { margin-top: -3px !important; }
  .education { margin-top: 2px !important; }
  .profile-links { gap: 0; margin-top: 4px; }
  .profile-links a { min-height: 22px; padding: 0; }
  .intro p { font-size: 15px; }
  section#writing { padding: 24px 0 84px; }
  .empty-state { margin-top: 20px; }
  footer { flex-direction: column; gap: 8px; padding: 22px 0 28px; line-height: 1.5; }
}

@media (hover: none) {
  .profile-image:active .profile-image-hover { opacity: 1; }
}
