.project-page { --accent: #62392c; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
.back-projects { display: inline-flex; align-items: center; gap: .58rem; min-height: 2.25rem; text-decoration: none; color: var(--secondary); font: 500 .87rem/1.3 var(--sans); }
.back-projects:hover { text-decoration: underline; }
.project-heading { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); column-gap: clamp(2rem, 4vw, 5rem); align-items: end; margin-block: clamp(.6rem, 1.5vw, 1.4rem) clamp(1.8rem, 3.2vw, 3.6rem); }
.project-meta { display: flex; gap: 1rem 2.5rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: .85rem; }
.project-meta dl, .project-meta dl div { display: flex; align-items: baseline; gap: .6rem; margin: 0; }
.project-meta dl { flex-wrap: wrap; gap: .5rem clamp(1rem, 3.5vw, 3.5rem); }
.project-meta dt, .section-label, .next-inner > div:first-child > span { font: 450 .82rem/1.4 var(--mono); }
.project-meta dt, .section-label { color: var(--secondary); }
.project-meta dd { margin: 0; font-size: .94rem; }
.project-meta > a, .project-story a { font-size: .94rem; font-weight: 540; text-decoration-color: #999d95; text-underline-offset: .27em; }
.project-meta > a { flex-shrink: 0; padding-block: .45rem; }
.project-story, .project-example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.7rem clamp(3rem, 8vw, 9.5rem); }
.project-story { padding-block: clamp(2.8rem, 6.5vw, 6.8rem); }
.project-story p { margin: .9rem 0 0; font: 420 clamp(1.15rem, 1.6vw, 1.55rem)/1.46 var(--sans); letter-spacing: -.026em; text-wrap: pretty; }
.project-story a { display: inline-block; margin-top: 1rem; }
.project-example { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5.5vw, 6rem); align-items: start; }
.example-title { max-width: 14em; margin-top: .75rem; }
.example-note { max-width: 31rem; margin-top: 1.1rem; color: var(--secondary); font-size: 1rem; line-height: 1.5; }
.example-box fieldset { min-width: 0; padding: 0; border: 0; margin: 0; }
.example-options { display: flex; flex-wrap: wrap; gap: .4rem; }
.example-options label { position: relative; cursor: pointer; }
.example-options input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.example-options label > span { display: flex; align-items: center; min-height: 2.75rem; font-size: .92rem; padding: .5rem 1rem; border: 1px solid #afb1a9; border-radius: 100px; }
.example-options input:checked + span { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.example-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.example-answers { display: grid; margin-top: 1.6rem; }
.example-answer { grid-area: 1 / 1; display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem; visibility: hidden; }
.example-answer-title { margin-bottom: .6rem; }
.example-answer p { max-width: 40em; font-size: 1.04rem; line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.example-image { display: block; flex: 0 0 min(28%, 8.6rem); cursor: zoom-in; }
.example-answer img { width: 100%; border-radius: 6%; height: auto; }
.next-project { background: #1c2020; color: var(--paper); }
.next-project a { display: block; color: inherit; text-decoration: none; }
.next-inner { display: flex; align-items: center; gap: clamp(1.4rem, 5vw, 5rem); padding-block: clamp(2.1rem, 4.6vw, 5rem); }
.next-inner > div:first-child { flex: 1; }
.next-inner > div:first-child > span { color: #c7c9bf; }
.next-title { display: block; margin-top: .44rem; }
.next-inner .screen-mockup {
  --rim: 1px; --corner: 4px;
  flex: none;
  width: min(clamp(6.2rem, 14vw, 14rem), calc(clamp(4rem, 9vw, 9rem) * var(--screen-ratio)));
  background: #757a77;
}
.next-arrow { font-size: clamp(2rem, 4vw, 4.2rem); font-weight: 400; }
.next-project a:is(:hover,:focus-visible) .next-title { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .12em; }
.project-page .footer-inner { border-top: 0; }
@media (max-width: 54rem) {
  .project-heading { grid-template-columns: minmax(0, 1fr); row-gap: 1.15rem; }
  .project-meta { align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
}
@media (max-width: 39rem) {
  .project-story, .project-example { grid-template-columns: 1fr; }
  .project-meta dl { align-items: start; flex-direction: column; gap: .4rem; }
  .project-meta dl div { align-items: baseline; }
  .project-meta { align-items: start; flex-direction: column; }
  .project-story p { margin-top: .55rem; }
  .next-inner { gap: 1rem; }
  .next-inner .screen-mockup { width: min(4.25rem, calc(3.4rem * var(--screen-ratio))); }
  .next-arrow { font-size: 1.5rem; }
}
@media (forced-colors: active) {
  .example-options input { position: static; clip-path: none; width: auto; height: auto; }
}
@media (max-width: 42rem) {
  .next-inner > div:first-child { min-width: 0; }
}

@supports not selector(:has(*)) {
  .example-options { display: none; }
  .example-answer { grid-area: auto; visibility: visible; margin-bottom: 1rem; }
}
