:root {
  color-scheme: light;
  --bg: #f5f6f4;
  --ink: #111315;
  --muted: rgba(17, 19, 21, 0.58);
  --line: rgba(17, 19, 21, 0.14);
  --strong-line: rgba(17, 19, 21, 0.42);
  --hot: #0f766e;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.theme-contrast {
  --bg: #101513;
  --ink: #f4f6f0;
  --muted: rgba(244, 246, 240, 0.62);
  --line: rgba(244, 246, 240, 0.2);
  --strong-line: rgba(244, 246, 240, 0.54);
  --hot: #62c2b7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-head,
.hero,
.about,
.work,
.contact-section,
.site-foot {
  width: min(1440px, calc(100% - clamp(1rem, 4vw, 4rem)));
  margin-inline: auto;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(12rem, 1fr) auto auto;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.brand {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  text-decoration: none;
}

.brand-symbol {
  font-size: 0.8rem;
}

.console {
  min-width: 0;
  color: var(--muted);
  text-transform: none;
}

.console span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu {
  display: flex;
  gap: clamp(0.7rem, 1.8vw, 1.5rem);
}

.menu a,
.contrast,
.availability a,
.contact-links a,
.site-foot a {
  text-decoration: none;
}

.menu a:hover,
.contrast:hover,
.availability a:hover,
.work-list a:hover .name,
.contact-links a:hover,
.site-foot a:hover {
  color: var(--hot);
}

.contrast {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
}

.availability {
  grid-column: 2 / -1;
  max-width: 48rem;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}

.availability a {
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}

.hero {
  min-height: calc(78svh - 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--strong-line);
}

.separator {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  font-weight: 700;
  text-transform: uppercase;
}

.separator span:nth-child(even) {
  text-align: center;
}

.separator span:last-child {
  text-align: right;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 2.5rem 0 1.25rem;
  font-family: var(--serif);
  font-size: 10.5rem;
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: 0;
}

h1 > span {
  display: block;
}

.hero-line {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 6rem;
}

.star {
  display: grid;
  width: 4.7rem;
  height: 4.7rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--hot);
  font-family: var(--mono);
  font-size: 2.9rem;
  line-height: 1;
}

.about,
.work,
.contact-section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--strong-line);
}

.about {
  display: grid;
  grid-template-columns: minmax(9rem, 0.24fr) minmax(0, 0.76fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.section-label,
.work-title {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.section-label span,
.work-title span,
.code,
.meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--sans);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
}

.about-text {
  min-width: 0;
  max-width: 62rem;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.about-text p:first-child {
  color: var(--ink);
}

.about-text p {
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 52rem;
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.55;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 58rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-meta span {
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--line);
}

.hero-meta span:first-child {
  padding-left: 0;
}

.hero-meta span:last-child {
  border-right: 0;
}

.work-title {
  margin-bottom: 3.5rem;
}

.work-title h2 {
  font-family: var(--serif);
  font-weight: 400;
}

.work-list {
  border-top: 1px solid var(--strong-line);
}

.work-list a {
  display: grid;
  grid-template-columns: minmax(8rem, 0.18fr) minmax(0, 1fr) minmax(12rem, 0.28fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.name {
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.98;
}

.meta {
  text-align: right;
  line-height: 1.35;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-links a {
  display: inline-flex;
  min-height: 2.45rem;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-foot a {
  color: var(--ink);
}

@media (max-width: 1100px) {
  h1 {
    font-size: 8rem;
  }

  .hero-line {
    padding-left: 3rem;
  }

  .star {
    width: 3.7rem;
    height: 3.7rem;
    font-size: 2.1rem;
  }

}

@media (max-width: 900px) {
  .site-head {
    position: static;
    grid-template-columns: 1fr;
  }

  .availability {
    grid-column: auto;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 7rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  .about,
  .work-list a {
    grid-template-columns: 1fr;
  }

  .meta {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-head,
  .hero,
  .about,
  .work,
  .contact-section,
  .site-foot {
    width: min(100% - 1.25rem, 1440px);
  }

  .menu {
    flex-wrap: wrap;
  }

  .separator {
    grid-template-columns: 1fr 1fr;
  }

  .separator span:nth-child(even),
  .separator span:last-child {
    text-align: left;
  }

  h1 {
    font-size: 3.35rem;
    line-height: 0.86;
  }

  .hero-line {
    gap: 0.75rem;
    padding-left: 0;
  }

  .star {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1.35rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero-meta span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-inline: 0;
  }

  .hero-meta span:last-child {
    border-bottom: 0;
  }

  h2 {
    font-size: 2.3rem;
  }

  .work-list a {
    gap: 0.35rem;
  }

  .name {
    font-size: 1.45rem;
  }

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

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