@charset "UTF-8";
:root {
  --paper: #f7f6f2;
  --ink: #242921;
  --ink-soft: #3c4138;
  --muted: #686d63;
  --line: #dddfd6;
  --orange: #d45a34;
  --orange-soft: #f9eee6;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 4px;
}
::selection {
  background: #efd4bb;
  color: var(--ink);
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header */
.site-header {
  padding: 22px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.brand img {
  display: block;
}
.brand-period {
  color: var(--orange);
}
.site-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.site-nav a:hover {
  color: var(--ink);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding-top: clamp(40px, 8vw, 104px);
  padding-bottom: clamp(48px, 8vw, 112px);
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 19ch;
}
.hero-lede {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  max-width: 52ch;
  color: var(--ink-soft);
}
.hero-jump {
  display: inline-block;
  margin-top: 36px;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.hero-jump:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.hero-mark {
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 1;
}
.hero-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero-mark path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-mark path {
    animation: draw-mark 1.5s cubic-bezier(0.6, 0, 0.2, 1) 0.25s both;
  }
  @keyframes draw-mark {
    from {
      stroke-dashoffset: 100;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
}

/* Projects */
.projects {
  padding-bottom: clamp(48px, 8vw, 104px);
}
.projects-head {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.projects-head h2,
.how h2 {
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.15;
}
.projects-head p {
  color: var(--muted);
  font-size: 15px;
  max-width: 40ch;
}
.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project--alpha {
  --accent: #b74422;
  --accent-soft: var(--orange-soft);
}
.project-swatch {
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
  margin-bottom: 8px;
}
.project h3 {
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.project-tagline {
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.project-code {
  color: var(--muted);
  font-size: 14px;
  margin-top: -8px;
}
.project-body {
  color: var(--ink-soft);
  max-width: 70ch;
}
.project-status {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 44ch;
}
.project-link {
  align-self: flex-start;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 15px;
  transition: background-color 0.15s ease;
}
.project-link:hover {
  background: var(--accent);
}

/* How we work */
.how {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  padding-bottom: clamp(56px, 8vw, 112px);
}
.how h2 {
  margin-bottom: 36px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.how h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 10px;
}
.how p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 36ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .brand {
  font-size: 19px;
  color: var(--ink);
}

/* Small screens */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }
  .hero-mark {
    order: -1;
    justify-self: start;
    width: 140px;
  }
  .hero h1 {
    max-width: none;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .site-nav {
    gap: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .project-link {
    transition: none;
  }
}
