@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #efeeec;
  --text: #1c1917;
  --muted: #57534e;
  --line: #d6d3d1;
  --accent: #c2410c;
  --accent-soft: #ffedd5;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --line: #2e2e33;
    --accent: #fb923c;
    --accent-soft: #3a2314;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--accent); }

.lang {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1.25rem 1.5rem 0;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--accent); }
.lang [aria-current] { color: var(--text); }

main {
  flex: 1;
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.photo {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--accent);
}

h1 {
  margin: 2rem 0 .25rem;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.02em;
}

.role {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--accent);
}

.bio { margin: 0 0 2rem; }

h2 {
  margin: 0 0 .25rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hobby { margin: 0 0 2.5rem; }

.social {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: color .15s, border-color .15s, background-color .15s;
}
.social a:hover,
.social a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.social svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }

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

footer {
  padding: 1.5rem;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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