:root {
  color-scheme: light;
  --paper: oklch(95% 0.018 84);
  --paper-2: oklch(90% 0.028 83);
  --ink: oklch(19% 0.027 72);
  --muted: oklch(43% 0.034 75);
  --faint: oklch(64% 0.03 76);
  --line: oklch(78% 0.032 78);
  --accent: oklch(53% 0.15 35);
  --accent-2: oklch(67% 0.12 105);
  --night: oklch(23% 0.033 73);
  --night-soft: oklch(30% 0.038 73);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;
  --radius-sm: 1rem;
  --radius: 1.6rem;
  --radius-lg: 2.4rem;
  --shadow: 0 1.4rem 4rem color-mix(in oklch, var(--ink), transparent 88%);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, color-mix(in oklch, var(--accent-2), transparent 62%), transparent 28rem),
    radial-gradient(circle at 86% 12%, color-mix(in oklch, var(--accent), transparent 82%), transparent 22rem),
    linear-gradient(135deg, var(--paper), var(--paper-2));
  font-family: "Afacad", "Noto Sans SC", sans-serif;
  font-size: clamp(1.04rem, 0.98rem + 0.25vw, 1.22rem);
  line-height: 1.64;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: linear-gradient(color-mix(in oklch, var(--ink), transparent 94%) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklch, var(--ink), transparent 94%) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

img, svg { max-width: 100%; }

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.site-header,
.site-footer,
main {
  width: min(1160px, calc(100% - clamp(1.25rem, 5vw, 5rem)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero__actions,
.contact__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.brand {
  text-decoration: none;
  font-family: "Chivo", sans-serif;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.brand__mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Chivo", sans-serif;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand__mark {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1rem;
}

.nav {
  padding: 0.38rem;
  border: 1px solid color-mix(in oklch, var(--line), transparent 16%);
  border-radius: 999px;
  background: color-mix(in oklch, var(--paper), transparent 10%);
  font-family: "Chivo", sans-serif;
  font-size: 0.86rem;
}

.nav a {
  border-radius: 999px;
  padding: 0.45rem 0.72rem;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  background: color-mix(in oklch, var(--accent-2), white 42%);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(19rem, 0.66fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  min-height: calc(100svh - 5rem);
  padding: clamp(3rem, 7vw, 7rem) 0 clamp(4rem, 9vw, 8rem);
}

.hero__intro {
  display: grid;
  gap: var(--space-xl);
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-family: "Chivo", sans-serif;
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "Chivo", "Noto Sans SC", sans-serif;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(4.2rem, 9vw, 7.4rem);
  line-height: 0.94;
}

h1 span {
  display: block;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: 0.94;
}

h3 {
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.05;
}

.lede {
  max-width: 63ch;
  color: var(--muted);
  font-size: clamp(1.16rem, 1.04rem + 0.55vw, 1.48rem);
}

.hero__actions {
  flex-wrap: wrap;
  padding-top: var(--space-sm);
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.72rem 1.12rem;
  background: color-mix(in oklch, var(--paper), white 12%);
  font-family: "Chivo", sans-serif;
  font-size: 0.92rem;
  font-weight: 520;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent), var(--line) 30%);
  background: color-mix(in oklch, var(--accent-2), white 44%);
}

.button--primary {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}

.profile-card {
  display: grid;
  gap: var(--space-2xl);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: color-mix(in oklch, var(--paper), white 16%);
  box-shadow: var(--shadow);
}

.profile-card__top {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.avatar {
  width: 4.8rem;
  height: 4.8rem;
  font-size: 2.45rem;
}

.profile-card__name {
  font-family: "Chivo", sans-serif;
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.profile-card__role,
.facts dt,
.system-card span,
.site-footer {
  color: var(--muted);
  font-family: "Chivo", sans-serif;
  font-size: 0.84rem;
}

.facts {
  display: grid;
  gap: var(--space-lg);
}

.facts div {
  display: grid;
  gap: var(--space-xs);
  padding-top: var(--space-lg);
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 32%);
}

.facts dt {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  font-size: 1.05rem;
}

.section {
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 18%);
}

.section--split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.section__heading {
  display: grid;
  align-content: start;
  gap: var(--space-lg);
}

.section__heading--wide h2 {
  max-width: 14ch;
}

.work-list {
  display: grid;
  gap: var(--space-md);
}

.work-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-xl);
  align-items: start;
  border: 1px solid color-mix(in oklch, var(--line), transparent 12%);
  border-radius: var(--radius);
  padding: clamp(1rem, 2vw, 1.6rem);
  background: color-mix(in oklch, var(--paper), white 10%);
}

.work-item__num {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent-2), white 36%);
  font-family: "Chivo", sans-serif;
  font-size: 0.8rem;
  font-weight: 680;
}

.work-item p,
.system-card p {
  max-width: 42ch;
  margin-top: var(--space-sm);
  color: var(--muted);
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
}

.system-card {
  display: grid;
  align-content: space-between;
  min-height: 20rem;
  gap: var(--space-2xl);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: color-mix(in oklch, var(--paper), white 12%);
  box-shadow: var(--shadow);
}

.system-card--dark {
  color: var(--paper);
  background: linear-gradient(145deg, var(--night), var(--night-soft));
}

.system-card--dark p,
.system-card--dark span {
  color: color-mix(in oklch, var(--paper), transparent 24%);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-3xl);
  align-items: end;
}

.contact h2 {
  max-width: 15ch;
}

.contact__links {
  flex-direction: column;
  align-items: flex-start;
  font-family: "Chivo", sans-serif;
  font-weight: 520;
}

.contact__links a {
  text-decoration-thickness: 1px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-2xl) 0 var(--space-3xl);
  border-top: 1px solid color-mix(in oklch, var(--line), transparent 18%);
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .brand__text { display: none; }

  .nav {
    overflow-x: auto;
    max-width: calc(100vw - 6rem);
  }

  .hero,
  .section--split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-4xl);
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(3.7rem, 15vw, 5.8rem);
  }

  .profile-card {
    max-width: 30rem;
  }

  .work-item {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .work-item__num {
    width: 3rem;
  }

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

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