/* Simplekso Sites: the client site's stylesheet. Every colour, font and radius comes from the theme tokens (CSS variables
   set from the theme data); this file only defines the layout of the block catalogue. Fonts: SIL OFL, self-hosted. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
* { box-sizing: border-box; }
html { font-size: calc(100% * var(--scale, 1)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--font-b); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--font-h); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); } h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); } h3 { font-size: 1.25rem; font-family: var(--font-b); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; } a { color: inherit; } img { max-width: 100%; height: auto; display: block; }
.wrap, .b { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: clamp(18px, 4vw, 40px); padding-right: clamp(18px, 4vw, 40px); }
.b { padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(16px, 3vw, 24px); }
.narrow { max-width: 720px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em; font-weight: 600; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; }
.rich p { max-width: 64ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 13px 22px; border-radius: calc(var(--radius) + 2px); transition: transform 0.15s, filter 0.15s; }
.btn::after { content: ""; width: 16px; height: 2px; background: currentColor; transition: width 0.2s; } .btn:hover { filter: brightness(1.08); } .btn:hover::after { width: 24px; }
.btn-lg { padding: 16px 26px; font-size: 1.02rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 66px; }
.logo { display: inline-flex; } .logo img { height: 26px; width: auto; }
@media (prefers-color-scheme: dark) { .logo img { filter: none; } }
.tagline { font-size: 0.82rem; color: var(--muted); }
.top nav { margin-left: auto; display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.top nav .lang { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 99px; padding: 3px 10px; }
@media (max-width: 760px) { .tagline { display: none; } .top nav { gap: 14px; font-size: 0.88rem; } .top nav a:not(.lang):not([aria-current]) { display: none; } .top .wrap { min-height: 58px; } }

/* hero */
.b-hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding-top: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .b-hero { grid-template-columns: 5fr 7fr; gap: 56px; } }
.b-hero h1 { margin-bottom: 0.35em; } .b-hero .lede { margin-bottom: 1.8em; }
.hero-media img, .hero-media .img-missing { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .hero-media { order: -1; margin: 0 calc(-1 * clamp(18px, 4vw, 40px)); } .hero-media img { border-radius: 0; aspect-ratio: 4 / 3; } }

/* features */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: f; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.features li { counter-increment: f; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); padding-top: 20px; }
.features li::before { content: "0" counter(f); display: block; font-family: var(--font-h); font-size: 1.6rem; color: var(--accent); margin-bottom: 10px; }
.features p { color: var(--muted); margin: 0; }

/* product card */
.pc { display: grid; grid-template-columns: 1fr; background: var(--surface); border-radius: calc(var(--radius) * 2); overflow: hidden; }
@media (min-width: 900px) { .pc { grid-template-columns: 1.1fr 1fr; } }
.pc-media { display: grid; place-items: center; padding: clamp(18px, 4vw, 48px); } .pc-media img { width: 100%; max-width: 620px; mix-blend-mode: multiply; }
.pc-copy { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.facts { margin: 8px 0 24px; display: grid; gap: 0; }
.facts > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.facts dt { color: var(--muted); font-size: 0.92rem; } .facts dd { margin: 0; font-weight: 600; }
.pc-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; } .price { margin: 0; font-family: var(--font-h); font-size: 1.5rem; }

/* gallery, image */
.gallery { display: grid; gap: clamp(10px, 1.6vw, 18px); grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 700px) { .gallery.g2 { grid-template-columns: 1fr 1fr; } .gallery.g3 { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.gallery figure, figure { margin: 0; } .gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 700px) { .gallery.g3 figure:nth-child(2) img { aspect-ratio: 3 / 4; } }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.b-image img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .b-image img { aspect-ratio: 4 / 3; } }
.img-missing { background: var(--surface); aspect-ratio: 4 / 3; border-radius: var(--radius); }

/* call to action */
.cta-box { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--radius) * 2); padding: clamp(32px, 6vw, 72px); display: grid; gap: 8px; justify-items: start; }
.cta-box h2 { max-width: 20ch; } .cta-box p { max-width: 52ch; opacity: 0.92; font-size: 1.1rem; margin-bottom: 1.2em; }
.btn-inv { background: var(--accent-ink); color: var(--accent); }

/* technical data */
.specs { display: grid; gap: 8px 56px; grid-template-columns: 1fr; margin-top: 24px; } @media (min-width: 900px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs h3 { margin: 26px 0 6px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.specs dl { margin: 0; } .specs .row { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.specs dt { color: var(--muted); } .specs dd { margin: 0; }
.src { margin-left: 10px; border: 0; background: none; color: var(--muted); font: 600 0.75rem var(--font-b); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.src-pop { position: absolute; z-index: 60; max-width: min(420px, 90vw); background: var(--ink); color: var(--bg); padding: 12px 14px; border-radius: 10px; font-size: 0.84rem; line-height: 1.45; box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25); }
.src-pop q { display: block; font-style: italic; margin-bottom: 6px; }

/* 3D viewer */
.viewer { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 24px; } @media (min-width: 900px) { .viewer { grid-template-columns: 2fr 1fr; align-items: center; } }
model-viewer { width: 100%; height: min(70vh, 560px); background: radial-gradient(80% 70% at 50% 45%, color-mix(in srgb, var(--surface) 60%, var(--bg)), var(--surface)); border-radius: calc(var(--radius) * 2); --poster-color: transparent; }
.hs { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--bg); color: var(--ink); font: 700 12px var(--font-b); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 20%, transparent), 0 6px 16px rgba(0, 0, 0, 0.18); cursor: pointer; }
.hs[data-visible="false"] { opacity: 0.25; } .hs[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.hs-list { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 4px; }
.hs-list li { counter-increment: h; padding: 12px 14px 12px 46px; position: relative; border-radius: var(--radius); cursor: pointer; color: var(--muted); }
.hs-list li::before { content: counter(h); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font-b); background: var(--surface); color: var(--ink); }
.hs-list li b { display: block; color: var(--ink); font-weight: 600; } .hs-list li.on { background: var(--surface); } .hs-list li.on::before { background: var(--accent); color: var(--accent-ink); }

/* questions, contact, legal */
details { border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); padding: 18px 0; } details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
summary { cursor: pointer; font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; } summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-h); font-size: 1.5rem; line-height: 1; color: var(--accent); } details[open] summary::after { content: "−"; }
details .rich { margin-top: 12px; color: var(--muted); }
.contact { display: grid; gap: 32px; grid-template-columns: 1fr; } @media (min-width: 900px) { .contact { grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: end; } }
.contact .facts dd a { color: var(--ink); } .contact .facts .rich p { margin: 0; }
.legal { font-size: 0.92rem; color: var(--muted); } .legal h2 { font-size: 1.4rem; color: var(--ink); }

/* footer */
.foot { margin-top: clamp(64px, 10vw, 120px); background: var(--ink); color: var(--bg); }
.foot .wrap { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 28px; grid-template-columns: 1fr; } @media (min-width: 900px) { .foot .wrap { grid-template-columns: 1.4fr 1fr; } }
.foot .rich p { font-family: var(--font-h); font-size: 1.35rem; line-height: 1.35; max-width: 32ch; } .imprint { font-size: 0.82rem; opacity: 0.78; } .imprint p { margin: 0; }

/* preview: the changed blocks */
body[data-mode="preview"] .changed { outline: 2px dashed var(--accent); outline-offset: 10px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
