:root {
  color-scheme: light;
  --ink: #1e1f20;
  --muted: #666a73;
  --line: #dcd7d1;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #5d7f8d;
  --warm: #f2d18f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 64px) 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.lang-button {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: white;
}

main {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 56px;
}

.intro {
  padding: 40px 0 24px;
}

.intro p {
  width: min(760px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.panel,
.skill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.panel {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.panel h2,
.skill-card h2 {
  margin: 0;
  font-size: 1.3rem;
}

code {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f6f3ef;
  white-space: nowrap;
}

.skills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.skill-card {
  padding: 18px;
}

.purpose,
.deps {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .skills {
    grid-template-columns: 1fr;
  }
}
