/* ── font ───────────────────────────────────────────────────────────
   Bricolage Grotesque, self-hosted so the site has no third-party
   requests. One variable file per subset covers every weight. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens ─────────────────────────────────────────────────────── */

:root {
  --bg: #fbfbfd;
  --glow: rgba(0, 113, 227, 0.07);
  --surface: rgba(255, 255, 255, 0.72);
  --line: rgba(0, 0, 0, 0.08);
  --fg: #1d1d1f;
  --fg-muted: #6e6e73;
  --fg-faint: #86868b;
  --accent: #0071e3;
  --ring: rgba(0, 0, 0, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);

  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --glow: rgba(41, 151, 255, 0.1);
    --surface: rgba(255, 255, 255, 0.05);
    --line: rgba(255, 255, 255, 0.1);
    --fg: #f5f5f7;
    --fg-muted: #a1a1a6;
    --fg-faint: #86868b;
    --accent: #2997ff;
    --ring: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ── base ───────────────────────────────────────────────────────── */

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

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

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 5vw, 2rem);
  background: var(--bg);
  background-image: radial-gradient(
    70rem 40rem at 50% -18%,
    var(--glow),
    transparent 65%
  );
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── card ───────────────────────────────────────────────────────── */

.card {
  width: 100%;
  max-width: 46rem;
  text-align: center;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.avatar {
  width: clamp(96px, 13vh, 124px);
  height: clamp(96px, 13vh, 124px);
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto clamp(1rem, 2.5vh, 1.5rem);
  box-shadow: 0 0 0 1px var(--ring), var(--shadow);
}

h1 {
  font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.role {
  margin-top: 0.55rem;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.15rem);
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}

.intro {
  margin: clamp(1.1rem, 3vh, 1.75rem) auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  color: var(--fg-muted);
  letter-spacing: -0.011em;
  text-wrap: pretty;
}

/* ── three points ───────────────────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 4vh, 2.25rem);
  text-align: left;
}

.pillar {
  padding: clamp(0.9rem, 2vh, 1.15rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.pillar h2 {
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.pillar p {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fg-muted);
  letter-spacing: -0.006em;
  text-wrap: pretty;
}

/* ── stack ──────────────────────────────────────────────────────── */

.stack {
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
  font-size: 0.85rem;
  color: var(--fg-faint);
  letter-spacing: 0.004em;
}

/* The separator is attached to the word after it, so a line break never
   strands a lone dot at the end of a line. */
.stack span {
  white-space: nowrap;
  margin: 0 0.2rem;
}

.stack span + span::before {
  content: "\00b7";
  margin-right: 0.55rem;
  opacity: 0.45;
}

/* ── links ──────────────────────────────────────────────────────── */

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1.25rem, 3vh, 1.75rem);
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.2s ease, color 0.2s ease;
}

.links a:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.links svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

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

/* ── responsive ─────────────────────────────────────────────────── */

@media (max-width: 42rem) {
  .pillars {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .pillar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5rem;
    padding: 0.75rem 0.9rem;
  }

  .pillar p {
    margin-top: 0;
  }
}

@media (max-width: 26rem) {
  body {
    padding: 1.5rem 1rem;
  }

  .avatar {
    width: 84px;
    height: 84px;
    margin-bottom: 0.85rem;
  }

  h1 {
    font-size: 2.1rem;
  }

  .role {
    margin-top: 0.4rem;
    font-size: 0.95rem;
  }

  .intro {
    margin-top: 0.9rem;
    font-size: 0.95rem;
  }

  .pillars {
    margin-top: 1rem;
    gap: 0.4rem;
  }

  .pillar {
    padding: 0.6rem 0.85rem;
  }

  .pillar p {
    font-size: 0.84rem;
  }

  .stack,
  .links {
    margin-top: 0.9rem;
  }
}

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