:root {
  --bg: #fafafa;
  --surface: #fff;
  --ink: #171717;
  --muted: #525252;
  --muted-2: #737373;
  --muted-3: #a3a3a3;
  --accent: #e5533c;
  --accent-dark: #cf4126;
  --border: #f0f0f0;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: rgba(229, 83, 60, 0.18); }

.eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
}

.nav__brand {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
}
.nav__links a { color: var(--muted); }
.nav__links a:hover { color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__bar {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__bar:nth-child(2) {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav__mobile {
  display: flex;
  flex-direction: column;
  padding: 8px 28px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile a {
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child { border-bottom: none; }

/* hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 118px 28px 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .eyebrow { margin-bottom: 28px; }
.hero__title {
  margin: 0;
  font-size: 66px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 820px;
}
.hero__lead {
  margin: 32px 0 0;
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 620px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 42px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.btn {
  display: inline-flex;
  flex: 1;
  min-width: 160px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  transition: background 0.2s ease;
}
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost {
  background: var(--surface);
  border: 1px solid #e2e2e2;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

/* about */
.about {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about .eyebrow { margin-bottom: 26px; font-size: 12px; letter-spacing: 0.12em; }
.about__body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
  font-size: 18px;
  line-height: 1.7;
  color: #404040;
}
.about__body p { margin: 0; }

/* projects */
.work {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.work__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 28px 96px;
}
.work__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 48px;
}
.work__head h2 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.work__head p {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted-2);
}
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid #ececec;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.25);
  border-color: #dcdcdc;
}
.card__meta {
  display: flex;
  border-bottom: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--muted-2);
}
.card__meta span {
  padding: 14px 18px;
  flex: 1;
  border-right: 1px solid var(--border);
}
.card__meta span:first-child { flex: 1.2; white-space: nowrap; }
.card__meta span:last-child { border-right: none; }
.card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card__title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f5f5f4;
  color: var(--muted);
  white-space: nowrap;
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}
.card__blurb {
  margin: 0;
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
  color: #5c5c5c;
}
.card__links {
  display: flex;
  gap: 18px;
  padding-top: 4px;
}
.card__links a { font-size: 14px; font-weight: 500; }
.card__links a:hover { color: var(--ink); }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer__name { font-weight: 600; font-size: 16px; }
.footer__tag { font-size: 14px; color: #8a8a8a; }
.footer__links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  flex-wrap: wrap;
}
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--ink); }

/* mobile */
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .hero { padding: 84px 28px 72px; }
  .hero__title { font-size: 40px; }
  .hero__lead { font-size: 16.5px; }
  .about__body { font-size: 16.5px; }
  .work__head h2 { font-size: 28px; }
  .work__grid { grid-template-columns: 1fr; }
}
