/* ============================================================
   EDIT HERE FIRST: colors and fonts for the whole site
   ============================================================ */
:root {
  --bg: #f6f4f0;          /* page background */
  --ink: #141414;         /* main text */
  --muted: #6b6862;       /* secondary text */
  --line: #dcd8d0;        /* dividers */
  --accent: #df4601;      /* links, numbers, highlights */
  --font: "Inter Tight", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1280px;
  --pad: clamp(16px, 4vw, 48px);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main, .footer { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__name { font-weight: 600; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav nav a { color: var(--muted); transition: color .15s; }
.nav nav a:hover { color: var(--ink); }

/* ---------- intro ---------- */
.intro { padding: clamp(72px, 14vw, 180px) 0 clamp(56px, 9vw, 120px); }
.eyebrow { color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.intro h1 {
  font-size: clamp(36px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 20ch;
}
.intro__sub { margin-top: 32px; font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); max-width: 46ch; }

/* ---------- work index ---------- */
.index { border-top: 1px solid var(--line); padding: 40px 0 24px; }
.index__list { list-style: none; display: grid; column-gap: 32px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.index__list a {
  display: flex; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 20px; font-weight: 500;
  transition: color .15s;
}
.index__list span { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.index__list a:hover { color: var(--accent); }

/* ---------- projects ---------- */
.project { padding: clamp(64px, 10vw, 128px) 0 0; }
.project__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.project__num { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.project h3 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.project__tags { color: var(--muted); margin-top: 8px; }

.project__body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 64px;
  margin-bottom: 40px;
}
.project__summary { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.4; max-width: 34ch; }
.project__facts { display: grid; gap: 12px; align-content: start; }
.project__facts div, .about__facts div {
  display: grid; grid-template-columns: 90px 1fr; gap: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); font-size: 14px; padding-top: 2px; }

.project__images { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); }
.project__images img, .project__images video { border-radius: 4px; background: var(--line); }
.project__images video { aspect-ratio: 16 / 9; object-fit: cover; }
.project__images video.ratio-16-10 { aspect-ratio: 16 / 10; }
.project__images .wide { grid-column: 1 / -1; }

/* Captions: small and quiet, sits directly under an image */
.caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--muted);
}

.project__more {
  display: inline-flex; gap: 10px; align-items: center;
  margin-top: clamp(16px, 2vw, 24px);
  padding: 12px 22px;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-weight: 500;
  transition: background .15s, color .15s, border-color .15s;
}
.project__more:hover, .project__more:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- project detail pages ---------- */
.detail { padding: clamp(40px, 6vw, 72px) 0 0; }
.detail__back { display: inline-block; margin-bottom: clamp(32px, 5vw, 56px); color: var(--muted); transition: color .15s; }
.detail__back:hover { color: var(--accent); }
.detail h1 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; }
.detail .project__images { margin-bottom: clamp(40px, 6vw, 72px); }
.detail__copy {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px clamp(24px, 5vw, 64px);
  padding: clamp(24px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}
.detail__copy .section-label { margin-bottom: 0; padding-top: 6px; }
.detail__copy p { margin-bottom: 18px; max-width: 58ch; }
.detail__copy .lead { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; }
.detail .project__images + .detail__copy, .detail__copy + .project__images { margin-top: clamp(16px, 2vw, 24px); }
.detail__pager {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: clamp(48px, 8vw, 96px); padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em;
}
.detail__pager a { display: block; transition: color .15s; }
.detail__pager a:hover { color: var(--accent); }
.detail__pager span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.detail__pager-next { text-align: right; margin-left: auto; }

/* ---------- about ---------- */
.about { padding: clamp(96px, 14vw, 180px) 0 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__photo { border-radius: 4px; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text p { margin-bottom: 20px; max-width: 58ch; }
.about__text .lead { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.about__facts { display: grid; gap: 12px; margin-top: 36px; }

/* ---------- contact ---------- */
.contact { padding: clamp(96px, 14vw, 180px) 0 clamp(64px, 8vw, 96px); }
.contact__email {
  display: inline-block;
  font-size: clamp(30px, 6vw, 80px);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  border-bottom: 3px solid var(--accent);
  overflow-wrap: anywhere;
  transition: color .15s;
}
.contact__email:hover { color: var(--accent); }
.contact__links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 36px; }
.contact__links a { color: var(--muted); }
.contact__links a:hover { color: var(--ink); }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

/* ---------- phones & small tablets ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__name { font-size: 15px; }
  .nav nav { gap: 16px; font-size: 15px; }
  .project__body, .about__grid, .detail__copy { grid-template-columns: 1fr; }
  .project__images { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
}
