:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #181a1c;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 24px;
  --page-width: 580px;
  --page-padding: 24px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #181a1c;
  --fg: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--fg) 12%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  opacity: 0.72;
  text-decoration-color: currentColor;
}

.site-shell {
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto 32px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
}

.site-banner {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center;
}

.profile-row,
.page-content,
.site-footer {
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-top: 0;
  padding-bottom: 22px;
}

.identity-block {
  min-width: 0;
}

.avatar-wrap {
  margin-top: -28px;
  margin-bottom: 12px;
}

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.site-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  font-size: clamp(1.5rem, 5vw, 24px);
  line-height: 1.05;
  font-weight: 500;
}

.verified-link {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.verified-icon {
  display: inline-block;
  flex: none;
  margin-top: 4px;
}

.site-subtitle {
  margin: 6px 0 0;
}

.theme-toggle {
  appearance: none;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.72;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  opacity: 1;
  outline: none;
}

.page-content {
  padding-top: 28px;
  padding-bottom: 36px;
}

.page-content > :first-child {
  margin-top: 0;
}

.page-content > :last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 1.08rem;
  opacity: 0.72;
  line-height: 1.75;
}

.page-content h2 {
  margin: 2.4rem 0 0.8rem;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.page-content p,
.page-content ul {
  margin: 0 0 1rem;
}

.page-content ul {
  padding-left: 1.1rem;
}

.page-content li + li {
  margin-top: 0.3rem;
}

.page-content .return-home {
  margin-top: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 18px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 12%, transparent);
  opacity: 0.72;
  font-size: 0.7rem;
}

@media (max-width: 540px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-radius: 0;
  }

  .site-banner {
    height: 144px;
  }

  .profile-row,
  .page-content,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .profile-row {
    padding-bottom: 18px;
  }

  .site-footer {
    flex-direction: column;
  }
}
