:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #1b2023;
  --text: #eef3f1;
  --muted: #99a5a0;
  --line: #31393d;
  --accent: #d6f36b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 54px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}
header strong { color: var(--text); }
.template-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.template-switcher a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
}
.template-switcher a:hover {
  color: var(--text);
  border-color: var(--accent);
}
.hero {
  min-height: 520px;
  display: grid;
  align-content: end;
  padding-bottom: 42px;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: .95;
  letter-spacing: 0;
}
.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
article {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
b { color: var(--accent); }
h2, p { margin: 0; }
article p { color: var(--muted); }
@media (max-width: 760px) {
  header { flex-direction: column; }
  .template-switcher { justify-content: flex-start; }
  .hero { min-height: 440px; }
  .projects { grid-template-columns: 1fr; }
}
