@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dddddd;
  --card: #ffffff;
  --accent: #111111;
  --accent-dark: #000000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

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

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav,
main,
footer {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  color: var(--text);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  display: none;
  font: inherit;
  padding: 8px 10px;
}

.hero {
  padding: 96px 0 72px;
  max-width: 780px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.04;
  margin-bottom: 20px;
}

h2 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.intro {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 640px;
}

.intro-morph {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.morph-word {
  color: var(--text);
  cursor: default;
  display: inline-grid;
  min-width: 4.8rem;
  place-items: center;
  position: relative;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.morph-word::after {
  color: var(--text);
  content: attr(data-emoji);
  filter: blur(10px);
  font-size: 1.35em;
  opacity: 0;
  position: absolute;
  transform: scale(0.55);
  transition:
    filter 220ms ease,
    opacity 160ms ease,
    transform 220ms ease;
}

.morph-word:hover {
  color: transparent;
  transform: scale(1.08);
}

.morph-word:hover::after {
  filter: none;
  opacity: 1;
  transform: scale(1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  line-height: 1.6;
  padding: 10px 16px;
}

.button-icon {
  fill: currentColor;
  flex: 0 0 auto;
  height: 1rem;
  width: 1rem;
}

.button:hover {
  background: #f2f2f2;
  color: var(--accent-dark);
}

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

.section-heading {
  margin-bottom: 28px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.entry,
.project-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 120px;
  padding: 22px;
}

.entry {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(180px, 260px) 1fr;
}

.entry-description p:last-child {
  margin-bottom: 0;
}

.meta,
.tags {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.project-card a {
  font-weight: 700;
  margin-top: auto;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 28px 0;
}

footer p {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    padding: 64px 0 52px;
  }

  .entry {
    display: block;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .morph-word,
  .morph-word::after {
    transition: none;
  }
}
