@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400..600&family=Oswald:wght@500&display=swap');

:root {
  color-scheme: dark;
  --panel: #17363e;
  --text: #fff1e7;
  --muted: #cfd7e1;
  --aqua: #a4ded8;
  --lime: #d8e8ab;
  --pink: #f8a6de;
  --sky: #9dceff;
  font-family: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  display: grid;
  grid-template-rows: auto 1fr;
  row-gap: 16px;
  min-height: 100vh;
  padding-block: 16px 24px;
  text-align: center;
  margin: 0;
  background: #292c33;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--aqua); outline-offset: 5px; }
.site-header {
  padding-inline: clamp(16px, 4vw, 48px);
  text-align: left;
}

.site-header img {
  display: block;
  width: 144px;
  height: auto;
}

.site {
  display: grid;
  container-type: inline-size;
  width: min(760px, calc(100% - 40px));
  max-width: max(520px, calc((100svh - 108px) * 1.58));
  aspect-ratio: 85.6 / 53.98;
  margin: auto;
  padding: clamp(18px, 2.5vw, 32px) clamp(12px, 3vw, 32px) clamp(6px, calc(2.5vw - 14px), 18px);
  border: 3px solid #c8d89b;
  background: var(--panel);
}

.site > main {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 16px;
}

.hero { padding-top: clamp(12px, 7cqi, 42px); }

.hero p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

h1 {
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: Oswald, system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 8.2cqi, 3.5rem);
  line-height: 1.12;
  letter-spacing: .025em;
  text-wrap: balance;
}

.hero .role {
  color: var(--lime);
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
  font-weight: 550;
}

.hero .engine { margin-top: 4px; color: var(--aqua); }
.hero .bio { max-width: 40ch; margin: 8px auto 0; color: var(--muted); }

.profiles ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: clamp(2px, 1.5vw, 16px);
  row-gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profiles li { --accent: var(--aqua); }
.profiles li:nth-child(2) { --accent: var(--sky); }
.profiles li:nth-child(4) { --accent: var(--pink); }
.profiles li:nth-child(5) { --accent: var(--lime); }

.profiles a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 1rem;
  font-weight: 600;
}

.profiles a:hover { color: var(--accent); }
.profiles svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}

@container (width < 570px) {
  .profiles li:first-child { flex-basis: 100%; }
}

@container (width < 360px) {
  .profiles ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profiles li:first-child { grid-column: 1 / -1; }
}
