@font-face {
  font-family: "IBM Plex Mono";
  src: url("demo-contour-titre.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sheet: #efeee7;
  --ink: #202723;
  --clay: #46574d;
  --line: #a8aca4;
  --panel: #dce1d7;
  --gutter: clamp(1rem,4vw,4.1rem);
}
*,*::before,*::after {
  box-sizing: border-box;
}
body,h1,h2,h3,p,figure,dl,dd,ol {
  margin: 0;
}
body {
  background: var(--sheet);
  color: var(--ink);
  font: 1rem/1.55 "Helvetica Neue",Arial,sans-serif;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}
.frame {
  width: min(96rem,calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.skip {
  position: fixed;
  z-index: 5;
  inset: .55rem auto auto .55rem;
  background: var(--ink);
  color: var(--sheet);
  padding: .8rem;
}
.skip:not(:focus) {
  clip-path: inset(50%);
}
.studio-bar,.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: clamp(1.2rem,2.5vw,2.15rem);
  white-space: nowrap;
  text-decoration: none;
}
.brand strong {
  font-weight: 790;
}
.studio-bar nav {
  display: flex;
  align-items: center;
  gap: .35rem clamp(.85rem,4vw,3.2rem);
}
.studio-bar nav a,.foot a,.sheet-index a {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  text-underline-offset: .24em;
}
.studio-bar nav a {
  text-decoration: none;
  font-weight: 690;
}
.studio-bar nav a:hover,.foot a:hover,.sheet-index a:hover {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
}
.sheet-layout {
  display: grid;
  grid-template-columns: minmax(10rem, .34fr) minmax(0, 1fr);
  gap: clamp(1.45rem, 4.5vw, 4.3rem);
  padding-block: clamp(1.35rem, 3.4vw, 3.2rem);
}
.sheet-index {
  border-inline-end: 1px solid var(--line);
  padding: .4rem clamp(.85rem,2.5vw,2rem) .5rem 0;
}
.sheet-index dl { margin-top: clamp(1rem, 4vw, 3.5rem); }
.sheet-index dl > div { border-top: 1px solid var(--line); padding-block: .6rem; }
.sheet-index dl > div:last-child { border-bottom: 1px solid var(--line); }
.sheet-index dt { color: var(--clay); font-size: .8rem; }
.sheet-index dd { font-weight: 650; }
.sheet-index a { font-size: .92rem; font-weight: 720; margin-top: .75rem; }
.sheet-caption { padding-top: 1rem; }
.sheet-caption p:last-child, .process p { max-width: 57ch; }
.sheet-caption p:last-child { margin-top: .65rem; }
.label {
  font: 600 .75rem/1.3 ui-monospace,Menlo,Consolas,monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--clay);
}
h1,h2 {
  font-weight: 665;
  line-height: .89;
}
h1 {
  font: 600 clamp(1.95rem,4.5vw,5.4rem)/1.04 "IBM Plex Mono", ui-monospace, Menlo, monospace;
  margin-top: .45rem;
}
h2 {
  font-size: clamp(2.7rem,6vw,6.3rem);
}
.project,.process {
  scroll-margin-top: 1rem;
}
.project-view img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.2;
  object-fit: cover;
  object-position: 50% 57%;
}
.project-view figcaption {
  padding: .35rem 0;
  text-align: right;
  font-size: .78rem;
  color: var(--clay);
  border-bottom: 1px solid var(--line);
}
.process h2 { margin: .38rem 0 .9rem; }
.process {
  margin: clamp(1rem,4vw,3rem) 0 clamp(1.5rem,6vw,5.5rem);
  padding: clamp(1.1rem,4.3vw,3.6rem);
  background: var(--panel);
}
.process h2 {
  font-size: clamp(2.35rem,4.9vw,5.6rem);
}
.process ol {
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.3rem clamp(1rem,4vw,4rem);
  margin-top: 1.4rem;
}
.process li {
  padding-top: .65rem;
  border-top: 1px solid #2027237f;
}
.process h3 {
  font-size: clamp(1.24rem,2.5vw,1.8rem);
  line-height: 1.15;
  margin-bottom: .43rem;
}
.foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  min-height: 4rem;
  font-size: .87rem;
}

@media (max-width: 54rem) {
  .project-view img {
    aspect-ratio: 1.55;
  }
}

@media (max-width: 42rem) {
  .sheet-layout,.process ol {
    grid-template-columns: 1fr;
  }
  .sheet-index {
    display: grid;
    gap: .45rem;
    border-inline-end: 0;
    padding: 0;
  }
  .sheet-index dl {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1rem;
    margin-top: 0;
  }
  .sheet-index dl > div, .sheet-index dl > div:last-child {
    border: 0;
    padding: 0;
  }
  .sheet-index a { margin-top: 0; }
  .project-view img {
    aspect-ratio: 1.35;
  }
  .studio-bar nav a {
    font-size: .9rem;
  }
  .process ol {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion:no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
