/* =========================================================
   Said So — style.css
   Black & white, film-noir / documentary style.
   ========================================================= */

/* ---------- 1. Colours & fonts (change them here) ---------- */
:root {
  --ink: #0f0f0f; /* almost black */
  --paper: #f3f1ec; /* newsprint white */
  --white: #ffffff;
  --grey: #8c8c8c;
  --grey-dark: #2a2a2a;
  --grey-light: #d9d6cf;

  --font-type: 'Courier Prime', 'Courier New', monospace;
  /* 'EB Garamond' is loaded with the digits 0-9 only, so numbers stand upright and every letter stays IM Fell */
  --font-heading: 'EB Garamond', 'IM Fell DW Pica', Georgia, serif; /* headings, logo, quotes, prices, numbers */
  --font-title:
    'EB Garamond', 'IM Fell English SC', 'IM Fell DW Pica', Georgia, serif; /* logo and the first line of the hero title */
  --font-text: 'Courier Prime', 'Courier New', monospace; /* paragraphs and buttons */

  --max: 1180px; /* max page width */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Basics ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-type);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400; /* IM Fell DW Pica has one weight (plus a true italic) */
  line-height: 1.05;
  margin: 0 0 0.5em;
}
h1 em,
h2 em {
  font-weight: 400;
}

/* All paragraphs in the typewriter font (quotes, prices and the logo keep their own font) */
p {
  font-family: var(--font-text);
}

/* Keyboard focus: clear but on-brand */
:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 3px;
}

/* ---------- 3. Film grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none; /* clicks go straight through */
  opacity: 0.1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% {
    background-position: 0 0;
  }
  25% {
    background-position: -40px 30px;
  }
  50% {
    background-position: 30px -50px;
  }
  75% {
    background-position: -20px -15px;
  }
  100% {
    background-position: 0 0;
  }
}

/* ---------- 4. Masthead / header ---------- */

.logo {
  font-family: var(--font-title); /* "So" stays slanted (English SC has no true italic) */
  font-weight: 400;
  font-size: 1.9rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo em {
  font-weight: 400;
}

/* Language switch: EN | NL in the masthead's top line, the active one filled in */
.lang {
  display: flex;
  border: 1px solid var(--ink);
}
.lang__btn {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  min-width: 2rem;
  padding: 0.12rem 0.45rem;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.lang__btn + .lang__btn {
  border-left: 1px solid var(--ink);
}
.lang__btn:hover {
  background: var(--grey-light);
}
.lang__btn[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
}
.lang__btn:focus-visible {
  outline: 2px dashed var(--ink);
  outline-offset: 2px;
}
/* the header's right end: the languages, then the sound switch (a plain speaker icon, as on Onlyonery's other stalls) */
.stallbar__end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sound-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.sound-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound-btn__spk {
  fill: currentColor;
}
.sound-btn__off {
  display: none;
}
.sound-btn[data-muted='true'] .sound-btn__on {
  display: none;
}
.sound-btn[data-muted='true'] .sound-btn__off {
  display: inline;
}
.sound-btn:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 2px;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 400; /* regular weight, not bold */
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  /* typewriter key: the key's side shows underneath */
  box-shadow: 0 4px 0 var(--ink);
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    background 0.2s;
}
/* micro-interaction: the key strikes down on click
   (on hover script.js retypes the label, see .type-caret below) */
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn--paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 0 4px 0 var(--grey);
}

.btn--small {
  padding: 0.5rem 0.9rem;
  font-size: 0.75rem;
  box-shadow: 0 3px 0 var(--ink);
}
.btn--small:active {
  transform: translateY(3px);
}
.btn--paper:active {
  box-shadow: 0 0 0 var(--grey);
}

/* Retyped label on hover: the letters not typed yet keep their space (invisible),
   so the button never changes width; the blinking cursor takes no space either */
.type-ghost {
  visibility: hidden;
}
.type-caret {
  display: inline-block;
  width: 0.6ch;
  margin-right: -0.6ch;
  border-bottom: 2px solid currentColor;
  animation: caret-blink 0.8s steps(1) infinite;
}
@keyframes caret-blink {
  50% {
    visibility: hidden;
  }
}

/* ---------- 6. Section labels ---------- */
.kicker {
  display: inline-block;
  font-family: var(--font-type); /* small labels stay in Courier Prime */
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  padding: 0.15rem 0;
  margin: 0 0 1.2rem;
}

/* ---------- 7. Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr; /* the product still life gets the wider column */
  gap: 3rem;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(2.7rem, 6.8vw, 5.2rem);
  line-height: 0.9;
}
/* the second line, "Now you are their publisher.", a step smaller, with its own tight line spacing */
.hero h1 em {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.5em;
  line-height: 1.5;
  font-weight: 400;
} /* second line: DW Pica italic */
.lede {
  font-family: var(--font-text);
  font-size: 1.05rem;
  max-width: 34em;
}
/* newspaper drop cap, in the headline font */
.lede::first-letter {
  font-family: var(--font-heading);
  font-weight: 400;
  float: left;
  font-size: 3.9em;
  line-height: 0.8;
  padding: 0.06em 0.12em 0 0;
}

/* Background after the cover of "On Philosophy": the paper behind the text becomes a white arrow
   pointing at the products, everything right of it is black. Drawn by script.js (drawHeroArrow),
   which keeps the black clear of the text; it may only pass under "Read the methodology". */
main {
  overflow-x: clip;
} /* the background runs to the window edges */
.hero {
  position: relative;
  isolation: isolate;
}
.hero__text {
  position: relative;
  z-index: 1;
}
/* sits on top of the black edge */
.hero-bg {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(-1 * (100vw - min(100vw, var(--max))) / 2);
  right: calc(-1 * (100vw - min(100vw, var(--max))) / 2);
  overflow: hidden;
  pointer-events: none;
}
.hero-bg svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Still life of products: laid out on a fixed 560 × 520 board,
   scaled to the column width by script.js (--showcase-scale) */

/* ---------- 8. Ticker ---------- */

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 9. Editor ---------- */

.chip {
  font: inherit;
  font-size: 0.8rem;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.chip:hover {
  background: var(--paper);
  color: var(--ink);
}

.field {
  display: block;
  margin: 0 0 1.2rem;
  border: none;
  padding: 0;
  min-width: 0;
}
.field__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700; /* small bold capitals a shade lighter than the ink: they name a field, the words in it stand out */
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.45rem;
  padding: 0;
}
.field input[type='text'],
.field input[type='number'],
.field input[type='email'],
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--grey);
  padding: 0.4rem 0;
  border-radius: 0;
  transition: border-color 0.2s;
}
.field textarea {
  line-height: 1.5;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: currentColor;
}
/* a loaded example shows as grey placeholder text: type straight over it */
.field input::placeholder,
.field textarea::placeholder {
  color: var(--grey);
  opacity: 1;
}
/* age: a plain number box, without the up/down arrows */
.field input[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.field input[type='number']::-webkit-inner-spin-button,
.field input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* small "optional" note after a label */
.field__optional {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-weight: 400; /* "optional" stays light next to the bold label */
  color: var(--grey);
  margin-left: 0.3rem;
  white-space: nowrap;
}
/* Error under a field: an inverted label (paper on the dark editor) with a "!", so it cannot be missed */
.field__error {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-type);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  animation: error-in 0.3s var(--ease);
}
.field__error::before {
  content: '!';
  display: grid;
  place-items: center;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
}
.field__error:empty {
  display: none;
}
/* sits under a row of fields */
@keyframes error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
/* the field itself: a thick dashed line instead of the thin one */
.field textarea.is-invalid,
.field input.is-invalid {
  border-bottom: 2px dashed var(--paper);
}
.upload__box.is-invalid {
  border-color: var(--paper);
  border-width: 2px;
}
.upload__box + .field__error {
  margin-top: 0.35rem;
}
.field__hint {
  display: block;
  font-size: 0.75rem;
  color: var(--grey);
  margin-top: 0.3rem;
  font-style: italic;
}
/* under the quote: the quotation marks switch on the left, the length counter on the right */
.field__under {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-top: 0.3rem;
}
.field__under .field__hint {
  margin-top: 0;
  margin-left: auto;
  text-align: right;
}

.field-row {
  display: flex;
  gap: 1rem;
}
/* the name and age boxes stay level even if a label wraps; an error that belongs to a field in the row takes a line
   of its own under it (wrapping), so it never pushes one box out of level with the other */
.field-row--bottom {
  align-items: flex-end;
  flex-wrap: wrap;
  row-gap: 0;
}
.field-row .field {
  flex: 1;
}
.field-row__error {
  flex: 0 0 100%;
}
.field-row__error .field__error {
  margin: -0.7rem 0 1.2rem;
}
@media (max-width: 640px) {
  .field-row--bottom .field--note {
    order: 1;
  } /* the fields stacked: the name's error straight under the name, before the age */
}

.field__with-btn {
  display: flex;
  gap: 0.6rem;
  align-items: end;
}
.field__with-btn input {
  flex: 1;
  min-width: 0;
}
/* "FIG. I." in front of the caption field: the fixed start of the printed caption */
.caption-prefix {
  align-self: center;
  padding-top: 0.2rem;
  font-family: var(--font-type);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--paper);
  white-space: nowrap;
}
/* caption: "FIG. I." and the field share the full width, the gravitas button goes on the line below */
.field__with-btn--caption {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: end;
}
.field__with-btn--caption .btn {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.7rem;
}
/* the caption box: two ruled lines */
.field textarea.field__caption {
  --rule: var(--grey);
  resize: none;
  /* ruled like a form: every line it holds has its own rule, so "FIG. I." reads as the first line's start rather
     than a label floating over an empty box */
  padding: 0.4rem 0 0;
  border-bottom: none;
  background: linear-gradient(transparent calc(1.5em - 1px), var(--rule) 0) 0 0 / 100% 1.5em content-box local;
}
.field textarea.field__caption:focus {
  --rule: currentColor;
}
.field__with-btn--caption .caption-prefix {
  align-self: start;
  padding-top: 0.55rem;
}
/* on a phone the box is narrower: three lines, so the longest caption (60 characters) still shows in full */
@media (max-width: 520px) {
  .field textarea.field__caption {
    height: calc(4.5em + 0.4rem);
  }
}

/* upload box: real file input is hidden but still clickable through the label */
.upload input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
/* one slim line: the photo's small black & white picture and its file name once there is one, else the invitation */
.upload__box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  border: 1px dashed var(--grey);
  padding: 0.45rem 0.9rem 0.45rem 0.45rem; /* the picture as far from the left edge as from the top and bottom */
  font-size: 0.8rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
/* the photo's small square (an empty frame with a + until there is one), the name, and "Other photo" at the end */
.upload__thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--grey);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--grey);
  object-fit: cover;
}
img.upload__thumb {
  border-color: var(--paper);
  background: #fff;
}
.upload__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload__name--wrap {
  white-space: normal;
} /* the invitation may take two lines */
.upload__again {
  flex: none;
  font-size: 0.72rem;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.upload:hover .upload__box,
.upload.is-dragging .upload__box {
  border-color: var(--paper);
  background: var(--grey-dark);
}
.upload input:focus-visible + .upload__box {
  outline: 2px dashed var(--paper);
  outline-offset: 3px;
}

.toggle {
  display: flex;
  border: 1px solid var(--paper);
}
.toggle label {
  flex: 1;
  cursor: pointer;
}
.toggle input {
  position: absolute;
  opacity: 0;
}
.toggle span {
  display: block;
  text-align: center;
  padding: 0.55rem 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition:
    background 0.2s,
    color 0.2s;
}
.toggle span span {
  display: inline;
  padding: 0;
} /* a translated label inside a button is plain text */
.toggle input:checked + span {
  background: var(--paper);
  color: var(--ink);
}
.toggle input:focus-visible + span {
  outline: 2px dashed var(--paper);
  outline-offset: -4px;
}

/* photo filter buttons with a small preview of each filter */
.toggle--thumbs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem 0.5rem;
}
.filter-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--grey-dark);
  border: 1px solid var(--grey-dark);
}
.toggle--thumbs input:checked + span .filter-thumb {
  border-color: var(--ink);
}

.field[hidden] {
  display: none;
}

/* a filter's own setting (Trace: ink level), on its own line under the filter buttons */
.filter-setting {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  color: var(--grey);
}
.filter-setting[hidden] {
  display: none;
}
.filter-setting input[type='range'] {
  display: block;
  width: 100%;
  margin: 0.1rem 0 0;
  accent-color: var(--paper);
  cursor: pointer;
}

/* Photo group: position and filter hang under the photo like sub-settings,
   indented behind a thin line that runs down from the upload box */
.photo-group {
  margin: 0 0 1.2rem;
}
.photo-group > .upload {
  margin-bottom: 0;
}

/* a short tick from the line to each sub-setting's label */

.field input[type='range'] {
  width: 100%;
  margin: 0.55rem 0 0;
  accent-color: var(--paper);
  cursor: pointer;
}

/* the "studio" where the product mockup stands */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  height: 520px; /* fixed, so switching products never makes the section jump; fits the tallest mockup (calendar) */
  padding: 2rem;
  background: radial-gradient(ellipse at 50% 40%, #3a3a3a 0%, #151515 70%);
  overflow: hidden;
}
/* spotlight that follows the mouse (set by script.js) */
.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, 0.12), transparent 45%);
  pointer-events: none;
}

.mockup {
  position: relative;
  transition:
    transform 0.5s var(--ease),
    opacity 0.3s;
}
.mockup.is-switching {
  opacity: 0;
  transform: scale(0.94) rotate(-2deg);
}
.mockup img {
  display: block;
}

/* --- Mug: shows the front of the wide design (the printed part plus a margin, 1.39 × as wide as high) --- */
.mockup--mug {
  width: 360px;
  height: 260px;
  border-radius: 10px 10px 26px 26px;
  z-index: 0; /* lets the handle sit behind the mug */
}
.mockup--mug img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px 10px 26px 26px;
}
/* curved shading to make it look round */
.mockup--mug::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px 10px 26px 26px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 18%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 2;
  pointer-events: none;
}
/* the handle */
.mockup--mug::after {
  content: '';
  position: absolute;
  right: -70px;
  top: 45px;
  width: 90px;
  height: 150px;
  border: 22px solid #e8e6e1;
  border-left: none;
  border-radius: 0 70px 70px 0;
  box-shadow: inset -4px 0 8px rgba(0, 0, 0, 0.25);
  z-index: -1;
}

/* --- Tile --- */
.mockup--tile {
  width: 330px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.6);
  border-radius: 3px;
  overflow: hidden; /* the print runs edge to edge, no white frame (shows in noir) */
}
.mockup--tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 35%);
  pointer-events: none;
}

/* --- Poster in a frame --- */
.mockup--poster {
  width: 270px;
  padding: 14px;
  background: #0a0a0a;
  border: 3px solid #2e2e2e;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.7);
}
.mockup--poster img {
  border: 18px solid #fafafa;
}

/* clicking the mockup opens the zoom view */
.stage {
  cursor: zoom-in;
}

/* magnifier button in the corner of the preview */
.stage__zoom {
  position: absolute;
  top: 1rem;
  right: 1rem; /* top right corner of the preview */
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--grey);
  cursor: pointer;
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.12s var(--ease);
}
.stage__zoom:hover {
  transform: translate(-1px, -1px) scale(1.06);
  box-shadow: 4px 4px 0 var(--grey);
}
.stage__zoom:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--grey);
}
.stage__zoom:focus-visible {
  outline: 2px dashed var(--paper);
  outline-offset: 3px;
}

/* --- The form --- */

/* room before the photo that follows */

.photo-group > .upload {
  margin-bottom: 1rem;
}

/* under the preview: what is still missing before it can go in the cart */
.ed-check {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-type);
  font-size: 0.78rem;
}
.ed-check li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--grey);
}
.ed-check li::before {
  content: '';
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid #777;
  border-radius: 50%;
  font-size: 0.65rem;
}
.ed-check li.is-done {
  color: var(--paper);
}
.ed-check li.is-done::before {
  content: '✓';
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

/* the form's column never widens past its share of the editor */
.editor__form {
  min-width: 0;
}

/* parts of the form the page hides */
#edWords[hidden],
#edImage[hidden],
.ed-check[hidden] {
  display: none;
}

/* 2D / 3D switch, right under the magnifier (only shown for the mug) */
.stage__3d {
  position: absolute;
  top: 4.35rem; /* magnifier (1rem + 2.75rem) plus a small gap */
  left: 1rem;
  z-index: 3;
  display: none;
  height: 2.75rem;
  width: 2.75rem; /* round, the same size as the magnifier */
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-type);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 3px 3px 0 var(--grey);
  cursor: pointer;
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.12s var(--ease),
    background 0.2s,
    color 0.2s;
}

/* the ↻ drawn about as big as the magnifier's icon */
.stage__3d:hover {
  transform: translate(-1px, -1px) scale(1.06);
  box-shadow: 4px 4px 0 var(--grey);
}
.stage__3d:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--grey);
}
.stage__3d:focus-visible {
  outline: 2px dashed var(--paper);
  outline-offset: 3px;
}
.stage__3d[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 2px var(--paper);
}
/* the 3D mug still loading: "3D" breathes until it shows */
.stage__3d[aria-busy='true'] {
  cursor: progress;
  animation: view-loading 1.2s ease-in-out infinite;
}
@keyframes view-loading {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage__3d[aria-busy='true'] {
    animation: none;
    opacity: 0.6;
  }
}

/* the 3D mug fills the stage; drag to turn it */
.mug3d {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  cursor: grab;
  touch-action: pan-y; /* a sideways drag turns the mug, scrolling the page still works */
}
.mug3d.is-dragging {
  cursor: grabbing;
}
.mug3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.stage.is-3d .mug3d {
  display: block;
}
.stage.is-3d .mockup {
  visibility: hidden;
}
.stage.is-3d {
  cursor: default;
}
/* "Drag to turn the mug": a small label on the desk under the mug, with a turning arrow that sways left and right;
   it goes once the visitor has turned the mug */
.mug3d__hint {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.85rem 0.4rem 0.7rem;
  border: 1px solid #d6d1c4;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.92);
  box-shadow: 0 2px 0 #e3dfd5;
  transform: translateX(-50%);
  font-family: var(--font-type);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #2a2a2a;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mug3d__hint svg {
  flex: none;
  animation: hint-sway 2.4s ease-in-out infinite;
}
@keyframes hint-sway {
  0%,
  100% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .mug3d__hint svg {
    animation: none;
  }
}
.mug3d.was-turned .mug3d__hint {
  opacity: 0;
}

/* --- Zoom: full-screen view of the design at print size --- */
.zoom {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--paper);
  overflow: hidden;
}
.zoom[open] {
  display: flex;
  flex-direction: column;
}
.zoom::backdrop {
  background: #0d0d0d;
}
.zoom__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.2rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--grey-dark);
}
.zoom__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
}
.zoom__hint {
  margin: 0 auto 0 0;
  font-size: 0.75rem;
  color: var(--grey);
}
.zoom__frame {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  padding: 1.5rem;
}
.zoom__img {
  margin: auto; /* centres it, but still scrolls from the top left at actual size */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  cursor: zoom-in;
}
.zoom__img.is-full {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

/* ---------- 10. Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1rem 3rem;
  text-align: center;
  border-top: 3px double var(--ink);
}

.footer__def {
  max-width: 40em;
  margin: 0 auto 1.5rem;
}

/* ---------- 11. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 200;
  transform: translate(-50%, 150%);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 0.7rem 1.2rem;
  font-size: 0.85rem;
  max-width: calc(100% - 2rem);
  visibility: hidden;
  transition:
    transform 0.4s var(--ease),
    visibility 0.4s;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
}

/* ---------- 12. Responsive (tablet & phone) ---------- */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  /* the hero title as big as the phone allows: "philosopher." (the longest word, about 5.4 × the font size) fills the width */
  .hero h1 {
    font-size: calc((100vw - 2rem) / 5.6);
  }

  /* the date on the left, the language switch on the right */
  .hero {
    padding-top: 3rem;
  } /* stacked: a line between the chapters */
  .field-row {
    flex-wrap: wrap;
  }
  .field-row .field {
    flex: 1 1 100%;
  }
  .stage {
    height: 460px;
    padding: 1.5rem 3rem 1.5rem 1rem;
  }
  .mockup--mug {
    width: 278px;
    height: 200px;
  }
  .mockup--mug::after {
    right: -56px;
    top: 35px;
    width: 72px;
    height: 120px;
    border-width: 18px;
  }
  .mockup--tile {
    width: 250px;
  }
  .mockup--poster {
    width: 220px;
  }
}

/* ---------- 13. Respect "reduce motion" setting ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* All buttons and the menu links in the typewriter font: example chips, product tabs, style and filter toggles,
   the menu button, the language switch and the menu's Order button. (The .btn buttons set it
   in section 5.) Last in the file, so it wins over their earlier "font: inherit". */
.chip,
.toggle span,
.lang__btn {
  font-family: var(--font-text);
  font-weight: 400; /* regular weight, not bold */
}

/* ==========================================================
   17. The stall on Onlyonery: one flow on four screens
   hero → Document (the open book is the form) → Press → Done.
   Onlyonery draws its own bar (back to the shop, chat, basket) above this page.
   ========================================================== */

/* --- header: logo, languages, sound --- */
.stallbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  background: var(--paper);
}
.stallbar .logo {
  font-size: 1.7rem;
}

/* --- screens: one shows at a time --- */
.screen {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  min-height: calc(100vh - 140px);
}
.screen.is-on {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  animation: screen-in 0.5s var(--ease);
}
@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.screen.no-fade {
  animation: none;
}

/* --- 0. hero: the words on the left, the mug on the right --- */
.hero.is-on {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  padding: 5rem 1rem 4rem;
}
.hero .price {
  position: relative;
  margin: 1.4rem 0 1.6rem;
  padding-top: 0.7rem;
  font-size: 0.95rem;
}
.hero .price::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  border-top: 1px solid currentColor;
} /* the footnote rule */
.price b {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.8rem;
  margin-right: 0.3rem;
}
.stage-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
}
.hero__mug {
  margin-right: 130px;
  zoom: 0.88;
} /* room for the handle; a little smaller than full size (phones: .62, below) */
.stage-hero {
  flex-direction: column;
  gap: 1.6rem;
}
/* switching examples: the print fades out quickly to the white body underneath (set by script.js), and the next one is pressed on */
/* (its own layer, above the handle and below the print: the box's own background would sit under the handle) */
.hero__blank {
  position: absolute;
  inset: 0;
  background: no-repeat top / 100% auto;
}
.hero__mug img {
  position: relative;
} /* the print above the white body */
.hero__mug img {
  transition: opacity 0.3s;
}
.hero__mug img.is-inking {
  opacity: 0;
  transition-duration: 0.15s;
}
/* the hero's mug in 3D (hero.ts), over the flat one and centred on its body, as tall as it (never over the text above
   or the tabs under it) and with room at its sides for the handle as it turns. It fades in where the flat mug stood,
   which hides, handle and all */
.hero__mug .hero__3d {
  inset: 0 -130px;
}
.hero__mug.is-3d {
  overflow: visible;
}
.hero__mug.is-3d .hero__3d {
  display: block;
  animation: hero-3d-in 0.6s var(--ease);
}
/* (the flat print only turns see-through, so a screen reader still finds the mug by its words: the 3D one is hidden
   from it) */
.hero__mug.is-3d > img {
  opacity: 0;
}
.hero__mug.is-3d .hero__blank,
.hero__mug.is-3d::before,
.hero__mug.is-3d::after {
  visibility: hidden;
}
@keyframes hero-3d-in {
  from {
    opacity: 0;
  }
}
.hero__3d canvas {
  transition: opacity 0.3s;
}
.hero__3d.is-inking canvas {
  opacity: 0;
  transition-duration: 0.15s;
}
/* the four examples, under the body of the mug (not the handle): dark keys, the chosen one light */
.hero-examples {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.4rem;
  transform: translateX(-55px) translateY(10px);
} /* half the handle's room: centred under the body */
.hero-examples button {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-type);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.hero-examples button:hover {
  border-color: var(--paper);
}
.hero-examples button.is-on {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--paper);
} /* a dark edge on the white, a light edge on the black */
.hero-examples__no {
  margin-right: 0.2rem;
  font-family: var(--font-heading);
}
/* under the tabs: the examples' people don't exist (index.html), quiet but always there. A caption, not a control:
   a paper slip between two hairlines like the hero's spec line, so it never reads as a fifth tab; on paper, as the
   hero's ground is light on one side of its diagonal and black on the other */
.hero-examples__note {
  margin: -0.5rem 0 0;
  max-width: 20rem;
  padding: 0.3rem 0.5rem;
  border-block: 1px solid var(--ink);
  background: var(--paper);
  color: var(--grey-dark);
  font-family: var(--font-type);
  font-size: 0.66rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-align: center;
  transform: translateX(-55px) translateY(10px);
}
/* The mug as in the 3D view, seen from the front and a little from above: taller than wide, an open oval rim,
   a big C-shaped handle. The print is bent round the body by script.js (mugFront): squeezed towards the sides,
   every line dipping in the middle, the shading baked in, and the bottom edge curved (transparent below it). */
.stall .mockup--mug {
  width: 290px;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.22));
}
.stall .mockup--mug img {
  width: 100%;
  height: auto;
  object-fit: initial;
  border-radius: 0;
}
.stall .mockup--mug::before {
  /* the rim: an oval as high as the rings in the drawing (MUG_TILT), looking into the mug */
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 2;
  height: 57px;
  border: 3px solid #f4f2ee;
  border-radius: 50%;
  background: linear-gradient(
    #f1efea 0%,
    #d9d5ce 45%,
    #a9a49c 100%
  ); /* the far wall lit, darker towards the near lip */
  box-shadow: inset 0 5px 8px rgba(0, 0, 0, 0.18);
}
.stall .mockup--mug::after {
  /* the handle: from just under the rim to well down the body */
  content: '';
  position: absolute;
  top: 59px;
  right: -130px;
  z-index: -1;
  width: 152px;
  height: 262px;
  border: 29px solid #efede8;
  border-left: none;
  border-radius: 0 130px 130px 0 / 0 131px 131px 0;
  box-shadow:
    inset -5px 0 9px rgba(0, 0, 0, 0.2),
    3px 4px 8px rgba(0, 0, 0, 0.12);
}
/* in the preview next to the book: a little smaller, clear of the zoom and 3D buttons, with room for the handle */
.stall .stage {
  padding-left: 4rem;
}
.stall .stage .mockup--mug {
  zoom: 0.85;
  margin-right: 130px;
}
.also {
  margin: 1.1rem 0 0;
  font-size: 0.85rem;
  color: #555;
}
.also a {
  color: inherit;
}

/* the main buttons: a typewriter key with a round icon (the label is retyped on hover, see script.js) */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.4rem 0.85rem 1rem;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.cta:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--ink);
}
.cta b {
  font-weight: 700;
}
.cta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
}
.cta__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  letter-spacing: 0;
  line-height: 1;
}

/* Hero → Document as paper feeding into a typewriter: the text steps aside, the book rolls up in line-feed steps */
.hero.hero-leaving .hero__text {
  animation: leave 0.3s var(--ease) forwards;
}
.hero.hero-leaving .hero-bg {
  animation: fade-out 0.3s forwards;
}
@keyframes leave {
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
.screen--doc.feeding {
  overflow: hidden;
}
/* the paper comes up out of the roller, line by line (the roller itself stays put) */
.screen--doc.feeding .spread {
  animation: feed 1s steps(9, jump-end) both;
}
@keyframes feed {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

/* --- 1. Document: a sheet of paper in a typewriter (the form) on the left, the product on the right --- */
.screen--doc.is-on {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.typewriter {
  position: relative;
  padding: 0 2rem;
} /* room for the roller's knobs either side */
/* the paper is cut off at the roller: anything below the slot's bottom edge is inside the typewriter */
.paper-slot {
  clip-path: inset(-100vh -100px 0 -100px);
}
/* while the sheet rolls to another step (steps.ts rollTo), the slot's top edge cuts it off too: the sheet rolls out
   of the window there and back in, never over the page above */
.paper-slot.rolling {
  clip-path: inset(0 -100px 0 -100px);
}
/* the paper, with dark ink: the form's colours are swapped here, so its fields (made for a dark background) read dark on light */
.spread {
  --paper: #0f0f0f;
  --ink: #fbfaf6;
  --grey-dark: #ebe7dd;
  position: relative;
  background: #fbfaf6;
  color: #0f0f0f;
  box-shadow:
    0 0 0 1px #e1ddd2,
    0 6px 18px rgba(0, 0, 0, 0.12);
}
.spread::after {
  /* the paper bail: a thin chrome bar across the paper, just above the roller, with two rubber rollers */
  content: '';
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: 34px;
  height: 6px;
  border-radius: 3px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent 22%,
      #222 22%,
      #222 27%,
      transparent 27%,
      transparent 73%,
      #222 73%,
      #222 78%,
      transparent 78%
    ),
    linear-gradient(#fafafa, #a8a8a8 60%, #7d7d7d);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}
.page {
  position: relative;
  padding: 2rem 1.8rem 4.6rem;
  min-width: 0;
} /* room at the bottom for the bail and the roller */
/* the platen: a black rubber roller, wider than the paper, with ridged knobs at both ends */
.platen {
  position: relative;
  z-index: 2;
  height: 46px;
  margin: -24px -1.2rem 0;
  border-radius: 23px;
  background: linear-gradient(#555 0%, #1c1c1c 38%, #090909 70%, #2e2e2e 100%);
  box-shadow: 0 12px 18px -8px rgba(0, 0, 0, 0.55);
}
.platen::before,
.platen::after {
  /* the knobs */
  content: '';
  position: absolute;
  top: -7px;
  width: 26px;
  height: 60px;
  border-radius: 7px;
  background: repeating-linear-gradient(#3d3d3d 0 3px, #161616 3px 6px);
  box-shadow:
    inset 0 0 0 1px #000,
    0 6px 10px -4px rgba(0, 0, 0, 0.5);
}
.platen::before {
  left: -20px;
}
.platen::after {
  right: -20px;
}
.tabs {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #ddd8cc;
}
.tabs button {
  margin-bottom: -1px;
  padding: 0 0 0.45rem;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  color: #8c8c8c;
  font-family: var(--font-type);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.tabs button.is-on {
  color: #0f0f0f;
  border-color: #0f0f0f;
}
.tabs__no {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
} /* I. II. III., like the steps before */
.cta[hidden] {
  display: none;
} /* "Next" or "Press it": only one shows */
.tab {
  display: none;
}
.tab.is-on {
  display: block;
}
/* fixed colours made for the dark background */

/* the occasion and its year share the row */
.spread .field-row .field--year {
  flex: 1 1 0;
  min-width: 0;
}
.spread .btn--small {
  background: #0f0f0f;
  color: #fbfaf6;
  border-color: #0f0f0f;
  box-shadow: 0 3px 0 #8c8c8c;
  white-space: nowrap;
}
.spread .btn--small:active {
  box-shadow: 0 0 0 #8c8c8c;
}
.spread .cta {
  background: #0f0f0f;
  color: #fbfaf6;
  border-color: #0f0f0f;
  box-shadow: 0 4px 0 #0f0f0f;
}
.spread .cta:active {
  box-shadow: 0 0 0 #0f0f0f;
}
.spread .cta__icon {
  color: #fbfaf6;
} /* the icon in white on the black button, no box */
.press-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.press-row .cta[hidden],
.press-row .back-btn[hidden] {
  display: none;
}
/* the arrow on "Back" as large as the one on the black button beside it */
.back-btn__arrow {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1;
}
/* "Back": an outlined button beside the black one, as tall, the way back rather than the way on */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: stretch;
  padding: 0 1.1rem;
  border: 2px solid #0f0f0f;
  background: none;
  color: #0f0f0f;
  box-shadow: 0 4px 0 #c8c8c8;
  font-family: var(--font-text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.back-btn:hover {
  background: #ececec;
}
.back-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #c8c8c8;
}

/* --- the product preview: on paper here (not the dark studio), moved between the screens --- */
.stage-slot {
  position: relative;
  min-width: 0;
}
main > .stage-wrap {
  display: none;
} /* the preview only shows inside a screen's slot (never below the hero) */
.stall .stage {
  height: 460px;
  background: none;
}
.stall .stage::before {
  display: none;
}
.stall .stage__zoom,
.stall .stage__3d {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--grey);
}
.stall .stage__3d[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 2px var(--ink),
    3px 3px 0 var(--grey);
} /* turned over: light, with its ring inside, so the same size and shadow as the magnifier */
.stall .ed-check li.is-done {
  color: var(--ink);
}
.stall .ed-check li.is-done::before {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.screen--done .ed-check {
  display: none;
}

/* the fabric poster: a soft sheet between two wooden rails */
.stall .mockup--poster {
  width: 250px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
.stall .mockup--poster img {
  border: none;
  box-shadow: 0 18px 26px rgba(0, 0, 0, 0.28);
}
.stall .mockup--poster::before,
.stall .mockup--poster::after {
  content: '';
  position: absolute;
  left: -10px;
  right: -10px;
  z-index: 1;
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(#c49a6c, #8a6239);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.stall .mockup--poster::before {
  top: -6px;
}
.stall .mockup--poster::after {
  bottom: -6px;
}

/* --- 2. Done: check it, choose, order --- */
.done h2 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
}
.done__product {
  margin: 0;
}
.done__product strong {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}
.stall .chip {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: none;
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 0.78rem;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.stall .chip:hover {
  background: none;
  color: var(--ink);
}
.stall .chip:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--ink);
}
.toggle--chips {
  border: 1px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}
.toggle--chips span {
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  font-size: 0.78rem;
}
.toggle--chips input:checked + span {
  background: var(--ink);
  color: var(--paper);
}
.toggle--chips input:focus-visible + span {
  outline-color: var(--ink);
}
/* the discount for a second one: a small inked label, tilted like the SAID So stamp, so it catches the eye */
.qty__note {
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--ink);
  font-family: var(--font-type);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transform: rotate(-2deg);
  transform-origin: left center;
}
/* 2 chosen: "You saved €4!" pops in, like the stamp coming down */
.qty__note.is-pop {
  animation: note-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes note-pop {
  0% {
    transform: rotate(-2deg) scale(0.8);
  }
  60% {
    transform: rotate(-4deg) scale(1.12);
  }
  100% {
    transform: rotate(-2deg) scale(1);
  }
}
.cta.order {
  width: 100%;
  justify-content: center;
}
/* the total above the order button: large, in the serif of the title, with the VAT and delivery note beside it */
.done__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.8rem;
  margin: 0 0 0.7rem;
}
.done__total span {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
}
.done__total small {
  font-family: var(--font-type);
  font-size: 0.7rem;
  color: #777;
}
.colophon {
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid #ccc7bb;
  font-size: 0.74rem;
  line-height: 1.6;
  color: #555;
}
.colophon p {
  margin: 0;
}
.colophon b {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* --- footer: the stall's legal links --- */
.footer--stall {
  padding: 1.4rem 1rem 1.8rem;
  border-top: 1px solid var(--grey-light);
  font-size: 0.72rem;
  color: #555;
}
.footer__links a {
  color: inherit;
}
.footer--stall .footer__def {
  margin: 0 auto 0.8rem;
  max-width: 40rem;
  font-size: 1.1em;
  color: #777;
}
/* the hero: its black runs from the top of the page to the bottom, under the header and the footer (script.js);
   the header and the footer let it through, and their text turns light where it sits on the black */
.footer--stall {
  position: relative;
  z-index: 1;
} /* above the hero's black */
body.is-hero .stallbar {
  background: transparent;
}
/* the footer's text inverts itself: light where the black runs under it, dark on the paper, switching at the diagonal */
body.is-hero .footer--stall {
  border-top-color: transparent;
  color: #d0d0d0;
  mix-blend-mode: difference;
}
body.is-hero .footer--stall .footer__def {
  color: #fff;
}
@media (min-width: 861px) {
  /* (on a phone the black starts below the text, so the header stays as it is) */
  body.is-hero .lang {
    border-color: #f3f1ec;
  }
  body.is-hero .lang__btn {
    color: #f3f1ec;
  }
  body.is-hero .lang__btn + .lang__btn {
    border-left-color: #f3f1ec;
  }
  body.is-hero .lang__btn:hover {
    background: #2a2a2a;
  }
  body.is-hero .lang__btn[aria-pressed='true'] {
    background: #f3f1ec;
    color: #0f0f0f;
  }
  body.is-hero .sound-btn {
    color: #f3f1ec;
  }
}

/* --- phone and small tablet: one column; the product above the form --- */
@media (max-width: 860px) {
  .screen.is-on,
  .hero.is-on,
  .screen--doc.is-on {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding-top: 1.5rem;
  }
  .hero.is-on {
    padding-top: 3rem;
    gap: 2.5rem;
  }
  .stage-hero {
    height: auto;
    padding-bottom: 1rem;
    gap: 2.2rem;
  } /* air between the mug and the example tabs */
  .hero-examples {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    transform: none;
  } /* two by two, centred */
  .hero-examples__note {
    transform: none;
  }
  .hero__mug {
    zoom: 0.62;
    margin-right: 0;
  } /* the mug's body centred on the screen, like the tabs under it; the handle sticks out to the right */
  .screen--doc .stage-slot,
  .screen--done .stage-slot {
    order: -1;
  }
  .page {
    padding: 2rem 1.2rem 4.4rem;
  }
  .typewriter {
    padding: 0 1.2rem;
  }
  .platen {
    margin: -24px -0.6rem 0;
  }
  .platen::before {
    left: -16px;
    width: 20px;
  }
  .platen::after {
    right: -16px;
    width: 20px;
  }
}

/* --- the editor's preview: the paper beside it, the stage's checklist and magnifier, then the mug itself (2D or 3D) --- */
/* the paper keeps a fixed width and stays in view; the preview gets the rest of the page */
@media (min-width: 861px) {
  .screen--doc.is-on {
    grid-template-columns: 440px minmax(0, 1fr);
  }
  .screen--doc .typewriter {
    position: sticky;
    top: 1.5rem;
  }
}
.tabs {
  gap: 0.9rem;
}
.tabs button {
  white-space: nowrap;
}
.stall .stage {
  height: auto;
  padding: 5.2rem 1.6rem 2rem;
} /* room at the top for the magnifier */
.stall .stage .ed-check {
  position: absolute;
  top: 1.75rem;
  left: 1.6rem;
  right: 4.5rem;
  z-index: 3;
  justify-content: flex-start;
  margin: 0;
} /* level with the magnifier */

/* the mug itself, in the editor and on the Done page: it stands on the page, 2D (the drawing) or 3D (drag to turn),
   with the magnifier and the 2D / 3D switch beside it */
.mug-viewer {
  display: none;
  position: relative;
}
.mug-viewer:not([hidden]) {
  display: block;
}
/* the mug's room: the 2D mug plus air above and below; the 3D view fills the same space */
.mug-viewer__body {
  position: relative;
  display: grid;
  place-items: center;
  padding: 5.2rem 50px 2.6rem 0;
} /* top: as high as the other products' preview; right: room for the handle */
.mug-viewer .mug-viewer__mug {
  zoom: 0.78;
}
.mug-viewer .mug3d {
  inset: 0;
}
.mug-viewer .mug3d__hint {
  bottom: 0.5rem;
}
.mug-viewer.is-3d .mug3d {
  display: block;
}
.mug-viewer.is-3d .mug-viewer__mug {
  visibility: hidden;
}
/* desktop: the mug fills its half of the sheet, as tall as the form beside it, the 2D mug drawn bigger and the 3D view
   the whole half */
@media (min-width: 861px) {
  .spread .stage-slot:has(.mug-viewer:not([hidden])) {
    align-self: stretch;
    display: grid;
  }
  .spread .stage-wrap:has(> .mug-viewer:not([hidden])),
  .spread .mug-viewer:not([hidden]) {
    display: grid;
  }
  .spread .mug-viewer__body {
    padding: 2.6rem 50px 5.2rem 0;
  }
  .spread .mug-viewer .mug3d {
    bottom: 4.6rem;
  } /* clear of the bail and the roller, its hint too */
  .spread .mug-viewer .mug-viewer__mug {
    zoom: 1.05;
  }
}
@media (max-width: 700px) {
  .mug-viewer .mug-viewer__mug {
    zoom: 0.6;
  }
  .screen--done .done-edit {
    padding-right: 0;
  } /* phones: centred in the box */
}

/* switching products: the magnifier, checklist and mug fade and turn like the tile and poster (.mockup.is-switching).
   scale and rotate are separate from transform, so the magnifier keeps its own quick hover */
.stage-wrap .stage__zoom {
  transition:
    transform 0.12s var(--ease),
    box-shadow 0.12s var(--ease),
    opacity 0.3s,
    scale 0.5s var(--ease),
    rotate 0.5s var(--ease);
}
.stage-wrap .ed-check,
.stage-wrap .mug-viewer {
  transition:
    opacity 0.3s,
    scale 0.5s var(--ease),
    rotate 0.5s var(--ease);
}
.stage-wrap.is-switching .stage__zoom,
.stage-wrap.is-switching .ed-check,
.stage-wrap.is-switching .mug-viewer {
  opacity: 0;
  scale: 0.94;
  rotate: -2deg;
}
/* opening the editor: the magnifier and the 2D / 3D switch appear only after the thing has glided in, one after the
   other */
.stage-wrap.is-waiting .stage__zoom,
.stage-wrap.is-waiting .stage__3d {
  opacity: 0;
  transition: none;
}
.stage-wrap.is-entering .stage__zoom,
.stage-wrap.is-entering .stage__3d {
  animation: arrive 0.45s var(--ease) both;
}
.stage-wrap.is-entering .stage__3d {
  animation-delay: 0.12s;
}
@keyframes arrive {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: none;
  }
}

/* --- The finale ("Press it"): the sheet is pulled out of the typewriter, the design lands on the Done page, and is stamped --- */
/* 1. the paper rolls up line by line (the opening's feed in reverse), then is pulled free, up and away */
.screen--doc.pulling .spread {
  animation:
    pull-feed 0.5s steps(5, jump-end) forwards,
    pull-out 0.5s 0.5s cubic-bezier(0.5, 0, 0.9, 0.4) forwards;
}
@keyframes pull-feed {
  to {
    transform: translateY(-22%);
  }
}
@keyframes pull-out {
  from {
    transform: translateY(-22%);
  }
  to {
    transform: translateY(-130%) rotate(-5deg);
    opacity: 0;
  }
}
/* 2. the design drops onto the desk of the Done page, tipping flat as it lands: the mug, or the other products' preview */
.screen--done .stage-wrap.is-landing .stage .mockup,
.screen--done .stage-wrap.is-landing .mug-viewer__body {
  animation: land 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) backwards;
  transform-origin: 50% 100%;
} /* (backwards: after landing the product is free again, so the card can be turned over) */
@keyframes land {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(-90px) rotateX(55deg) rotate(-4deg);
  }
  45% {
    opacity: 1;
  }
  to {
    transform: none;
  }
}
/* 3. the stamp: comes down from above, a little crooked, and stays. It sits at the mug's bottom right,
   off the printed body and over the foot of the handle (and stays visible in 3D, where the drawing is hidden) */
.seal {
  position: absolute;
  left: 100%;
  bottom: -6px;
  z-index: 4;
  width: 110px;
  height: 110px;
  margin-left: 4px;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  display: none;
  visibility: visible;
}
.screen--done .seal {
  display: block;
}
/* the stamp sits in front of everything: the 2D mug (and so its stamp) above the 3D view, which is z-index 2 */
.screen--done .mug-viewer .mug-viewer__mug {
  z-index: 3;
  left: 16px;
} /* (left: nudged right, so the mug reads as centred under the 2D / 3D switch and Edit / Share) */
.screen--done .stage-wrap.is-sealed .seal {
  animation: stamp 0.42s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes stamp {
  0% {
    opacity: 0;
    transform: scale(1.9) rotate(-16deg);
  }
  55% {
    opacity: 1;
    transform: scale(0.94) rotate(-10deg);
  }
  100% {
    opacity: 0.95;
    transform: scale(1) rotate(-10deg);
  }
}
/* the mug gives a little under the stamp */
.screen--done .stage-wrap.is-sealed .mug-viewer__body {
  animation: thud-small 0.3s 0.18s;
}
@keyframes thud-small {
  50% {
    transform: scale(0.985);
  }
}
.seal__ring {
  font-family: var(--font-type);
  letter-spacing: 0.06em;
}
.seal__name {
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: 0.08em;
}
.seal__so {
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: italic;
}

/* the mug shows as the mug (.mug-viewer); the other products in the stage */
.stage[data-product='mug'] {
  display: none;
}
/* "Edit" and "Share" sit under the preview on the Done page, clear of the stamp */
.done-edit {
  display: none;
  justify-content: center;
  gap: 0.8rem;
  margin: 1.5rem 0;
} /* on the same centre line as the 2D / 3D switch: the mug's body */
.screen--done .done-edit {
  display: flex;
}
@media (max-width: 860px) {
  .screen--done .done-edit {
    margin-bottom: 1.6rem;
  }
} /* phone: more air before the text below */

/* the Daylight / Noir chips on the typewriter paper (dark ink on light paper there) */
.spread .field--style .toggle--chips {
  display: flex; /* a block of its own width: inline, it sat on a text line that added space under the label */
  width: fit-content;
  border-color: #0f0f0f;
  box-shadow: 0 3px 0 #8c8c8c;
}
.spread .field--style .toggle--chips span {
  color: #0f0f0f;
}
.spread .field--style .toggle--chips input:checked + span {
  background: #0f0f0f;
  color: #fbfaf6;
}

/* the Done page's right side in three groups: what it is · the order · the small print. Tight inside a group
   (about .7–.9rem), a clear 3.5rem between groups, so each reads as one block */
.done__head {
  margin-bottom: 3.5rem;
}
.done__order {
  margin-bottom: 3.5rem;
}
.done__order .qty__note {
  margin-bottom: 0.9rem;
} /* the note belongs with the price under it */
.done__more .also {
  margin-top: 0;
}
.done__more .colophon {
  margin-top: 2rem;
}

/* the Done page's "the same quote also as": three small cards, this design on each other product */
.also--cards > p {
  margin: 0 0 0.7rem;
}
.also__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.also .also-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.7rem 0.5rem 0.6rem;
  border: 1px solid #ddd8cc;
  background: #fbfaf6;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.also .also-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.also-card__pic {
  display: grid;
  place-items: center;
  height: 84px;
  margin-bottom: 0.45rem;
}
.also-card__pic img {
  max-width: 100%;
  max-height: 84px;
  box-shadow:
    0 0 0 1px #e1ddd2,
    0 4px 8px rgba(0, 0, 0, 0.12);
}
.also-card__name {
  font-family: var(--font-type);
  font-size: 0.72rem;
}
.also-card small {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #555;
}

/* --- The editor is one wide-carriage typewriter. One sheet across the page: the form typed on the
   left half, the preview printed on the right half, one long roller underneath. On a phone the preview stands apart, on the desk
   above the typewriter, and the sheet holds only the form (script.js picks the slot by width) --- */
.spread .stage-slot {
  --ink: #0f0f0f;
  --paper: #f3f1ec;
  --grey-dark: #2a2a2a;
} /* the preview keeps the desk's colours (the form's are swapped) */
.spread .stage {
  padding-bottom: 4.6rem;
} /* room for the bail and the roller, as under the form */
@media (min-width: 861px) {
  .screen--doc.is-on {
    grid-template-columns: minmax(0, 1fr);
  }
  .screen--doc .typewriter {
    position: relative;
    top: auto;
  } /* the whole machine scrolls with the page (it keeps one height now) */
  .spread {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
  }
  .spread > .page {
    border-right: 1px dashed #d6d1c4;
  } /* the fold between the halves, the sheet's full height */
  .spread .stage-slot {
    align-self: center;
  } /* the sheet keeps one height, so the preview sits in the middle of its half */
}
@media (min-width: 861px) {
  .screen--doc > .stage-slot {
    display: none;
  }
} /* desktop: the preview is on the sheet */
@media (max-width: 860px) {
  .spread .stage-slot {
    display: none;
  } /* phone: the preview is in the slot above the typewriter */
}
/* the sheet keeps one height through the three steps (the tallest one's), so the roller never jumps:
   all steps share one grid cell, only the open one shows, and a shorter step sits in the middle */
.spread .editor__form {
  display: grid;
}
.spread .editor__form > .tab {
  display: block;
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
}
.spread .editor__form > .tab.is-on {
  visibility: visible;
}
/* no checklist in the editor */
.screen--doc .stage .ed-check {
  display: none;
}
.spread .stage {
  padding-top: 4.4rem;
  padding-bottom: 6rem;
} /* top: room for the magnifier; bottom: the bail and the roller */
@media (max-width: 860px) {
  .screen--doc .stage {
    padding-top: 4.4rem;
    padding-bottom: 1.6rem;
  } /* phone: the preview on the desk, no roller under it */
}
.spread .editor__form > .tab {
  padding-top: 1rem;
} /* a little air under the step tabs (the tallest step has no centring room) */
/* step II: the photo and its way back into the crop view are one group, and the caption starts a new one, with
   "FIG. I." close under its "Caption" title */
.spread .photo-group {
  margin-bottom: 2rem;
}
.spread .photo-group > #photoCrop {
  margin-top: -0.4rem;
} /* "Crop photo" close under the photo it belongs to */
.spread .field-row .field--name {
  flex: 1 1 0;
} /* the name takes the row, the age keeps a short box */
/* the Age box as wide as its label ("Leeftijd optioneel" on one line), so Name and Age stand on one level */
.spread .field-row .field--note {
  flex: 0 0 auto;
}
.field--note .field__label {
  white-space: nowrap;
}
.spread .field__with-btn--caption {
  margin-top: -0.4rem;
}
/* a lighter "Add gravitas": an outline on the paper instead of a black block */
.spread .field__with-btn--caption .btn--small {
  background: none;
  color: #0f0f0f;
  border-color: #0f0f0f;
  box-shadow: 0 2px 0 #c8c8c8;
}
.spread .field__with-btn--caption .btn--small:hover {
  background: #ececec;
  color: #0f0f0f;
}
.spread .field__with-btn--caption .btn--small:active {
  box-shadow: 0 0 0 #c8c8c8;
}
/* the Paper switch (Daylight / Noir): a light outline, the chosen one filled in black with light text */
.spread .field--style .toggle--chips {
  box-shadow: 0 2px 0 #c8c8c8;
}
.spread .field--style .toggle--chips input:checked + span {
  background: #0f0f0f;
  color: #fbfaf6;
}
/* the Photo Filter switch in step III: the same as Paper */
.spread .field--filter .toggle--thumbs {
  box-shadow: 0 2px 0 #c8c8c8;
}
.spread .field--filter .toggle--thumbs input:checked + span {
  background: #0f0f0f;
  color: #fbfaf6;
}
.spread .field--filter .toggle--thumbs input:checked + span .filter-thumb {
  border-color: #fbfaf6;
}
/* desktop: the form area keeps one height (step II, its tallest); a longer step scrolls inside the sheet,
   so the roller never moves. On a phone the page itself scrolls, and the sheet simply grows */
@media (min-width: 861px) {
  .spread .editor__form {
    height: 35rem;
    grid-template-rows: minmax(0, 1fr);
  }
  .spread .editor__form > .tab {
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c8c8c8 transparent;
  }
  .spread .editor__form > .tab {
    margin-right: -1.1rem;
    padding-right: 1.1rem;
  } /* the scrollbar sits in the margin, clear of the photo and filter boxes */
}
/* phone: each step takes only its own height (the page scrolls anyway), so a short step has no empty paper */
@media (max-width: 860px) {
  .spread .editor__form {
    display: block;
  }
  .spread .editor__form > .tab {
    display: none;
  }
  .spread .editor__form > .tab.is-on {
    display: block;
  }
}
/* phone: the small preview pinned at the top while the form is filled in (preview.ts shows it once the preview is out of view) */
.mini-preview {
  display: none;
}
@media (max-width: 860px) {
  .screen--doc.is-on .mini-preview {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.5rem 1rem;
    border: none;
    border-bottom: 1px solid #ddd8cc;
    background: var(--paper);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transform: translateY(-110%);
    transition: transform 0.25s var(--ease);
  }
  .screen--doc.is-on .mini-preview.is-on {
    transform: none;
  }
  .mini-preview img {
    display: block;
    height: 140px;
    width: auto;
    background: #fff;
    box-shadow: 0 0 0 1px #e1ddd2;
  }
  .mini-preview--mug img {
    background: none;
    box-shadow: none;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.18));
  } /* the mug's body as drawn: no sheet behind it */
}
/* the full-screen view on a touch screen: the design zooms with two fingers (script.js), not by tapping */
@media (pointer: coarse) {
  .zoom__frame {
    overflow: hidden;
    touch-action: none;
  }
  .zoom__img {
    cursor: default;
    transform-origin: center;
    will-change: transform;
  }
  .zoom__img.is-easing {
    transition: transform 0.25s var(--ease);
  } /* a double tap eases in and out; a pinch follows the fingers */
}

/* the last look before publishing (as on Huisje): a tick box, then the button wakes up */
.order__check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: var(--font-type);
  font-size: 0.78rem;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
}
.order__check input {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.cta.order {
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    opacity 0.25s;
} /* ticking the check box fades it in */
.cta.order:disabled {
  opacity: 0.35;
  cursor: not-allowed;
} /* (the same shape as when it works, so it does not jump when it wakes up) */
.cta.order:disabled:active {
  transform: none;
  box-shadow: 0 4px 0 var(--ink);
}
/* Done: the cards, the order list close under them, then the colophon */
#s-done .done__more {
  margin-bottom: 1.4rem;
}
#s-done .done__order {
  margin-bottom: 3.5rem;
}

/* Done: the products to order. A card shows its product in the preview (framed while on show); its button adds it */
.also .also-card {
  padding: 0;
  gap: 0;
}
.also-card__look {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  padding: 0.7rem 0.5rem 0.6rem;
  border: none;
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.also .also-card.is-on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
/* the Add button: an outlined button like "Add gravitas" (a little shadow, pressed in when clicked); filled in black once added */
.also-card__add {
  align-self: center;
  margin: 0 0.6rem 0.7rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ink);
  background: #fbfaf6;
  color: var(--ink);
  box-shadow: 0 2px 0 #c8c8c8;
  font-family: var(--font-type);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.also-card__add:hover {
  background: #ececec;
}
.also-card__add:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 #c8c8c8;
}
.also-card__add.is-added {
  background: var(--ink);
  color: var(--paper);
}
.also-card__add.is-added:hover {
  background: #2a2a2a;
}
/* the picture and words take the card's height, so the three buttons stand on one line when a name wraps */
.also-card__look {
  flex: 1 0 auto;
}
.also-card__add {
  white-space: nowrap;
}
/* a row of cards too narrow for three side by side (on a phone, and in the Done page's column up to about 1050px)
   leaves a button too narrow for "✓ Hinzugefügt" within its card; the cards become rows of one list instead, the
   picture on the left, name and price beside it, the buttons in one column on the right */
.also--cards {
  container-type: inline-size;
}
@container (max-width: 488px) {
  .also__cards {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .also .also-card {
    flex-direction: row;
    align-items: center;
  }
  .also-card__look {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    column-gap: 0.9rem;
    align-items: center;
    justify-items: start;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    text-align: left;
  }
  .also-card__pic {
    grid-row: span 2;
    justify-self: center;
    height: 60px;
    margin-bottom: 0;
  }
  .also-card__pic img {
    max-height: 60px;
  }
  .also-card__name {
    align-self: end;
  }
  .also-card small {
    align-self: start;
  }
  .also-card__add {
    flex: none;
    margin: 0 0.8rem 0 0;
  }
  .also-card__pic .also-card__mug {
    zoom: 0.13;
  }
}

/* the added products, each with − / +, its price and × to take it out */
.order__items {
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid #ddd8cc;
}
.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 5.5rem 1.6rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #ddd8cc;
}
.order-item__warn {
  grid-column: 1 / -1;
  margin-top: -0.35rem;
  font-family: var(--font-type);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #555;
}
.order-item__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
}
.order-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
}
.order-item__qty button {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink);
  font-family: var(--font-type);
  font-size: 1rem;
  cursor: pointer;
}
.order-item__qty button:hover:not(:disabled) {
  background: #ececec;
}
.order-item__qty button:disabled {
  color: #bbb;
  cursor: default;
}
.order-item__qty b {
  min-width: 1.6rem;
  text-align: center;
  font-family: var(--font-type);
  font-size: 0.85rem;
}
.order-item__price {
  text-align: right;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #555;
}
.order-item__remove {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: none;
  color: #777;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.order-item__remove:hover {
  color: var(--ink);
}
.order__items:empty {
  display: none;
}
/* desktop: the right side is long now, so the mug sits at the top and stays in view while scrolling */
@media (min-width: 861px) {
  .screen--done.is-on {
    align-items: start;
  }
  .screen--done .stage-slot {
    position: sticky;
    top: 1.5rem;
  }
}

/* the stamp on the tile, poster or card: over the bottom right corner (on the mug it stands by the handle) */
#mockup > .seal {
  left: auto;
  right: -80px;
  bottom: -26px;
  width: 90px;
  height: 90px;
  margin-left: 0;
} /* on the desk, just over the bottom right corner (clear of the quote, of Edit / Share and of the right-hand column) */
#mockup.mockup--tile > .seal {
  right: -72px;
} /* the tile is the widest: a little less room beside it */
@media (max-width: 860px) {
  #mockup > .seal,
  #mockup.mockup--tile > .seal {
    right: -38px;
  }
} /* phone: less room beside the product, so a little more of the stamp on it */
/* (the tile clips its print to its own edge; on Done it lets the stamp hang over, and rounds the print itself) */
.screen--done #mockup {
  overflow: visible;
}
.screen--done .mockup--tile img {
  border-radius: 3px;
}

/* the mug's card: a small 2D mug (the preview's mug, with its shading and handle, small enough for the card's picture) */
.also-card__mug {
  zoom: 0.18;
  margin-right: 70px;
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2));
} /* (margin: the handle's room, so the whole mug is centred) */
.also-card__pic .also-card__mug img {
  max-width: none;
  max-height: none;
  box-shadow: none;
}

/* the stamp is on the card's front: when the card is turned over, it turns away with it (not mirrored on the back) */
#mockup > .seal {
  backface-visibility: hidden;
}
/* Done: the spec under the product's name (no kicker above the title) */
.done__spec {
  margin: 0.3rem 0 0;
  font-family: var(--font-type);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #666;
}

/* the mug's magnifier top right and the 2D / 3D button under it: the same places, and the same round black buttons, as
   the magnifier and the card's turn-over button on the other products */
.mug-viewer .mug-viewer__toggle {
  display: block;
  left: auto;
  right: 1rem;
}
/* Done: the tile, poster and card cast their whole shadow (the preview box clipped it at the bottom), with room for it */
.screen--done .stage {
  overflow: visible;
  padding-bottom: 3.5rem;
}

/* phone: "Back" is just its arrow (its word stays for screen readers), and the black button may wrap its words */
@media (max-width: 860px) {
  .back-btn {
    padding: 0 1rem;
  }
  .back-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .press-row .cta {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* --- The black buttons as long typewriter keys (the space bar, the carriage return): black enamel with a
   light top edge and a darker lip, a thin chrome rim, and the key's depth under it, so it sinks when pressed.
   "Back" is the same key in ivory --- */
.stall .cta {
  position: relative;
  gap: 0.7rem;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 1.6rem;
  background: linear-gradient(#3a3a3a 0%, #161616 48%, #060606 100%);
  color: #f3f1ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    /* the light on its top edge */ inset 0 -2px 0 rgba(0, 0, 0, 0.65),
    /* the darker lower lip */ 0 0 0 2px #dcd9d2,
    /* the chrome rim */ 0 0 0 3px #7f7c76,
    /* the rim's dark outer edge */ 0 5px 0 1px #4b4945,
    /* the key's depth */ 0 9px 12px rgba(0, 0, 0, 0.25); /* its shadow */
  transition:
    transform 0.08s,
    box-shadow 0.08s,
    opacity 0.25s;
}
.stall .cta:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    0 0 0 2px #dcd9d2,
    0 0 0 3px #7f7c76,
    0 1px 0 1px #4b4945,
    0 3px 5px rgba(0, 0, 0, 0.25);
}
.stall .cta__icon,
.stall #openBtn .cta__icon {
  width: auto;
  height: auto;
  padding: 0;
  font-size: 1.3rem;
  color: inherit;
}
.stall .cta.order:disabled:active {
  transform: none;
} /* (the faded key does not go down) */

.stall .back-btn {
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 1.6rem;
  background: linear-gradient(#ffffff 0%, #efece5 55%, #dedad0 100%);
  color: #0f0f0f;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 0 0 2px #dcd9d2,
    0 0 0 3px #7f7c76,
    0 5px 0 1px #a19d95,
    0 9px 12px rgba(0, 0, 0, 0.18);
}
.stall .back-btn:hover {
  background: linear-gradient(#ffffff 0%, #f4f2ec 55%, #e4e0d7 100%);
}
.stall .back-btn:active {
  transform: translateY(4px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 2px #dcd9d2,
    0 0 0 3px #7f7c76,
    0 1px 0 1px #a19d95,
    0 3px 5px rgba(0, 0, 0, 0.18);
}
.stall .press-row {
  gap: 1rem;
  margin-top: 1.6rem;
} /* (room for the rims) */
@media (max-width: 860px) {
  /* on a phone the keys stay one line high: a long key, not a block */
  .stall .press-row .cta {
    padding: 0.75rem 0.9rem;
    gap: 0.5rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .stall .press-row .back-btn {
    padding: 0 1.1rem;
  }
}

/* --- Every other button as a smaller key of the same typewriter: rounded ends, a thin chrome rim and a little depth
   that sinks when pressed. Ivory for Edit, Share, + Add, Close and "Add gravitas"; black for "✓ Added". The round
   buttons on the previews are the light key, flat; Daylight / Noir is dressed like the photo filter; the language
   switch, the −/+ counter, the hero's example tabs, the filter pictures and the product cards get rounded corners --- */
.stall .chip,
.stall .also-card__add,
.stall .btn--paper,
.stall .spread .btn--small {
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 1.2rem;
  background: linear-gradient(#ffffff 0%, #efece5 55%, #dedad0 100%);
  color: #0f0f0f;
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 3px 0 1px #a19d95,
    0 6px 8px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.08s,
    box-shadow 0.08s;
}
.stall .spread .btn--small {
  border-radius: 999px;
}
.stall .chip:hover,
.stall .also-card__add:hover,
.stall .btn--paper:hover,
.stall .spread .btn--small:hover {
  background: linear-gradient(#ffffff 0%, #f4f2ec 55%, #e4e0d7 100%);
  color: #0f0f0f;
}
.stall .chip:active,
.stall .also-card__add:active,
.stall .btn--paper:active,
.stall .spread .btn--small:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 0 0 1px #a19d95,
    0 2px 3px rgba(0, 0, 0, 0.15);
}
/* "✓ Added": the black key */
.stall .also-card__add.is-added,
.stall .also-card__add.is-added:hover {
  background: linear-gradient(#3a3a3a 0%, #161616 48%, #060606 100%);
  color: #f3f1ec;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 0 rgba(0, 0, 0, 0.65),
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 3px 0 1px #4b4945,
    0 6px 8px rgba(0, 0, 0, 0.2);
}
.stall .also-card__add.is-added:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.65),
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 0 0 1px #4b4945,
    0 2px 3px rgba(0, 0, 0, 0.2);
}
/* the round buttons on the previews (magnifier, 2D / 3D, the card's ↻): a flat light fill with the keys' rim and
   depth, sinking when pressed; switched on (3D, the card turned over): filled black */
.stall .stage__zoom,
.stall .stage__3d {
  border: none;
  background: #fbfaf6;
  color: #0f0f0f;
  box-shadow:
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 3px 0 1px #a19d95,
    0 6px 8px rgba(0, 0, 0, 0.15);
}
.stall .stage__zoom:hover,
.stall .stage__3d:hover {
  transform: none;
  background: #ececec;
  box-shadow:
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 3px 0 1px #a19d95,
    0 6px 8px rgba(0, 0, 0, 0.15);
}
.stall .stage__zoom:active,
.stall .stage__3d:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 1.5px #dcd9d2,
    0 0 0 2.5px #7f7c76,
    0 0 0 1px #a19d95,
    0 2px 3px rgba(0, 0, 0, 0.15);
}
.stall .stage__3d[aria-pressed='true'] {
  background: #0f0f0f;
  color: #fbfaf6;
}
/* Daylight / Noir: dressed like the photo filter above it (thin black border, the same corners, a short grey edge) */
.stall .spread .field--style .toggle--chips {
  border: 1px solid #0f0f0f;
  border-radius: 0.9rem;
  overflow: hidden;
  background: none;
  box-shadow: 0 2px 0 #c8c8c8;
}
.stall .spread .field--style .toggle--chips span {
  padding: 0.5rem 1.1rem;
  font-size: 0.8rem;
}
.stall .spread .field--style .toggle--chips input:checked + span {
  background: #0f0f0f;
  color: #fbfaf6;
}
/* rounded corners: the language switch, the −/+ counter, the hero's example tabs, the filter pictures, the product cards */
.stall .lang,
.stall .order-item__qty {
  border-radius: 999px;
  overflow: hidden;
}
.stall .lang__btn {
  padding-inline: 0.55rem;
}
.stall .hero-examples button {
  padding-inline: 0.85rem;
  border-radius: 999px;
}
.stall .toggle--thumbs {
  border-radius: 0.9rem;
  overflow: hidden;
}
.stall .also .also-card {
  border-radius: 0.9rem;
  overflow: hidden;
}

/* ---------- The order: busy while it goes into the basket, and a refusal's words under the button ---------- */
.cta.order.is-busy {
  cursor: progress;
  opacity: 0.75;
}
.order__error {
  display: flex;
  background: var(--ink);
  color: var(--paper);
}
.order__error::before {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- An order's own page (the shop's email links it): a typed archive card, the stall hidden ---------- */
.order-page {
  display: none;
}
body.on-order .order-page {
  display: block;
  padding: 3rem 1rem 4rem;
}
body.on-order main,
body.on-order .hero-bg {
  display: none;
}
.order-card {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2.2rem 2rem 1.8rem;
  background: var(--white);
  border: 1px solid var(--ink);
  box-shadow:
    6px 6px 0 var(--ink),
    0 18px 40px rgba(0, 0, 0, 0.12);
  font-family: var(--font-type);
  /* the card's ruled lines, as on an archive index card */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(1.6em - 1px),
    rgba(15, 15, 15, 0.08) calc(1.6em - 1px),
    rgba(15, 15, 15, 0.08) 1.6em
  );
  background-position: 0 4.4rem;
}
.order-card::before {
  /* the red margin line of an index card, in the stall's black */
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.2rem;
  border-left: 1px solid rgba(15, 15, 15, 0.25);
}
.order-card__kicker {
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.order-card h2 {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}
.order-card p {
  margin: 0 0 0.8rem;
}
.order-card__ref {
  font-weight: 700;
}
.order-card__links a {
  margin-right: 1rem;
}
.order-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.order-card .back-btn {
  margin-top: 0.4rem;
}
.order-card [hidden] {
  display: none;
}
