/* leandro.world: single-page personal site. No web fonts, no trackers, no scripts. */
:root {
  --bg: #f6f4ef;
  --bg-glow: #ebe6da;
  --card: rgba(255, 255, 255, 0.72);
  --border: rgba(30, 28, 24, 0.09);
  --text: #1d1c1a;
  --muted: #615d55;
  --accent: #8a5a2b;
  --icon-bg: rgba(30, 28, 24, 0.05);
  --shadow: 0 1px 2px rgba(30, 28, 24, 0.04), 0 20px 48px -24px rgba(30, 28, 24, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --bg-glow: #1c1d22;
    --card: rgba(28, 29, 34, 0.72);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ecebe8;
    --muted: #a19e97;
    --accent: #d9a86c;
    --icon-bg: rgba(255, 255, 255, 0.06);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 56px -28px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(60rem 40rem at 50% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 34rem;
  padding: clamp(2rem, 6vw, 3.25rem);
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.photo {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--icon-bg);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 5.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.role {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.bio {
  margin: 1.4rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.links a {
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  background: var(--icon-bg);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.links a:hover,
.links a:focus-visible {
  transform: translateY(-2px);
  color: var(--accent);
  border-color: var(--accent);
}

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

.links svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

.projects {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.projects a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.projects a:hover { color: var(--accent); border-color: var(--accent); }

footer {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.7;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
  .links a { transition: none; }
}
