/* Paprie. Hand-maintained; tools/build_site.py copies it to site/. Colours: paper, ink and clay (see the logo in
   static/brand/, drawn by tools/make_logo.py). */
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f3eee5;
  --cream: #f5f0e7;  /* paper */
  --ink: #34332f;
  --muted: #66615a;
  --line: #e5ddd0;
  --brand: #a4503c;  /* clay: links, icons, focus; 5.5:1 with white text */
  --brand-soft: #f6e6e0;  /* blush */
  --season: #a3322b;
  --accent: #a4503c;
  --accent-ink: #ffffff;
  --radius: 12px;
  --gutter: 16px;
  --max: 1280px;
  --shadow: 0 1px 2px rgba(29, 28, 26, 0.06), 0 8px 24px rgba(29, 28, 26, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 750; }
h2 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; margin-top: 1.6em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 30; }
.lede { font-size: clamp(16px, 1.8vw, 18px); color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; font-weight: 750; color: var(--season); margin-bottom: 10px; }

/* Header ------------------------------------------------------------------------------------------ */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none;
  letter-spacing: -0.02em; font-size: 19px; margin: 0; white-space: nowrap; }
.logo img { display: block; height: 40px; width: auto; }
.search { position: relative; flex: 1; max-width: 760px; display: flex; }
.search input { width: 100%; height: 46px; border: 2px solid var(--ink); border-radius: 999px; padding: 0 56px 0 20px;
  background: var(--bg); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: #8a857d; }
.search input:focus { box-shadow: 0 0 0 4px var(--brand-soft); border-color: var(--brand); }
.search input::-webkit-search-cancel-button { display: none; }
.search-btn { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 6px; z-index: 25; max-height: 70vh; overflow: auto; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.suggest a[aria-selected="true"], .suggest a:hover { background: var(--soft); }
.suggest img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--soft); flex: none; }
.suggest b { display: block; font-weight: 650; line-height: 1.3; }
.suggest small { color: var(--muted); font-size: 13px; }
.suggest .all { justify-content: center; font-weight: 700; color: var(--brand); }
.suggest .none { padding: 12px; color: var(--muted); margin: 0; }
.top-links { display: flex; gap: 6px; margin-left: auto; }
.top-links a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; text-decoration: none;
  font-weight: 650; font-size: 15px; white-space: nowrap; }
.top-links a[aria-current] { background: var(--soft); }
@media (hover: hover) { .top-links a:hover { background: var(--soft); } }

/* Category bar with drop-down menus */
.cats-in { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; }
.cat { position: relative; }
.cat-link { display: block; padding: 10px 14px 12px; font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.cat-link[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.cat-season { color: var(--season); font-weight: 750; }
.cat-season[aria-current] { color: var(--season); border-bottom-color: var(--season); }
.cat-menu { position: absolute; left: 0; top: 100%; min-width: 340px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 150ms ease-out, transform 150ms ease-out, visibility 0s linear 150ms; z-index: 22; }
.cat:last-child .cat-menu { left: auto; right: 0; }
.cat-menu-in { display: grid; grid-template-columns: 1fr; gap: 2px; }
.cat-menu-in:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; min-width: 560px; }
.cat-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; font-weight: 650; }
.cat-item img { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--soft); flex: none; }
.cat-item small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.cat-all { display: block; margin-top: 6px; padding: 10px 8px 4px; border-top: 1px solid var(--line); font-weight: 700;
  font-size: 14px; color: var(--brand); text-decoration: none; }
@media (hover: hover) {
  .cat-link:hover { color: var(--ink); }
  .cat-item:hover { background: var(--soft); }
  .cat:hover .cat-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 120ms, 120ms, 0s; }
}
.cat:focus-within .cat-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; user-select: none; -webkit-user-select: none;
  transition: transform 160ms ease-out, background-color 160ms ease-out; }
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) {
  .btn:not([disabled]):not(.btn-ghost):hover { background: #474540; border-color: #474540; }
  .btn-ghost:not([disabled]):hover { background: var(--soft); }
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 14px 0 0; margin: 0 auto;
  font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #aaa49b; }
.crumbs a { text-decoration: none; display: inline-block; padding: 3px 0; } /* 24 px tap target */
@media (hover: hover) { .crumbs a:hover { text-decoration: underline; } }

/* Home hero */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
  padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); max-width: 14em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-art { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.hero-art a:first-child { grid-row: span 2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--soft); }

/* Rows, grids and cards */
.block { padding-top: 28px; }
.page-head { padding-top: 14px; }
.page-head h1 { margin-bottom: 6px; }
.row-title { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 14px; }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-head .row-title { margin: 0; }
.row-note { margin: 4px 0 0; font-size: 15px; }
.more { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; text-underline-offset: 3px;
  display: inline-block; padding: 2px 0; }
.grid { display: grid; gap: 24px 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.cards-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card-img { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 300ms ease-out; }
.tag { position: absolute; left: 8px; bottom: 8px; background: rgba(255, 255, 255, 0.94); color: var(--ink);
  font-size: 12px; font-weight: 750; padding: 3px 9px; border-radius: 999px; }
.card-name { margin-top: 8px; font-size: 15px; line-height: 1.35; color: var(--ink); display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-price { font-weight: 800; font-size: 17px; margin-top: 2px; }
.card-meta { font-size: 13px; color: var(--muted); }
@media (hover: hover) {
  .card:hover .card-img img { transform: scale(1.03); }
  .card:hover .card-name { text-decoration: underline; text-underline-offset: 2px; }
}

/* Round category links */
.circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; list-style: none;
  padding: 0; margin: 4px 0 0; }
.circles a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-align: center; }
.circle { display: block; width: 100%; max-width: 120px; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: var(--soft); border: 3px solid transparent; transition: border-color 160ms ease-out; }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.circle-name { font-size: 14px; font-weight: 650; line-height: 1.3; }
.circles a[aria-current] .circle { border-color: var(--ink); }
@media (hover: hover) { .circles a:hover .circle { border-color: var(--line); } .circles a[aria-current]:hover .circle { border-color: var(--ink); } }

/* Occasion tiles */
.tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--soft); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile span { position: absolute; left: 10px; bottom: 10px; background: #fff; padding: 6px 14px; border-radius: 999px;
  font-weight: 750; font-size: 15px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }

/* How it works */
.how { background: var(--brand-soft); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 0; margin: 0;
  list-style: none; counter-reset: s; }
.how-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 4px; }
.how-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 6px; }
.how-steps span { color: var(--muted); font-size: 15px; }

/* Listing toolbar: count, filter chips, sort */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.count { margin: 0; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: 14px;
  font-weight: 650; cursor: pointer; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) { .chip[aria-pressed="false"]:hover { border-color: var(--ink); } }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: var(--muted); }
.sort select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--bg); font-size: 14px;
  font-weight: 650; color: var(--ink); cursor: pointer; }

/* Guides list on section pages */
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.guide-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; height: 100%; }
.guide-list span { color: var(--muted); font-size: 14px; }
@media (hover: hover) { .guide-list a:hover { border-color: var(--ink); } }

/* Family guide: contents on the left, the article on the right */
.guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; margin-top: 40px; padding-top: 8px;
  border-top: 1px solid var(--line); }
.guide-toc { position: sticky; top: 130px; align-self: start; display: flex; flex-direction: column; gap: 6px; padding-top: 28px; }
.guide-toc a { color: var(--muted); text-decoration: none; font-weight: 600; }

/* Product page --------------------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 48px; padding-top: 16px; align-items: start; }
.pdp-media { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; position: sticky; top: 130px; }
.pdp-media:not(:has(.pdp-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.pdp-thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; scrollbar-width: none; }
.pdp-thumb { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--soft);
  flex: none; opacity: 0.7; transition: opacity 150ms ease-out, border-color 150ms ease-out; }
.pdp-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pdp-thumb[aria-selected="true"] { border-color: var(--ink); opacity: 1; }
@media (hover: hover) { .pdp-thumb:hover { opacity: 1; } }
.pdp-stage { position: relative; border-radius: 16px; overflow: hidden; background: var(--soft); }
.pdp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pdp-track::-webkit-scrollbar, .pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; scroll-snap-align: center; }
.pdp-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.16); display: grid; place-items: center; cursor: pointer;
  transition: transform 150ms ease-out; }
.pdp-arrow:active { transform: scale(0.94); }
.pdp-arrow.prev { left: 12px; }
.pdp-arrow.next { right: 12px; }
.pdp-count { position: absolute; right: 12px; bottom: 12px; background: rgba(29, 28, 26, 0.72); color: #fff; font-size: 13px;
  font-weight: 650; padding: 3px 10px; border-radius: 999px; display: none; }
.pdp-buy h1 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 4px 0 18px; }
.pdp-cat { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; margin-bottom: 8px; }
@media (hover: hover) { .pdp-cat:hover { text-decoration: underline; } }
.pdp-price { font-size: 30px; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.pdp-price span { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.facts svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 1px; }
.btn-buy { width: 100%; margin-bottom: 10px; min-height: 52px; font-size: 17px; }
.accs { margin-top: 24px; border-top: 1px solid var(--line); }
.acc { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; font-weight: 750; font-size: 17px; padding: 18px 0; list-style: none; display: flex;
  justify-content: space-between; align-items: center; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform 200ms ease-out; margin-right: 4px; }
.acc[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.acc > :not(summary) { font-size: 15px; }
.acc > :last-child { margin-bottom: 18px; }
.acc-h { font-weight: 700; margin: 12px 0 4px; }
.ticks { padding-left: 0; list-style: none; margin: 0 0 12px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 6px; height: 11px; border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand); transform: rotate(45deg); }
.mini-steps { padding-left: 1.2em; margin: 0 0 10px; }
.mini-steps li { margin-bottom: 6px; }
.buybar { display: none; }

/* Prose */
.prose { padding-bottom: 40px; }
.prose > * { max-width: 760px; }
.prose ol.steps { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 0 0 1em; padding: 12px 16px; background: var(--cream); border-left: 3px solid var(--brand);
  border-radius: 6px; }
.page { padding-top: 20px; }
.sizes { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 1em; background: var(--surface);
  border-radius: 10px; border: 1px solid var(--line); }
.sizes th, .sizes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sizes th { background: var(--soft); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 30px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }

/* Footer */
.foot { margin-top: 64px; background: var(--ink); color: #e9e3d8; }
.foot-trust { background: var(--cream); color: var(--ink); }
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 auto;
  padding-top: 22px; padding-bottom: 22px; }
.trust li { display: flex; flex-direction: column; font-size: 14px; }
.trust strong { font-size: 15px; }
.trust span { color: var(--muted); }
.foot-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; padding-top: 36px; padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot-cta-h { font-size: 20px; font-weight: 750; color: #fff; margin: 0 0 4px; letter-spacing: -0.01em; }
.foot-form p { margin: 0 0 12px; font-size: 15px; max-width: 34em; }
.foot-form textarea, .foot-form input[type=email] { width: 100%; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px;
  background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 16px; padding: 10px 14px; }
.foot-form textarea { resize: vertical; min-height: 64px; display: block; margin-bottom: 10px; }
.foot-form ::placeholder { color: rgba(233, 227, 216, 0.6); }
.foot-form textarea:focus, .foot-form input:focus { outline: 2px solid #e8b4a3; outline-offset: 1px; border-color: transparent; }
.foot-row { display: flex; gap: 10px; }
.foot-row input { flex: 1; min-width: 0; height: 48px; }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); flex: none; }
@media (hover: hover) { .btn.btn-light:not([disabled]):not(.btn-ghost):hover { background: #fff; border-color: #fff; } }
.foot-form .foot-fine { font-size: 13px; opacity: 0.8; margin: 10px 0 0; }
.foot-fine a { color: inherit; }
.foot-form .foot-status { min-height: 1.5em; margin: 8px 0 0; color: #f3c9bb; font-weight: 600; }
.foot-form .foot-status:empty { min-height: 0; margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ask-hint { margin: 0 0 20px; font-size: 16px; }
.suggest .none .ask { color: var(--brand); font-weight: 700; }
#ask { scroll-margin-top: 90px; }
.foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; }
.foot-in > * { min-width: 0; overflow-wrap: anywhere; }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot-brand p:last-child { max-width: 26em; font-size: 15px; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot nav a { text-decoration: none; font-size: 15px; }
@media (hover: hover) { .foot nav a:hover { text-decoration: underline; } }
.foot-h { font-weight: 750; margin: 0 0 4px; color: #fff; }
.foot-legal { font-size: 13px; padding-top: 28px; padding-bottom: 28px; opacity: 0.8; }

/* Checkboxes big enough to tap (24 px rule) */
input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }

/* Category bar: up to 1100 px it does not fit (about 1076 px in German), so it scrolls sideways like on phones and
   the hover menus are off (tablets have no hover). Otherwise the hidden menus widen the page. */
@media (max-width: 1100px) {
  .cats-in { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cats-in::-webkit-scrollbar { display: none; }
  .cat-menu { display: none; }
}

/* Tablets */
@media (max-width: 1020px) {
  .top-links span { display: none; }
  .top-links a { padding: 10px; }
  .cards-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-row > :nth-child(n+7) { display: none; }
  .pdp { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 32px; }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

/* Phones */
@media (max-width: 760px) {
  .foot-cta { grid-template-columns: 1fr; }
  .top { position: static; }
  .top-in { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .logo img { height: 30px; }
  .search { order: 3; flex: 1 0 100%; }
  .search input { height: 44px; }
  .search-btn { width: 36px; height: 36px; }
  .top-links { gap: 0; }
  .top-links a { padding: 8px; }
  .cats { border-top: 1px solid var(--line); }
  .cats-in { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .cats-in::-webkit-scrollbar { display: none; }
  .cat-link { padding: 10px 10px 11px; font-size: 14px; }
  .cat-menu { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 20px; }
  .hero-art { grid-template-columns: 1.3fr 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .cards-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; }
  .cards-row::-webkit-scrollbar { display: none; }
  .cards-row > .card { flex: 0 0 44%; scroll-snap-align: start; }
  .cards-row > :nth-child(n+7) { display: flex; }
  .circles { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); gap: 14px;
    overscroll-behavior-x: contain; }
  .circles::-webkit-scrollbar { display: none; }
  .circles li { flex: 0 0 88px; }
  .circle-name { font-size: 13px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile span { font-size: 14px; padding: 5px 12px; }
  .how-steps { grid-template-columns: 1fr; gap: 16px; }
  .chips { flex: 1 0 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .guide { grid-template-columns: 1fr; gap: 0; }
  .guide-toc { display: none; }
  .pdp { grid-template-columns: 1fr; gap: 18px; padding-top: 10px; }
  .pdp-media { position: static; grid-template-columns: 1fr; margin: 0 calc(-1 * var(--gutter)); }
  .pdp-thumbs { display: none; }
  .pdp-stage { border-radius: 0; }
  .pdp-arrow { display: none; }
  .pdp-count { display: block; }
  .pdp-price { font-size: 26px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .buybar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--surface);
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(110%); transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .buybar.show { transform: none; }
  .buybar-price { font-weight: 800; font-size: 18px; }
  .buybar .btn { flex: 1; min-height: 46px; }
  main:has(.buybar) { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Designer (/design/) */
.designer { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 32px; padding-top: 16px;
  align-items: start; }
.d-stage { position: sticky; top: 128px; }
.d-canvas-wrap { display: flex; justify-content: center; background: var(--soft); border-radius: var(--radius);
  padding: 20px; }
#d-canvas { touch-action: none; box-shadow: 0 6px 24px rgba(40, 30, 20, 0.16); cursor: pointer; }
.d-hint { margin-top: 10px; }
.d-items { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.d-thumb { height: 72px; min-width: 48px; padding: 3px; border: 2px solid transparent; border-radius: 8px;
  background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.d-thumb canvas { height: 64px; width: auto; }
.d-thumb.on { border-color: var(--ink); }
.d-add { font-size: 28px; font-weight: 700; color: var(--muted); width: 56px; border: 2px dashed var(--line); }
.d-head { padding-top: 16px; }
.d-title { font-size: clamp(28px, 4vw, 38px); margin-bottom: 6px; }
.d-head p { margin: 0; max-width: 46em; }
.d-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 16px 6px;
  margin-bottom: 10px; }
.d-sec summary { font-weight: 750; padding: 12px 0; cursor: pointer; list-style: none; }
.d-sec summary::-webkit-details-marker { display: none; }
.d-field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted);
  margin-bottom: 12px; }
.d-field.d-inline { flex-direction: row; align-items: center; gap: 10px; }
.d-field select, .d-field input[type="text"] { font: inherit; font-size: 16px; color: var(--ink); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.d-field input[type="range"] { width: 100%; accent-color: var(--ink); }
.d-field input[type="color"] { width: 44px; height: 34px; border: 1px solid var(--line); border-radius: 8px;
  padding: 2px; background: var(--surface); }
.d-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.d-row .d-field { flex: 1; margin-bottom: 0; }
.d-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.d-swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; }
.d-symbols { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 10px; }
.d-sym { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); cursor: pointer;
  display: grid; place-items: center; padding: 6px; }
.d-sym img { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.d-selected { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px;
  margin-bottom: 10px; border-radius: 12px; background: #e8f0fb; font-weight: 650; font-size: 15px; }
.designer .btn-buy { margin-top: 6px; }

@media (max-width: 860px) {
  .designer { grid-template-columns: 1fr; gap: 16px; }
  .d-stage { position: static; }
  .d-canvas-wrap { padding: 12px; }
  .d-symbols { grid-template-columns: repeat(4, 1fr); }
}

/* Checkout bits shared by product pages and the designer */
.d-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 12px;
  line-height: 1.45; cursor: pointer; }
.d-consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--ink); }
.d-status { min-height: 1.2em; margin: 4px 0 8px; color: #2f6b3a; font-weight: 600; }
.pdp .d-status:empty { min-height: 0; margin: 0; }
.d-status.err { color: #a12622; }
.d-price { margin: 6px 0 2px; font-size: 20px; }
.d-price strong { color: var(--accent); }
.d-canvas-wrap.d-dark { background: #2b2a27; }
.d-upsell { background: var(--soft); border-radius: 10px; padding: 10px 12px; color: var(--ink); }
.d-about { margin-top: 32px; }
.d-stage, .d-panel { min-width: 0; }
.d-field select, .d-field input[type="text"] { width: 100%; max-width: 100%; min-width: 0; }

/* Free photo upscaler (/tools/photo-upscaler/) and the designers' "Improve quality" */
.up-drop { display: grid; place-items: center; min-height: 280px; border: 2px dashed var(--line); border-radius: 18px;
  background: var(--cream); cursor: pointer; text-align: center; padding: 24px; transition: border-color 150ms ease-out, background-color 150ms ease-out; }
.up-drop.over, .up-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
@media (hover: hover) { .up-drop:hover { border-color: var(--brand); } }
.up-drop-in { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 30em; }
.up-drop-in svg { color: var(--brand); }
.up-drop-in strong { font-size: 19px; }
.up-work { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
.up-stage { position: relative; display: grid; place-items: center; background: var(--soft); border-radius: 16px; padding: 16px; min-height: 260px; }
.up-stage canvas { grid-area: 1 / 1; max-width: 100%; height: auto; }
.up-stage input[type="range"] { grid-area: 2 / 1; width: 100%; margin-top: 12px; accent-color: var(--ink); }
.up-tag { position: absolute; top: 24px; background: rgba(29, 28, 26, 0.75); color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
.up-tag-l { left: 24px; }
.up-tag-r { right: 24px; }
.up-size { font-weight: 600; }
.up-scales { display: grid; gap: 10px; margin-bottom: 16px; }
.up-scale { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.up-scale:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.up-scale:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.up-scale input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: 2px; }
.up-scale small { display: block; color: var(--muted); font-size: 13px; }
.up-bar { height: 8px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: 4px 0 8px; }
.up-bar span { display: block; height: 100%; background: var(--brand); transition: width 200ms ease-out; }
.err { color: #a12622; }
.d-quality { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; margin: 0 0 8px; }
.d-quality::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--q, #2f6b3a); flex: none; }
.d-quality.fair { --q: #c08a1e; }
.d-quality.low { --q: #c0392b; }
.photo-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 14px; margin: 4px 0 10px; }
.photo-tip svg { flex: none; color: var(--brand); margin-top: 1px; }
@media (max-width: 760px) { .up-work { grid-template-columns: 1fr; gap: 18px; } .up-drop { min-height: 220px; } }

/* Guides (templates/article.html) ------------------------------------------------------------------ */
.article { max-width: 760px; padding-top: 32px; }
.article-meta { color: var(--muted); font-size: 14px; margin: -4px 0 28px; }
.article-shop { margin-bottom: 24px; }
.guide-link { margin-top: 24px; padding: 14px 16px; background: var(--cream); border-radius: var(--radius); font-weight: 600; }
.tip { padding: 14px 16px; background: var(--brand-soft); border-radius: var(--radius); }
@media (max-width: 760px) { .article-shop .cards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Languages (German at /de/ since 2026-11-21): the switch in the header, long German words */
.top-links a.lang-switch { font-size: 13px; letter-spacing: .04em; padding: 6px 10px; border: 1.5px solid var(--line); }
html[lang="de"] h1, html[lang="de"] h2, html[lang="de"] h3, html[lang="de"] .card-name, html[lang="de"] .circle-name,
html[lang="de"] .cat-link, html[lang="de"] .prose, html[lang="de"] .lede { hyphens: auto; overflow-wrap: break-word; }
.draft-note { background: #fff4d6; border: 1px solid #e8c766; border-radius: 8px; padding: 10px 14px; font-size: 14px; }
