:root {
  --paper: #f4f5f2;
  --ink: #17252c;
  --muted: #5e6e72;
  --line: #c4cdc7;
  --line-index: #97a8a0;
  --accent: #2c6e63;
  --rule: #dce0da;
  --measure: 62ch;
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 32px 0;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--ink); border-bottom-color: var(--line-index); }

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

.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 32px 96px;
  isolation: isolate;
}

.terrain {
  position: absolute;
  inset: -64px 0 auto;
  width: 100%;
  height: 520px;
  z-index: -1;
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 44%, transparent 94%),
    linear-gradient(to right, transparent 8%, rgba(0, 0, 0, 0.35) 30%, #000 52%);
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 44%, transparent 94%),
    linear-gradient(to right, transparent 8%, rgba(0, 0, 0, 0.35) 30%, #000 52%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.terrain .idx { stroke: var(--line-index); stroke-width: 1.6; }

.hero-text { max-width: 660px; }

h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.018em;
}

.lede {
  margin: 26px 0 0;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 32px;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 36px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.012em;
}

.minor {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.minor + .plain + .minor { margin-top: 30px; }

.plain {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.plain li { padding: 3px 0; }

/* ---------- work ---------- */

.work-list { margin: 0; padding: 0; list-style: none; }

.work-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}

.work-row:first-child { border-top: 1px solid var(--rule); }

.swatch {
  width: 88px;
  height: 88px;
  fill: none;
  stroke: var(--line-index);
  stroke-width: 1.4;
}

.work-body h3 {
  margin: 0 0 6px;
  font-size: 1.3125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.work-body p {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
}

.work-year {
  font-size: 0.9375rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- practice ---------- */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 56px;
}

.two-col p {
  margin: 0 0 18px;
  max-width: var(--measure);
}

.two-col p:last-child { margin-bottom: 0; }

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

.contact-mail {
  margin: 0 0 24px;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.contact-mail a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(44, 110, 99, 0.35);
}

.contact-mail a:hover { border-bottom-color: var(--accent); }

address {
  font-style: normal;
  color: var(--muted);
}

.note {
  margin: 24px 0 0;
  max-width: 48ch;
  color: var(--muted);
}

/* ---------- 404 ---------- */

.notfound { padding-top: 96px; border-top: 0; }
.notfound h1 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
.notfound p { margin: 22px 0 0; max-width: 44ch; color: var(--muted); }
.notfound a { color: var(--accent); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 32px 56px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .hero { padding: 72px 24px 64px; }
  .terrain { inset: -80px 0 auto; height: 420px; }
  .masthead { padding: 22px 24px 0; }
  .section { padding: 56px 24px; }
  .footer { padding: 28px 24px 44px; }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .work-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; }
  .swatch { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
