* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--roam-paper);
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2;
  transform: translateY(-180%);
  padding: 14px 20px;
  background: white;
}
.skip-link:focus {
  transform: translateY(0);
}

.masthead {
  border-bottom: 1px solid var(--roam-line);
  background: white;
}
.masthead-inner,
.profile,
.site-footer {
  width: min(100% - 96px, 1280px);
  margin-inline: auto;
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}
.masthead .roam-link {
  gap: 12px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding-block: 56px 80px;
}
.profile-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  min-width: 0;
}
h1 {
  max-width: 12ch;
  font-size: clamp(44px, 1.55rem + 3.3vw, 76px);
}
.profile .roam-actions {
  margin-top: 8px;
}
.founder-identity {
  display: grid;
  gap: 20px;
}
.founder-role {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
}
.founder-role::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--roam-orange);
  content: "";
}
.founder-contact {
  width: 100%;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--roam-line);
}
.founder-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  margin-block: 4px 16px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.025em;
}
.founder-email:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.founder-contact .roam-link {
  gap: 12px;
}
.founder-thesis-link {
  gap: 12px;
  color: var(--roam-muted);
}

.thesis {
  border-top: 1px solid var(--roam-line);
  background: white;
}
.thesis-introduction,
.thesis-section,
.thesis-today {
  width: min(100% - 96px, 720px);
  margin-inline: auto;
  padding-block: 64px;
}
.thesis h2 {
  margin-block: 16px 24px;
  font-size: clamp(36px, 4vw, 56px);
}
.thesis h3 {
  margin-bottom: 24px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.2;
}
.thesis p {
  font-size: 17px;
  line-height: 1.75;
}
.thesis p + p {
  margin-top: 20px;
}
.thesis .roam-kicker {
  font-size: 13px;
}
.thesis .thesis-lede {
  font-size: 20px;
  line-height: 1.6;
}
.thesis-section,
.thesis-today {
  border-top: 1px solid var(--roam-line);
}
.thesis-memories {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 48px;
  width: min(100% - 96px, 1280px);
}
.thesis-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 580px;
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 48%;
}
.thesis-today .roam-actions {
  margin-top: 24px;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  color: var(--roam-muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (width <= 1000px) {
  .profile {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-block: 48px 64px;
  }
  .profile-content {
    max-width: 620px;
  }
  .thesis-memories {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    gap: 32px;
  }
}

@media (width <= 540px) {
  .masthead-inner,
  .profile,
  .thesis-introduction,
  .thesis-section,
  .thesis-today,
  .site-footer {
    width: calc(100% - 40px);
  }
  .masthead-inner {
    min-height: 72px;
    gap: 16px;
  }
  .masthead .roam-link {
    font-size: 13px;
    gap: 8px;
  }
  .profile {
    gap: 32px;
    padding-block: 40px 48px;
  }
  h1 {
    font-size: 44px;
  }
  .thesis-introduction,
  .thesis-section,
  .thesis-today {
    padding-block: 48px;
  }
}
