:root {
  color-scheme: dark;
  --background: #090b10;
  --surface: #11151d;
  --surface-raised: #171c26;
  --border: #2a3240;
  --text: #edf1f7;
  --muted: #aab3c2;
  --accent: #b8c7ff;
  --accent-strong: #d4ddff;
  --success: #a9e7c0;
  --radius: 18px;
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 112, 176, 0.18), transparent 36rem),
    var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent-strong);
}

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

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--background);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.82);
}

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

.header-inner {
  min-height: 7rem;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  letter-spacing: -0.035em;
}

h2 {
  max-width: 20ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

.eyebrow,
.card-label {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.status-badge,
.card-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(184, 199, 255, 0.08);
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-badge {
  padding: 0.45rem 0.75rem;
}

.hero {
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
}

.hero-copy {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  display: flex;
  min-height: 19rem;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface-raised), var(--surface));
}

.project-card p:not(.card-label) {
  color: var(--muted);
}

.project-card-muted {
  opacity: 0.78;
}

.card-state {
  margin-top: auto;
  padding: 0.35rem 0.65rem;
}

.principles {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.principles h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.principle-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.principle-list p {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.principle-list strong {
  color: var(--text);
}

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

.footer-inner {
  min-height: 6rem;
}

.error-page {
  display: flex;
  min-height: 100vh;
  max-width: 42rem;
  flex-direction: column;
  justify-content: center;
}

.error-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.error-page p:not(.eyebrow) {
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-raised);
  text-decoration: none;
}

@media (max-width: 760px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .project-grid,
  .principle-list {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 15rem;
  }
}

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