:root {
  color-scheme: light;
  --paper: #f4f0e7;
  --paper-deep: #e8e1d4;
  --ink: #131513;
  --ink-soft: #252823;
  --muted: #6d6a61;
  --line: #bdb7aa;
  --accent: #ef5835;
  --accent-wash: rgba(239, 88, 53, 0.09);
  --serif: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC", sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
  --page-x: clamp(20px, 4.6vw, 72px);
  --max-width: 1480px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 0%, rgba(255, 255, 255, 0.94), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(19, 21, 19, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 21, 19, 0.012) 1px, transparent 1px);
  background-size: 5px 5px, 9px 9px;
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  transform: translateY(0);
}

.page-shell {
  width: min(100%, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  padding-inline: var(--page-x);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--paper);
  background: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-transform: none;
}

.brand-domain {
  white-space: nowrap;
}

.edition {
  margin: 0;
  color: var(--muted);
  justify-self: center;
}

.count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  justify-self: end;
}

.count span {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(680px, 2fr);
  gap: clamp(54px, 8vw, 128px);
  align-items: start;
  padding: clamp(54px, 6vw, 88px) 0 88px;
}

.intro {
  position: sticky;
  top: 38px;
  align-self: start;
  max-width: 370px;
}

.kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5.25vw, 76px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.title-dot {
  color: var(--accent);
}

.lede {
  max-width: 22em;
  margin: 34px 0 0;
  padding-top: 25px;
  border-top: 1px solid var(--ink);
  color: #4f4d47;
  font-family: var(--serif);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.8;
}

.directory {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-height: 45px;
  padding: 0 0 15px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.035em;
}

.section-heading p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

.project-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--ink);
}

.project-item {
  border-top: 1px solid var(--ink);
}

.project-link {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(180px, 0.86fr) minmax(260px, 1.35fr) minmax(138px, 0.68fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
  min-height: 126px;
  padding: 21px 14px 21px 0;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.project-link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: transparent;
  transition: background-color 180ms ease, transform 180ms ease;
}

.project-number {
  align-self: start;
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.project-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.project-tag {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.14;
  transition: transform 180ms ease;
}

.project-description {
  max-width: 39em;
  color: #56534c;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.project-destination {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.project-meta {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.project-updated {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.project-domain {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.35;
  transition: color 180ms ease, transform 180ms ease;
}

.project-item--featured {
  margin-bottom: 30px;
  border-top: 0;
}

.project-item--featured .project-link {
  min-height: 216px;
  padding: 30px 28px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.project-item--featured .project-link::before {
  top: 0;
  right: auto;
  bottom: 0;
  z-index: 0;
  width: 5px;
  background: var(--accent);
}

.project-item--featured .project-link::after {
  position: absolute;
  right: 22px;
  bottom: -0.29em;
  content: "01";
  color: rgba(244, 240, 231, 0.055);
  font-family: var(--serif);
  font-size: clamp(110px, 12vw, 170px);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 1;
  pointer-events: none;
}

.project-item--featured .project-number,
.project-item--featured .project-domain {
  color: rgba(244, 240, 231, 0.58);
}

.project-item--featured .project-updated {
  color: #ff7656;
}

.project-item--featured .project-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ff7656;
}

.project-item--featured .project-tag::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(239, 88, 53, 0.14);
}

.project-item--featured .project-name {
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1;
}

.project-item--featured .project-description {
  position: relative;
  z-index: 1;
  color: rgba(244, 240, 231, 0.76);
  font-size: 15px;
}

.project-item--featured .project-destination {
  position: relative;
  z-index: 1;
}

.project-link:focus-visible {
  z-index: 2;
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

@media (hover: hover) {
  .project-item:not(.project-item--featured) .project-link:hover::before {
    background: var(--accent-wash);
  }

  .project-item--featured .project-link:hover {
    background: var(--ink-soft);
  }

  .project-link:hover .project-name {
    transform: translateX(5px);
  }

  .project-link:hover .arrow {
    color: var(--accent);
    transform: translate(4px, -2px);
  }
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(680px, 2fr);
  gap: clamp(54px, 8vw, 128px);
  align-items: center;
  min-height: 90px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.js-ready .masthead,
.js-ready .intro,
.js-ready .section-heading,
.js-ready .project-item {
  animation: rise-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.js-ready .intro {
  animation-delay: 55ms;
}

.js-ready .section-heading {
  animation-delay: 100ms;
}

.js-ready .project-item {
  animation-delay: calc(135ms + var(--i) * 35ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .page-grid,
  .site-footer {
    grid-template-columns: minmax(210px, 0.62fr) minmax(0, 2fr);
    gap: clamp(38px, 5vw, 68px);
  }

  .project-link {
    grid-template-columns: 36px minmax(170px, 0.82fr) minmax(230px, 1.2fr);
  }

  .project-destination {
    grid-column: 2 / -1;
    justify-content: flex-start;
    margin-top: -6px;
  }

  .project-meta {
    align-items: flex-start;
  }

  .project-item--featured .project-link {
    grid-template-columns: 36px minmax(190px, 0.82fr) minmax(230px, 1.2fr);
  }
}

@media (max-width: 900px) {
  .page-grid {
    display: block;
    padding-top: 54px;
  }

  .intro {
    position: static;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.85fr);
    gap: 48px;
    align-items: end;
    max-width: none;
    padding-bottom: 62px;
  }

  .lede {
    margin: 0;
  }

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

@media (max-width: 680px) {
  :root {
    --page-x: 18px;
  }

  .masthead {
    grid-template-columns: 1fr auto;
    min-height: 70px;
  }

  .edition {
    display: none;
  }

  .brand-domain {
    font-size: 9px;
  }

  .count {
    gap: 6px;
    font-size: 8px;
  }

  .count span {
    font-size: 20px;
  }

  .page-grid {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .intro {
    display: block;
    padding-bottom: 54px;
  }

  .kicker {
    margin-bottom: 18px;
    font-size: 9px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 65px);
  }

  .lede {
    max-width: 28em;
    margin-top: 28px;
    padding-top: 20px;
    font-size: 16px;
    line-height: 1.72;
  }

  .section-heading {
    display: block;
    min-height: 0;
    padding-bottom: 14px;
  }

  .section-heading p {
    margin-top: 7px;
    font-size: 8px;
    text-align: left;
  }

  .project-link,
  .project-item--featured .project-link {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 13px;
    min-height: 0;
    padding: 24px 0 26px;
  }

  .project-number {
    grid-row: 1 / 4;
  }

  .project-description,
  .project-destination {
    grid-column: 2;
  }

  .project-name {
    font-size: clamp(25px, 7.7vw, 32px);
  }

  .project-description {
    font-size: 14px;
    line-height: 1.68;
  }

  .project-destination {
    justify-content: space-between;
    margin-top: 1px;
  }

  .project-domain {
    font-size: 8px;
  }

  .project-item--featured {
    margin-bottom: 20px;
  }

  .project-item--featured .project-link {
    padding: 27px 20px 29px;
  }

  .project-item--featured .project-name {
    font-size: clamp(34px, 10vw, 43px);
  }

  .project-item--featured .project-description {
    font-size: 14px;
  }

  .project-item--featured .project-link::after {
    right: 13px;
    font-size: 105px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-content: center;
    min-height: 108px;
  }

  .site-footer p:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
