:root {
  color: #221d18; background: #f1ece4; font-family: "Segoe UI", Arial, sans-serif;
  --studio-ink: #221d18; --studio-paper: #fbf8f2; --studio-rule: #ddd3c2;
  --studio-muted: #686054; --studio-accent: #a46b16;
}
*, *::before, *::after { box-sizing: border-box; }
body.studio { margin: 0; min-height: 100vh; color: var(--studio-ink); }
.studio a { color: inherit; }
.studio :focus-visible { outline: 2px solid #99631a; outline-offset: 4px; }
.studio :is(.studio-bar,.toolbar,.theme-panel,.inspector,.login-panel) :is(button,input,select,textarea) { font: inherit; }
.studio :is(.studio-bar,.toolbar,.theme-panel,.inspector,.login-panel) button, .studio .button {
  cursor: pointer; background: #fffdf8; color: var(--studio-ink); padding: 8px 13px; border: 1px solid var(--studio-rule);
  border-radius: 8px; text-decoration: none;
}
.studio :is(.studio-bar,.toolbar,.theme-panel,.inspector,.login-panel) button:hover, .studio .button:hover { background: #efe5d5; }
.studio .button.primary,.studio .login-panel button.primary { background: #2b2118; color: #fff9ef; border-color: #2b2118; }
.studio .button.primary:hover,.studio .login-panel button.primary:hover { background: #493720; }
.studio .quiet { background: transparent; }
.studio-bar {
  min-height: 64px; padding: 10px clamp(18px, 5vw, 70px); border-bottom: 1px solid var(--studio-rule);
  display: flex; align-items: center; justify-content: space-between; background: var(--studio-paper);
}
.studio-brand { display: inline-flex; align-items:center; gap: 10px; font-size: 16px; font-weight: 800; text-decoration:none; }
.studio-brand img { width: 29px; height: 29px; object-fit: contain; }
.studio-home { max-width: 1080px; margin: 0 auto; padding: clamp(42px,9vh,105px) 24px 48px; }
.studio-home h1 { margin: 0 0 38px; font-size: clamp(56px,9vw,112px); line-height: .95; letter-spacing: -.08em; }
.studio-home h1 span { color: #8c631e; }
.home-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.home-card {
  display:block; overflow:hidden; border-radius: 13px; background:var(--studio-paper);
  text-decoration:none; border: 1px solid var(--studio-rule); transition: transform 180ms, box-shadow 180ms;
}
.home-card:hover { transform:translateY(-4px); box-shadow:0 20px 35px -26px #482f12a0; }
.home-art { height:clamp(110px,20vw,240px); display:grid; place-content:center; overflow:hidden; }
.editor-art { grid-template-columns:repeat(3,minmax(32px,100px)); gap:9px; padding:20px; background:#e5d8c0; }
.editor-art i { aspect-ratio: 16/9; border:1px solid #ae9978; border-radius:4px; background:#fcf6e5; }
.editor-art i:nth-child(2),.editor-art i:nth-child(6) { background:#392d22; }
.editor-art i:nth-child(3) { background:#c49e55; }
.editor-art i:nth-child(4) { background:#f1e7d1; }
.player-art { background:radial-gradient(circle,#b0803a34,transparent 65%),#2b221b; }
.player-art img { width:clamp(70px,13vw,172px); aspect-ratio:1; object-fit:contain; transform:rotate(-13deg); filter:drop-shadow(0 12px 22px #0008); }
.home-caption { display:flex; gap:8px; align-items:center; justify-content:space-between; padding:18px 22px; }
.home-caption strong { font-size:clamp(17px,2.25vw,30px); letter-spacing:-.05em; }
.home-caption span { color:var(--studio-muted); font-size:14px; }
.login-panel { width:min(430px,calc(100% - 32px)); margin:clamp(30px,13vh,125px) auto; padding:36px; background:var(--studio-paper); border:1px solid var(--studio-rule); border-radius:16px; }
.login-panel h1 { margin:10px 0 24px; font-size:38px; line-height:1; letter-spacing:-.08em; }
.login-panel form,.login-panel label { display:grid; gap:7px; }
.login-panel form { gap:16px; }
.login-panel input { width:100%; padding:10px; background:#fffdf8; border:1px solid var(--studio-rule); border-radius:8px; }
.login-error { color:#973925; margin:16px 0 0; }
@media(max-width:600px) { .home-grid { grid-template-columns:1fr; } .home-art { height:140px; } }
@media(prefers-reduced-motion:reduce) { .home-card { transition:none; } }
