/* FORMA — warm furniture styles. Tactile, editorial, architectural. */

:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body {
  font-family: "Mulish", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: oklch(0.955 0.013 86);
}
.font-display { letter-spacing: -0.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 11px; font-weight: 700; }

/* content always visible; data-reveal inert */

.ph {
  position: relative; background-color: oklch(0.90 0.018 84);
  background-image: repeating-linear-gradient(45deg, oklch(0.87 0.018 84) 0 1px, transparent 1px 12px);
  display:flex; align-items:center; justify-content:center; overflow:hidden;
  color: oklch(0.55 0.02 58); font-size:11px; letter-spacing:.06em; text-transform:uppercase;
}

.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: oklch(0.82 0.018 80); border:3px solid oklch(0.955 0.013 86); border-radius:999px; }

*:focus-visible { outline: 2px solid oklch(0.58 0.10 44); outline-offset: 2px; }

.marquee-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }

.link-underline { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s cubic-bezier(.2,.7,.3,1); }
.link-underline:hover { background-size: 100% 1.5px; }

/* star rating */
.stars { display:inline-block; position:relative; font-family:"Mulish",sans-serif; color: oklch(0.85 0.016 80); white-space:nowrap; letter-spacing:1px; }
.stars::before { content:"\2605\2605\2605\2605\2605"; }
.stars > span { position:absolute; inset:0; width:var(--pct,100%); overflow:hidden; color: oklch(0.70 0.11 70); }
.stars > span::before { content:"\2605\2605\2605\2605\2605"; }

@keyframes badgepop { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }
.badge-pop { animation: badgepop .35s ease; }

/* swatch dot */
.swatch { width:26px; height:26px; border-radius:999px; border:2px solid transparent; box-shadow: inset 0 0 0 1px oklch(0.27 0.018 60 / 0.15); cursor:pointer; transition: border-color .15s; }
.swatch.is-on { border-color: oklch(0.27 0.018 60); }

input[type="range"]{ accent-color: oklch(0.58 0.10 44); }
#toast { transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .35s; }

/* shared inputs */
.v-input,.ck-input,.ct-input,.ord-input { width:100%; height:52px; padding:0 16px; background: oklch(0.985 0.008 86); border:1px solid oklch(0.86 0.016 80); color: oklch(0.27 0.018 60); font-size:15px; border-radius:10px; transition:border-color .15s, box-shadow .15s; }
.v-input::placeholder,.ck-input::placeholder,.ct-input::placeholder,.ord-input::placeholder { color: oklch(0.64 0.016 56); }
.v-input:focus,.ck-input:focus,.ct-input:focus,.ord-input:focus { outline:none; border-color: oklch(0.58 0.10 44); box-shadow:0 0 0 3px oklch(0.58 0.10 44 / 0.13); }
.v-input.invalid,.ck-input.invalid,.ct-input.invalid,.ord-input.invalid { border-color: oklch(0.55 0.15 32); }
.v-err,.ck-err,.ct-err,.ord-err { color: oklch(0.55 0.15 32); font-size:13px; margin-top:6px; }
textarea.v-input,textarea.ct-input { height:auto; padding:14px 16px; min-height:150px; resize:vertical; }
option { color:#2a2018; background:#fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-marquee { animation: none !important; }
}
