:root {
  --paper: #f4f0e7;
  --ink: #171717;
  --muted: #6b675f;
  --line: #c8c0b1;
  --pink: #e72578;
  --cyan: #00a9b7;
  --yellow: #f3c416;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 900;
  text-decoration: none;
  letter-spacing: .08em;
}

nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .82rem;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 46px auto 30px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  min-height: 76vh;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(4.2rem, 10vw, 9.5rem);
  line-height: .76;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.intro {
  max-width: 600px;
  margin: 32px 0 18px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  filter: saturate(.83) contrast(1.02);
}

.hero-image,
.person img,
.work-image,
.app-section figure img {
  border: 1px solid var(--ink);
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 11px 0 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
  letter-spacing: .08em;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0;
}

.history {
  padding-top: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.history-line {
  margin: 0;
  font-size: clamp(1.1rem, 2.3vw, 1.75rem);
  line-height: 1.5;
}

.history-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 30px;
  align-items: start;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.045em;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  border-top: 3px solid var(--ink);
  padding-top: 12px;
}

.work-image {
  aspect-ratio: 4 / 5;
  background-image: url("assets/graffiti.png");
  background-size: 195%;
  background-repeat: no-repeat;
}

.work-image-a {
  background-position: 18% 45%;
}

.work-image-b {
  background-position: 52% 53%;
  filter: grayscale(.65) contrast(1.08);
}

.work-image-c {
  background-position: 82% 38%;
}

.work-meta {
  padding-top: 14px;
}

.work-meta h3,
.person h3 {
  margin: 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.work-meta p {
  margin: 2px 0;
  color: var(--muted);
}

.note {
  max-width: 760px;
  margin: 28px 0 0 auto;
  padding-left: 18px;
  border-left: 5px solid var(--yellow);
}

.people-section {
  border-top: 1px solid var(--line);
}

.people-grid {
  display: grid;
  gap: 28px;
}

.person {
  display: grid;
  grid-template-columns: minmax(160px, 290px) 1fr;
  gap: 30px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.person img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.person p {
  max-width: 690px;
  margin: 0;
}

.app-section {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: clamp(32px, 7vw, 95px);
  align-items: center;
  padding: 90px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--ink);
  color: var(--paper);
}

.app-copy p:not(.section-label) {
  max-width: 690px;
  font-size: 1.05rem;
}

.app-section figure {
  margin: 0;
}

.app-section figure img {
  border-color: var(--paper);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 20px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  font-size: .85rem;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

.small {
  color: var(--muted);
}

@media (max-width: 850px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    justify-content: flex-end;
    gap: .75rem 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 32px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .work-image {
    aspect-ratio: 16 / 10;
    background-size: 130%;
  }

  .person {
    grid-template-columns: 140px 1fr;
    gap: 20px;
  }

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

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

@media (max-width: 580px) {
  .site-header {
    position: static;
    display: block;
  }

  nav {
    margin-top: 12px;
    justify-content: flex-start;
    font-size: .8rem;
  }

  h1 {
    font-size: clamp(4rem, 22vw, 6.2rem);
  }

  .section {
    padding: 62px 0;
  }

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

  .person img {
    max-height: 560px;
  }
}
