:root {
  color-scheme: light;
  --ink: #111311;
  --paper: #f0f1eb;
  --paper-strong: #fafbf7;
  --muted: #656a64;
  --line: #c6c9c1;
  --signal: #ef4d2f;
  --water: #1f7378;
  --serif: "Iowan Old Style", "Noto Serif SC", "Songti SC", STSong, serif;
  --sans: "Aptos", "Noto Sans CJK SC", "Microsoft YaHei UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--signal);
  color: white;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.8rem;
  transform: translateY(-160%);
  background: var(--paper-strong);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
}

.brand {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  width: fit-content;
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.66rem;
}

.site-header nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-header nav a,
.header-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-decoration: none;
}

.site-header nav a {
  position: relative;
  padding: 0.75rem 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: white;
  transition: transform 240ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-status {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  justify-self: end;
}

.status-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #9de8b1;
  box-shadow: 0 0 0 4px rgba(157, 232, 177, 0.15);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(76svh, 760px);
  align-items: end;
  overflow: hidden;
  padding: 8.5rem clamp(1.25rem, 6vw, 6.5rem) clamp(3rem, 7vh, 5rem);
  background: #172b3a url("assets/coast-night.jpg") center 55% / cover no-repeat;
  color: white;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 15, 20, 0.35);
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(1.25rem, 6vw, 6.5rem);
  bottom: 0;
  width: 1px;
  height: 34%;
  background: rgba(255, 255, 255, 0.38);
}

.hero-index,
.hero-caption,
.kicker,
.section-index,
.project-type,
.project-meta,
figcaption,
.note-tag,
footer {
  font-family: var(--mono);
  font-size: 0.68rem;
}

.hero-index {
  position: absolute;
  top: 7.25rem;
  right: clamp(1.25rem, 6vw, 6.5rem);
}

.hero-content {
  width: min(100%, 940px);
}

.kicker {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.74);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 8.5rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero-copy {
  max-width: 35rem;
  margin: 1.8rem 0 2rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.8;
}

.hero-link,
.project-copy a,
.closing a {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.82rem;
  text-decoration: none;
}

.hero-link span,
.project-copy a span,
.closing a span {
  transition: transform 220ms ease;
}

.hero-link:hover span,
.hero-link:focus-visible span {
  transform: translateY(4px);
}

.project-copy a:hover span,
.project-copy a:focus-visible span {
  transform: translate(3px, -3px);
}

.hero-caption {
  position: absolute;
  right: clamp(2rem, 7vw, 7.5rem);
  bottom: 2.2rem;
  transform: rotate(-90deg) translateX(100%);
  transform-origin: right bottom;
  color: rgba(255, 255, 255, 0.68);
}

.work-section,
.notes-section {
  padding: 7rem clamp(1.25rem, 6vw, 6.5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) minmax(15rem, 24rem);
  gap: 2rem;
  align-items: end;
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.section-heading h2,
.field-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-list {
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.project {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 11rem;
  gap: 2rem;
  align-items: start;
  min-height: 19rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.project-number {
  color: var(--signal);
  font-family: var(--serif);
  font-size: 2.2rem;
}

.project-copy {
  max-width: 46rem;
}

.project-type {
  margin: 0 0 1.2rem;
  color: var(--water);
}

.project h3 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
}

.project-copy > p:not(.project-type) {
  max-width: 40rem;
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.project-meta {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  color: var(--muted);
}

.field-section {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(20rem, 0.75fr);
  min-height: 740px;
  background: var(--ink);
  color: var(--paper-strong);
}

.field-image {
  position: relative;
  min-height: 640px;
  margin: 0;
  overflow: hidden;
}

.field-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.field-image figcaption {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: 0.65rem 0.8rem;
  background: rgba(17, 19, 17, 0.82);
}

.field-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem clamp(2rem, 5vw, 5.5rem);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.field-copy .section-index {
  color: #92d0d2;
}

.field-copy > p:not(.section-index) {
  margin: 2rem 0;
  color: #c0c5bd;
  font-size: 1rem;
  line-height: 1.9;
}

blockquote {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.7;
}

.notes-section {
  background: var(--paper-strong);
}

.note-list {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.note-list li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr) 7rem;
  gap: 2rem;
  align-items: center;
  min-height: 7rem;
  border-bottom: 1px solid var(--line);
}

.note-list time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.note-list li > span:nth-child(2) {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.6;
}

.note-tag {
  justify-self: end;
  color: var(--water);
}

.closing {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 5rem 1.25rem;
  background: var(--signal);
  color: white;
  text-align: center;
}

.closing p {
  margin: 0;
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 1.18;
}

.closing a {
  margin-top: 2rem;
  color: var(--ink);
}

.closing a:hover span,
.closing a:focus-visible span {
  transform: translateY(-4px);
}

footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem clamp(1.25rem, 6vw, 6.5rem);
  background: var(--ink);
  color: #c0c5bd;
}

footer p {
  margin: 0;
}

footer p:nth-child(2) {
  justify-self: center;
}

.credits {
  justify-self: end;
}

.credits a:hover,
.credits a:focus-visible {
  color: white;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-status {
    display: none;
  }

  .hero h1 {
    font-size: 6.3rem;
  }

  .section-heading {
    grid-template-columns: 7rem minmax(0, 1fr);
  }

  .section-heading > p:last-child {
    grid-column: 2;
  }

  .project {
    grid-template-columns: 6rem minmax(0, 1fr);
  }

  .project-meta {
    grid-column: 2;
    grid-row: 2;
    justify-items: start;
  }

  .field-section {
    grid-template-columns: 1fr;
  }

  .field-image {
    min-height: 520px;
  }

  .field-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
    padding: 0 1rem;
  }

  .brand > span:last-child {
    display: none;
  }

  .site-header nav {
    gap: 1rem;
  }

  .hero {
    min-height: 72svh;
    padding: 7rem 1.25rem 3rem;
    background-position: 62% center;
  }

  .hero-index {
    top: 5.75rem;
    right: 1.25rem;
  }

  .hero h1 {
    font-size: 4.3rem;
    line-height: 0.98;
  }

  .hero-copy {
    max-width: 24rem;
    font-size: 1.05rem;
  }

  .hero-caption,
  .hero::after {
    display: none;
  }

  .work-section,
  .notes-section {
    padding: 5rem 1.25rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .section-heading > p:last-child {
    grid-column: auto;
  }

  .section-heading h2,
  .field-copy h2 {
    font-size: 2.65rem;
  }

  .project {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    min-height: 0;
    padding: 2rem 0;
  }

  .project-number {
    font-size: 1.45rem;
  }

  .project h3 {
    font-size: 2.1rem;
  }

  .field-image {
    min-height: 420px;
  }

  .field-copy {
    padding: 3.5rem 1.25rem 4.5rem;
  }

  .note-list li {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
    padding: 1.5rem 0;
  }

  .note-list li > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .note-tag {
    grid-column: 2;
    grid-row: 1;
  }

  .closing {
    min-height: 430px;
  }

  .closing p {
    font-size: 3rem;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer p:nth-child(2),
  .credits {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
