* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fffdf6;
  color: #2b2620;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

section {
  margin-bottom: 2.75rem;
}

ul {
  padding-left: 1.5rem;
}

li ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.45rem;
}

.meta {
  color: #8d8578;
  white-space: nowrap;
}

.meta::before {
  content: "\00b7\0020";
}

/* Hero */

.side {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.side-text {
  min-width: 0;
}

.headshot {
  width: 9.5rem;
  height: 9.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 4px solid #ffffff;
  background: #e7e7ea;
  box-shadow: 0 4px 16px rgba(60, 50, 20, 0.25);
}

h1 {
  margin: 0;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 span {
  display: inline-block;
  padding: 0 0.15em;
  background: linear-gradient(
    100deg,
    transparent 2%,
    rgba(255, 212, 0, 0.85) 2%,
    rgba(255, 212, 0, 0.55) 50%,
    rgba(255, 212, 0, 0.75) 98%,
    transparent 98%
  );
  transform: rotate(-0.75deg);
}

h1 span:first-child {
  margin-left: -0.15em;
}

h1 span:last-child {
  transform: rotate(0.5deg);
}

/* Contact icons */

.side-contact {
  display: block;
  margin-top: 0.9rem;
}

.side-contact a {
  display: inline-flex;
  padding: 0.2rem;
  margin: 0;
  background: none;
  text-decoration: none;
}

.side-contact a + a {
  margin-left: 0.8rem;
}

.side-contact a:hover {
  opacity: 0.65;
}

.side-contact svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  display: block;
}

/* Section headings */

h2 {
  display: inline-block;
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 1rem -0.3em;
  padding: 0 0.3em;
  transform: rotate(-0.75deg);
}

#talks h2 {
  background: linear-gradient(
    100deg,
    transparent 2%,
    rgba(116, 192, 252, 0.9) 2%,
    rgba(116, 192, 252, 0.6) 50%,
    rgba(116, 192, 252, 0.8) 98%,
    transparent 98%
  );
}

#projects h2 {
  background: linear-gradient(
    100deg,
    transparent 2%,
    rgba(105, 219, 168, 0.9) 2%,
    rgba(105, 219, 168, 0.6) 50%,
    rgba(105, 219, 168, 0.8) 98%,
    transparent 98%
  );
  transform: rotate(0.5deg);
}

/* Links */

a {
  color: #2b2620;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-decoration-skip-ink: none;
  text-underline-offset: 3px;
  padding-block: 0.3em;
}

a:hover {
  background: rgba(255, 212, 0, 0.6);
}

#talks a:hover {
  background: rgba(116, 192, 252, 0.6);
}

#projects a:hover {
  background: rgba(105, 219, 168, 0.6);
}

/* List markers */

#talks li::marker {
  content: "\2192\00a0\2009";
  color: #1971c2;
}

#projects li::marker {
  content: "\2192\00a0\2009";
  color: #2f9e44;
}

/* Mobile */

@media (max-width: 640px) {
  .side {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }
}
