@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg: #ffffff;
  --ink: #111111;
  --grey: #6e6e6e;
  --line: #d9d9d9;
  --red: #e30613;

  --grid-cols: 12;
  --gutter: clamp(0.75rem, 1.5vw, 1.5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.grid12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--gutter);
}

a { color: var(--ink); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--ink);
}

.masthead .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}

.masthead .mark {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.masthead nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
}

.masthead nav a {
  text-decoration: none;
  font-size: 0.8rem;
  color: var(--grey);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--red);
  border-color: var(--red);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
}

.hero .index-num {
  grid-column: 1 / span 2;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--line);
}

.hero .headline {
  grid-column: 3 / span 7;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}

.hero h1 .red { color: var(--red); }

.hero p {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 46ch;
  margin: 0;
}

.hero .meta-col {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-left: 1px solid var(--line);
  padding-left: var(--gutter);
}

.hero .meta-col dt { margin: 0 0 0.25rem; }
.hero .meta-col dd { margin: 0; font-weight: 600; font-size: 0.9rem; }

/* ---------- section chrome ---------- */

section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--line); }

.section-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- about ---------- */

.about .lead {
  grid-column: 1 / span 5;
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.about .copy {
  grid-column: 7 / span 6;
  font-size: 1rem;
  color: var(--ink);
}

.about .copy p + p { margin-top: 1rem; }

/* ---------- work: table, not cards ---------- */

.work-table {
  grid-column: 1 / -1;
}

.work-row {
  display: grid;
  grid-template-columns: 0.6fr 3fr 2fr 1.4fr 1fr;
  gap: var(--gutter);
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}

.work-row:hover,
.work-row:focus-visible {
  background: #fafafa;
}

.work-row .n { color: var(--grey); font-weight: 600; }

.work-row h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.work-row .cat { color: var(--grey); font-size: 0.9rem; }

.work-row .year { color: var(--grey); }

.work-row .arrow {
  text-align: right;
  color: var(--red);
  font-weight: 700;
}

.work-head-row {
  display: grid;
  grid-template-columns: 0.6fr 3fr 2fr 1.4fr 1fr;
  gap: var(--gutter);
  padding-bottom: 0.75rem;
}

/* ---------- contact ---------- */

footer.contact {
  background: var(--ink);
  color: var(--bg);
}

footer.contact .wrap {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

footer.contact .big {
  grid-column: 1 / span 8;
}

footer.contact h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

footer.contact a.email {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--red);
}

footer.contact .meta {
  grid-column: 10 / span 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

footer.contact .foot-row {
  grid-column: 1 / -1;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: #9a9a9a;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

footer.contact .foot-row a { color: #9a9a9a; }

@media (max-width: 860px) {
  .hero .index-num { display: none; }
  .hero .headline, .hero .meta-col, .about .lead, .about .copy, footer.contact .big, footer.contact .meta {
    grid-column: 1 / -1;
  }
  .hero .meta-col { border-left: none; padding-left: 0; margin-top: 1.5rem; }
  .work-row, .work-head-row {
    grid-template-columns: 0.5fr 2fr 1fr 0.4fr;
  }
  .work-row .year, .work-head-row .h-year { display: none; }
}
