:root {
  color-scheme: light;
  --bg: #eef2f7;
  --card: #ffffff;
  --text: #121820;
  --muted: #677383;
  --line: #dce3ec;
  --accent: #315f9f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, sans-serif;
}
.template-switcher {
  width: min(980px, 100%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: end;
  margin-bottom: 14px;
}
.template-switcher a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
}
.template-switcher a:hover {
  color: var(--text);
  border-color: var(--accent);
}
.wrap {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 14px;
}
.panel,
article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.panel {
  min-height: 560px;
  display: grid;
  align-content: end;
  gap: 16px;
  padding: 24px;
}
.avatar {
  width: 128px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 38px;
  font-weight: 900;
}
h1, p { margin: 0; }
h1 {
  font-size: 42px;
  line-height: 1;
}
p { color: var(--muted); }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
}
.details {
  display: grid;
  gap: 14px;
}
article {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 170px;
  padding: 20px;
}
span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  body { place-items: start center; }
  .wrap { grid-template-columns: 1fr; }
  .panel { min-height: 430px; }
}
