@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap");

:root {
  --paper: #f3f0e8;
  --paper-strong: #faf8f2;
  --ink: #171813;
  --muted: #66675f;
  --rule: #c9c6bb;
  --signal: #ed5b2d;
  --signal-soft: #f7d9cb;
  --acid: #d7ef50;
  --display: "Instrument Serif", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(23, 24, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 24, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 18px 0 0 var(--acid);
  margin-right: 18px;
}

.header-note,
.hero-label,
.scroll-note,
.item-type,
.about-kicker,
.site-footer {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.hero {
  min-height: min(710px, calc(100vh - 92px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 0 42px;
  border-bottom: 1px solid var(--ink);
}

.hero-label {
  font-size: 11px;
  color: var(--muted);
}

.hero h1 {
  max-width: 1160px;
  margin: 50px 0 70px;
  font-family: var(--display);
  font-size: clamp(66px, 9.7vw, 154px);
  font-weight: 400;
  line-height: 0.84;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--signal);
  font-weight: 400;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.hero-foot p {
  max-width: 560px;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.scroll-note {
  font-size: 10px;
  color: var(--muted);
}

.directory {
  padding: 96px 0 110px;
  border-bottom: 1px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 5.3vw, 80px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.directory-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.directory-list > li {
  position: relative;
  border-bottom: 1px solid var(--rule);
}

.directory-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 180px;
  gap: 30px;
  align-items: center;
  min-height: 210px;
  padding: 34px 24px 34px 0;
  text-decoration: none;
  transition: background-color 180ms ease, padding 180ms ease;
}

a.directory-item:hover,
a.directory-item:focus-visible {
  padding-left: 24px;
  background: var(--paper-strong);
  outline: none;
}

.item-number {
  align-self: start;
  padding-top: 4px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 12px;
}

.item-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.item-type {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
}

.item-copy strong {
  font-family: var(--display);
  font-size: clamp(36px, 4.25vw, 65px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.item-description {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.item-action {
  justify-self: end;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

a.directory-item:hover .item-action,
a.directory-item:focus-visible .item-action {
  color: var(--signal);
}

.sub-link {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 1;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.sub-link:hover,
.sub-link:focus-visible {
  color: var(--signal);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 9vw;
  padding: 110px 0 130px;
  border-bottom: 1px solid var(--ink);
}

.about-kicker {
  display: block;
  margin-bottom: 26px;
  color: var(--signal);
  font-size: 10px;
}

.about h2 {
  max-width: 860px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 6.7vw, 102px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.about p {
  align-self: end;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.site-footer {
  min-height: 105px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.site-footer a {
  justify-self: end;
  text-underline-offset: 4px;
}

@media (max-width: 840px) {
  .page-shell {
    width: min(100% - 28px, 720px);
  }

  .site-header {
    min-height: 74px;
  }

  .header-note {
    max-width: 150px;
    text-align: right;
    line-height: 1.45;
  }

  .hero {
    min-height: calc(100svh - 74px);
    padding: 38px 0 26px;
  }

  .hero h1 {
    margin: 42px 0;
    font-size: clamp(58px, 18vw, 105px);
  }

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

  .section-heading p {
    text-align: left;
  }

  .directory {
    padding: 72px 0 80px;
  }

  .directory-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 28px 0 58px;
  }

  a.directory-item:hover,
  a.directory-item:focus-visible {
    padding-left: 10px;
  }

  .item-action {
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }

  .sub-link {
    right: auto;
    left: 58px;
    bottom: 28px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 86px 0 94px;
  }

  .about p {
    max-width: 560px;
  }
}

@media (max-width: 520px) {
  .header-note {
    display: none;
  }

  .hero h1 {
    font-size: clamp(55px, 19.2vw, 88px);
    line-height: 0.88;
  }

  .hero-foot {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scroll-note {
    display: none;
  }

  .directory-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .item-copy strong {
    font-size: 36px;
  }

  .item-description {
    font-size: 13px;
  }

  .sub-link {
    left: 42px;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }
}

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

  .directory-item {
    transition: none;
  }
}
