@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,650&display=swap');

:root { --teal-950:#082f33; --teal-800:#0b4f54; --teal-700:#15646a; --cream:#f7efe1; --paper:#fffaf2; --orange:#e7592d; --gold:#d8a126; --plum:#7c3f58; --ink:#17383a; --muted:#627374; --line:rgba(8,47,51,.16); --shadow:0 24px 80px rgba(8,47,51,.14); }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { min-height:100svh; margin:0; display:flex; flex-direction:column; color:var(--ink); background:var(--teal-950); font-family:'DM Sans',system-ui,sans-serif; line-height:1.5; }
button,input { font:inherit; } button { color:inherit; } a { color:inherit; }
.site-header { width:100%; padding:10px 24px 8px; display:flex; align-items:center; justify-content:flex-end; background:var(--teal-950); border-bottom:1px solid rgba(255,255,255,.1); }
.source-link { color:#bfd3d1; text-underline-offset:4px; font-size:14px; font-weight:600; }
main { min-height:0; flex:1; display:flex; overflow:hidden; }
.eyebrow,.section-kicker { margin:0 0 6px; color:var(--orange); text-transform:uppercase; letter-spacing:.12em; font-size:12px; font-weight:700; }
.hero__actions { display:flex; flex-wrap:wrap; gap:12px; }
.button { min-height:44px; padding:0 19px; border:1px solid transparent; border-radius:999px; cursor:pointer; font-weight:700; transition:transform 160ms ease,box-shadow 160ms ease,background 160ms ease; }
.button:hover:not(:disabled) { transform:translateY(-2px); }
.button:focus-visible,.tool-button:focus-visible,.swatch:focus-visible,.dialog__close:focus-visible { outline:3px solid rgba(231,89,45,.34); outline-offset:3px; }
.button:disabled { cursor:not-allowed; opacity:.45; }
.button--primary { color:white; background:var(--teal-800); box-shadow:0 12px 26px rgba(11,79,84,.22); }
.button--primary:hover:not(:disabled) { background:var(--teal-950); box-shadow:0 16px 32px rgba(11,79,84,.28); }
.button--quiet { color:var(--teal-800); border-color:var(--line); background:rgba(255,250,242,.75); }
.privacy-note { max-width:420px; margin:6px 0 0; color:#a9c1bf; text-align:right; font-size:12px; } .privacy-note span { color:#7bc18e; }
.studio { --workspace-height:clamp(460px,calc(100svh - 205px),710px); width:100%; max-width:none; min-height:100%; margin:0; padding:16px 24px 24px; background:var(--teal-950); color:white; }
.studio__heading { display:flex; justify-content:space-between; align-items:center; gap:30px; margin-bottom:14px; }
.studio__intro { min-width:0; }
.studio h1 { margin:0; color:white; font-family:'Fraunces',Georgia,serif; font-size:clamp(34px,3.5vw,50px); line-height:1; letter-spacing:-.04em; white-space:nowrap; }
.studio h1 em { color:var(--orange); font-style:normal; }
.studio__launch { display:grid; justify-items:end; }
.studio__status { max-width:420px; margin:4px 0 0; color:#bfd3d1; text-align:right; font-size:13px; }
.studio__workspace { width:100%; display:grid; grid-template-columns:minmax(0,1fr) 224px; gap:16px; }
.artboard-shell { position:relative; overflow:hidden; width:100%; height:var(--workspace-height); background:var(--paper); border-radius:18px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
#artboard { display:block; width:100%; height:100%; touch-action:none; cursor:crosshair; }
.artboard-empty { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:5px; color:#6b7a79; text-align:center; pointer-events:none; }
.artboard-empty__icon { margin-bottom:8px; font-size:52px; } .artboard-empty strong { color:var(--teal-800); font-size:18px; } .artboard-empty.is-hidden { display:none; }
.toolbar { height:var(--workspace-height); padding:16px; color:var(--ink); background:var(--paper); border-radius:18px; display:flex; flex-direction:column; gap:14px; }
.tool-group { display:grid; gap:10px; } .tool-label { display:flex; justify-content:space-between; color:var(--muted); text-transform:uppercase; letter-spacing:.09em; font-size:12px; font-weight:700; }
.tool-group--shape { padding-block:2px; gap:14px; }
.range-control { display:grid; gap:7px; }
.range-control label { display:flex; justify-content:space-between; gap:12px; color:var(--ink); font-size:13px; font-weight:650; }
.range-control output { color:var(--muted); font-variant-numeric:tabular-nums; }
.swatches { display:grid; grid-template-columns:repeat(5,1fr); gap:7px; } .swatch { aspect-ratio:1; padding:0; border:2px solid var(--paper); outline:1px solid var(--line); background:var(--swatch); border-radius:50%; cursor:pointer; } .swatch.is-selected { outline:3px solid var(--orange); outline-offset:2px; }
input[type='range'] { width:100%; accent-color:var(--orange); }
.toolbar__buttons { display:grid; gap:4px; } .tool-button { display:flex; align-items:center; gap:9px; padding:7px 0; border:0; border-bottom:1px solid var(--line); background:transparent; cursor:pointer; text-align:left; font-weight:600; } .tool-button:disabled { opacity:.38; cursor:not-allowed; }
.toolbar__export { display:grid; gap:8px; margin-top:auto; }
.button--share,.button--download { width:100%; }
.button--share { color:var(--teal-800); border-color:var(--line); background:var(--paper); }
.button--download { color:white; background:var(--orange); }
dialog { width:min(900px,calc(100vw - 32px)); max-height:calc(100svh - 24px); padding:0; overflow:hidden; border:0; border-radius:26px; background:var(--paper); box-shadow:0 30px 100px rgba(0,0,0,.35); } dialog::backdrop { background:rgba(8,47,51,.78); backdrop-filter:blur(8px); }
.dialog__header { padding:26px 30px 20px; display:flex; justify-content:space-between; align-items:start; gap:20px; } .dialog__header h2 { margin:0; color:var(--teal-950); font-family:'Fraunces',Georgia,serif; font-size:clamp(28px,4vw,42px); } .dialog__header .section-kicker { margin-bottom:6px; }
.camera-privacy { margin:6px 0 0; color:var(--muted); font-size:13px; }
.dialog__close { width:42px; height:42px; flex:0 0 auto; border:1px solid var(--line); border-radius:50%; background:transparent; cursor:pointer; font-size:26px; line-height:1; }
.camera-stage { position:relative; height:min(48svh,500px); margin:0 30px; overflow:hidden; background:var(--teal-950); border-radius:16px; } #video { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; } #preview { display:block; width:100%; height:100%; object-fit:cover; }
.capture-countdown { position:absolute; inset:0; z-index:2; display:grid; place-content:center; justify-items:center; gap:2px; color:white; background:rgba(8,47,51,.34); opacity:0; pointer-events:none; transform:scale(1.08); transition:opacity 150ms ease,transform 150ms ease; }
.capture-countdown.is-visible { opacity:1; transform:scale(1); }
.capture-countdown strong { display:grid; place-items:center; width:132px; height:132px; border:5px solid rgba(255,255,255,.86); border-radius:50%; background:rgba(8,47,51,.72); box-shadow:0 18px 60px rgba(0,0,0,.28); font-family:'Fraunces',Georgia,serif; font-size:84px; line-height:1; }
.capture-countdown span { margin-top:10px; padding:7px 14px; border-radius:999px; background:var(--orange); font-size:15px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.camera-loading { position:absolute; inset:0; display:grid; place-content:center; justify-items:center; gap:8px; padding:24px; color:white; background:var(--teal-950); text-align:center; transition:background 180ms ease; } .camera-loading span:last-child { max-width:440px; color:#bfd3d1; font-size:13px; } .camera-loading.has-preview { background:rgba(8,47,51,.82); backdrop-filter:blur(3px); } .camera-loading.is-hidden { display:none; }
.camera-error-mark { display:none; place-items:center; width:46px; height:46px; margin-bottom:8px; border:2px solid rgba(255,255,255,.42); border-radius:50%; color:var(--gold); font-size:28px; font-weight:700; } .camera-loading.is-error .loader { display:none; } .camera-loading.is-error .camera-error-mark { display:grid; }
.loader { width:46px; height:46px; margin-bottom:8px; border:4px solid rgba(255,255,255,.2); border-top-color:var(--gold); border-radius:50%; animation:spin 800ms linear infinite; } @keyframes spin { to { transform:rotate(360deg); } }
.camera-status { min-height:24px; margin:14px 30px 0; color:var(--muted); text-align:center; } .dialog__actions { padding:18px 30px 28px; display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; }
.timer-option { min-height:44px; margin-right:auto; padding:0 15px; display:flex; align-items:center; gap:9px; color:var(--teal-800); border:1px solid var(--line); border-radius:999px; background:rgba(255,250,242,.75); cursor:pointer; font-size:14px; font-weight:700; }
.timer-option input { width:18px; height:18px; margin:0; accent-color:var(--orange); cursor:pointer; }
.timer-option input:focus-visible { outline:3px solid rgba(231,89,45,.34); outline-offset:3px; }
.toast { position:fixed; left:50%; bottom:24px; z-index:10; max-width:calc(100vw - 32px); padding:12px 18px; color:white; background:var(--teal-950); border-radius:999px; box-shadow:var(--shadow); opacity:0; pointer-events:none; transform:translate(-50%,16px); transition:180ms ease; } .toast.is-visible { opacity:1; transform:translate(-50%,0); }
@media (max-width:1180px) { .artboard-shell { height:auto; aspect-ratio:4/3; } .toolbar { height:auto; } }
@media (max-width:860px) { main { overflow:visible; } .studio { padding:24px; } .studio__heading { align-items:start; flex-direction:column; } .studio__launch { justify-items:start; } .privacy-note,.studio__status { text-align:left; } .studio__workspace { grid-template-columns:1fr; } .artboard-shell { aspect-ratio:4/3; } .toolbar { display:grid; grid-template-columns:1fr 1fr; } .toolbar__export { grid-column:1/-1; grid-template-columns:1fr 1fr; margin:0; } }
@media (max-width:560px) { .site-header { padding:10px 16px 8px; } .studio { padding:20px 16px; } .studio h1 { font-size:42px; white-space:normal; } .hero__actions .button { width:100%; } .toolbar { grid-template-columns:1fr; } .dialog__header { padding-inline:20px; } .camera-stage { height:auto; margin-inline:12px; aspect-ratio:16/10; } .dialog__actions { padding-inline:20px; } .timer-option { width:100%; margin-right:0; justify-content:center; } .dialog__actions .button { flex:1 1 100%; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }
