:root {
  --white: #ffffff;
  --black: #0e0e0e;
  --yellow: #ffd400;
  --line: #0e0e0e;
  --muted: rgba(14, 14, 14, 0.72);
  --max-width: 1720px;
  --row-height: 66px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--black);
  font-family: "IBM Plex Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: 100%;
}

#archive {
  padding-top: var(--row-height);
}

.topbar,
.statement-band,
.section-row,
.footer-anchor {
  border-top: 1px solid var(--line);
}

.topbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.topbar a {
  min-width: 0;
  min-height: var(--row-height);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  transition:
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.topbar a:not(:last-child) {
  border-right: 1px solid var(--line);
}

.topbar a:hover {
  background-image: var(--hover-gradient, none);
  background-size: cover;
  background-position: center;
  background-color: var(--hover-accent, var(--yellow));
}

.statement-band {
  display: block;
  background-color: var(--white);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.statement-band p {
  margin: 0;
  min-height: 33vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--black);
  background: transparent;
  font-family: "Alike", "Times New Roman", serif;
  font-size: clamp(3.2rem, 5.6vw, 5.9rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: left;
  transition:
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.statement-band p:hover {
  background-image: var(--hover-gradient, none);
  background-size: cover;
  background-position: center;
  background-color: var(--hover-accent, var(--yellow));
}

.sections-list {
  border-bottom: 1px solid var(--line);
}

.section-row summary {
  display: grid;
  grid-template-columns: 72px minmax(260px, 1fr);
  gap: 22px;
  align-items: center;
  min-height: var(--row-height);
  padding: 0 28px;
  cursor: pointer;
  list-style: none;
  transition:
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.section-row summary::-webkit-details-marker {
  display: none;
}

.section-row summary:hover {
  background-image: var(--hover-gradient, none);
  background-size: cover;
  background-position: center;
  background-color: var(--hover-accent, var(--yellow));
}

.row-arrow {
  font-size: 2rem;
  line-height: 1;
  transition: transform 240ms var(--ease);
}

.section-row[open] .row-arrow {
  transform: rotate(180deg);
}

.row-title {
  font-family: "Alike", "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.project-item span {
  font-size: 0.95rem;
  line-height: 1.45;
  text-transform: uppercase;
  transition: transform 220ms var(--ease);
}

.row-meta {
  display: none;
}

.projects-table {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.project-item {
  display: grid;
  grid-template-columns: 48px minmax(220px, 0.8fr) minmax(320px, 1.1fr) 180px;
  gap: 22px;
  align-items: center;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

.project-link {
  text-decoration: none;
}

.project-item::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  transition:
    width 220ms var(--ease),
    transform 220ms var(--ease);
}

.project-item:hover {
  background-image: var(--hover-gradient, none);
  background-size: cover;
  background-position: center;
  background-color: var(--hover-accent, var(--yellow));
}

.project-item:hover::before {
  width: 36px;
  transform: translateX(4px);
}

.project-item:hover span {
  transform: translateX(8px);
}

.project-item span:last-child {
  text-align: right;
}

.footer-anchor {
  height: 1px;
}

@media (max-width: 1160px) {
  .section-row summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .project-item {
    grid-template-columns: 24px minmax(0, 1fr) 140px;
  }

  .project-item span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar a {
    min-height: 56px;
    font-size: 0.82rem;
  }

  .statement-band p {
    min-height: 24vh;
    padding: 18px;
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .section-row summary,
  .project-item {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    min-height: auto;
    padding: 18px;
  }

  .row-arrow {
    display: none;
  }

  .row-title {
    font-size: clamp(1.45rem, 5vw, 1.8rem);
  }

  .project-item::before {
    display: none;
  }

  .project-item span:last-child {
    text-align: left;
  }
}
