:root {
  color-scheme: light dark;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --surface: #f8f9fa;
  --text: #1a202c;
  --muted: #4a5568;
  --border: #cdd3db;
  --accent: #c43a0a;
  --accent-soft: #faeae5;
  background: var(--surface);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  margin: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  transform: translateY(-200%);
}

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

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner,
main,
.site-footer {
  width: min(100% - 3rem, 68rem);
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
}

.wordmark {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.product-name {
  padding-left: 1.25rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  min-height: 4.5rem;
  padding-inline: 1rem;
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-tab:hover {
  background: var(--accent-soft);
}

.nav-tab:active {
  transform: translateY(1px);
}

main {
  flex: 1;
  padding-block: clamp(3rem, 8vw, 6rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.intro {
  max-width: 36rem;
  margin-block: 1.5rem 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
}

.architecture-summary {
  max-width: 36rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

.architecture-summary p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 639px) {
  .header-inner,
  main,
  .site-footer {
    width: calc(100% - 2rem);
  }

  .product-name {
    display: none;
  }

  .nav-tab {
    padding-inline: 0.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1a1b1e;
    --text: #f0f2f5;
    --muted: #c9cdd4;
    --border: #454a54;
    --accent: #ff926f;
    --accent-soft: #342622;
  }
}
