:root {
  color-scheme: light;
  --background: #efede7;
  --text: #171714;
  --muted: #706e67;
  --line: #cbc8bf;
  --accent: #ba4b34;
  --sans: "Helvetica Neue", "SF Pro Display", "PingFang SC", Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 9px 12px;
  transform: translateY(-160%);
  border: 1px solid var(--text);
  background: var(--background);
  font-size: 13px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  display: flex;
  width: min(calc(100% - 64px), var(--page-width));
  min-height: 100dvh;
  flex-direction: column;
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.wordmark span {
  color: var(--accent);
}

.header-meta {
  display: flex;
  gap: 36px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

main {
  flex: 1;
}

.hero {
  padding: clamp(68px, 8vw, 104px) 0 96px;
}

.section-label {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 450;
  letter-spacing: -0.06em;
  line-height: 1;
}

h1 em {
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.profile-layout {
  display: grid;
  grid-template-columns: 120px minmax(0, 650px);
  gap: 40px;
  align-items: start;
  margin-top: clamp(56px, 7vw, 76px);
}

.portrait {
  width: 120px;
  margin: 0;
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.bio {
  padding-bottom: 2px;
}

.bio p {
  max-width: 630px;
  margin: 0;
  letter-spacing: -0.018em;
}

.bio-primary {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
}

.bio-secondary {
  margin-top: 18px !important;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
}

.profile-link {
  display: flex;
  width: min(100%, 300px);
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  transition: color 160ms ease, border-color 160ms ease;
}

.profile-link:hover,
.profile-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.site-footer {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
  white-space: nowrap;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 40px), var(--page-width));
  }

  .hero {
    padding-top: 64px;
  }

  h1 {
    font-size: clamp(54px, 12vw, 78px);
  }

  .profile-layout {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 34px;
  }

  .portrait {
    width: 108px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 76px;
  }

  .header-meta span:last-child {
    display: none;
  }

  .hero {
    padding: 52px 0 72px;
  }

  .section-label {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(47px, 13.4vw, 66px);
    line-height: 1.02;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }

  .portrait {
    width: 96px;
  }

  .bio-primary {
    font-size: 21px;
  }

  .bio-secondary {
    font-size: 16px;
  }

  .profile-link {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0 28px;
  }

  .legal-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
