:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  --background: #071a2f;
  --text: #fff7ed;
  --muted: #afc2d7;
  --line: #234361;
  --accent: #f98200;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 11rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background: var(--background);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  text-decoration: none;
}

.logo-mark {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

nav {
  display: grid;
  gap: 1rem;
}

nav a,
.text-link {
  color: var(--muted);
  text-decoration: none;
}

nav a {
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

nav a:hover,
nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

nav a:hover,
nav a:focus-visible {
  border-left-color: var(--accent);
}

main {
  width: min(48rem, calc(100% - 4rem));
  margin-left: 13rem;
}

.section {
  min-height: 100vh;
  padding: 8rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 2rem;
}

.about {
  animation: reveal 700ms ease-out both;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 3rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.intro {
  max-width: 32rem;
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.text-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.25rem;
}

.text-link span {
  display: inline-block;
  margin-left: 0.35rem;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(0.25rem);
}

.project {
  max-width: 42rem;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.project p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.project-status {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .about {
    animation: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #04111f;
    --line: #1d3853;
    --accent: #f98200;
  }
}

@media (max-width: 600px) {
  .sidebar {
    position: sticky;
    inset: auto;
    z-index: 1;
    width: 100%;
    height: auto;
    padding: 1.25rem 1.5rem;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  nav {
    display: flex;
    gap: 1rem;
  }

  main {
    width: min(100% - 3rem, 48rem);
    margin-left: auto;
    margin-right: auto;
  }

  .section {
    min-height: auto;
    padding: 6rem 0;
  }

  .project {
    display: block;
  }

  .project-status {
    display: block;
    margin-top: 1rem;
  }
}