@font-face {
  font-family: Andika;
  src: url("assets/fonts/Andika-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Andika;
  src: url("assets/fonts/Andika-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --paper: #eef5ef;
  --card: #fcfefb;
  --ink: #183c31;
  --muted: #425e51;
  --green: #2d684b;
  --line: #cbdcd1;
  --serif: Andika, "Segoe UI", sans-serif;
  --surface: linear-gradient(145deg, #fff, #f8fcf8);
  --lift: inset 0 1px 1px #fff, 0 2px 5px #254d3d10, 0 16px 34px -22px #254d3d63;
  --raised: inset 0 1px 1px #fff, 0 2px 0 #c1d0c6, 0 4px 8px -4px #234d3c45;
}
body {
  font: 1rem/1.5 Andika, "Segoe UI", sans-serif;
  background: radial-gradient(ellipse at top left, #dfeee1, transparent 56rem),
    radial-gradient(ellipse at top right, #e2eaf3, transparent 46rem), var(--paper);
}
.site-header {
  max-width: none;
  min-height: 70px;
  padding: 12px max(4vw, calc((100% - 1232px)/2));
  background: #f8fcf9f5;
  box-shadow: 0 3px 15px #264b3a09;
}
.brand {font-size: 1.48rem; font-weight: 700; letter-spacing: -.045em}
.brand-mark {
  color: #eff9e7;
  border: 1px solid #46765c;
  background: linear-gradient(145deg,#73a583,#397454 54%,#24543f);
  box-shadow: inset 0 2px 2px #ffffff95, inset 0 -2px #193d2a44, 0 3px 6px #244f3b36;
}
.brand-serif {font-weight: 400}
.beta {font-size: .68rem; letter-spacing: .03em; color: #486450; background: #e9f2ea; border-color: #c6d7ca}
.header-actions {gap: clamp(10px, 2vw, 25px)}
.header-actions .text-button, .setup-link {font-size: .875rem; color: var(--muted)}
.setup-link {text-decoration: none}
.setup-link:hover {text-decoration: underline}
main {max-width: 1320px; padding: clamp(18px, 2.5vw, 34px) clamp(16px, 3.4vw, 44px) 0}
.intro {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(230px, 1fr);
  gap: 20px; align-items: center; isolation: isolate; overflow: hidden;
  padding: clamp(20px, 2.5vw, 34px) clamp(22px, 3.6vw, 48px); margin-bottom: 23px;
  border-radius: 25px; border: 1px solid #bdd4c6;
  background: radial-gradient(ellipse at 88% 6%, #cfe6da, transparent 58%), linear-gradient(115deg,#fdfffa,#e4f1e8);
  box-shadow: var(--lift);
}
.intro-copy h1 {font: 700 clamp(2.1rem,3.55vw,3.35rem)/1.08 Andika,sans-serif; letter-spacing: -.045em; margin: 0 0 12px}
.intro-copy h1 em {font-style: normal; font-weight: 700; color: #386b4e}
.intro-copy p {max-width: 48ch; font-size: 1rem; color: var(--muted)}
.studio-still-life {position: relative; width: min(100%, 335px); aspect-ratio: 2.1; justify-self: center; pointer-events: none}
.studio-still-life::before {
  content: ""; position: absolute; inset: -18% -16%; transform: rotate(-8deg);
  background-image: linear-gradient(#678c763a 1px,transparent 1px),linear-gradient(90deg,#678c763a 1px,transparent 1px);
  background-size: 18px 18px; mask-image: radial-gradient(ellipse, black 16%, transparent 71%);
}
.paper-stack {
  position: absolute; left: 12%; top: 12%; width: 58%; height: 75%; padding: 2.8% 2.8% 4.2%;
  background: #fffdf3; border-radius: 3px; transform: rotate(-8deg);
  box-shadow: 0 2px #c8c4b6, 2px 4px #faf6df, 2px 6px #b4b7a4, 0 13px 15px -5px #304e4066;
}
.paper-stack img {width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 1px}
.paint-tin {
  position: absolute; right: 5%; top: 19%; width: 25%; height: 39%; padding: 2.4%;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 9%;
  background: linear-gradient(145deg,#fffcf3,#e4dcc9); border: 1px solid #c9c1af; border-radius: 14%;
  transform: rotate(11deg); box-shadow: inset 0 2px #fff, 0 3px #b3ad9c, 0 8px 10px -3px #41574455;
}
.paint-tin i {border-radius: 40%; box-shadow: inset 1px 2px 3px #3137274d,0 1px #fff; background: #829f80}
.paint-tin i:nth-child(2) {background: #72a7a5}
.paint-tin i:nth-child(3) {background: #af9abf}
.paint-tin i:nth-child(4) {background: #d7ac6a}
.paint-tin i:nth-child(5) {background: #c68d7c}
.paint-tin i:nth-child(6) {background: #88a8c3}
.desk-brush {position: absolute; right: 29%; bottom: -25%; height: 105%; transform: rotate(62deg); filter: drop-shadow(3px 5px 2px #344d3f45)}
.workspace {grid-template-columns: minmax(0,1.7fr) minmax(325px,1fr); gap: clamp(15px,1.8vw,24px)}
.painting-column, .control-panel {min-width: 0}
.studio, .control-panel, .microphone-setup, dialog {
  border: 1px solid #c3d6ca; border-radius: 20px; background: var(--surface); box-shadow: var(--lift);
}
.studio-toolbar {background: linear-gradient(115deg,#fcfffa,#eef6ee); border-bottom-color: var(--line)}
.picture-title, .status-text strong {font-size: 1rem; color: var(--ink)}
.canvas-tag {font-size: .68rem; color: #586e60; letter-spacing: .07em}
.art-stage {background: radial-gradient(ellipse at 30% 10%, #e6eee0, transparent 70%), #dce8dd}
.canvas-frame {border-color: #fffdf5; box-shadow: 0 1px 2px #77796866,0 4px 0 #b8bca9,0 10px 22px #394c3b33}
.control-panel {padding: clamp(16px,1.7vw,24px)}
.panel-heading h2 {font-size: 1.4rem; font-weight: 700; letter-spacing: -.03em}
.control-section {padding: 19px 0}
.section-label {gap: 9px; margin-bottom: 12px}
.section-label h3 {font-size: 1rem; color: var(--ink); font-weight: 700}
.step-number, .microphone-badge, .upload-icon {
  width: 27px; height: 27px; border-radius: 8px; color: #365941; font-size: .84rem;
  background: linear-gradient(145deg,#f0f8ea,#c8e1cd); box-shadow: inset 0 1px #fff,0 2px #a8c4ad;
}
.control-section:nth-of-type(2) .step-number, .upload-icon {
  color: #574766; background: linear-gradient(145deg,#f4effa,#ddcfe9); box-shadow: inset 0 1px #fff,0 2px #c0aeca;
}
.sound-section .step-number {color: #694f2c; background: linear-gradient(145deg,#fff4d9,#ecd19d); box-shadow: inset 0 1px #fff,0 2px #cfb480}
.scene {overflow: hidden; border: 1px solid #c5d6c9; border-radius: 10px; box-shadow: var(--raised); background: var(--surface); color: #365445; font-size: .8rem}
.scene img {height: clamp(52px,5.5vw,82px); border: 0; border-radius: 0; filter: none}
.scene > span:not(.scene-check) {margin: 0; padding: 3px}
.scene.selected {border-color: #427554; box-shadow: 0 0 0 1px #427554,0 2px 3px #254e3826; background: #e5f0e5}
.upload-button {border: 1px solid #c9bdd6; background: linear-gradient(125deg,#f6f2fa,#eee7f5); border-radius: 12px; color: #4e3d5f; box-shadow: var(--raised); padding: 12px}
.upload-button:hover {background: #eee7f5; border-color: #927ba1}
.upload-button strong, .microphone-copy strong {font-size: 1rem}
.upload-button small, .upload-note, .upload-privacy, .field-note, .microphone-copy p, .microphone-device span,
.music-track-detail, .music-play-row > span, .privacy-note p, .usage-note, .check-option small,
.status-text span:not(.status-light), .session-bottom, .under-canvas p {font-size: .8rem; color: var(--muted)}
.primary-button, .footer-email {
  background: linear-gradient(155deg,#44835f,#255b41); color: #fff; border: 1px solid #2a5d44;
  box-shadow: inset 0 1px #ffffff4d,0 2px #1e4834,0 4px 9px #29473525;
}
.primary-button:hover {background: linear-gradient(155deg,#3c7958,#1f5039)}
.outline-button, .icon-button, .activity-options button, select {color: #355241; background: var(--surface); border: 1px solid #b9cebf; box-shadow: var(--raised)}
.icon-button {width: 34px; height: 34px; border-radius: 9px}
.duration-options {background: #e7efe7; border-color: #d1ded2}
.duration-options button, .duration-options button:last-child, .activity-options button {font-size: .81rem; color: #455f50}
.duration-options .selected, .activity-options .selected {background: #e0efdf; color: #224c36; box-shadow: inset 0 0 0 1px #80a28b}
.selected:focus-visible, :focus-visible {outline: 3px solid #655286; outline-offset: 3px}
.studio .start-area {display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px clamp(14px,2vw,26px); background: #f0f6ef; border-top: 1px solid var(--line); margin: 0}
.studio .start-button {width: auto; min-width: 138px; font-size: .9rem}
.studio .demo-button, .studio .stop-button {width: auto; padding: 6px 0; color: var(--muted); font-size: .84rem}
.studio .demo-button span {font-size: .73rem; color: var(--muted)}
.microphone-setup {margin: 18px 0 0; padding: 18px; gap: 12px}
.microphone-badge {width: 38px; height: 38px}
.microphone-copy {flex: 1 1 65%}
.microphone-setup .primary-button {margin-left: 0}
.microphone-device {flex-wrap: wrap}
.microphone-device span {flex-basis: 100%}
.text-button, .outline-button, .microphone-setup .primary-button, .setting-label, .check-option strong, .slider-label, .music-section select, .microphone-device label, .microphone-device select {font-size: .875rem}
.music-section select, .microphone-device select {color: var(--ink)}
select {appearance: none; background-image: linear-gradient(45deg,transparent 50%,#476754 50%),linear-gradient(135deg,#476754 50%,transparent 50%); background-size: 5px 5px; background-position: right 15px center,right 10px center; background-repeat: no-repeat}
select, .music-section select, .microphone-device select {padding-right: 30px}
dialog {padding: clamp(22px,4vw,36px)}
dialog h2 {font-weight: 700; letter-spacing: -.035em}
dialog p {font-size: .94rem; color: var(--muted)}
.under-canvas {max-width: none; gap: 16px}
.under-canvas .text-button {display: inline-flex; font-size: .84rem}
footer {width: min(92%,1232px); margin-inline: auto; color: var(--muted)}
.display-mode .studio .start-area {display: none}
@media (max-width: 820px) {
  .workspace {grid-template-columns: minmax(0,1fr)}
  .studio-still-life {width: min(100%,225px)}
  .intro {grid-template-columns: 1fr .65fr}
}
@media (max-width: 540px) {
  main {padding-inline: 12px}
  .site-header {flex-wrap: wrap; padding: 10px 14px; gap: 10px}
  .setup-link {font-size: .78rem}
  .header-actions {gap: 10px}
  .brand {gap: 7px; font-size: 1.2rem}
  .intro {grid-template-columns: 1fr; gap: 0; padding: 20px; position: relative}
  .intro-copy h1 {font-size: 2rem; position: relative; z-index: 1}
  .intro-copy p {font-size: .94rem; max-width: 39ch}
  .studio-still-life {position: absolute; right: 4%; top: 18px; width: 29%; z-index: -1}
  .scene img {height: clamp(62px,16vw,88px)}
  .under-canvas {flex-wrap: wrap}
  .microphone-setup .outline-button {margin-left: 0}
  .canvas-tag {display: none}
}
@media (max-width: 365px) {.studio-still-life {display: none}}
@media (prefers-reduced-motion: no-preference) {
  .scene:hover, .upload-button:hover {transform: translateY(-1px)}
  .scene:active, .upload-button:active, .primary-button:active {transform: translateY(1px)}
}

