@charset "UTF-8";
:root {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fbfaf7;
  color: #20202a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

main, .head-inner, .site-foot {
  width: min(42rem, 100% - 3rem);
  margin-inline: auto;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.small {
  font-size: 0.85rem;
}

.kicker {
  margin: 2.4rem 0 0.4rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #6d4aff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-head {
  border-bottom: 1px solid #e3e1da;
  background: #fbfaf7;
}

.head-inner {
  padding-block: 1.6rem 0;
}

.masthead {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
}
.masthead a {
  color: #20202a;
  text-decoration: none;
}
.masthead a:hover {
  color: #6d4aff;
}
.masthead .dot {
  color: #6d4aff;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0.6rem 0 0.9rem;
  border-top: 1px solid #e3e1da;
}
nav ul a {
  text-decoration: none;
  color: #6d6d78;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}
nav ul a:hover {
  color: #6d4aff;
}

.story {
  border-left: 3px solid #6d4aff;
  padding-left: 1rem;
  color: #20202a;
  font-size: 1rem;
}

.hero {
  padding-block: 3.2rem 0.5rem;
}
.hero .kicker {
  margin-top: 0;
}

.hero-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0.4rem 0 1.2rem;
}
.hero-title .dim {
  color: #6d6d78;
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 36rem;
}

.hero-meta {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #6d6d78;
  font-size: 0.82rem;
  border-left: 3px solid #6d4aff;
  padding-left: 0.8rem;
}

.hero-photo {
  position: relative;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  padding-inline: calc(50vw - min(42rem, 100% - 3rem)/2);
}
.hero-photo .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}
.hero-photo .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(251, 250, 247, 0.1), rgba(251, 250, 247, 0.42) 55%, #fbfaf7 96%);
}
.hero-photo > *:not(.hero-img):not(.hero-scrim) {
  position: relative;
  z-index: 2;
}

.hero-photo .hero-title .dim {
  text-shadow: 0 1px 3px rgba(251, 250, 247, 0.95), 0 0 16px rgba(251, 250, 247, 0.75);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-block: 2.5rem;
}

.stat {
  background: #f2f0ea;
  border: 1px solid #e3e1da;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.stat .stat-num {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
  color: #6d4aff;
}
.stat .stat-num .plus {
  color: #6d6d78;
  font-size: 1.6rem;
}
.stat .stat-label {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #6d6d78;
}
.stat .stat-label .sub {
  color: #6d6d78;
  opacity: 0.8;
}

h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0.2rem 0 0.4rem;
}

.lede {
  color: #6d6d78;
  font-size: 1.08rem;
  margin-top: 0.2rem;
}

h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  margin: 2.2rem 0 0.45rem;
}

h3 {
  font-size: 1rem;
  margin: 1.4rem 0 0.3rem;
}

p {
  margin: 0.6rem 0;
}

a {
  color: #6d4aff;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.4rem;
}

li {
  margin: 0.35rem 0;
}

.aside {
  border-left: 3px solid #e3e1da;
  padding-left: 0.9rem;
  color: #6d6d78;
  font-size: 0.95rem;
}

dl {
  margin: 0.4rem 0 0.6rem;
}

dt {
  font-weight: 700;
  margin-top: 0.8rem;
}

dd {
  margin: 0.1rem 0 0;
  color: #43434e;
}

.societies {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-top: 0.8rem;
}

.society {
  background: #f2f0ea;
  border: 1px solid #e3e1da;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
.society h3 {
  margin: 0;
}
.society p {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
}

.timeline {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px solid #e3e1da;
}
.timeline .tl-item {
  position: relative;
  padding-bottom: 2.4rem;
}
.timeline .tl-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6d4aff;
  border: 3px solid #fbfaf7;
}
.timeline .tl-when {
  margin: 0;
  font-size: 0.8rem;
  color: #6d4aff;
  letter-spacing: 0.06em;
}
.timeline .tl-what {
  margin: 0.25rem 0 0.5rem;
}
.timeline .tl-what .tl-role {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6d6d78;
  margin-top: 0.15rem;
}

.elsewhere {
  list-style: none;
  padding-left: 0;
}
.elsewhere li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #e3e1da;
}
.elsewhere li:last-child {
  border-bottom: none;
}

.site-foot {
  border-top: 1px solid #e3e1da;
  padding-block: 1.4rem 3rem;
  margin-top: 3rem;
}
.site-foot p {
  margin: 0.25rem 0;
  font-size: 0.85rem;
  color: #6d6d78;
}
.site-foot .colophon {
  font-size: 0.76rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.site-foot .totop {
  text-decoration: none;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: #fbfaf7;
  padding: 0.5rem 1rem;
  z-index: 10;
  border: 2px solid #6d4aff;
}

@media (prefers-color-scheme: dark) {
  body {
    background: #1c1c24;
    color: #e8e6e0;
  }
  .site-head {
    background: #1c1c24;
    border-color: #33333f;
  }
  nav ul, .site-foot, .elsewhere li {
    border-color: #33333f;
  }
  .stat, .society {
    background: #26262f;
    border-color: #33333f;
  }
  .stat .stat-label {
    color: #a5a3ad;
  }
  .hero-title .dim {
    color: #a5a3ad;
  }
  .lede, dd {
    color: #b8b6bf;
  }
  .aside {
    color: #a5a3ad;
    border-color: #33333f;
  }
  .timeline {
    border-color: #33333f;
  }
  .timeline .tl-item::before {
    border-color: #1c1c24;
  }
  h1 {
    color: #f2f0ea;
  }
  .story {
    color: #e8e6e0;
  }
  .hero-photo .hero-scrim {
    background: linear-gradient(to bottom, rgba(28, 28, 36, 0.06), rgba(28, 28, 36, 0.38) 55%, #1c1c24 96%);
  }
  .masthead a {
    color: #f2f0ea;
  }
  .masthead a:hover {
    color: #8a70ff;
  }
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
  margin: 1.4rem 0 0;
}

.skill-group {
  background: #f2f0ea;
  border: 1px solid #e3e1da;
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.skill-group h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6d4aff;
  letter-spacing: 0.03em;
}
.skill-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.skill-group ul li {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #6d6d78;
}
.skill-group ul li::before {
  content: "·";
  color: #6d4aff;
  margin-right: 0.4rem;
  font-weight: 700;
}
.skill-group ul ul {
  margin: 0.2rem 0 0.4rem 1.1rem;
  padding: 0;
}
.skill-group ul ul li {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: #6d6d78;
}
.skill-group ul ul li::before {
  content: "–";
  color: #6d4aff;
  margin-right: 0.35rem;
  font-weight: 400;
}

.skills-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: #6d6d78;
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }
  .hero {
    padding-block: 2rem 0;
  }
  .stats {
    grid-template-columns: 1fr;
    margin-block: 1.8rem;
  }
  main, .head-inner, .site-foot {
    width: calc(100% - 2.2rem);
  }
  .societies {
    grid-template-columns: 1fr;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  h2 {
    font-size: 1.2rem;
  }
  nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav ul a {
    display: block;
    padding: 0.45rem 0.5rem;
    border-radius: 4px;
  }
  nav ul a:hover {
    background: rgba(109, 74, 255, 0.09);
  }
}
body {
  background: radial-gradient(130rem 50rem at 50% -10rem, rgba(109, 74, 255, 0.18), transparent 62%), #fbfaf7;
}

@media (prefers-color-scheme: dark) {
  body {
    background: radial-gradient(130rem 50rem at 50% -10rem, rgba(109, 74, 255, 0.26), transparent 62%), #1c1c24;
  }
}
