:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #22221e;
  --muted: #57564d;
  --line: #d5d0c3;
  --accent: #a43f26;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 4.6vw, 5rem);
  font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }

.shell {
  width: min(100% - 2 * var(--gutter), 79rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: 0.8rem;
  left: 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner, .footer-inner {
  min-height: 4.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  font-size: 1.37rem;
  font-weight: 680;
  letter-spacing: -0.055em;
}

nav { display: flex; align-items: center; gap: clamp(0.9rem, 3vw, 2.6rem); }
nav a { font-size: 0.9rem; padding-block: 0.7rem; white-space: nowrap; }
nav a:hover, .text-link:hover { color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.25rem);
  padding-block: clamp(2.75rem, 5.1vw, 5rem) clamp(3.75rem, 6vw, 5.5rem);
}

.label {
  font: 0.72rem/1.45 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-label { display: flex; align-items: center; gap: 0.66rem; color: var(--muted); }
.hero-label::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin-block: 1.4rem 1.55rem;
  font-size: clamp(3.8rem, 7.35vw, 7.6rem);
  font-weight: 590;
  line-height: 0.94;
  letter-spacing: -0.08em;
}

h1 span, .section-index span { color: var(--accent); }

.intro {
  max-width: 31ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.52vw, 1.27rem);
  line-height: 1.55;
}

.text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  min-height: 2.5rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
}

.text-link span { font-size: 1rem; }
.hero .text-link { margin-top: 1.8rem; }

.plot-field {
  display: grid;
  place-items: center;
  position: relative;
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border: 1px solid var(--line);
  background: radial-gradient(circle, #c9c4b6 0.7px, transparent 0.85px) 3px 3px / 12px 12px, #eeebe1;
}

.plot-index { position: absolute; top: 0.8rem; left: 0.86rem; color: var(--muted); }
.plot-cross {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 0.78rem;
  height: 0.78rem;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
}

.hero-art {
  display: block;
  width: min(81%, 26.5rem);
  border: 1px solid #ddd9ce;
  box-shadow: 0 3px 12px #22221e14;
}

.hero-caption, .research-figure figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
}

.hero-caption { padding-top: 0.65rem; font-size: 0.83rem; color: var(--muted); }
.hero-caption .label { flex-shrink: 0; }

.work {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.6rem, 5vw, 4.5rem) clamp(3.9rem, 7.5vw, 7rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-index { color: var(--muted); }
.section-index span { margin-right: 0.25rem; }

h2 {
  margin-top: 0.6rem;
  font-size: clamp(2.65rem, 4.5vw, 4.75rem);
  font-weight: 570;
  letter-spacing: -0.067em;
  line-height: 0.99;
}

.section-heading > p { color: var(--muted); line-height: 1.5; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.15rem, 2.3vw, 2rem);
}

.work-image {
  display: block;
  aspect-ratio: 0.88;
  padding: 4%;
  border: 1px solid var(--line);
  background: #eeebe1;
}

.work-image img { width: 100%; height: 100%; object-fit: contain; }

.work-caption {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.6rem;
  padding-top: 0.8rem;
}

.figure-number { color: var(--accent); padding-top: 0.13rem; }
.work-caption h3 { font-size: 1rem; line-height: 1.35; font-weight: 630; }
.work-caption p { margin-top: 0.3rem; font-size: 0.83rem; color: var(--muted); }

.research { background: #24241f; color: var(--paper); }

.research-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.3rem, 9vw, 9rem);
  padding-block: clamp(3.25rem, 7vw, 7rem);
}

.research h2 { margin-bottom: 1.6rem; }
.research .section-index, .research-figure figcaption { color: #d0cbbd; }
.research .section-index span { color: #f29677; }
.research-copy > p:not(.section-index) {
  max-width: 51ch;
  color: #e0dcd0;
  line-height: 1.65;
  font-size: 1.05rem;
}

.research-copy > p + p { margin-top: 1rem; }
.research-figure { width: min(100%, 22rem); justify-self: center; }
.research-figure a { display: block; }
.research-figure figcaption { margin-top: 0.7rem; }
.footer-inner { min-height: 5.3rem; }

@media (max-width: 899px) {
  .hero, .research-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 2.3rem; }
  h1 { font-size: clamp(3.8rem, 12vw, 6.4rem); }
  .plot-field { padding-block: 1.9rem; }
  .research-figure { justify-self: start; }
}

@media (max-width: 760px) {
  .section-heading { align-items: start; flex-direction: column; gap: 0.8rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}

@media (max-width: 519px) {
  .header-inner { min-height: 4rem; }
  .wordmark { font-size: 1.2rem; gap: 0.4rem; }
  .wordmark img { width: 1.4rem; height: 1.4rem; }
  nav a { font-size: 0.78rem; }
  .hero-art { width: 90%; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
}
