:root {
  --bg: #111;
  --text: #e8e6e1;
  --muted: #8c8a85;
  --line: #262626;
  --accent: #fecc02;
  color-scheme: dark;
}

@font-face {
  font-family: "Space Mono";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/space-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "Space Mono";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/space-mono-700.woff2") format("woff2");
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.7 "Space Mono", Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #111; }

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 16vh 20px 64px;
}

/* header */

header { margin-bottom: 72px; }

.avatar {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

header p {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--muted);
}

.flag {
  display: inline-block;
  vertical-align: -1px;
  border-radius: 2px;
}

/* sections */

section {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin: 0;
}

dt a {
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
  transition: background-size .25s, color .15s;
}
dt a:hover {
  background-size: 100% 1px;
  color: var(--accent);
}
dt a span {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  transition: transform .2s, color .15s;
}
dt a svg {
  display: block;
  width: 12px;
  height: 12px;
}
dt a:hover span {
  transform: translate(2px, -2px);
  color: var(--accent);
}

dd {
  margin: 0;
  color: var(--muted);
}

/* footer */

footer {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  font-size: 12px;
  color: var(--muted);
}
footer p { margin: 0; }

/* load */

header, section { animation: rise .6s both; }
section:nth-of-type(1) { animation-delay: .08s; }
section:nth-of-type(2) { animation-delay: .16s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 560px) {
  main { padding-top: 10vh; }
  header { margin-bottom: 48px; }
  section { grid-template-columns: 1fr; gap: 14px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
