:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #fff;
  background: #100e0d;
  --edge: #66503f;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #ffc995; outline-offset: 4px; }
.backdrop { position: fixed; inset: 0; z-index: -1; }
.backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0002, #07060538 54%, #080706e8); }
.masthead { position: relative; display: grid; place-items: center; min-height: clamp(180px, 30vw, 350px); overflow: hidden; padding: 28px 18px; }
.shadow-logo { position: absolute; width: 100%; max-width: none; filter: blur(clamp(3px, .55vw, 9px)); opacity: .8; pointer-events: none; }
h1 { margin: 0; position: relative; width: min(58vw, 670px); }
h1 img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 18px #000); }
main { width: min(840px, calc(100% - 32px)); margin: 0 auto; display: grid; justify-items: center; padding-bottom: 48px; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(155px, 32%); width: 100%; align-items: center; padding: clamp(20px, 4vw, 48px); gap: clamp(22px, 4vw, 50px); background: #090807ef; border: 1px solid #66503f96; box-shadow: 0 16px 70px #0009; }
.copy h2 { font: 900 clamp(2.05rem, 5vw, 4rem)/1 Impact, "Arial Narrow", sans-serif; text-transform: uppercase; margin: 0 0 18px; letter-spacing: .015em; }
.copy p { margin: 0; color: #f0eeec; font-size: clamp(1rem, 1.65vw, 1.125rem); line-height: 1.65; white-space: pre-line; }
.frame { aspect-ratio: 2 / 3; border: 1px solid var(--edge); background: #0f0d0c; }
.frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
[hidden] { display: none !important; }
.gallery-controls button, .dialog-header button { background: #160f0c; border: 1px solid var(--edge); min-width: 44px; min-height: 44px; font-size: 1.25rem; }
#counter { min-width: 38px; text-align: center; color: #ddd; font-size: .8rem; }
.shop { margin-top: 27px; padding: 18px 34px; min-height: 56px; color: #fff; font-weight: 900; letter-spacing: .12em; text-align: center; text-decoration: none; text-shadow: 0 2px 3px #000; background: linear-gradient(#2c120aca,#140905c7), url('./assets/stahl.webp') center / cover; border: 2px solid #8a634b; border-bottom-color: #3c2318; box-shadow: inset 0 1px #e8af8055, inset 0 -3px 4px #0007, 0 8px 18px #0008; }
.shop:hover { filter: brightness(1.22); }
footer { margin-top: auto; padding: 14px 12px; background: #080706; color: #ddd; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: .35em; font-size: .8rem; text-align: center; }
footer button { background: none; border: 0; padding: 8px 3px; min-height: 44px; text-decoration: underline; }
dialog { width: min(560px, calc(100% - 32px)); max-height: 88vh; overflow: auto; background: #12100f; border: 1px solid var(--edge); color: #fff; padding: clamp(18px, 5vw, 34px); }
dialog::backdrop { background: #000c; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-header h2 { margin: 0; }
dialog p { white-space: pre-line; line-height: 1.5; }
dialog hr { border: 0; border-top: 1px solid var(--edge); }
@media (max-width: 560px) {
  .masthead { min-height: 170px; }
  h1 { width: min(82vw, 420px); }
  .panel { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { width: min(100%, 220px); justify-self: center; }
  .backdrop img { object-position: 51% center; }
  .shop { width: 100%; padding-inline: 14px; }
}
