@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --paper: #F7F5F1;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --slate: #5B6B7C;
  --rust: #B85C38;
  --hairline: #E8E4DC;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */

nav {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0 20px;
  margin-bottom: 56px;
}

nav .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-name {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding-left: 16px;
  transition: color 0.15s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.4px solid var(--slate);
  background: transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::before {
  background: var(--rust);
  border-color: var(--rust);
}

.nav-links a:hover::before {
  background: var(--slate);
}

/* --- Page content --- */

main {
  padding-bottom: 80px;
  min-height: 50vh;
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}

h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 8px;
}

p.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0 0 40px;
}

p {
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 14px;
}

/* --- Project cards --- */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.project {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}

.project h2 {
  margin-bottom: 6px;
}

.project p {
  margin: 0 0 16px;
  font-size: 0.96rem;
}

.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary {
  border-color: var(--rust);
  color: var(--rust);
}

.btn-primary:hover {
  background: var(--rust);
  color: var(--paper);
  border-color: var(--rust);
}

.btn-arrow {
  transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* --- Footer --- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 24px 0 40px;
}

footer .wrap {
  font-size: 0.82rem;
  color: var(--slate);
}

/* --- Responsive --- */

@media (max-width: 560px) {
  h1 {
    font-size: 1.9rem;
  }
  nav .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    gap: 20px;
  }
}

/* --- Focus visibility --- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
