:root {
  color-scheme: light dark;
  --bg: #f7f7f9;
  --bg-soft: #ffffff;
  --text: #161719;
  --muted: #686d76;
  --line: rgba(22, 23, 25, 0.1);
  --panel: rgba(255, 255, 255, 0.74);
  --accent: #0071e3;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --chrome-height: 80px;
}

:root[data-theme="dark"] {
  --bg: #08090b;
  --bg-soft: #101216;
  --text: #f5f5f7;
  --muted: #a5abb6;
  --line: rgba(245, 245, 247, 0.13);
  --panel: rgba(22, 24, 29, 0.72);
  --accent: #66aaff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 113, 227, 0.14), transparent 32rem),
    linear-gradient(140deg, var(--bg), var(--bg-soft) 48%, var(--bg));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  transition: background-color 220ms var(--ease), color 220ms var(--ease);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(128, 128, 128, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 128, 128, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button {
  font: inherit;
}

.site-shell {
  width: min(760px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 34px;
  animation: page-in 580ms var(--ease) both;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 56px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    width 220ms var(--ease),
    transform 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    padding 220ms var(--ease);
}

.icon-button:hover,
.icon-button:focus-visible {
  width: 112px;
  gap: 8px;
  padding: 0 14px;
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  transform: translateY(-1px);
}

.button-label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 220ms var(--ease), opacity 160ms var(--ease);
}

.icon-button:hover .button-label,
.icon-button:focus-visible .button-label {
  max-width: 70px;
  opacity: 1;
}

.icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-item:nth-child(2) .icon {
  fill: currentColor;
  stroke: none;
}

.link-item:nth-child(4) .icon {
  fill: currentColor;
  stroke: none;
}

.moon-icon {
  display: none;
}

:root[data-theme="dark"] .sun-icon {
  display: none;
}

:root[data-theme="dark"] .moon-icon {
  display: block;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--chrome-height) + 48px);
  padding: clamp(36px, 7vw, 84px) 0 clamp(124px, 24vw, 220px);
  border-bottom: 1px solid var(--line);
}

.intro {
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(48px, 8vw, 74px);
  font-weight: 760;
  line-height: 0.96;
  letter-spacing: 0;
}

.role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  color: var(--text);
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  line-height: 1;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.bio {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.links-section {
  display: block;
  padding: clamp(34px, 6vw, 72px) 0 20px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.link-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.link-item {
  display: grid;
  grid-template-columns: 46px 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  min-height: 88px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}

.link-item:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.link-index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.link-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.link-copy {
  min-width: 0;
}

.link-item strong,
.link-item small {
  display: block;
}

.link-item strong {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.15;
}

.link-item small {
  margin-top: 6px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 16px);
}

.link-arrow {
  justify-self: end;
  color: var(--muted);
  font-size: 20px;
  transition: transform 180ms var(--ease), color 180ms var(--ease);
}

.link-item:hover .link-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

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

.site-footer a:hover {
  color: var(--accent);
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  :root {
    --chrome-height: 64px;
  }

  .site-shell {
    width: min(100% - 28px, 720px);
    padding-top: 16px;
  }

  .topbar {
    align-items: center;
  }

  .controls {
    justify-content: flex-end;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: clamp(110px, 20vw, 170px);
  }

  h1 {
    max-width: none;
    font-size: clamp(46px, 15vw, 68px);
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 420px);
    padding-bottom: 36px;
  }

  .topbar {
    min-height: 48px;
  }

  .controls {
    width: auto;
  }

  .hero {
    padding-top: 32px;
    padding-bottom: 128px;
  }

  .role-list {
    gap: 8px;
    margin-top: 22px;
  }

  .role-list li {
    font-size: 14px;
  }

  .bio {
    font-size: 17px;
  }

  .link-item {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 86px;
  }

  .link-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
