@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2-variations");
  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: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin.woff2") format("woff2-variations");
  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;
}

:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --fg: #1a1c20;
  --muted: #6b7080;
  --line: rgba(17, 18, 20, 0.09);
  --line-strong: rgba(17, 18, 20, 0.16);
  --accent: #1f4fd6;
  --accent-hover: #1a43b8;
  --accent-fg: #ffffff;
  --shadow: 0 1px 2px rgba(17, 18, 20, 0.05), 0 12px 32px -16px rgba(17, 18, 20, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --bg-elevated: #161920;
    --fg: #e6e8ee;
    --muted: #8d93a3;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #7e9bff;
    --accent-hover: #93acff;
    --accent-fg: #0b0d12;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

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

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

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

@media (prefers-reduced-motion: no-preference) {
  .page {
    animation: intro 0.7s ease both;
  }

  .frame {
    animation: intro-photo 0.85s ease both;
  }

  .hero > div {
    animation: intro 0.7s ease 0.08s both;
  }

  .divider,
  .projects,
  .foot {
    animation: intro 0.7s ease 0.18s both;
  }
}

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

@keyframes intro-photo {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding: 24px 0 48px;
}

.frame {
  margin: 0;
  padding: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 14%;
  outline: 1px solid var(--line);
}

.greeting {
  margin: 0 0 2px;
  color: var(--muted);
}

h1 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero p {
  margin: 0 0 12px;
}

.hero .secondary {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  margin-top: 8px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.button:hover {
  background: var(--accent-hover);
}

/* Divider */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.divider span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

/* Projects */

.projects {
  padding-top: 40px;
}

h2 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.projects ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects li {
  border-bottom: 1px solid var(--line);
}

.projects li a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: center;
  padding: 14px 0;
}

.projects li .title {
  grid-column: 1;
  grid-row: 1;
  font-weight: 500;
}

.projects li .desc {
  grid-column: 1;
  grid-row: 2;
  font-size: 14px;
  color: var(--muted);
}

.projects li .arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.projects li a:hover .arrow {
  transform: translateX(3px);
  color: var(--fg);
}

.projects li a:hover .title {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

/* Hugging Face card */

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-elevated);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--muted);
}

.card-icon {
  display: block;
  width: 32px;
  height: auto;
}

.card-body {
  display: grid;
  gap: 2px;
}

.card .title {
  font-weight: 500;
}

.card .desc {
  font-size: 14px;
  color: var(--muted);
}

.card .arrow {
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.card:hover .arrow {
  transform: translateX(3px);
  color: var(--fg);
}

/* Footer */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.foot a:hover {
  color: var(--fg);
}

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 8px 0 36px;
  }

  .frame {
    width: 160px;
  }

  h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .projects li .arrow,
  .card,
  .card .arrow {
    transition: none;
  }

  .page,
  .frame,
  .hero > div,
  .divider,
  .projects,
  .foot {
    animation: none;
  }
}
