/* ---------- Tokens (iste boje i fontovi kao vels.dev) ---------- */

:root {
  --bg: #08090B;
  --text: #EDEDEA;
  --muted: #A5A5A0;
  --faint: #8E8E88;
  --line: #1C1E23;
  --underline: #3A3C42;
  --lime: #C6F432;

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

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

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

::selection {
  background: var(--lime);
  color: var(--bg);
}

/* ---------- Layout: jedna mirna kolona, centrirana po visini ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
}

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

/* ---------- Jezik ---------- */

.lang {
  align-self: flex-end;
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.lang a {
  color: var(--faint);
  transition: color 0.2s ease;
}

.lang a:hover,
.lang a[aria-current="page"] {
  color: var(--text);
}

/* ---------- Ime ---------- */

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(42px, 8vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.role {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Stavke ---------- */

.rows {
  margin: 56px 0 0;
  border-top: 1px solid var(--line);
}

.rows > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

dd {
  margin: 0;
}

dd a .u {
  border-bottom: 1px solid var(--underline);
  transition: border-color 0.2s ease;
}

dd a:hover .u {
  border-color: var(--text);
}

.arrow {
  display: inline-block;
  margin-left: 4px;
  color: var(--faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

dd a:hover .arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* ---------- Footer ---------- */

.foot {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Animacija ---------- */

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  main > :nth-child(2) { animation-delay: 0.08s; }
  main > :nth-child(3) { animation-delay: 0.18s; }
}

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

/* ---------- Telefon ---------- */

@media (max-width: 480px) {
  .page {
    padding: 24px 20px;
  }

  .rows > div {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }
}
