:root {
  --background: #fffaf0;
  --text: #20201d;
  --muted: #68645c;
  --link: #6d28d9;
  --link-hover: #3f1d8f;
  --rule: #e8dcc8;
  --photo-bg: #f3eadb;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: "Cascadia Code", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 15px;
  line-height: 1.52;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.page {
  width: min(850px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 12vh, 132px) 0 64px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 64px);
  align-items: start;
}

.profile {
  position: sticky;
  top: 48px;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--photo-bg);
  border: 1px solid var(--rule);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content {
  max-width: 590px;
}

.intro h1 {
  margin: -0.14em 0 2px;
  color: #0d0d0c;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  margin: 0 0 3px;
}

.links a::before {
  content: "[ ";
  color: var(--muted);
}

.links a::after {
  content: " ]";
  color: var(--muted);
}

.role {
  margin: 0 0 20px;
  color: var(--muted);
}

.intro p {
  max-width: 58ch;
}

.section {
  margin-top: 30px;
}

.section h2 {
  margin: 0 0 7px;
  color: #11110f;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
}

.section h2::before {
  content: "[ ";
  font-weight: 400;
}

.section h2::after {
  content: " ]";
  font-weight: 400;
}

.item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item-list li + li {
  margin-top: 8px;
}

.item-list a {
  display: inline;
  font-size: 1.02rem;
}

.item-list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 28px, 560px);
    padding-top: 32px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile {
    position: static;
    max-width: 190px;
  }

  .content {
    max-width: none;
  }

  .intro h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 390px) {
  body {
    font-size: 14px;
  }

  .profile {
    max-width: 160px;
  }

  .links {
    gap: 2px 8px;
  }
}
