:root {
  color-scheme: dark;
  --background: #0e0f11;
  --surface: #15171a;
  --text: #f2f0eb;
  --muted: #9a9da3;
  --muted-strong: #c2c3c1;
  --accent: #78d6a0;
  --border: rgba(242, 240, 235, 0.13);
  --border-strong: rgba(242, 240, 235, 0.22);
  --container: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 4%, rgba(120, 214, 160, 0.08), transparent 25rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  border-radius: 7px;
  background: var(--text);
  color: var(--background);
  font-weight: 700;
  transform: translateY(-160%);
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav .email-link {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
}

.hero {
  padding: 118px 0 120px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  align-items: start;
  gap: 72px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 19px 0 26px;
  font-size: clamp(54px, 6.4vw, 76px);
  font-weight: 710;
  letter-spacing: -0.052em;
  line-height: 1;
}

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

.hero-lead {
  max-width: 730px;
  margin: 0;
  color: var(--text);
  font-size: clamp(21px, 2.2vw, 27px);
  letter-spacing: -0.018em;
  line-height: 1.44;
}

.hero-note {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 34px;
}

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 720;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-links a:hover {
  color: var(--accent);
}

.portrait {
  width: 132px;
  height: 132px;
  padding: 0;
  margin: 2px 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.018);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 98px 0;
  border-top: 1px solid var(--border);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 92px;
}

.section-title h2 {
  max-width: 420px;
  margin: 17px 0 0;
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.focus-list,
.link-list {
  border-top: 1px solid var(--border-strong);
}

.focus-row {
  display: grid;
  grid-template-columns: 36px minmax(150px, 0.68fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.row-number {
  padding-top: 3px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.focus-row h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 690;
  letter-spacing: -0.02em;
}

.focus-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.profile-link {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.profile-link > span:first-child {
  display: grid;
  gap: 3px;
}

.profile-link strong {
  font-size: 17px;
  font-style: normal;
  letter-spacing: -0.015em;
}

.profile-link small {
  color: var(--muted);
  font-size: 13px;
}

.profile-link > span:last-child {
  color: var(--muted);
  font-size: 17px;
  transition:
    color 150ms ease,
    transform 150ms ease;
}

.profile-link:hover > span:last-child {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.profile-link-archive {
  opacity: 0.72;
}

.profile-link-archive:hover {
  opacity: 1;
}

.profile-link em {
  display: inline-block;
  padding: 3px 7px;
  margin-left: 7px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner > div {
  display: flex;
  gap: 22px;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--text);
}

.legal-main {
  padding: 74px 0 110px;
}

.legal-panel {
  max-width: 820px;
  padding: 0;
  margin: 0 auto;
}

.legal-panel h1 {
  margin: 18px 0 12px;
  font-size: clamp(48px, 7vw, 76px);
  letter-spacing: -0.06em;
  line-height: 1;
}

.legal-updated {
  padding-bottom: 36px;
  margin: 0 0 38px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.legal-content {
  color: var(--muted-strong);
}

.legal-content h2 {
  margin: 38px 0 10px;
  color: var(--text);
  font-size: 20px;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content a {
  color: var(--accent);
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 3px solid rgba(120, 214, 160, 0.58);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 40px;
  }

  .portrait {
    width: 108px;
    height: 108px;
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .section-title h2 {
    max-width: 560px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-inner {
    min-height: 72px;
  }

  .brand > span:last-child,
  .site-nav a:not(.email-link) {
    display: none;
  }

  .hero {
    padding: 64px 0 78px;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 34px;
  }

  .portrait {
    width: 92px;
    height: 92px;
    order: -1;
  }

  .hero h1 {
    font-size: clamp(44px, 12.5vw, 58px);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 20px;
    line-height: 1.5;
  }

  .hero-note {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .focus-row {
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }

  .focus-row p {
    grid-column: 2;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    padding: 54px 0 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
