:root {
  color-scheme: dark;
  --background: #06152b;
  --surface: #0a203d;
  --line: #23476a;
  --text: #edf6ff;
  --muted: #9eb2c7;
  --blue: #6bc7ff;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 5%, rgba(35, 103, 157, 0.22), transparent 36rem),
    var(--background);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main, footer {
  width: min(100% - 40px, 900px);
  margin-inline: auto;
}

main { padding: 72px 0 60px; }

.identity {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  align-items: center;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.identity img {
  width: 220px;
  height: 220px;
  display: block;
  object-fit: contain;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  font: 700 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

h1, h2, h3 { margin-top: 0; line-height: 1.15; }
h1 { margin-bottom: 9px; font-size: clamp(2.1rem, 6vw, 3.7rem); letter-spacing: -0.04em; }
h2 { margin-bottom: 24px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.12em; }
h3 { margin-bottom: 8px; font-size: 1.5rem; }
p { color: var(--muted); }
.identity p:last-child, article p { margin: 0; }

section { padding-top: 50px; }

article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 32, 61, 0.82);
}

nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

a {
  color: var(--text);
  text-decoration: none;
}

nav a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 700 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

nav a:hover, nav a:focus-visible, footer a:hover, footer a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

nav .primary { color: #06152b; border-color: var(--blue); background: var(--blue); }
nav .primary:hover, nav .primary:focus-visible { color: #06152b; background: #9cdbff; }

footer {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

footer a { color: var(--muted); }

@media (max-width: 680px) {
  main { padding-top: 46px; }
  .identity { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .identity img { width: 190px; height: 190px; margin-inline: auto; }
  article { grid-template-columns: 1fr; }
  nav { justify-content: flex-start; }
  footer { padding-block: 22px; flex-direction: column; justify-content: center; text-align: center; }
}
