/* Velnoraq — the split stage: one photograph that stays, one column that reads like the shop counter. */
:root {
  --bg: #e5e1d8;
  --surface: #dad5ca;
  --paper: #f3f2ef;
  --ink: #2a1d17;
  --muted: #5e4f46;
  --accent: #456f3a;
  --accent-ink: #ffffff;
  --field-1: #456f3a;
  --field-1-ink: #ffffff;

  --font-display: "Erode", Georgia, serif;
  --font-text: "Erode", Georgia, serif;
  --step-head: clamp(2rem, 1.5rem + 1.3vw, 2.75rem);
  --step-hero: clamp(2.5rem, 1rem + 3.6vw, 3.5rem);
  --edge: 12px;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --block-y: clamp(3rem, 6vw, 6rem);
}

body { background: var(--bg); }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 0.95; }
.h2 { font-size: var(--step-head); }
strong { font-weight: 600; }
.intro { margin-top: 20px; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }

/* one button: a solid rectangle */
.button { background: var(--accent); color: var(--accent-ink); min-height: 3.25rem; padding: 0 1.75rem; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .button:hover { background: #3a5e31; } }

/* ---------------- the split ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); padding: var(--edge); align-items: start; }
.stage { position: sticky; top: var(--edge); height: calc(100svh - var(--edge) * 2); overflow: hidden; background: var(--surface); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1200ms ease, transform 6s var(--ease-soft); }
.stage img.is-on { opacity: 1; transform: none; }
.stage__cap { position: absolute; left: 0; bottom: 0; max-width: none; padding: 10px 16px; background: var(--paper); color: var(--ink); font-size: var(--step-small); }
.phone-pic { display: none; }

.col { display: grid; gap: var(--edge); min-width: 0; }
.block { background: var(--paper); padding: var(--block-y) var(--pad); }

/* ---------------- the card ---------------- */
.card { min-height: calc(100svh - var(--edge) * 2); background: var(--paper); display: flex; flex-direction: column; text-align: center; }
.stripe { height: 56px; flex: none; display: flex; }
.stripe::before { content: ""; flex: 1; background: var(--ink); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='28' height='56'/%3E%3C/svg%3E") 0 0 / 56px 56px repeat-x; }
.card__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px var(--pad) 32px; }
.card__mark { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; }
.card__title { margin-top: 40px; font-size: var(--step-hero); }
.card__lede { margin: 28px auto 0; max-width: 36ch; }
.card .button { margin-top: 36px; }
.card__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; padding: 0 var(--pad) 24px; font-size: var(--step-small); }
.card__links a { padding-block: 10px; }

/* ---------------- choose your blanket ---------------- */
.pick__plate { margin-top: 40px; }
.pick__plate svg { width: 100%; height: auto; aspect-ratio: 1; background: var(--bg); }
.pick__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.pick__tabs button { min-height: 64px; background: var(--bg); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 500; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.pick__tabs button span { font-size: var(--step-small); font-variant-numeric: tabular-nums; }
.pick__tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pick__tabs button:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .pick__tabs button[aria-selected="false"]:hover { background: var(--surface); } }
.pick__spec { margin-top: 32px; font-size: var(--step-lead); line-height: 1.35; font-variant-numeric: tabular-nums; }
.pick__desc { margin-top: 12px; max-width: 46ch; }
.pick__live { margin-top: 36px; }
.pick__live > label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.pick__live output { font-variant-numeric: tabular-nums; }
.pick__advice { margin-top: 6px; color: var(--muted); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin-top: 8px; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: var(--surface); }
input[type="range"]::-moz-range-track { height: 10px; background: var(--surface); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; background: var(--ink); transition: transform var(--t-press) var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--ink); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }

.dyes { border: 0; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.dyes legend { font-weight: 600; padding: 0; margin-bottom: 8px; }
.dyes label { display: flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.dyes input { position: absolute; opacity: 0; }
.dyes span { width: 28px; height: 28px; border-radius: 50%; background: var(--c); transition: transform var(--t-press) var(--ease-out); }
.dyes input:checked + span { transform: scale(1.15); outline: 3px solid var(--ink); outline-offset: 3px; }
.dyes input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .dyes label:hover span { transform: scale(1.12); } }

.pick__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 40px; }
.cell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; padding: 0 22px; text-decoration: none; font-weight: 600; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.cell:active { transform: scale(0.98); }
.cell--go { background: var(--accent); color: var(--accent-ink); }
.cell--tone { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .cell--go:hover { background: #3a5e31; }
  .cell--tone:hover { background: var(--surface); }
}

/* ---------------- the price list: a printed sheet ---------------- */
.prices { background: var(--surface); }
.sheet {
  --scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23f3f2ef'/%3E%3C/svg%3E");
  position: relative;
  max-width: 640px;
  margin: 12px auto;
  background: var(--paper);
  padding: 56px clamp(1.25rem, 4vw, 3.5rem);
  text-align: center;
}
.sheet::before, .sheet::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--scallop) 0 0 / 24px 12px repeat-x; }
.sheet::before { top: -12px; }
.sheet::after { bottom: -12px; transform: scaleY(-1); }
.sheet__note { margin: 12px auto 0; color: var(--muted); }
.sheet__group { margin-top: 48px; }
.sheet__group h3 { font-size: var(--step-lead); letter-spacing: -0.015em; line-height: 1.2; }
.sheet dl { margin: 20px auto 0; max-width: 440px; display: grid; gap: 16px; text-align: left; }
.sheet dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sheet dd { margin: 0; font-variant-numeric: tabular-nums; }
.sheet dt small { display: block; font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
.sheet__foot { margin: 48px auto 0; }

/* ---------------- how a blanket is made ---------------- */
.making { background: var(--field-1); color: var(--field-1-ink); }
.slip {
  margin-top: 40px;
  max-width: 480px;
  background: var(--paper);
  color: var(--ink);
  padding: 32px 28px 64px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px),
    96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
}
.slip h3 { font-size: var(--step-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-top: 28px; }
.slip h3:first-child { margin-top: 0; }
.slip .row { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; max-width: none; }
.slip .row i { flex: 1; min-width: 24px; border-bottom: 4px dotted var(--ink); transform: translateY(-4px); }
.slip .row span:last-child { white-space: nowrap; }
.slip__total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; margin: 28px -28px 0; padding: 0 28px; background: var(--ink); color: var(--paper); font-weight: 600; max-width: none; }
.making__pics { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.making__pics img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.making__pics figcaption { margin-top: 8px; font-size: var(--step-small); }

/* ---------------- delivery and returns ---------------- */
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-size: var(--step-lead); line-height: 1.35; }
.qa { margin-top: 48px; display: grid; gap: 4px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 56px; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.01em; transition: color var(--t-hover) ease; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 12px; height: 12px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform var(--t-ui) var(--ease-out); }
.qa details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.qa details p { padding: 0 0 24px; color: var(--muted); max-width: 50ch; }
@media (hover: hover) and (pointer: fine) { .qa summary:hover { color: var(--accent); } }
@media (prefers-reduced-motion: no-preference) {
  .qa details[open] p { animation: qa-open 420ms var(--ease-out); }
  @keyframes qa-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
.faq__act { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------------- footer: the last photograph ---------------- */
.foot { position: relative; isolation: isolate; height: 100svh; min-height: 560px; overflow: hidden; color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; margin: 0 var(--edge); }
.foot__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62); z-index: -1; }
.foot__top { display: grid; grid-template-columns: auto auto 1fr; gap: 1.5rem 4rem; padding: 32px var(--pad) 0; }
.foot__contact { justify-self: end; }
.foot__top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__contact { text-align: right; }
.foot__bottom { padding: 0 var(--pad) 28px; }
.foot__mark { font-size: 16vw; line-height: 0.8; letter-spacing: -0.04em; margin-left: -0.05em; }
.foot__legal { margin-top: 24px; font-size: var(--step-small); }
.credits { box-sizing: content-box; margin: 20px auto 28px; padding: 0 calc(var(--edge) + var(--pad)); max-width: 52ch; font-size: var(--step-small); line-height: 1.5; }
.credits a { color: inherit; }

/* ---------------- the bag ---------------- */
dialog { width: min(600px, calc(100% - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 32px; border: 0; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgb(42 29 23 / 65%); }
dialog h2 { font-size: var(--step-head); margin: 24px 0; }
.bag-close { display: block; margin-left: auto; min-height: 44px; }
.bag-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.bag-item button { text-decoration: underline; min-height: 44px; flex-shrink: 0; }
.bag-total { margin-block: 24px; font-weight: 600; }
.bag-note { margin-top: 20px; color: var(--muted); }

/* ---------------- phone ---------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .stage { display: none; }
  .phone-pic { display: block; }
  .phone-pic img { width: 100%; object-fit: cover; }
  .card { min-height: 0; }
  .card .phone-pic img { height: 48svh; }
  .card__body { padding-top: 40px; }
  .card__title { margin-top: 24px; font-size: 9.5vw; }
  .card .button { width: 100%; }
  .block .phone-pic { margin: calc(var(--block-y) * -1) calc(var(--pad) * -1) 40px; }
  .block .phone-pic img { aspect-ratio: 3 / 2; object-position: center 30%; }
  .pick__cells { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .sheet { padding-inline: 20px; }
  .slip { padding-inline: 20px; }
  .slip__total { margin-inline: -20px; padding-inline: 20px; }
  .foot { height: 88svh; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__contact { grid-column: 1 / -1; justify-self: start; }
  .foot__contact { text-align: left; }
  .foot__mark { font-size: 21vw; }
  .bag-item { align-items: flex-start; gap: 12px; }
  dialog { padding: 24px; }
}

/* entrances: parts of each section in order */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition-delay: calc(var(--d, 0) * 80ms); }
}
@media (prefers-reduced-motion: reduce) {
  .stage img { transition: opacity 400ms ease; transform: none; }
}

/* ---------------- inner : about, terms, returns, privacy, credits ---------------- */
.doc-bar { background: var(--paper); margin: var(--edge) var(--edge) 0; }
.doc-nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 2.5rem; padding: 20px var(--pad); }
.doc-nav__mark { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; }
.doc-nav__links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.doc-nav__links a { padding-block: 10px; }
.doc-nav__links a[aria-current="page"] { text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.doc-page .split { padding-top: var(--edge); }

.doc { margin: var(--edge); background: var(--paper); padding: var(--block-y) var(--pad); }
.doc__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.doc__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.doc__pic figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.doc h1 { font-size: var(--step-hero); }
.doc__lede { margin-top: 24px; font-size: var(--step-lead); line-height: 1.35; max-width: 44ch; }
.doc__updated { margin-top: 16px; color: var(--muted); font-size: var(--step-small); }
.doc__body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gutter); margin-top: clamp(3rem, 6vw, 5rem); }
.doc__toc { position: sticky; top: 24px; align-self: start; background: var(--bg); padding: 24px; }
.doc__toc p { font-weight: 600; }
.doc__toc ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.doc__text { display: grid; gap: 56px; }
.doc__sec h2 { font-size: var(--step-head); margin-bottom: 20px; }
.doc__sec p + p { margin-top: 0.9em; }
.doc__steps, .doc__list { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; max-width: 62ch; }
.doc__quote { margin: 16px 0 0; padding: 20px 24px; background: var(--bg); max-width: 62ch; }
.link-plain { color: inherit; }

.credits-list { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px var(--gutter); }
.credit { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: start; }
.credit img { width: 120px; height: 120px; object-fit: cover; }
.credit__title { font-weight: 600; }
.credit__where { margin-top: 6px; color: var(--muted); font-size: var(--step-small); }

.about-intro { min-height: calc(100svh - var(--edge) * 2 - 76px); display: flex; flex-direction: column; justify-content: center; }
.about-facts { margin: 56px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.about-facts div { background: var(--bg); padding: 20px; }
.about-facts dt { font-size: var(--step-small); color: var(--muted); }
.about-facts dd { margin: 4px 0 0; font-size: var(--step-lead); font-weight: 500; }
.about-text { margin-top: 20px; max-width: 46ch; }
.about-dye { background: var(--field-1); color: var(--field-1-ink); }
.about-list { margin: 24px 0 0; padding-left: 1.2em; display: grid; gap: 12px; font-size: var(--step-lead); line-height: 1.35; max-width: 36ch; }

.doc-foot { margin: var(--edge); background: var(--ink); color: var(--paper); padding: 40px var(--pad); display: grid; grid-template-columns: auto 1fr; gap: 20px 48px; align-items: start; }
.doc-foot__mark { font-size: var(--step-head); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.doc-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; justify-self: end; }
.doc-foot ul a { display: inline-block; padding-block: 8px; }
.doc-foot__legal { grid-column: 1 / -1; font-size: var(--step-small); }

@media (max-width: 860px) {
  .doc-nav { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .doc-nav__links { grid-column: 1 / -1; grid-row: 2; }
  .doc { padding-inline: 20px; }
  .doc__body { grid-template-columns: 1fr; }
  .doc__toc { position: static; }
  .doc__toc ul { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
  .doc__head { grid-template-columns: 1fr; }
  .doc__pic figcaption { display: none; }
  .credits-list { grid-template-columns: 1fr; }
  .credit { grid-template-columns: 88px minmax(0, 1fr); }
  .credit img { width: 88px; height: 88px; }
  .about-intro { min-height: 0; }
  .about-intro .card__title { font-size: 9.5vw; }
  .doc-foot { grid-template-columns: 1fr; padding-inline: 20px; }
  .doc-foot ul { justify-self: start; }
}
