body {
  background: #f2eee8;
  color: #292e2b;
}
.habi {
  font-family: "Courier Prime", "Courier New", monospace;
}
.habi-selvedge,
.business-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 4vw;
}
.habi a {
  text-underline-offset: 4px;
}
.habi-selvedge > a:first-child {
  font:
    700 27px/1 "Bricolage Grotesque",
    sans-serif;
  letter-spacing: -0.065em;
}
.habi-workroom {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}
.work-swatch {
  position: sticky;
  align-self: start;
  top: 0;
  height: min(850px, 100vh);
  min-height: 460px;
  background: #9c6557;
  display: grid;
  grid-template-rows: 1fr auto;
}
.work-swatch img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  min-height: 0;
}
.work-swatch p {
  padding: 12px 5%;
  color: #fff8eb;
}
.work-content {
  padding: 3vw 5vw 4vw;
}
.work-title h1 {
  font:
    500 clamp(64px, 8vw, 129px) / 0.88 "Bricolage Grotesque",
    sans-serif;
  letter-spacing: -0.09em;
}
.work-title p {
  margin: 20px 0 13px;
  max-width: 46ch;
}
.work-title nav,
.business-end nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.work-title.in-view nav {
  animation: thread 0.7s ease-out;
}
@keyframes thread {
  from {
    clip-path: inset(0 95% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
.work-content h2,
.studio-ledger h2,
.habi-photoline h2 {
  font:
    600 clamp(28px, 3.2vw, 53px) / 1.03 "Bricolage Grotesque",
    sans-serif;
  letter-spacing: -0.058em;
}
.work-patterns {
  margin: 35px 0;
}
.work-patterns > p,
.work-ruler > p {
  margin: 8px 0 15px;
}
.work-patterns details {
  border-bottom: 1px dashed #736f67;
  padding: 10px 0;
}
.work-patterns summary > small {
  padding-right: 15px;
}
.work-patterns details p {
  margin: 9px 0;
}
.work-ruler {
  padding: 20px;
  background: #e1d4bd;
}
.habi table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  margin: 12px 0;
}
.habi caption {
  text-align: left;
  padding-bottom: 8px;
}
.habi td,
.habi th {
  text-align: left;
  padding: 6px;
  border-bottom: 1px solid #958d79;
}
.work-ruler output {
  display: block;
  margin-top: 7px;
}
.habi input,
.habi textarea,
.habi select {
  max-width: 100%;
  width: 100%;
  background: #fffdf7;
  color: #272927;
  padding: 8px;
  border: 1px solid #77736b;
}
.habi-photoline {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 5vw;
  background: #af6d5e;
  color: #111e1a;
}
.habi-photoline img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
.habi-photoline > div {
  padding: 20px 5vw 20px 0;
}
.habi-photoline p,
.studio-ledger p {
  margin: 10px 0;
}
.studio-ledger {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 3.5vw;
  padding: 5vw;
}
.studio-ledger dt {
  font-weight: bold;
  margin-top: 12px;
}
.habi-client form {
  display: grid;
  gap: 10px;
}
.habi-client form label {
  display: grid;
  gap: 3px;
}
.habi button {
  background: #28392d;
  color: white;
  border: 0;
  padding: 11px;
}
.business-end {
  background: #28392d;
  color: #fffef1;
}
@media (max-width: 790px) {
  .habi-selvedge span {
    display: none;
  }
  .habi-workroom {
    grid-template-columns: 1fr;
  }
  .work-swatch {
    position: static;
    height: 270px;
    min-height: 0;
    grid-template-rows: 1fr;
  }
  .work-swatch p {
    display: none;
  }
  .work-content {
    padding: 27px 6vw;
  }
  .work-title h1 {
    font-size: clamp(50px, 11vw, 83px);
  }
  .studio-ledger {
    grid-template-columns: 1fr 1fr;
    padding: 27px 6vw;
  }
  .habi-client {
    grid-column: 1/-1;
  }
  .habi-selvedge,
  .business-end {
    font-size: 13px;
  }
  .business-end {
    flex-wrap: wrap;
  }
}
@media (max-width: 530px) {
  .work-swatch {
    height: 215px;
  }
  .habi-photoline,
  .studio-ledger {
    grid-template-columns: 1fr;
  }
  .habi-photoline > div {
    padding: 8px 6vw 24px;
  }
  .habi-wardrobe {
    margin-bottom: 12px;
  }
  .habi-client {
    background: #e1d4bd;
    padding: 17px;
    margin-top: 12px;
  }
}

.work-swatch {
  position: static;
  align-self: stretch;
  height: auto;
  min-height: 0;
  grid-template-rows: minmax(390px, 1fr) auto auto;
  background: #784d41;
}
.work-swatch > img {
  max-height: none;
  min-height: 0;
}
.cut-guide {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 17px;
  padding: 22px 4vw;
  background: #dcc7b1;
  color: #282d25;
}
.cut-guide > div {
  height: 80px;
  position: relative;
}
.cut-guide i {
  position: absolute;
  inset: 2px 6px 8px;
  background: #965e51;
  clip-path: polygon(
    25% 0,
    39% 0,
    45% 8%,
    55% 8%,
    61% 0,
    75% 0,
    99% 23%,
    84% 38%,
    74% 30%,
    74% 100%,
    26% 100%,
    26% 30%,
    16% 38%,
    1% 23%
  );
}
.cut-guide b {
  position: absolute;
  top: 37%;
  left: 27%;
  right: 27%;
  height: 4px;
  background: #fff9e8;
  border-inline: 2px solid #392e29;
}
.cut-guide figcaption {
  font-size: 14px;
}
.cut-guide figcaption strong,
.cut-guide figcaption span {
  display: block;
}
.cut-guide figcaption span {
  margin-top: 5px;
}
.work-swatch > p {
  font-size: 14px;
}
@media (max-width: 790px) {
  .work-swatch {
    min-height: 0;
    height: 240px;
    grid-template-rows: 1fr;
  }
  .cut-guide {
    display: none;
  }
  .work-swatch > img {
    height: 240px;
  }
}
