/* Option D: Option A's type and colour, arranged as an index with a sticky sidebar. */
:root {
  --ink: rgba(0, 0, 0, 0.55);
  --strong: #000;
  --rule: rgba(0, 0, 0, 0.4);
  --hair: rgba(0, 0, 0, 0.12);
  --gutter: 64px;
  --side: 260px;
  --cols: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.6fr);
  --thumb-w: 150px;
  --thumb-h: 199px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.06px;
}
h1, h2, p, ul, ol, dl, dd { margin: 0; padding: 0; font: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: from-font; }
.text p + p { margin-top: 18px; }
.f { position: absolute; opacity: 0; pointer-events: none; }

.page {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  column-gap: 48px;
  padding: 0 var(--gutter);
}

/* Sidebar */
.side {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 92px 0 48px;
  scrollbar-width: none;
}
.side h1 { font-size: 16px; line-height: 23.2px; }
.who { line-height: 17.4px; margin-bottom: 56px; }
.who .links { margin: 17.4px 0; }
.clock { font-variant-numeric: tabular-nums; }
.currently { margin-top: 17.4px; max-width: 30ch; }
.currently span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}
.label, .contents summary, .heading p {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}
.contents summary { list-style: none; cursor: default; padding-bottom: 6px; border-bottom: 0.5px solid var(--rule); }
.contents summary::-webkit-details-marker { display: none; }
.contents ol { margin-bottom: 40px; }
.contents a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 0.5px solid var(--hair);
  text-decoration: none;
}
.contents a span:last-child { white-space: nowrap; color: rgba(0, 0, 0, 0.35); }
.contents a:hover { color: var(--strong); }
.filter .label { padding-bottom: 6px; border-bottom: 0.5px solid var(--rule); margin-bottom: 6px; }
.filter ul { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.filter label, .filter button, .empty button { cursor: pointer; }
.filter button, .empty button { padding: 0; border: 0; background: none; font: inherit; color: inherit; }
.filter label:hover, .filter button:hover { color: var(--strong); }
body:not(:has(.f:checked)) .filter .all { color: var(--strong); text-decoration: underline; }
.empty { display: none; padding: 40px 0 72px; border-bottom: 0.5px solid var(--rule); }
.empty button { text-decoration: underline; }
.no-match .empty { display: block; }

/* Main column */
main { min-width: 0; padding-top: 92px; }
.intro { max-width: 554px; padding-bottom: 83px; }
.intro .press span { color: var(--strong); }

.row {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 24px;
  align-items: baseline;
}
.heading { padding: 10px 0 6px; border-top: 0.5px solid var(--rule); border-bottom: 0.5px solid var(--rule); position: sticky; top: 0; background: #fff; z-index: 2; }

.project { padding: 40px 0 72px; border-bottom: 0.5px solid var(--rule); scroll-margin-top: 32px; }
.project h2 { font-size: 20px; line-height: 30px; letter-spacing: -0.08px; }
.project h2 span { display: block; font-size: 16px; line-height: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tags li { padding: 1px 7px; border: 0.5px solid var(--rule); border-radius: 999px; font-size: 11px; line-height: 16px; }

.detail { margin-top: 24px; align-items: start; }
.detail .text { grid-column: 1 / 3; max-width: 554px; }
.meta { grid-column: 3 / 5; }
.meta div { display: grid; grid-template-columns: 80px 1fr; }
.meta .more { font-size: 14px; line-height: 20.3px; font-weight: 600; margin-top: 18px; }
.meta .more.next { margin-top: 4px; }

.banner {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-top: 48px;
  background: #eee;
}
.strip {
  display: flex;
  gap: 48px;
  margin-top: 48px;
  overflow-x: auto;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: none; }
.strip img { display: block; width: var(--thumb-w); height: var(--thumb-h); object-fit: cover; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 68px 0 106px;
  font-size: 16px;
  line-height: 23.2px;
}
footer p:last-child { font-size: 12px; }

/* Narrower screens: tags move under the title row. */
@media (max-width: 1180px) {
  :root { --gutter: 32px; --side: 220px; --cols: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); }
  .heading p:last-child { display: none; }
  .tags { grid-column: 1 / -1; margin-top: 8px; }
  .detail .text { grid-column: 1 / 3; }
  .meta { grid-column: 3; }
}

/* Phones: one column, sidebar on top, contents folded. */
@media (max-width: 767px) {
  :root { --gutter: 24px; --cols: minmax(0, 1fr) auto; --thumb-w: 100px; --thumb-h: 133px; }
  .page { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; padding: 72px 0 32px; }
  .who { margin-bottom: 32px; }
  .contents:not([open]) summary::after { content: ' +'; }
  .contents[open] summary::after { content: ' −'; }
  .contents summary { cursor: pointer; }
  main { padding-top: 24px; }
  .intro { padding-bottom: 48px; }
  .heading { display: none; }
  .row > p:nth-of-type(2) { grid-column: 1 / -1; }
  .detail .text, .meta { grid-column: 1 / -1; }
  .meta { margin-top: 24px; }
  .strip { gap: 24px; }
  footer { flex-direction: column; gap: 16px; padding: 48px 0 64px; }
}
