/* =====================================================================
   Skiktly — clean Scandinavian look
   Accent options (swap --accent / --on-accent below):
     Fjord teal   #23786A  (default)   dark mode #5CC4AF
     Lingonberry  #B8363F               dark mode #F08A8F
     Cloudberry   #B4561E               dark mode #F2A66B
     Nordic blue  #2F64A8               dark mode #8DB7F0
   ===================================================================== */
body[data-brand="skiktly"] {
  --bg: #F4F1EC;
  --bg-elev: #FBFAF7;
  --bg-sunk: #EAE6DF;
  --fg: #2E2D2B;
  --muted: #625F59;
  --line: rgba(46, 45, 43, 0.12);
  --accent: #23786A;
  --on-accent: #FFFFFF;
  --header-bg: rgba(244, 241, 236, 0.8);
  --shadow: 0 1px 2px rgba(46, 45, 43, 0.05), 0 14px 40px -16px rgba(46, 45, 43, 0.18);
}
:root[data-theme="dark"] body[data-brand="skiktly"] {
  --bg: #1C1B19; --bg-elev: #262522; --bg-sunk: #141412; --fg: #F2EFEA; --muted: #B4AFA6;
  --line: rgba(242, 239, 234, 0.12); --accent: #5CC4AF; --on-accent: #10201C; --header-bg: rgba(28, 27, 25, 0.78);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body[data-brand="skiktly"] {
    --bg: #1C1B19; --bg-elev: #262522; --bg-sunk: #141412; --fg: #F2EFEA; --muted: #B4AFA6;
    --line: rgba(242, 239, 234, 0.12); --accent: #5CC4AF; --on-accent: #10201C; --header-bg: rgba(28, 27, 25, 0.78);
  }
}

.sk-section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); display: grid; gap: 14px; }

/* ---------- Hero ---------- */
.sk-hero { padding-top: clamp(48px, 9vw, 112px); overflow: hidden; }
.sk-logo-print { width: clamp(64px, 9vw, 96px); height: auto; margin: 0 auto 12px; color: var(--accent); }
.sk-logo-print line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .sk-logo-print line { stroke-dashoffset: 1; }
.js .sk-logo-print.is-in line { animation: skPrint 0.42s var(--ease) forwards; }
.sk-logo-print line:nth-child(1) { animation-delay: 0.05s; }
.sk-logo-print line:nth-child(2) { animation-delay: 0.17s; }
.sk-logo-print line:nth-child(3) { animation-delay: 0.27s; }
.sk-logo-print line:nth-child(4) { animation-delay: 0.39s; }
.sk-logo-print line:nth-child(5) { animation-delay: 0.51s; }
.sk-logo-print line:nth-child(6) { animation-delay: 0.63s; }
.sk-logo-print line:nth-child(7) { animation-delay: 0.75s; }
.sk-logo-print line:nth-child(8) { animation-delay: 0.87s; }
.sk-logo-print line:nth-child(9) { animation-delay: 0.99s; }
.sk-logo-print line:nth-child(10) { animation-delay: 1.09s; }
.sk-logo-print line:nth-child(11) { animation-delay: 1.21s; }
@keyframes skPrint { to { stroke-dashoffset: 0; } }
.sk-wordmark { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 20px; }
.sk-hero__title { max-width: 12ch; margin-inline: auto; }
.sk-hero__lead { max-width: 38ch; margin: 24px auto 32px; }
.sk-hero__shot {
  margin: clamp(48px, 7vw, 88px) auto 0; max-width: 1080px; aspect-ratio: 16 / 10;
  border-radius: var(--r-l); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 30%, #FFFFFF, #E9E2D6);
  display: grid; place-items: center;
}
.sk-hero__shot img { width: 100%; height: 100%; object-fit: contain; }
:root[data-theme="dark"] .sk-hero__shot { background: radial-gradient(120% 90% at 50% 30%, #34322E, #1F1E1B); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sk-hero__shot { background: radial-gradient(120% 90% at 50% 30%, #34322E, #1F1E1B); } }

.sk-define { font-size: 1rem; margin-bottom: 16px; }
.sk-define__word { font-size: 1.5rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }

/* ---------- Printed section divider ---------- */
.print-divider { display: flex; flex-direction: column-reverse; align-items: center; gap: 5px; padding-block: 8px; }
.print-divider span { display: block; height: 4px; border-radius: 4px; background: var(--accent); opacity: 0.55; transform-origin: left center; }
.print-divider span:nth-child(1) { width: 120px; }
.print-divider span:nth-child(2) { width: 96px; opacity: 0.42; }
.print-divider span:nth-child(3) { width: 72px; opacity: 0.3; }
.print-divider span:nth-child(4) { width: 44px; opacity: 0.2; }
.js .print-divider span { transform: scaleX(0); transition: transform 0.6s var(--ease); }
.js .print-divider.is-in span { transform: scaleX(1); }
.print-divider span:nth-child(2) { transition-delay: 0.18s; }
.print-divider span:nth-child(3) { transition-delay: 0.36s; }
.print-divider span:nth-child(4) { transition-delay: 0.54s; }

/* ---------- How it's made (sticky visual) ---------- */
.how { display: grid; gap: 32px; }
.how__sticky { display: none; }
.how__steps { display: grid; gap: 24px; }
.how__step { background: var(--bg-elev); border-radius: var(--r-l); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.how__step-visual { aspect-ratio: 1; max-width: 280px; width: 100%; margin: 0 auto 8px; }
.how__num { font-weight: 800; color: var(--accent); font-size: 0.875rem; letter-spacing: 0.08em; }
.how__visual svg { width: 100%; height: 100%; }
.how-grid { stroke: var(--line); }
.how-wire { stroke: var(--accent); }
.how-cursor { fill: var(--fg); }
.how-frame { stroke: color-mix(in srgb, var(--fg) 28%, transparent); }
.how-nozzle { fill: var(--fg); }
.how-layers { stroke: var(--accent); }
.how-box { stroke: var(--fg); }
.how-tape { stroke: color-mix(in srgb, var(--accent) 60%, transparent); }
.how-heart { fill: var(--accent); }

@media (min-width: 900px) {
  .how { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
  .how__sticky { display: block; position: sticky; top: calc(var(--header-h) + 8vh); }
  .how__stage { position: relative; aspect-ratio: 1; border-radius: var(--r-l); background: var(--bg-elev); box-shadow: var(--shadow); }
  .how__visual { position: absolute; inset: 12%; opacity: 0; transform: scale(0.94); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
  .how__visual.is-active { opacity: 1; transform: none; }
  .how__steps { gap: 0; }
  .how__step { min-height: 72vh; align-content: center; background: none; box-shadow: none; padding: 0 0 0 28px; border-radius: 0; border-left: 3px solid var(--line); transition: border-color 0.5s var(--ease); }
  .how__step .h3 { color: var(--muted); transition: color 0.5s var(--ease); }
  .how__step.is-active { border-left-color: var(--accent); }
  .how__step.is-active .h3 { color: var(--fg); }
  .how__step .h3 { font-size: clamp(2rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
  .how__step p { font-size: 1.1875rem; max-width: 38ch; }
  .how__step-visual { display: none; }
}

/* Animated bits inside the visuals */
.how__visual.is-active .how-layers path, .how__step-visual .how-layers path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: skLayer 3.6s var(--ease) infinite; }
.how-layers path:nth-child(2) { animation-delay: 0.35s !important; }
.how-layers path:nth-child(3) { animation-delay: 0.7s !important; }
.how-layers path:nth-child(4) { animation-delay: 1.05s !important; }
.how-layers path:nth-child(5) { animation-delay: 1.4s !important; }
.how-layers path:nth-child(6) { animation-delay: 1.75s !important; }
.how-layers path:nth-child(7) { animation-delay: 2.1s !important; }
@keyframes skLayer { 0% { stroke-dashoffset: 120; } 12%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.how__visual.is-active .how-nozzle, .how__step-visual .how-nozzle { animation: skNozzle 1.2s ease-in-out infinite alternate; }
@keyframes skNozzle { from { transform: translateX(-46px); } to { transform: translateX(46px); } }
.how__visual.is-active .how-cursor, .how__step-visual .how-cursor { animation: skBlink 1.4s steps(2) infinite; }
@keyframes skBlink { 50% { opacity: 0.2; } }
.how__visual.is-active .how-heart, .how__step-visual .how-heart { transform-origin: 150px 210px; animation: skBeat 1.8s var(--ease) infinite; }
@keyframes skBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } }

/* ---------- Products ---------- */
.products { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .products { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.product { display: flex; flex-direction: column; background: var(--bg-elev); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow); }
.product__media { aspect-ratio: 1; overflow: hidden; background: var(--bg-sunk); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.product:hover .product__media img { transform: scale(1.04); }
.product__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product__name { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em; }
.product__desc { color: var(--muted); font-size: 0.9375rem; }
.product__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product__price { font-weight: 800; font-size: 1.125rem; }
.product__price abbr { text-decoration: none; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.product__from { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }

/* ---------- Custom print panel ---------- */
.sk-custom {
  display: grid; gap: 32px; align-items: center;
  padding: clamp(32px, 6vw, 80px); border-radius: var(--r-l);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
}
.sk-custom__text { display: grid; gap: 16px; justify-items: start; }
.sk-custom__list { display: grid; gap: 12px; }
.sk-custom__list li { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: var(--bg-elev); border-radius: var(--r-m); font-weight: 650; }
.sk-custom__list strong { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
@media (min-width: 900px) { .sk-custom { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

/* ---------- Materials ---------- */
.materials { display: grid; gap: 20px; }
@media (min-width: 800px) { .materials { grid-template-columns: 1fr 1fr; gap: 28px; } }
.material { background: var(--bg-elev); border-radius: var(--r-l); padding: clamp(28px, 4vw, 48px); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.material__tag { font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--accent); }
.material__facts { display: grid; gap: 10px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.material__facts li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; font-size: 0.9375rem; }
.material__facts span { color: var(--muted); font-weight: 700; }
.swatches { margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 16px; justify-items: center; text-align: center; }
.swatches ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; }
.sw { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.sw--teal { background: #2E8B7A; } .sw--cloud { background: #F6F4EF; } .sw--charcoal { background: #3A3936; }
.sw--sand { background: #E3D5BF; } .sw--sage { background: #9DBFA6; } .sw--sky { background: #8DB3D9; }
.sw--butter { background: #F2CF6B; } .sw--berry { background: #E8894A; } .sw--lingon { background: #C8414B; }
.swatches p { max-width: 60ch; }

/* ---------- Order page ---------- */
.order-layout { display: grid; gap: 40px; }
@media (min-width: 980px) { .order-layout { grid-template-columns: 1fr 340px; gap: 56px; align-items: start; } .order-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.order-aside { display: grid; gap: 16px; }
.order-aside .card { padding: 28px; display: grid; gap: 10px; }
.order-aside ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--muted); }
.colour-pick { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.colour-pick legend { margin-bottom: 10px; }
.colour-pick label { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg-elev); cursor: pointer; font-weight: 600; font-size: 0.9375rem; }
.colour-pick input { position: absolute; opacity: 0; pointer-events: none; }
.colour-pick input:checked + .sw { box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 5px var(--accent); }
.colour-pick label:has(input:checked) { border-color: var(--accent); }
.colour-pick label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.sw--any { background: conic-gradient(#2E8B7A, #8DB3D9, #F2CF6B, #E8894A, #C8414B, #2E8B7A); }
