:root {
  --bg: #0b0b0b;
  --fg: #ecece8;
  --muted: #9a9993;
  --border: #2a2a28;
  --card: #141413;
  --focus: #8aa4c4;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

  a {
    transition: none;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: #5c5b56;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--fg);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, 54rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--fg);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.15rem;
  font-size: 0.9375rem;
}

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

nav a:hover {
  color: var(--fg);
}

.hero {
  padding: 4.5rem 0 3.25rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.lede {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--fg);
}

.focus-line {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
}

.hero-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 1.75rem 0 0;
}

.section {
  padding: 0 0 3.75rem;
}

.section h2 {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#other-block {
  margin-top: 2.5rem;
}

.status {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.9375rem;
}

.card-list {
  display: grid;
  gap: 0.9rem;
}

.featured-list {
  grid-template-columns: 1fr;
}

.other-list {
  grid-template-columns: 1fr;
}

.project-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.25rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--card);
}

.project-card h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.project-meta {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.6;
}

.project-desc {
  margin: 0.7rem 0 0;
  color: #c6c5bf;
  font-size: 0.98rem;
}

.project-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.project-footer a {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.project-footer a:hover {
  text-decoration: underline;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
}

#about p {
  max-width: 40rem;
  margin: 0 0 1rem;
}

#about p:last-child {
  margin-bottom: 0;
}

.experience-item {
  max-width: 42rem;
}

.experience-item h3 {
  margin-bottom: 0.25rem;
}

.experience-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.experience-summary {
  margin: 0 0 1rem;
}

.experience-list {
  margin: 0;
  padding-left: 1.15rem;
}

.experience-list li + li {
  margin-top: 0.55rem;
}

.tech-group {
  margin-bottom: 1.35rem;
}

.tech-group:last-child {
  margin-bottom: 0;
}

.tech-group h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

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

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.4rem 0 2rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  margin: 0;
}

@media (min-width: 720px) {
  .other-list {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 5.5rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 2.75rem;
  }

  .project-card {
    padding: 1.05rem 1rem;
  }
}
