@font-face {
  font-family: "Exo 2";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/exo2-400.woff2") format("woff2");
}

:root {
  --bg: #0b0f17;
  --dim: #807e78; /* dimmest warm grey that still clears 4.5:1 on --bg */
  --muted: #9a978f;
  --gold: #d9a441;

  --gutter-l: max(20px, env(safe-area-inset-left));
  --gutter-r: max(20px, env(safe-area-inset-right));

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
  background: var(--bg);
  color: var(--dim);
  font-family: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0 32px;
}

h1 {
  margin: 0;
}

.logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
  animation: fade-in 400ms ease-out both;
}

a {
  color: var(--dim);
  text-decoration: none;
  transition: color 160ms ease;
}

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

a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  border-radius: 2px;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(40px, 8vh, 72px);
  text-align: center;
}

.projects h2 {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.projects a {
  padding: 8px 4px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

footer {
  padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.legal {
  max-width: 56em;
  margin: 0 auto;
}

.langs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  letter-spacing: 0.15em;
}

.langs a {
  padding: 6px 8px;
}

.langs a[aria-current="page"] {
  color: var(--muted);
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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