*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --background: #08090a;
  --text: #f1f1f1;
  --muted: #8b9098;
  --accent: #8b7cf6;
  --border: rgb(255 255 255 / 8%);
}

html {
  background: var(--background);
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 3rem 1.5rem;
}

.shell {
  width: min(100%, 32rem);
  margin: 0 auto;
}

header {
  margin-bottom: 3rem;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.tagline {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.intro {
  margin-top: 1.5rem;
  line-height: 1.6;
}

.totals {
  display: flex;
  gap: 2.5rem;
  margin-top: 1.25rem;
}

.totals[hidden] {
  display: none;
}

.totals strong,
.totals span,
.availability strong,
.availability span {
  display: block;
}

.totals strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.totals span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
}

.availability {
  margin-top: 1.5rem;
}

.availability strong {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.availability span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.projects {
  border-top: 1px solid var(--border);
}

.projects a {
  display: grid;
  min-height: 4rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.projects strong,
.projects small {
  display: block;
}

.projects strong {
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 150ms ease;
}

.projects small,
.stat {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.stat {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.projects a:hover strong,
.projects a:focus-visible strong,
.contact a:hover,
.contact a:focus-visible {
  color: var(--accent);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 3rem;
  font-size: 0.8rem;
}

.contact a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

a:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

@media (max-width: 34rem) {
  .projects a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.9rem 0;
  }

  .stat {
    text-align: left;
  }
}

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