.hc-studio { max-width: 1100px; }
.hc-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 1.3rem 0 1.8rem; }
.hc-head h1 { font-size: clamp(2.45rem, 5vw, 4.25rem); }
.hc-head p { color: var(--muted); margin-top: .65rem; max-width: 53ch; }
.hc-head ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .4rem; }
.hc-head li { color: var(--muted); font-size: .82rem; border-radius: var(--radius-pill); padding: .35rem .75rem; }
.hc-head [aria-current] { background: #f7dfcf; color: #7f2b29; font-weight: 750; }
.hc-layout { display: grid; grid-template-columns: minmax(0,1.17fr) minmax(0,1fr); align-items: start; gap: clamp(22px,4vw,60px); }
.hc-mat { padding: clamp(24px,5vw,68px); display: grid; place-items: center; border-radius: var(--radius-card); min-width: 0;
  background-color: #e6dbcc; background-image: repeating-linear-gradient(45deg,#fff2 0 1px, transparent 1px 5px); }
.hc-paper { width: 100%; max-width: 490px; background: #fff6e1; color: #733d30; text-align: center; padding: clamp(7px,1.3vw,16px);
  box-shadow: 0 2px 3px #42301722, 0 10px 23px #42301726; transform: rotate(-1.2deg); }
.hc-illustration { width: 100%; aspect-ratio: 1.7; object-fit: cover; border: 1px solid #75504455; }
.hc-inscription { padding: clamp(16px,2.8vw,35px) .6rem; border: 1px solid #75504455; border-top: 0; }
.hc-inscription :is(h1,h2) { font: italic 500 clamp(2.15rem,4.1vw,3.65rem)/1.04 var(--serif); text-transform: none; letter-spacing: -.055em; word-spacing: normal; }
.hc-inscription p { font: 1.02rem/1.5 var(--serif); max-width: 30ch; margin: .8em auto 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.hc-inscription p:empty { display: none; }
.hc-citrus { background: #fff0ce; color: #2f553f; }
.hc-keepsake { background: #f7e9e4; color: #68434a; }
.hc-upload .hc-illustration { aspect-ratio: auto; max-height: 410px; object-fit: contain; }
.hc-controls { align-content: start; padding: clamp(1rem,2.5vw,1.75rem); border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--paper); }
.hc-controls > .primary { justify-self: start; }
.hc-looks { border: 0; margin: 0; padding: 0; }
.hc-looks legend { padding: 0; margin-bottom: .5rem; }
.hc-looks > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem; }
.hc-looks button { min-width: 0; padding: 4px; color: var(--coal); border: 1px solid var(--rule); border-radius: var(--radius-control); background: var(--chalk); text-align: left; }
.hc-looks button[aria-pressed=true] { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.hc-looks img { width: 100%; height: clamp(38px,5vw,66px); object-fit: cover; border-radius: calc(var(--radius-control) - 4px); }
.hc-looks span { display: block; padding: .4rem .1rem .2rem; font-size: .8rem; line-height: 1.2; }
.hc-controls .hc-upload { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.hc-upload input[type=file] { padding: .4rem; font-size: .85rem; }
.hc-back { justify-self: start; background: none; border: 0; padding: .4rem 0; color: var(--muted); text-decoration: underline; }
.hc-person, .hc-tracker, .hc-filter { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-person { padding: 12px 0; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.hc-person .check { align-items: center; }
.hc-person .check input { margin: 0; }
.hc-person small { margin: 0; }
.hc-person > span, .hc-person > label:not(.check) { font-size: .85rem; color: var(--muted); }
.hc-filter { align-items: end; justify-content: start; }
.hc-template { border-block: 1px solid var(--rule); padding: .7rem 0; overflow-wrap: anywhere; }
.hc-template label { margin-top: .6rem; }
.hc-tracker { border-top: 1px solid var(--rule); padding-top: 1rem; }
.hc-permission { max-width: 640px; }
.hc-error { margin-top: 1rem; }
.hc-reader { max-width: 680px; margin: 0 auto; text-align: center; }
.hc-reader > a { margin-top: 1.5rem; }
@media (max-width: 850px) {
  .hc-head { align-items: start; flex-direction: column; }
  .hc-layout { grid-template-columns: 1fr; }
  .hc-mat { padding: 24px; }
  .hc-paper { max-width: 360px; }
  .hc-studio .hc-mat .hc-illustration { max-height: 185px; }
  .hc-upload .hc-illustration { min-height: 0; }
}
