@font-face {
  font-family: Nunito;
  src: url("arta/nunito-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF;
}
@font-face {
  font-family: Nunito;
  src: url("arta/nunito-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
:root {
  color-scheme: light;
  --paper: #f6f0e5; --card: #fffaf0; --ink: #223f42; --muted: #546162;
  --line: #cbbfa9; --accent: #934638; --deep: #164e4b; --cream: #fff7dd;
  --ruler: #efcf83; --ruler-ink: #403b2a; --edge: #8d7e71;
  --good: #28715c; --warn: #a7691c; --bad: #b55746;
  font: 16px/1.45 Nunito, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1c302f; --card: #243d3c; --ink: #faf3e2; --muted: #d3d6c6;
    --line: #63726a; --accent: #ffb096; --deep: #9bdcc4; --cream: #143331;
    --good: #83ceb6; --warn: #edb367; --bad: #efa093;
  }
}
* { box-sizing: border-box }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, transparent 0 3px, #97774c09 3px 4px),
    repeating-linear-gradient(0deg, transparent 0 3px, #97774c08 3px 4px);
}
.wrap { width: min(100%, 1260px); margin: auto; padding: 20px max(24px,env(safe-area-inset-right)) 48px max(24px,env(safe-area-inset-left)) }
header { display: flex; align-items: center; gap: 20px; margin-bottom: 17px }
.brand { display: grid; place-items: center; border-right: 1px solid var(--line); padding-right: 20px }
.brand img { display: block; width: 76px; height: auto }
.titlu { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex: 1 }
h1,h2,h3 { font-family: Georgia, Cambria, serif; margin: 0; line-height: 1.08; font-weight: 500; text-wrap: balance }
h1 { font-size: clamp(2.4rem,4.2vw,3.8rem); letter-spacing: -.055em }
h1 em { color: var(--accent); font-weight: 400 }
h2 { font-size: clamp(1.7rem,2.4vw,2.25rem); letter-spacing: -.04em }
h3 { font-size: 1.32rem }
.sub,.group-label,.k,.tag,.best { font-size: .75rem; font-weight: 850; letter-spacing: .07em }
.sub { margin: 0; color: var(--muted) }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent }
button:disabled { cursor: default }
button:focus-visible, h2:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.tape { background: var(--ruler); border: 1px solid #aa8448; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); border-radius: 7px; padding: 3px; margin-bottom: 21px; box-shadow: 0 2px 0 #7b654326 }
.tape button {
  position: relative; border: 0; color: var(--ruler-ink); background: transparent; padding: 9px 2px 13px;
  font-size: .85rem; font-weight: 850; border-right: 1px solid #795e2c36;
}
.tape button::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: repeating-linear-gradient(90deg,currentColor 0 1px, transparent 1px 8px); opacity: .46 }
.tape button:last-child { border-right: 0 }
.tape button:disabled { color: #665735 }
.tape button[aria-current] { border-radius: 4px; background: #204e49; color: #fff5d8 }
.tape button.done { text-decoration: underline; text-underline-offset: 3px }
.tape button:focus-visible { outline-offset: -3px }
.work { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.4fr); align-items: start; gap: clamp(18px,2.4vw,36px) }
.stage { position: sticky; top: max(12px,env(safe-area-inset-top)); height: clamp(420px,71vh,680px); isolation: isolate;
  border-radius: 16px; border: 1px solid #866e49; overflow: hidden;
  background: #edcf9f url("arta/atelier.webp") center center / 100% 100% no-repeat;
  box-shadow: 0 10px 24px -13px #65482588;
}
.stage .figure { position: absolute; left: 3%; width: 94%; height: 81%; bottom: 8%; filter: drop-shadow(2px 3px 2px #68472e44) }
.tag { position: absolute; z-index: 1; bottom: 2%; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 16px; border-radius: 30px; background: #254b45; color: #fff2cc; border: 1px solid #f1d398; box-shadow: 0 2px 5px #3e342b4d }
.panel { display: grid; align-content: start; gap: 15px; min-width: 0 }
.hint,.slip p,.grade p { color: var(--muted); margin: 6px 0 0; line-height: 1.4 }
.opts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(150px,100%),1fr)); gap: 9px }
.opt,.sw,.btn,.row,.grade { background-color: var(--card); border: 1px solid var(--line); border-radius: 12px }
.opt,.sw { position: relative }
.opt { min-height: 62px; display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 11px; line-height: 1.2 }
.opt small { display: block; color: var(--muted); font-size: .83rem; line-height: 1.3; margin-top: 3px }
.opt b { font-weight: 850 }
.opt[aria-pressed=true],.sw[aria-pressed=true] { border-color: var(--deep); box-shadow: inset 0 0 0 2px var(--deep) }
.themes { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px }
.themes .opt { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 5px 5px 11px; box-shadow: 0 3px 8px #694d2820 }
.themes .opt[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--deep),0 3px 8px #694d2820 }
.scene { width: 100%; aspect-ratio: 1.9; object-fit: cover; object-position: center 50%; border-radius: 8px }
.theme-copy { display: block; padding: 10px 7px 0 }
.theme-copy b { font-family: Georgia, Cambria, serif; font-size: clamp(1.05rem,1.42vw,1.25rem); font-weight: 600; letter-spacing: -.035em }
.dots { display: flex; gap: 3px; position: absolute; top: 10px; right: 10px; padding: 3px; background: #fff9e8; border-radius: 10px }
.dots i { display: block; height: 7px; width: 7px; border-radius: 50% }
.best { display: block; color: var(--good); padding: 5px 7px 0; letter-spacing: 0 }
.themes .opt[aria-pressed=true]::after { content: '✓'; position: absolute; background: #164e4b; color: white; top: 9px; left: 9px; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-weight: bold }
.sample,.fabric { flex: 0 0 46px; width: 46px; height: 50px; border-radius: 7px }
.sample { padding: 3px; background: #f2e7d8 }
.fabric { background: url("arta/materiale.webp") 0 0 / 400% 300%; border: 1px solid #70553f44; box-shadow: 1px 2px 0 #57463421 }
.fabric-bumbac { background-position: 0% 0% }
.fabric-in { background-position: 33.333333333333336% 0% }
.fabric-satin { background-position: 66.66666666666667% 0% }
.fabric-catifea { background-position: 100% 0% }
.fabric-lana { background-position: 0% 50% }
.fabric-tul { background-position: 33.333333333333336% 50% }
.fabric-paiete { background-position: 66.66666666666667% 50% }
.fabric-denim { background-position: 100% 50% }
.fabric-piele { background-position: 0% 100% }
.fabric-fleece { background-position: 33.333333333333336% 100% }
.fabric-dantela { background-position: 66.66666666666667% 100% }
.fabric-impermeabil { background-position: 100% 100% }
.slip { display: grid; grid-template-columns: 67px 1fr; column-gap: 13px; align-content: center; background: var(--card); border: 1px dashed var(--line); border-radius: 9px; padding: 9px 13px 9px 9px }
.slip img { width: 67px; height: 100%; min-height: 66px; object-fit: cover; border-radius: 5px; grid-row: span 3 }
.k,.group-label { text-transform: uppercase; color: var(--muted) }
.slip h3 { margin-top: 3px }
.slip p { font-size: .88rem; margin-top: 3px }
.group-label { margin: 15px 0 7px }
.swatches { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px }
.sw { background: transparent; border-color: transparent; font-size: .77rem; font-weight: 750; padding: 5px 0; display: grid; justify-items: center; gap: 4px }
.sw i { width: 33px; height: 33px; border-radius: 50%; border: 1px solid #65574750; box-shadow: inset -2px -3px 4px #3021222b, inset 1px 2px 2px #fff6; display: block }
.actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap }
.btn { min-height: 44px; padding: 9px 19px; font-weight: 850 }
.btn.primary { background: var(--deep); color: var(--cream); border-color: var(--deep) }
.btn.primary:disabled { opacity: .58 }
.grade,.row { padding: 14px 17px }
.grade { display: flex; gap: 15px; align-items: center }
.grade .n { background: var(--deep); color: var(--cream); border-radius: 50%; min-width: 74px; aspect-ratio: 1; display: grid; place-items: center; font: bold 1.75rem Georgia,serif; outline: 1px dashed currentColor; outline-offset: -5px }
.rows { display: grid; gap: 9px }
.row .head { display: flex; justify-content: space-between; font-weight: 800 }
.row .pick,.row .better { color: var(--muted) }
.row .pick { font-size: .9rem }
.row p { margin: 8px 0 0 }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 8px }
.bar i { display: block; height: 100%; background: var(--good) }
.bar.mid i { background: var(--warn) } .bar.low i { background: var(--bad) }
@media (hover:hover) { button:is(.opt,.sw,.btn):enabled:hover { border-color: var(--deep) } }
@media (prefers-reduced-motion:no-preference) { .opt,.btn { transition: box-shadow .15s, border-color .15s } }
@media (min-width:761px) and (max-width:1000px) { .themes { grid-template-columns: repeat(2,minmax(0,1fr)) } }
@media (max-width:760px) {
  .wrap { padding: 12px max(12px,env(safe-area-inset-right)) 32px max(12px,env(safe-area-inset-left)) }
  header { gap: 12px; margin-bottom: 12px }
  .brand { padding-right: 12px } .brand img { width: 54px }
  .titlu { display: block } h1 { font-size: clamp(1.85rem,7.3vw,2.6rem) }
  .sub { font-size: .7rem; margin-top: 2px }
  .tape { margin-bottom: 11px }
  .tape button { font-size: .68rem; min-height: 40px; padding: 5px 0 10px }
  .work { grid-template-columns: minmax(0,1fr); gap: 16px }
  .stage { z-index: 2; top: env(safe-area-inset-top,0px); height: clamp(165px,29svh,270px); background-image: url("arta/atelier-mobil.webp"); border-radius: 11px }
  .stage .figure { height: 92%; bottom: 5% }
  .tag { left: 7px; bottom: 6px; transform: none; padding: 2px 8px; font-size: .6rem }
  .themes { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px }
  .theme-copy { padding: 7px 4px 0 }
  .themes .opt { padding-bottom: 9px }
  .swatches { grid-template-columns: repeat(auto-fit,minmax(63px,1fr)) }
  .panel { gap: 12px }
  .panel :is(button,h2) { scroll-margin-block-start: calc(clamp(165px,29svh,270px) + 10px) }
}
@media (max-height:520px) and (max-width:950px) { .stage { position: relative; top: auto } }

.fabric { position: relative; isolation: isolate; overflow: hidden } .fabric::after { content: ""; position: absolute; inset: 0; background: var(--dye); mix-blend-mode: color }
