/* Glysa (Victor Bartis) — licensed font supplied by 16gen; do not reuse elsewhere. */
@font-face {
  font-family: "Glysa";
  src: url("/assets/fonts/glysa.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* DM Sans and Noto Serif SC (both open source) are served from this site instead of Google Fonts,
   so visitors' IP addresses are not sent to Google. Noto Serif SC is cut down to the Chinese
   characters the site uses; build.py warns when a new one appears. */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  font-weight: 100 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("/assets/fonts/noto-serif-sc-subset.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --serif: "Glysa", "Noto Serif SC", Georgia, serif;
  --ink: #242424;
  --muted: #6b6b6b;
  --line: #eeeeee;
  --bg: #ffffff;
  --soft: #f4f4f4;
  --accent: #1229ea;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
}

/* Page change: the old page fades out quickly; reveal.js then fades the
   new page in row by row. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }
.rv-wait body { opacity: 0; animation: rv-failsafe 0s 2s forwards; }
@keyframes rv-failsafe { to { opacity: 1; } }
.rv { opacity: 0 !important; translate: 0 16px; }
.rv-go { transition: opacity .8s ease-out, translate .8s cubic-bezier(.2, .7, .2, 1) !important; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4.5vw, 48px); }

.zh { font-family: "Noto Serif SC", serif; font-weight: 700; }
.big { font-size: clamp(22px, 3vw, 30px); line-height: 1.35; font-weight: 400; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
}
.site-logo img { width: 32px; height: 32px; }
.site-header nav a { font-size: 15px; font-weight: 400; }
.site-header nav { display: flex; gap: 48px; }
/* Sized in em so it scales with the link: about as tall as the "Cart" text, centred on its capitals. */
.cart-count { display: inline-block; box-sizing: border-box; min-width: 1.6em; height: 1.6em; margin-left: .3em; padding: 0 .45em; border-radius: .8em; background: var(--accent); color: #fff; font-size: .8em; font-weight: 500; line-height: 1.6em; text-align: center; vertical-align: .1em; }
.cart-count[hidden] { display: none; }

main > section, .product, .text-page { padding: 0 var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
main > section + section { margin-top: clamp(80px, 12vw, 160px); }

/* Buttons */
.buy, .button {
  display: inline-block;
  padding: 9px 22px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  background: transparent;
  transition: background .15s, color .15s;
  font-family: inherit;
  cursor: pointer;
}
.buy--added, .buy--added:hover { background: var(--accent); color: #fff; }
.buy:hover, .button:hover { background: var(--accent); color: #fff; text-decoration: none; }
.buy--soldout { border-color: var(--muted); color: var(--muted); cursor: not-allowed; }
.buy--soldout:hover { background: transparent; color: var(--muted); }
.button { border-color: var(--ink); background: var(--ink); color: #fff; padding: 12px 48px; }
.button:hover { background: rgba(0, 0, 0, .8); border-color: rgba(0, 0, 0, .8); }

/* Home — fixed design canvas like the original: 1024 units wide on desktop,
   375 on phones. home.py places every element in those units. */
.page-home { overflow-x: hidden; }
.page-home main { overflow: visible; }
.home-canvas { position: relative; overflow: clip; height: calc((var(--H) - var(--gap, 0)) * var(--k)); }
/* Canvas parts after the left-out Instagram section move up by --gap. */
.moved-up { position: absolute; left: 0; top: calc(var(--gap, 0) * var(--k) * -1); width: 100%; height: 100%; }
/* Newsletter sign-up: an underlined email field and a black button, side by
   side on desktop, stacked on phones. */
.nl-form { position: relative; display: grid; grid-template-columns: 1fr calc(130 * var(--k)); column-gap: calc(24 * var(--k)); align-items: end; height: 100%; margin: 0; }
.nl-email { width: 100%; height: calc(30 * var(--k)); padding: 0; border: 0; border-bottom: 1px solid #282828; border-radius: 0;
  background: transparent; color: #000; font: 300 calc(16 * var(--k)) "DM Sans", sans-serif; }
.nl-email::placeholder { color: #8a8a8a; }
.nl-email:focus { outline: none; border-bottom-color: var(--accent); }
.nl-button { height: calc(40 * var(--k)); border: 0; border-radius: 0; background: #000; color: #fff; font: 400 calc(16 * var(--k)) "DM Sans", sans-serif; cursor: pointer; }
.nl-button:hover { background: #333; }
.nl-button:disabled { opacity: .5; cursor: default; }
.nl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { position: absolute; left: 0; top: 100%; margin: calc(8 * var(--k)) 0 0; color: #6b6b6b; font-size: calc(13 * var(--k)); line-height: 1.4; }
.nl-form.is-done { display: block; }
.nl-form.is-done .nl-email, .nl-form.is-done .nl-button { display: none; }
.nl-form.is-done .nl-msg { position: static; margin: 0; color: #000; font-size: calc(16 * var(--k)); }
.home-phone .nl-form { grid-template-columns: 1fr; row-gap: calc(18 * var(--k)); align-items: stretch; align-content: start; }
.home-phone .nl-email { height: calc(34 * var(--k)); }
.home-phone .nl-button { height: calc(47 * var(--k)); }
.home-desktop { --k: var(--u, calc(100vw / 1024)); }
.home-phone { --k: calc(100vw / 375); display: none; }
/* Phone font sizes come from the original's 320-wide phone layout. */
.home-phone .t { --k: calc(100vw / 320); }
.home-canvas .a {
  position: absolute; margin: 0;
  left: calc(var(--x) * var(--k)); top: calc(var(--y) * var(--k));
  width: calc(var(--w) * var(--k)); height: calc(var(--h) * var(--k));
}
.home-canvas .a > img { width: 100%; height: 100%; object-fit: contain; max-width: none; }
.home-canvas .cover > img { object-fit: cover; }
.home-canvas a:hover { text-decoration: none; }
.home-canvas .t { margin: 0; font-size: calc(var(--fs) * var(--k)); line-height: calc(var(--lh) * var(--k)); }
.home-canvas .t p { margin: 0 0 1em; }
/* The first line of the about text starts to the right of the logo. */
.home-desktop .about p:first-child { text-indent: calc(86 * var(--k)); }
.t.serif { font-family: var(--serif); font-weight: 400; color: #000; }
.t.dark { color: #282828; }
.t.white, .t.white a { color: #fff; }
/* Pulp Display in the original; DM Sans stands in for it. */
.t.thin2 { font-weight: 200; color: #282828; }
.t.thin { font-weight: 100; color: #fff; }
.t.outline { color: transparent; -webkit-text-stroke: 1px #1b1b1b; }
.t.white-fill { color: #fff; }
.t.nowrap { white-space: nowrap; }
.t.right { text-align: right; }
.t.go { color: #323232; -webkit-text-stroke: 1px #1b1b1b; text-align: center; }
.t.zh { font-family: "Noto Serif SC", serif; font-weight: 700; text-align: right; white-space: nowrap;
  color: rgba(0, 0, 0, .08); }
.t.zh-phone { color: #fff; -webkit-text-stroke: 1px rgba(0, 0, 0, .12); }
.links { list-style: none; padding: 0; }
.links.center, .a.center .t { text-align: center; }
.home-canvas .copyright { color: rgba(255, 255, 255, .4); font-weight: 300; }
.home-phone .copyright { color: rgba(255, 255, 255, .5); }

.home-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; --k: var(--u, calc(100vw / 1024)); height: 0; }
.home-header a { position: absolute; color: #242424; font-size: calc(15 * var(--k)); font-weight: 300; line-height: 1.2; }
.home-header a:hover { text-decoration: none; }
.home-logo { left: calc(27 * var(--k)); top: calc(16 * var(--k)); width: calc(30 * var(--k)); }
.home-logo img { width: 100%; height: auto; }
/* Shop, Cart and the language link sit in one row against the right edge, so longer German words still fit. */
.home-navs { position: absolute; right: calc(27 * var(--k)); top: calc(17 * var(--k)); display: flex; gap: calc(35 * var(--k)); }
.home-header .home-navs a { position: static; }

@keyframes bob { from { transform: translateY(0); } to { transform: translateY(calc(10 * var(--k))); } }
.bob { animation: bob .8s ease-in-out infinite alternate; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.go-arrow:hover img { animation: pulse .8s ease-in-out infinite; }

/* Scroll effects: home.js writes --hero, --slide, --spin, --smoke. */
.js-hero-text { transform: translateX(calc(var(--hero, 0) * -189 * var(--k))); }
.js-holders { transform: translate3d(calc(var(--slide, 0) * -1182 * var(--k)), 0, 0); will-change: transform; }
/* The names follow their holder a moment later. */
.js-holder-name { transform: translate3d(calc(var(--label, 0) * -1182 * var(--k)), 0, 0); will-change: transform; }
.js-circle { transform: rotate(var(--spin, 0deg)); will-change: transform; }
/* A track pins its stage with position: sticky, so the browser keeps it still while scrolling. */
.home-canvas .track { position: absolute; left: 0; width: 100%; top: calc(var(--y) * var(--k));
  height: calc((var(--len) + var(--sh)) * var(--k)); pointer-events: none; }
.track .stage { position: sticky; top: 0; height: calc(var(--sh) * var(--k)); }
.track .stage > .a { pointer-events: auto; }
.js-smoke { transform: translateX(calc(var(--smoke, 0) * -173 * var(--k))); }

/* Desktop incense rows: hovering the name or box shows the details. */
.row-slide, .row-icon img { transition: transform .6s ease-in-out, opacity .6s ease-in-out; }
.row-shadow { opacity: .6; }
.row-desc, .row-zh { opacity: 0; transition: opacity .6s linear, transform .6s ease-in-out; }
.row-desc { transform: translateX(calc(110 * var(--k))); }
.row-icon { transform: rotate(var(--tilt)); }
.row-icon img { transform: scale(.9); transition-timing-function: ease-out; }
.row-name .t { transition: color .3s; }
.row-on.row-box, .row-on.row-shadow { transform: translateX(calc(-110 * var(--k))); }
.row-on.row-desc { opacity: 1; transform: none; }
.row-on.row-zh { opacity: 1; }
/* The text follows the box a moment later; on the way out it goes at once. */
.row-on.row-desc, .row-on.row-zh { transition-delay: .25s; }
.row-on.row-icon img { transform: rotate(var(--turn)) scale(1); }
.row-name:hover .t, .row-name:focus-visible .t { color: #1b1b1b; }

@media (max-width: 767px) {
  .home-desktop { display: none; }
  .home-phone { display: block; }
  .home-header { --k: calc(100vw / 375); }
  .home-header a { font-size: calc(17.5 * 100vw / 320); }
  .home-logo { left: calc(11 * var(--k)); top: calc(8 * var(--k)); width: calc(48 * var(--k)); }
  .home-navs { right: calc(6 * var(--k)); top: calc(18 * var(--k)); gap: calc(18 * var(--k)); }
  .js-circle-phone { transform: rotate(var(--spin, 0deg)); }
  .js-holder-steps { transform: translateY(calc(var(--step, 0) * var(--k))); transition: transform .6s ease-in-out; }
  .row-in { opacity: 0; transform: translateX(calc(272 * var(--k))); transition: transform .8s ease-out, opacity .8s ease-out; }
  .row-in.is-in { opacity: 1; transform: none; }
  .row-in.row-shadow.is-in { opacity: .6; }
  .row-icon-in img { transform: scale(.9); transition: transform .8s ease-out; }
  .row-icon-in.is-in img { transform: rotate(var(--turn)) scale(1); }
  .home-phone .row-in .t.thin2 { font-weight: 300; }
  .home-phone .t.outline { -webkit-text-stroke-color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .bob, .go-arrow:hover img { animation: none; }
  .row-in { transition: none; }
}

/* Shop */
.page-head { padding-top: clamp(32px, 6vw, 80px) !important; }
.page-head h1 { font-family: var(--serif); }
.page-head p { font-size: 18px; margin: 0; }
/* Shop, modelled on the original 16gen.com/shop24/ (1024-unit layout, three cards a row). */
.shop24 { --k: var(--u, calc(100vw / 1024)); --f: var(--k); overflow-x: clip; padding: calc(85 * var(--k)) calc(67 * var(--k)) calc(157 * var(--k)); color: #282828; }
.shop-head { position: relative; height: calc(164 * var(--k)); }
.shop-title { margin: 0 0 0 calc(-1 * var(--k)); font-family: var(--serif); font-weight: 400; font-size: calc(100 * var(--f)); line-height: calc(106 * var(--f));
  color: transparent; -webkit-text-stroke: 1px #282828; }
.shop-tagline { position: absolute; right: calc(2 * var(--k)); top: calc(53 * var(--k)); margin: 0; text-align: right;
  font-family: var(--serif); font-size: calc(18 * var(--f)); line-height: calc(19 * var(--f)); }
.shop-grid { display: grid; grid-template-columns: repeat(3, calc(278 * var(--k))); gap: calc(50 * var(--k)) calc(28 * var(--k)); list-style: none; margin: 0; padding: 0; }
.shop-card { display: block; }
.shop-card:hover { text-decoration: none; }
.shop-pic { display: block; position: relative; aspect-ratio: 278 / 399; background: #f7f7f7; overflow: hidden; }
.shop-obj { position: absolute; inset: 0; transition: transform .4s ease-out; }
.shop-pic img { position: absolute; max-width: none; object-fit: contain; }
.shop-holder { left: 13.67%; top: 13.28%; width: 71.94%; height: 75.19%; }
.shop-box { left: 36%; top: 13.28%; width: 26.98%; height: 75.19%; }
.shop-stick { left: 52.88%; top: 18.8%; width: 13.31%; height: 65.16%; }
/* On hover the object grows to 110% inside its grey card. */
.shop-card:hover .shop-obj, .shop-card:focus-visible .shop-obj { transform: scale(1.1); }
.shop-item { position: relative; }
.add-plus { position: absolute; right: calc(-3 * var(--k)); top: calc(100% - 41 * var(--k)); width: calc(21 * var(--k)); height: calc(21 * var(--k));
  padding: calc(3 * var(--k)); border: 0; background: none; color: var(--accent); cursor: pointer; }
.add-plus svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: butt; stroke-linejoin: miter; }
.add-plus .icon-plus, .add-plus .icon-tick { transition: opacity .2s, transform .25s ease-out; transform-origin: center; }
.add-plus .icon-tick { opacity: 0; transform: scale(.6); }
.add-plus.is-added .icon-plus { opacity: 0; transform: scale(.6); }
.add-plus.is-added .icon-tick { opacity: 1; transform: none; }
.shop-name { display: block; margin-top: calc(15 * var(--k)); font-family: var(--serif); font-size: calc(16 * var(--f)); line-height: calc(17 * var(--f)); }
.shop-price { display: block; margin-top: calc(9 * var(--k)); font-weight: 300; font-size: calc(12 * var(--f)); line-height: calc(13 * var(--f)); }
.shop-section { margin: calc(58 * var(--k)) 0 calc(16 * var(--k)); font-family: var(--serif); font-weight: 400; font-size: calc(56 * var(--f)); line-height: calc(106 * var(--f)); }
.page-canvas { overflow-x: hidden; }
.page-canvas main { overflow: visible; }
@media (max-width: 767px) {
  .shop24 { --k: calc(100vw / 375); --f: calc(100vw / 320); padding: calc(76 * var(--k)) calc(23 * var(--k)) calc(229 * var(--k)); }
  .shop-head { height: calc(190 * var(--k)); padding-left: calc(2 * var(--k)); }
  .shop-title { font-size: calc(60 * var(--f)); line-height: calc(106 * var(--f)); }
  .shop-tagline { right: auto; left: calc(2 * var(--k)); top: calc(120 * var(--k)); text-align: left; font-size: calc(14 * var(--f)); line-height: calc(15 * var(--f)); }
  .shop-grid { grid-template-columns: calc(326 * var(--k)); row-gap: calc(37 * var(--k)); }
  .add-plus { top: calc(100% - 46 * var(--k)); }
  .shop-name { margin-top: calc(16 * var(--k)); font-size: calc(14 * var(--f)); line-height: calc(15 * var(--f)); }
  .shop-price { margin-top: calc(12 * var(--k)); }
  .shop-section { margin: calc(8 * var(--k)) 0 calc(-6 * var(--k)); font-size: calc(40 * var(--f)); }
}

/* Product detail, modelled on the original 16gen.com/chandan/ and /incenseholder_blue/ (1024-unit layout). */
.p24 { --k: var(--u, calc(100vw / 1024)); --f: var(--k); position: relative; overflow-x: clip; padding: calc(74 * var(--k)) 0 calc(69 * var(--k)); color: #242424; }
.p-top { display: flex; align-items: flex-start; padding-left: calc(34 * var(--k)); }
.p-gallery { position: relative; flex: 0 0 calc(380 * var(--k)); height: calc(418 * var(--k)); }
.p-slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.p-slides::-webkit-scrollbar { display: none; }
.p-slide { flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; }
.p-slide img { width: 100%; height: 100%; object-fit: contain; max-width: none; }
.p-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: calc(32 * var(--k)); height: calc(48 * var(--k)); padding: 0; border: 0;
  background: none; color: #9a9a9a; font-size: calc(32 * var(--f)); line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s; }
.p-prev { left: 0; } .p-next { right: 0; }
.p-dots { position: absolute; left: 0; right: 0; bottom: calc(-18 * var(--k)); display: flex; justify-content: center; gap: calc(8 * var(--k)); opacity: 0; transition: opacity .2s; }
.p-dots button { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #d4d4d4; cursor: pointer; }
.p-dots button.is-on { background: #242424; }
.p-gallery:hover .p-arrow, .p-gallery:hover .p-dots, .p-gallery:focus-within .p-arrow, .p-gallery:focus-within .p-dots { opacity: 1; }
.p-info { position: relative; width: calc(491 * var(--k)); margin-left: calc(54 * var(--k)); padding-top: calc(19 * var(--k)); }
.p-name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: calc(28 * var(--f)); line-height: calc(30 * var(--f)); }
.p-price { margin: calc(21 * var(--k)) 0 0; color: var(--accent); font-weight: 300; font-size: calc(16 * var(--f)); line-height: calc(17 * var(--f)); }
/* Shipping and VAT note next to prices (price display rules). */
.price-note { margin: calc(6 * var(--k)) 0 0; color: var(--muted); font-weight: 300; font-size: calc(10 * var(--f)); line-height: calc(14 * var(--f)); }
.price-note a { color: inherit; text-decoration: underline; }
.shop-note { margin-top: calc(40 * var(--k)); }
.p-desc { width: calc(401 * var(--k)); margin-top: calc(20 * var(--k)); font-weight: 200; font-size: calc(11 * var(--f)); line-height: calc(16 * var(--f)); }
.p-desc p { margin: 0; }
.p-desc p + p { margin-top: calc(16 * var(--f)); }
.p-info .buy { display: flex; align-items: center; justify-content: center; width: calc(141 * var(--k)); height: calc(38 * var(--k)); margin-top: calc(19 * var(--k));
  padding: 0; font-weight: 300; font-size: calc(16 * var(--f)); }
html[lang="de"] .p-info .buy { width: calc(190 * var(--k)); }
.p-specs { position: relative; z-index: 0; width: calc(556 * var(--k)); margin: calc(23 * var(--k)) 0 0; padding: calc(25 * var(--k)) 0 0 calc(3 * var(--k)); border-top: 1px solid #eee; }
.p-spec { display: grid; grid-template-columns: calc(118 * var(--k)) calc(351 * var(--k)); margin-bottom: calc(11 * var(--k)); }
.p-spec dt { font-weight: 300; font-size: calc(10 * var(--f)); line-height: calc(16 * var(--f)); }
.p-spec dd { margin: calc(1 * var(--k)) 0 0; font-weight: 200; font-size: calc(10 * var(--f)); line-height: calc(14 * var(--f)); }
.p-spec dd p { margin: 0; }
.p-icon { position: absolute; z-index: -1; left: calc(385 * var(--k)); top: calc(-16 * var(--k)); width: calc(187 * var(--k)); height: calc(218 * var(--k)); object-fit: contain; pointer-events: none; }
.p-char { position: absolute; z-index: -1; left: calc(343 * var(--k)); top: calc(-7 * var(--k)); margin: 0; pointer-events: none; user-select: none;
  font-family: "Noto Serif SC", serif; font-weight: 700; font-size: calc(234 * var(--f)); line-height: calc(247 * var(--f)); color: #fff; -webkit-text-stroke: 1px rgba(0, 0, 0, .1); }
.p-zh { position: absolute; right: 0; top: calc(76 * var(--k)); width: calc(302 * var(--k)); margin: 0; text-align: right; white-space: nowrap; pointer-events: none;
  font-family: "Noto Serif SC", serif; font-weight: 700; font-size: calc(54 * var(--f)); line-height: calc(89 * var(--f)); color: transparent; -webkit-text-stroke: 1px rgba(0, 0, 0, .08); }
.p-also { margin: calc(89 * var(--k)) 0 calc(19 * var(--k)); padding-left: calc(67 * var(--k)); font-weight: 300; font-size: calc(16 * var(--f)); line-height: calc(26 * var(--f)); color: #282828; }
.p-related { padding-left: calc(67 * var(--k)); }
.p-related .shop-price { margin-top: calc(12 * var(--k)); color: #b8b8b8; }
@media (max-width: 767px) {
  .p24 { --k: calc(100vw / 375); --f: calc(100vw / 320); padding: calc(89 * var(--k)) 0 calc(93 * var(--k)); }
  .p-top { display: block; padding: 0 calc(23 * var(--k)); }
  .p-gallery { width: calc(328 * var(--k)); height: calc(413 * var(--k)); }
  .p-arrow { display: none; }
  .p-dots { opacity: 1; }
  .p-info { width: auto; margin: calc(32 * var(--k)) 0 0; padding: 0; }
  .p-name { font-size: calc(26 * var(--f)); }
  .p-price { margin-top: calc(53 * var(--k)); }
  .p-desc { width: auto; margin-top: calc(19 * var(--k)); }
  .p-info .buy, html[lang="de"] .p-info .buy { width: 100%; height: calc(45 * var(--k)); margin-top: calc(15 * var(--k)); }
  .p-specs { width: auto; margin-top: calc(25 * var(--k)); padding: calc(40 * var(--k)) 0 0 calc(3 * var(--k)); }
  .p-spec { grid-template-columns: calc(95 * var(--k)) 1fr; margin-bottom: calc(13 * var(--k)); }
  .p-spec--long { grid-template-columns: 1fr; }
  .p-spec--long dd { margin-top: calc(5 * var(--k)); }
  .p-icon { left: auto; top: auto; right: calc(-35 * var(--k)); bottom: calc(-53 * var(--k)); width: calc(123 * var(--k)); height: calc(143 * var(--k)); }
  .p-char { left: auto; top: auto; right: calc(-12 * var(--k)); bottom: calc(-40 * var(--k)); font-size: calc(140 * var(--f)); line-height: 1; }
  .p-zh { display: none; }
  .p-also { margin: calc(64 * var(--k)) 0 calc(21 * var(--k)); padding-left: calc(23 * var(--k)); font-size: calc(14 * var(--f)); }
  .p-related { padding: 0 calc(23 * var(--k)); row-gap: calc(33 * var(--k)); }
  .p-related .shop-name { margin-top: calc(18 * var(--k)); font-size: calc(16 * var(--f)); line-height: calc(17 * var(--f)); }
  .p-related .shop-price { margin-top: calc(21 * var(--k)); }
}

/* Cart */
/* The title and the cart sit in one column centred on the page. */
.page-cart main > section { max-width: calc(760px + 2 * var(--gutter)); }
.page-cart main > .cart { margin-top: 32px; }
.cart-empty { font-size: 18px; }
.cart-empty a { text-decoration: underline; text-underline-offset: 3px; }
.cart-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-img img { width: 72px; height: 90px; object-fit: cover; background: var(--soft); }
.cart-name { display: block; font-family: var(--serif); font-size: 18px; }
.cart-price { font-size: 13px; color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 4px; }
.cart-qty span { min-width: 28px; text-align: center; font-weight: 400; }
.cart-qty button, .cart-remove { font: inherit; background: none; border: 1px solid var(--line); color: var(--ink); cursor: pointer; }
.cart-qty button { width: 32px; height: 32px; font-size: 16px; }
.cart-qty button:hover { border-color: var(--ink); }
.cart-remove { border: 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.cart-summary { max-width: 760px; margin-top: 24px; }
.cart-summary dl { margin: 0 0 16px; max-width: 360px; margin-left: auto; }
.cart-summary dl div { display: flex; justify-content: space-between; padding: 4px 0; }
.cart-summary dd { margin: 0; }
.cart-total { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 10px !important; font-weight: 600; }
.cart-note { font-size: 13px; color: var(--muted); text-align: right; }
.cart-summary .button { display: block; margin-left: auto; font-family: inherit; font-size: 16px; cursor: pointer; }
.cart-summary .button { background: var(--accent); border-color: var(--accent); }
.cart-summary .button:hover { background: #0e20c0; border-color: #0e20c0; }
.cart-summary .button:disabled { opacity: .6; cursor: wait; }
.cart-error { color: #c0172e; text-align: right; }

/* Text pages */
.text-page { padding-top: clamp(32px, 6vw, 80px) !important; }
.text-body { max-width: 680px; font-size: 15px; overflow-wrap: anywhere; }
.text-body h2 { font-size: 18px; font-weight: 600; margin: 2em 0 .5em; }

/* Footer on pages outside the design canvas */
main ~ .page-tail { margin-top: clamp(80px, 12vw, 160px); }
/* Short pages (an empty cart) still keep the footer at the bottom of the screen. */
body:has(> .page-tail) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body:has(> .page-tail) > main { flex: 1 0 auto; }

@media (max-width: 760px) {
  .cart-item { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .cart-img img { width: 64px; height: 80px; }
  .cart-remove { grid-column: 2; justify-self: start; padding: 0; }
  .cart-summary .button { width: 100%; }
}

.newsletter-img { width: 100%; max-width: 420px; align-self: flex-end; }
.text-aside { width: 180px; margin-top: 48px; }

main { overflow-x: clip; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
