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

:root {
  color-scheme: dark;
  --bg: #111110;
  --ink: #f0efed;
  --body: #aaa8a3;
  --muted: #716e69;
  --faint: #57544f;
  --hairline: #242422;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fefefe;
  --ink: #161616;
  --body: #50504e;
  --muted: #98948e;
  --faint: #b6b3ae;
  --hairline: #ececea;
}

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

/* top-level, not nested in @media print — Chrome's PDF export
   ignores nested @page rules and prints edge-to-edge */
@page { margin: 16mm 17mm; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter var", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "liga" 1, "calt" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.006em;
  transition: background-color 0.25s ease, color 0.25s ease;
}

::selection { background: var(--ink); color: var(--bg); }

.page {
  max-width: 728px;
  margin: 0 auto;
  padding: 108px 28px 96px;
}

/* ——— header ——— */

.crumb { font-size: 13px; margin-bottom: 40px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); opacity: 1; }

.head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px 24px;
}

h1 {
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.022em;
  color: var(--ink);
  line-height: 1.3;
}

header .role { color: var(--body); margin-top: 2px; }

.kicker { font-size: 13px; color: var(--faint); margin-bottom: 8px; }

.dek { color: var(--muted); margin-top: 8px; max-width: 58ch; }

.print-site { display: none; }

.actions { --action-h: 32px; display: flex; align-items: center; gap: 8px; padding-top: 5px; }

.actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--action-h);
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0 12px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.actions a .dl { color: var(--faint); transition: color 0.15s ease; }

.actions a:hover { color: var(--ink); border-color: var(--faint); opacity: 1; }
.actions a:hover .dl { color: var(--ink); }

.theme-btn {
  width: var(--action-h);
  height: var(--action-h);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-btn:hover { color: var(--ink); border-color: var(--faint); }

.theme-btn .sun, .theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: block; }

/* ——— sections ——— */

section { margin-top: 76px; }

h2 {
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 36px;
}

.row {
  display: grid;
  grid-template-columns: 148px 1fr;
  column-gap: 28px;
}

.row + .row { margin-top: 44px; }
.row.tight + .row.tight { margin-top: 28px; }

.when {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.what .title { color: var(--ink); font-weight: 460; }

.what .org { color: var(--muted); }

.what ul { list-style: none; margin-top: 10px; }

.what li { position: relative; padding-left: 20px; }

.what li + li { margin-top: 7px; }

.what li::before {
  content: "•";
  position: absolute;
  left: 1px;
  color: var(--faint);
}

/* prose — plain paragraphs, full measure */
.prose { color: var(--body); }
.prose p + p { margin-top: 14px; }
.prose strong { color: var(--ink); font-weight: 460; }

/* quiet comma-run */
.runline { color: var(--body); }
.runline .geo { color: var(--faint); font-size: 13px; }

/* ——— case study furniture ——— */

.meta { margin-top: 44px; }
.meta .row + .row { margin-top: 10px; }
.meta .when { color: var(--muted); }
.meta .what { color: var(--body); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
}

.stat .n {
  font-size: 24px;
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.stat .l { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* visual project pages */
.shots {
  margin-top: 72px;
  display: grid;
  gap: 48px;
}

.shots figure { margin: 0; }

.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  corner-shape: squircle;
}

.shots figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}

.shots .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 600px) {
  .shots { gap: 36px; }
  .shots .pair { grid-template-columns: 1fr; gap: 36px; }
}

.next {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.next .l { color: var(--faint); font-size: 13px; padding-top: 2px; }

/* ——— links ——— */

a { color: var(--ink); text-decoration: none; transition: opacity 0.15s ease; }

a:hover { opacity: 0.55; }

a .arrow {
  display: inline-block;
  color: var(--faint);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
  margin-left: 1px;
}

a:hover .arrow { transform: translate(1.5px, -1.5px); }

a .arr {
  display: inline-block;
  color: var(--faint);
  transition: transform 0.18s cubic-bezier(0.2, 0, 0, 1);
  margin-left: 1px;
}

a:hover .arr { transform: translateX(2.5px); }

/* contact rows */
.contact .row + .row { margin-top: 12px; }
.contact .when { color: var(--muted); }

/* ——— footer ——— */

footer {
  margin-top: 96px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* ——— load-in ——— */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.1, 1) forwards;
    animation-delay: calc(var(--i) * 75ms);
  }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* ——— small screens ——— */

@media (max-width: 600px) {
  .page { padding: 72px 24px 72px; }
  section { margin-top: 60px; }
  .row { grid-template-columns: 1fr; }
  .when { margin-bottom: 4px; font-size: 13px; }
  .row + .row { margin-top: 36px; }
  .meta .row + .row { margin-top: 14px; }
  .stats { grid-template-columns: 1fr; gap: 20px; }
}
