:root {
  color-scheme: dark;
  --ink: #eaf4f4;
  --muted: #9bb0b7;
  --dim: #6f858e;
  --night: #07131f;
  --panel: #0b1b29;
  --line: rgba(167, 218, 222, 0.2);
  --cyan: #79dce8;
  --amber: #f3b44b;
  --mint: #b7e0c7;
  --max-width: 90rem;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(121, 220, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 220, 232, 0.025) 1px, transparent 1px),
    var(--night);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: var(--night);
  font-weight: 700;
  transform: translateY(-110%);
}

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

.site-header,
.hero,
.work,
footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--pad);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.25rem;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 690;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(121, 220, 232, 0.52);
  border-radius: 50%;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.location,
.eyebrow,
.project-kind,
.project-number,
.project-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.location {
  color: var(--muted);
  font-size: 0.78rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(20rem, 0.84fr) minmax(28rem, 1.16fr);
  min-height: min(49rem, calc(100vh - 6.25rem));
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5.5rem) clamp(3.5rem, 7vw, 6rem) 0;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 670;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 5.4vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.intro {
  max-width: 35rem;
  margin-bottom: 2.4rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--cyan);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.hero-art {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, transparent 24%);
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.92) contrast(1.05);
}

.work {
  padding-top: clamp(5rem, 10vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.45fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-heading .eyebrow {
  align-self: start;
}

h2 {
  max-width: 12ch;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto 1fr auto;
  min-height: 31rem;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 26, 39, 0.72);
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-featured {
  grid-column: span 2;
}

.project-wide {
  grid-column: span 3;
}

.project-number,
.project-kind,
.project-url {
  font-size: 0.74rem;
}

.project-number {
  color: var(--amber);
}

.project-kind {
  justify-self: end;
  color: var(--dim);
}

.project-logo {
  display: grid;
  grid-column: 1 / -1;
  width: 5.5rem;
  height: 5.5rem;
  margin-top: clamp(2.4rem, 5vw, 4rem);
  padding: 0.55rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: #f4f7f5;
}

.project-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-logo-book {
  padding: 0;
}

.project-logo-book img {
  object-fit: cover;
  object-position: center 18%;
}

.project h3 {
  grid-column: 1 / -1;
  margin: 1.5rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project p {
  grid-column: 1 / -1;
  max-width: 38rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.project-url {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--cyan);
}

.project:hover {
  background: var(--cyan);
  color: var(--night);
  transform: translateY(-0.2rem);
}

.project:hover .project-number,
.project:hover .project-kind,
.project:hover .project-url,
.project:hover p {
  color: var(--night);
}

.project:hover .project-logo {
  border-color: rgba(7, 19, 31, 0.24);
}

.project:focus-visible,
.identity:focus-visible,
.text-link:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: center;
  min-height: 10rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer p {
  margin: 0;
}

footer p:first-child {
  color: var(--ink);
  font-weight: 680;
}

footer a {
  color: var(--cyan);
  text-decoration: none;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-art {
    height: clamp(21rem, 60vw, 34rem);
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-art::after {
    background: linear-gradient(180deg, var(--night) 0%, transparent 30%);
  }

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

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

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

  .project-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 5.2rem;
  }

  .location {
    max-width: 8rem;
    text-align: right;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-bottom: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project,
  .project-featured,
  .project-wide {
    grid-column: span 1;
    min-height: 29rem;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  footer a {
    margin-top: 1rem;
  }
}

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

  .project {
    transition: none;
  }
}
