:root {
  --bg: #f7f2ed;
  --ink: 32, 32, 32;
  --fg: rgb(var(--ink));
  --fg-70: rgba(var(--ink), 0.7);
  --fg-60: rgba(var(--ink), 0.6);
  --fg-50: rgba(var(--ink), 0.5);
  --line: rgba(var(--ink), 0.12);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --col: 620px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412;
    --ink: 236, 230, 223;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.nav {
  position: absolute;
  top: 44px;
  right: 40px;
  display: flex;
  gap: 36px;
}

.nav a,
.pill,
.footer-link {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.footer-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.col {
  max-width: calc(var(--col) + 32px);
  margin: 0 auto;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 40px);
  padding-top: 140px;
}

.mark {
  width: clamp(56px, 14vw, 96px);
  flex: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 300;
  font-size: clamp(38px, 10vw, 72px);
  line-height: 1;
  letter-spacing: 0.14em;
  margin-right: -0.14em;
}

.intro { margin-top: 96px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 13px 12px;
  border: 1px solid currentColor;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: background 0.2s, color 0.2s;
}

.pill span { text-decoration: none; display: inline-block; transition: transform 0.2s; }
.pill:hover span { transform: translateX(3px); }

.label {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-60);
  margin-bottom: 30px;
}

section { margin-bottom: 76px; }
section > p + p { margin-top: 22px; }

.projects { list-style: none; border-top: 1px solid var(--line); }

.projects li {
  display: grid;
  grid-template-columns: 40px 1fr;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 40px;
}

.idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--fg-50);
  padding-top: 6px;
}

.projects h3 {
  font-weight: 400;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.tag {
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-50);
  white-space: nowrap;
}

.projects p { font-size: 16px; line-height: 1.6; color: var(--fg-70); letter-spacing: -0.01em; }

.projects .result {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.result a { text-underline-offset: 3px; }

.log, .collab {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  text-align: center;
}

.log { margin-top: 110px; margin-bottom: 110px; }

.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 60px;
  max-width: 540px;
  margin: 0 auto;
  text-align: left;
}

.cards article { width: 240px; }

.cards time {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-50);
  margin-bottom: 10px;
}

.cards h3 { font-weight: 300; font-size: 18px; line-height: 1.45; margin-bottom: 8px; }
.cards p { font-size: 14px; line-height: 1.6; color: var(--fg-70); }

.collab { margin-bottom: 140px; }
.collab p { font-size: 15px; line-height: 1.6; }
.collab a { text-underline-offset: 3px; }

.footer {
  position: relative;
  height: clamp(340px, 46vw, 640px);
  background: #050505;
  color: #ece6df;
  overflow: hidden;
}

.footer-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
  display: block;
}

.footer-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 44px 40px;
}

.pill-inv:hover { background: #ece6df; color: #050505; }

.copy {
  margin-top: 14px;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: rgba(236, 230, 223, 0.65);
}

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { top: 24px; right: 16px; gap: 20px; }
  .brand { padding-top: 96px; }
  .intro { margin-top: 64px; }
  .projects li { grid-template-columns: 30px 1fr; }
  .projects h3 { flex-direction: column; gap: 4px; }
  .cards article { width: 100%; }
  .footer-inner { padding: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
