@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bone: #f6f1e8;
  --paper: #fffcf6;
  --petrol: #143f43;
  --bordeaux: #642c3c;
  --mint: #d6e5dc;
  --olive: #63694f;
  --ink: #252c26;
  --line: #d6cec0;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 1rem/1.62 var(--sans); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bordeaux); outline-offset: 4px; }
.mystery-band :focus-visible, footer :focus-visible { outline-color: var(--mint); }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3 { margin: 0; }
h1, h2, h3, .wordmark { font-family: var(--serif); font-weight: 400; }
h2 { color: var(--petrol); font-size: clamp(3.2rem, 6vw, 6.1rem); line-height: .94; letter-spacing: -.025em; }
h3 { color: var(--petrol); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1; }
section, aside, footer, #cafe-raetselheft { scroll-margin-top: 1rem; }
.wrap { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { width: min(100% - 6rem, 76rem); margin: auto; min-height: 5.4rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--petrol); line-height: .98; font-size: 2.3rem; }
.wordmark span { margin-top: .4rem; font: 700 .61rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .19em; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.75rem); align-items: center; font-size: .92rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.cart-toggle { display: flex; gap: .65rem; align-items: center; padding: .55rem .8rem; background: transparent; border: 1px solid var(--line); font-size: .85rem; }
.cart-toggle span { display: grid; place-items: center; min-width: 1.4rem; padding-inline: .2rem; height: 1.4rem; background: var(--petrol); color: var(--paper); border-radius: 1rem; font-size: .72rem; }
.back-to-menu { position: fixed; z-index: 2; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-width: 5.5rem; min-height: 2.9rem; padding: .5rem .9rem; background: var(--petrol); color: var(--paper); border: 1px solid var(--paper); box-shadow: 0 3px 14px #143f4340; text-decoration: none; font-size: .88rem; font-weight: 700; line-height: 1; }
.back-to-menu:hover { background: var(--bordeaux); }
.back-to-menu span { font-size: 1.25rem; line-height: 1; }
.eyebrow { color: var(--bordeaux); margin: 0 0 1.05rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5.2vw, 5rem); padding-block: 3rem 4.3rem; }
.hero h1 { color: var(--petrol); font-size: clamp(4rem, 7.4vw, 7.3rem); line-height: .84; letter-spacing: -.027em; }
.hero h1 em { color: var(--bordeaux); font-weight: 400; }
.hero-content > p:not(.eyebrow) { max-width: 27rem; font-size: clamp(1rem, 1.55vw, 1.18rem); margin-block: 1.75rem 1.55rem; }
.hero-figure { height: clamp(28rem, 47vw, 40rem); background: var(--olive); }
.hero-figure img { height: 100%; object-fit: cover; object-position: center 44%; }
.actions { display: flex; gap: .9rem 1.35rem; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; gap: .75rem; align-items: center; justify-content: center; text-decoration: none; border: 1px solid transparent; padding: .73rem 1rem; min-height: 2.8rem; font: 700 .86rem/1.25 var(--sans); }
.primary { color: var(--paper); background: var(--petrol); }
.primary:hover { background: var(--bordeaux); }
.outline { border-color: var(--petrol); color: var(--petrol); background: transparent; }
.outline:hover { color: var(--paper); background: var(--petrol); }
.text-link { color: var(--petrol); font-size: .9rem; font-weight: 700; text-underline-offset: .3em; }
.text-link:hover { color: var(--bordeaux); }
.band { background: var(--paper); }
.book-layout, .mystery-layout, .snail-mail-layout, .studio { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 7.2vw, 6.8rem); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.snail-mail-emblem { width: min(100%, 24rem); justify-self: center; }
.snail-mail-emblem img { border-radius: 50%; }
.book-photo img { height: clamp(24rem, 40vw, 33rem); object-fit: cover; object-position: center 57%; }
.section-copy > p:not(.eyebrow) { max-width: 34rem; }
.lead { font-size: 1.2rem; }
.sample { margin-top: 1.3rem; color: var(--petrol); max-width: 26rem; }
.sample summary { width: fit-content; cursor: pointer; font-size: .9rem; font-weight: 600; }
.sample img { margin-top: .7rem; }
.mystery-band { background: var(--petrol); color: var(--paper); }
.mystery-intro { position: relative; }
.mystery-curtain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mystery-intro:focus-within .mystery-curtain { visibility: hidden; }
.mystery-band h2 { color: var(--bone); }
.mystery-band .eyebrow { color: var(--mint); }
.mystery-band .text-link { color: var(--mint); }
.mystery-band .text-link:hover { color: var(--paper); }
.mystery-layout figure img { height: clamp(15rem, 33vw, 28rem); object-fit: cover; object-position: center; }
.archive-interlude { padding-bottom: clamp(3rem, 5vw, 5rem); }
.sealed-file { max-width: 58rem; margin: auto; color: var(--ink); background: #f5eddd; box-shadow: 0 15px 36px #102d3066; }
.sealed-file summary { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 12rem; padding: 2.5rem 10rem 2.5rem 3rem; border: 1px solid #c2ae8c; background: linear-gradient(135deg, #f9f2e5, #e9ddc7); cursor: pointer; list-style: none; }
.sealed-file summary::-webkit-details-marker { display: none; }
.sealed-file summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
.archive-tab, .archive-note-label { font: 700 .7rem/1.3 var(--sans); text-transform: uppercase; letter-spacing: .18em; color: #765839; }
.archive-title { max-width: 21rem; margin: .65rem 0; color: var(--petrol); font: clamp(2.2rem, 4vw, 3.5rem)/.98 var(--serif); }
.archive-prompt { font-size: .88rem; font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
.wax-seal { position: absolute; width: 5.8rem; height: 5.8rem; right: 3rem; top: 50%; transform: translateY(-50%); filter: drop-shadow(0 5px 5px #451b2666); }
.wax-seal::before, .wax-seal::after { content: ''; position: absolute; inset: 0; background: url('assets/bestand-u-siegel.webp') center / contain no-repeat; transition: transform .55s ease; }
.wax-seal::before { clip-path: polygon(0 0, 54% 0, 48% 26%, 54% 45%, 47% 67%, 51% 100%, 0 100%); }
.wax-seal::after { clip-path: polygon(54% 0, 100% 0, 100% 100%, 51% 100%, 47% 67%, 54% 45%, 48% 26%); }
.sealed-file[open] .wax-seal::before { transform: translate(-.55rem, .4rem) rotate(-18deg); }
.sealed-file[open] .wax-seal::after { transform: translate(.55rem, -.4rem) rotate(17deg); }
.sealed-file[open] .archive-prompt { visibility: hidden; }
.archive-note { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #c2ae8c; border-top: 0; background: #fffbf2; }
.sealed-file[open] .archive-note { animation: archive-reveal .45s ease-out both; }
@keyframes archive-reveal { from { opacity: 0; transform: translateY(-.5rem); } to { opacity: 1; transform: translateY(0); } }
.archive-note-label { margin: 0 0 1.4rem; padding-bottom: .65rem; border-bottom: 1px solid #c2ae8c; }
.archive-entry { display: grid; grid-template-columns: minmax(11rem, .7fr) 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.archive-entry figure { margin: 0; }
.archive-entry img { max-height: 21rem; object-fit: contain; background: #e9e2d6; }
.archive-entry figcaption { margin-top: .5rem; font-size: .76rem; color: #675f55; }
.archive-entry h3 { font-size: clamp(2.3rem, 4vw, 3.5rem); }
.archive-entry p { max-width: 33rem; }
.archive-signoff { margin-top: 1.7rem; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: #765839; }
.mystery-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 7.2vw, 6.8rem); padding-bottom: clamp(3.5rem, 7vw, 6.5rem); }
.mystery-offers > section { border-top: 1px solid #779b96; padding-top: 1.4rem; }
.mystery-offers h3 { color: var(--bone); }
.mystery-signup { display: grid; gap: .65rem; }
.mystery-signup > label { font-size: .93rem; }
.mystery-signup > input { width: 100%; min-width: 0; background: var(--paper); color: var(--ink); border: 1px solid var(--mint); font: inherit; padding: .6rem .7rem; }
.mystery-consent { display: flex; align-items: baseline; gap: .45rem; }
.mystery-consent input { margin: 0; accent-color: var(--mint); }
.mystery-signup > button { justify-self: start; background: var(--mint); color: var(--petrol); }
.mystery-signup > button:hover { background: var(--paper); }
.mystery-signup > button:disabled { cursor: wait; opacity: .7; }
.mystery-privacy, #mystery-signup-status { margin: 0; font-size: .87rem; }
#mystery-signup-status { font-weight: 700; }
#mystery-signup-status:empty { display: none; }
.studio { align-items: start; }
.studio p:not(.eyebrow) { margin-top: 0; }
.shop-band { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--mint); }
.shop-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.shop-heading > p { margin: 0; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.5rem; }
.shop-filter { border: 1px solid var(--petrol); border-radius: 999px; padding: .58rem .9rem; background: transparent; color: var(--petrol); font: inherit; font-size: .88rem; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s; }
.shop-filter span { margin-left: .25rem; opacity: .72; font-variant-numeric: tabular-nums; }
.shop-filter:hover, .shop-filter[aria-pressed="true"] { background: var(--petrol); color: var(--paper); }
.shop-filter:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 3px; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product { display: flex; flex-direction: column; min-width: 0; padding: 1rem; background: var(--paper); }
.product[hidden] { display: none; }
.product .eyebrow { margin-block: 1rem .4rem; }
.product p:not(.eyebrow) { margin-block: .7rem 1rem; font-size: .93rem; }
.product .product-stock { color: var(--petrol); font-weight: 700; }
.product-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; margin-top: auto; }
.shipping-hint { display: block; margin-top: .5rem; line-height: 1.4; }
.product-options { display: grid; gap: .65rem; margin-top: auto; }
.product-image { aspect-ratio: 1.15; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.product-image-scene img { object-position: center; }
.product-image-art { padding: .55rem; background: #e9dfcd; }
.product-image-art img { object-fit: contain; object-position: center; }
.gallery-track { display: flex; position: relative; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; }
.gallery-track > .product-image { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
#gazelle-karussellbuch .gallery-track > .product-image { aspect-ratio: 4 / 3; }
.gallery-white { background: #fff; }
.gallery-dark { background: #29201c; }
.product-gallery.enhanced .gallery-track { scrollbar-width: none; cursor: grab; user-select: none; }
.product-gallery.enhanced .gallery-track::-webkit-scrollbar { display: none; }
.product-gallery.enhanced .gallery-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-controls { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; text-align: center; border-bottom: 1px solid var(--line); color: var(--petrol); font-size: .8rem; }
.gallery-controls button { border: 0; background: transparent; }
.gallery-controls button:focus-visible { outline-offset: -3px; }
.gallery-arrow { display: grid; min-height: 2.75rem; place-items: center; }
.gallery-arrow span { width: .55rem; height: .55rem; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); }
.gallery-arrow:first-child span { transform: rotate(-135deg); }
.gallery-arrow[aria-disabled="true"] { opacity: .45; cursor: default; }
.gallery-arrow[aria-disabled="false"]:hover { background: var(--mint); }
.gallery-read { min-height: 2rem; padding: 0 .15rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.gallery-count { margin-left: .35rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plant-link { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.65rem; }
.plant-link-content { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }
.plant-link-content img { width: clamp(9rem, 18vw, 13rem); height: auto; flex: none; }
.plant-link p { margin: 0; }
footer { background: var(--bordeaux); color: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 2.7rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-content: start; }
footer .wordmark { color: var(--paper); }
address { font-style: normal; }
dialog { width: min(100% - 1.25rem, 34rem); max-height: 90dvh; padding: clamp(1rem, 5vw, 2rem); border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #142827aa; }
.dialog-header, .subtotal { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dialog-header h2 { font-size: clamp(2.4rem, 8vw, 3.7rem); }
.dialog-header button { background: transparent; border: 1px solid var(--line); padding: .45rem .7rem; }
.reading-trigger { padding: 0; border: 0; background: transparent; text-decoration: underline; }
.reading-intro { font-size: .92rem; }
.reading-form, .reading-fields { display: grid; gap: .85rem; }
.reading-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reading-form label { display: grid; gap: .3rem; color: var(--petrol); font-size: .88rem; font-weight: 700; }
.reading-form input, .reading-form textarea { width: 100%; min-width: 0; padding: .55rem .65rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 400 1rem/1.35 var(--sans); }
.reading-form textarea { resize: vertical; }
.reading-form .terms-accept { display: flex; align-items: baseline; gap: .5rem; font-weight: 400; }
.reading-form .terms-accept input { width: auto; min-width: auto; flex: none; accent-color: var(--petrol); }
.reading-form > .button { justify-self: start; }
.reading-draft { padding: .8rem; background: var(--bone); }
.reading-draft details { margin-top: .65rem; font-size: .88rem; }
.reading-draft summary { cursor: pointer; }
#cart-items { margin-top: 1.2rem; }
.cart-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem; border-top: 1px solid var(--line); padding-block: .8rem; }
.cart-row small { display: block; }
.quantity { display: flex; align-items: center; gap: .6rem; }
.quantity button { width: 2rem; height: 2rem; background: var(--bone); border: 1px solid var(--line); }
.quantity button:disabled { cursor: default; opacity: .5; }
.subtotal { padding-top: .65rem; border-top: 1px solid var(--line); }
#cart-checkout p:not(.subtotal) { font-size: .88rem; }
.payment-options { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; }
.payment-options legend { padding: 0; margin-bottom: .45rem; font-weight: 700; }
.payment-options label { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding: .55rem .7rem; border: 1px solid var(--line); cursor: pointer; }
.payment-options label[hidden] { display: none; }
.payment-options label:has(:checked) { border-color: var(--petrol); background: var(--mint); }
.payment-options input { margin: 0; accent-color: var(--petrol); }
.payment-preview { padding: .65rem .8rem; background: var(--bone); border-left: 2px solid var(--olive); }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { position: fixed; z-index: 3; top: .5rem; left: .5rem; background: var(--paper); padding: .5rem; }

@media (max-width: 820px) {
  .wrap, .header-inner { width: min(100% - 3rem, 76rem); }
  .header-inner { gap: 1rem; }
  .hero h1 { font-size: clamp(3.25rem, 8.5vw, 5.1rem); }
  .hero-figure { height: 28rem; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .product { padding: .8rem; }
}
@media (max-width: 600px) {
  .wrap, .header-inner { width: calc(100% - 2rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; padding-block: .85rem; gap: .85rem; }
  .wordmark { font-size: 1.92rem; }
  nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; flex-wrap: wrap; gap: .55rem .8rem; }
  .hero, .book-layout, .mystery-layout, .mystery-offers, .snail-mail-layout, .studio { grid-template-columns: 1fr; }
  .hero { gap: 1.65rem; padding-block: 2rem 2.5rem; }
  .hero h1 { font-size: clamp(3.35rem, 12.5vw, 5.3rem); }
  .hero-figure { height: clamp(17rem, 86vw, 25rem); }
  .book-photo { grid-row: 2; }
  .book-photo img { height: min(105vw, 26rem); }
  .shop-heading { display: block; }
  .shop-heading > p { margin-top: .75rem; }
  .products { grid-template-columns: 1fr; gap: 1rem; }
  .product { padding: 1rem; }
  .sealed-file summary { min-height: 10rem; padding: 1.5rem 7rem 1.5rem 1.3rem; }
  .wax-seal { right: 1rem; width: 4.5rem; height: 4.5rem; }
  .archive-entry { grid-template-columns: 1fr; }
  .archive-entry img { max-height: 17rem; }
  .plant-link, .footer-inner { align-items: flex-start; flex-direction: column; }
  .plant-link-content { align-items: flex-start; flex-direction: column; gap: .65rem; }
}
@media (max-width: 440px) {
  .reading-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mystery-curtain { display: none; }
  .wax-seal::before, .wax-seal::after { transition: none; }
  .sealed-file[open] .archive-note { animation: none; }
}

#shop-order[hidden], #shipping-address[hidden] { display: none; }
#shipping-address { border: 1px solid var(--line); padding: .75rem; }
#shipping-address label:first-of-type { grid-column: 1 / -1; }
#order-quote { font-weight: 700; }
#order-error { color: var(--bordeaux); }
.shop-page { max-width: 58rem; margin: 3rem auto; padding-inline: 1rem; }
.product h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.product h3 a:hover { color: var(--bordeaux); }
.seo-header { max-width: 76rem; margin: auto; padding: 1.25rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
.seo-header nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.seo-main { max-width: 76rem; margin: 2rem auto 4rem; padding: 0 1rem; }
.seo-breadcrumb { font-size: .85rem; margin-bottom: 2rem; }
.seo-main h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.08; color: var(--petrol); }
.seo-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.seo-product-image { background: #e9dfcd; padding: 1rem; }
.seo-product-image img { display: block; width: 100%; max-height: 43rem; object-fit: contain; }
.seo-product-image .product-image { aspect-ratio: 4 / 3; }
.seo-product-image .gallery-controls { background: var(--paper); }
.seo-product-image .gallery-caption { display: inline-block; padding: .2rem; }
.seo-product ul { padding-left: 1.25rem; margin-bottom: 1.5rem; }
.seo-product li { margin: .4rem 0; }
.seo-muted { font-size: .85rem; }
.seo-more { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; }
.seo-about { max-width: 76rem; }
.seo-about > p, .seo-about > h2 { max-width: 52rem; }
.seo-author-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin-bottom: 2.5rem; }
.seo-author-portrait { margin: 0; padding: .7rem; background: var(--paper); box-shadow: 0 14px 35px #38291a1a; transform: rotate(1deg); }
.seo-author-portrait img { display: block; width: 100%; height: auto; }
.seo-author-portrait figcaption { margin: .65rem .2rem .15rem; font-size: .8rem; color: var(--petrol); }
.seo-footer { max-width: 76rem; margin: 3rem auto 0; padding: 2rem 1rem; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .seo-header, .seo-product, .seo-author-intro { display: block; } .seo-header nav { margin-top: 1rem; } .seo-product-image, .seo-author-intro > div { margin-bottom: 1.5rem; } .seo-author-portrait { transform: none; } }
.shop-page h1 { font-size: clamp(2.5rem, 7vw, 4rem); line-height: 1; color: var(--petrol); }
.shop-page article { background: var(--paper); padding: 1rem; margin: 1rem 0; }
.shop-page table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.shop-page caption { text-align: left; font-weight: 700; margin-bottom: .5rem; }
.shop-page th, .shop-page td { padding: .65rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.shop-page form { margin: .75rem 0; }
.shop-page button { margin-top: .4rem; }
