@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #f4f1ea;
  --ink: #161412;
  --muted: #6f6a63;
  --line: rgb(22 20 18 / 0.12);
  --hover: rgb(22 20 18 / 0.04);
  --accent: #b9532f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --ink: #efebe4;
    --muted: #958f86;
    --line: rgb(239 235 228 / 0.12);
    --hover: rgb(239 235 228 / 0.04);
    --accent: #e27b55;
  }
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100% - 2.5rem, 30rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 14vh, 8rem) 4rem;
}

/* Header */

.avatar {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  object-fit: cover;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(3rem, 14vw, 4.25rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.tagline {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Links */

.links {
  margin: 2.75rem -0.75rem 0;
  border-top: 1px solid var(--line);
}

.link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.75rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.15s;
}

.icon {
  width: 1.375rem;
  height: 1.375rem;
  fill: currentColor;
  transition: color 0.15s;
}

.text { display: grid; }

.title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.arrow {
  font-size: 1.25rem;
  color: var(--muted);
  transition: transform 0.2s, color 0.15s;
}

.link:hover { background: var(--hover); }
.link:hover .icon { color: var(--brand, var(--accent)); }
.link:hover .arrow { color: var(--accent); }
.link:hover .arrow { transform: translate(2px, -2px); }

.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 6px;
}

/* Entrata */

@media (prefers-reduced-motion: no-preference) {
  header, .link {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .link:nth-child(1) { animation-delay: 0.06s; }
  .link:nth-child(2) { animation-delay: 0.12s; }
  .link:nth-child(3) { animation-delay: 0.18s; }
  .link:nth-child(n + 4) { animation-delay: 0.24s; }

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