@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");
@font-face { font-family: "IBM Plex Sans"; src: url("./assets/ibm-plex-sans-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root { color-scheme: light; font-family: "DM Sans", system-ui, sans-serif; color: #22251e; background: #f7f7f0; --line: #d8dbce; --accent: #d8f983; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wide, main { margin-inline: auto; padding-inline: clamp(20px, 5vw, 80px); }
.wide { max-width: 1920px; }
main { max-width: 1536px; padding-block: clamp(30px, 5vw, 70px) 48px; }
header { border-block-end: 1px solid var(--line); }
.brand { display: inline-block; padding-block: 14px; font-size: 2rem; letter-spacing: -.09em; font-weight: 700; text-decoration: none; color: inherit; }
.brand span { color: #5c741f; }
h1 { font-size: clamp(2.55rem, 5.8vw, 5.2rem); line-height: .98; letter-spacing: -.075em; margin: 0; }
.intro { margin: 16px 0 30px; color: #4a5144; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 335px); gap: 20px; align-items: start; }
.stage { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 23px; background: #242a22; color: #f4f7ec; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, #59684a, transparent 67%); pointer-events: none; }
.welcome { position: relative; text-align: center; padding: 12px; }
.welcome canvas { width: min(76%, 430px); height: auto; display: block; margin: auto; }
.welcome p { margin: 5px 0 15px; }
#video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
#mirror { position: absolute; inset: 0; width: 100%; height: 100%; }
.live { position: absolute; left: 12px; top: 12px; background: #242a22; border-radius: 99px; padding: 6px 12px; font-size: .8rem; }
.live::before { content: ""; display: inline-block; margin-inline-end: .4em; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); }
.controls, .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.controls { justify-content: space-between; margin-top: 12px; }
.controls p, .note, #share-status { margin: 0; color: #4a5144; font-size: .9rem; }
aside, dialog { border: 1px solid var(--line); border-radius: 22px; background: #fff; padding: 18px; color: inherit; }
h2 { margin: 0 0 12px; letter-spacing: -.04em; }
.catalog { display: grid; gap: 8px; margin-bottom: 14px; }
button, .button { display: inline-block; font: inherit; font-weight: 700; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 14px; cursor: pointer; text-decoration: none; }
.primary { background: var(--accent); color: #202717; border-color: #a0bd57; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #6c822e; outline-offset: 3px; }
.model { display: grid; align-items: center; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; text-align: left; width: 100%; }
.model[aria-pressed="true"] { background: #eefad7; border-color: #78903d; }
.model canvas { width: 76px; }
.model small { display: block; font-weight: 500; color: #4a5144; }
#product { color: #354613; font-weight: 700; font-size: .9rem; }
.note { margin-top: 10px; }
footer { border-block-start: 1px solid var(--line); }
.foot { min-height: 58px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.signature { display: inline-flex; align-items: center; gap: 3.573px; padding: 0; font-family: "IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif; font-size: 7.94px; font-weight: 400; line-height: 1.55; letter-spacing: 1.1116px; text-transform: uppercase; white-space: nowrap; opacity: .75; color: inherit; text-decoration: none; }
.signature:hover { opacity: 1; }
.signature img { height: 11.34px; width: auto; max-width: none; object-fit: contain; }
dialog { width: min(600px, calc(100% - 24px)); max-height: 95dvh; overflow: auto; }
dialog::backdrop { background: #141910b3; }
#photo { display: block; width: 100%; max-height: 65dvh; object-fit: contain; border-radius: 12px; }
dialog .actions { justify-content: flex-end; margin-top: 12px; }
@media (max-width: 800px) { .studio { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .model { grid-template-columns: 62px minmax(0, 1fr); } .model canvas { width: 62px; } }
