main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: 'intro art' 'drop drop' 'guide guide';
  gap: clamp(18px, 2vw, 30px) 4%;
  padding: clamp(14px, 1.5vw, 22px) 0 24px;
}
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font: 700 1em/1 var(--hand); }
.intro { grid-area: intro; align-self: center; }
.sectionno,.time { color: var(--blue); }
h1 { font-size: clamp(49px, 6.2vw, 94px); letter-spacing: -.045em; line-height: .94; margin: 12px 0 20px; }
h1 em { font-style: normal; background: linear-gradient(transparent 60%, #bde9ed 60% 90%, transparent 90%); }
.lead { max-width: 36ch; font-size: clamp(16px, 1.55vw, 20px); color: var(--mute); }
figure { grid-area: art; align-self: center; min-width: 0; padding: clamp(12px, 2vw, 25px); border: 1px solid var(--line); background: #fafdfbba; box-shadow: 5px 5px 0 #d2e6e7; }
.labelrow,.sample,.drop { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.labelrow { align-items: flex-start; color: var(--mute); font-size: 10px; }
.labelrow > :last-child { text-align: right; }
.sheet {
  position: relative;
  margin: 10px 0;
  background: linear-gradient(transparent calc(50% - .5px), var(--line) 0 calc(50% + .5px), transparent 0),
    repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 24px);
}
.sheet svg { width: 100%; display: block; filter: drop-shadow(0 6px 5px #18434b33); }
.sample { justify-content: flex-start; gap: 8px 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; font: 700 25px/1.02 var(--hand); }
.time { font: 700 12px var(--mono); padding: 5px 7px; background: var(--ice); }
.sample small { margin-left: auto; color: var(--mute); }
.drop {
  grid-area: drop;
  position: relative;
  flex-wrap: wrap;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 32px);
  padding-bottom: 38px;
  border: 1px dashed var(--blue);
  background-color: var(--ice);
}
.drop.over { outline: 2px solid var(--blue); outline-offset: 3px; background-color: #c6ebee; }
.drop h2 { font-size: clamp(29px, 3.5vw, 45px); margin: 4px 0 7px; }
.note,#status { font-size: 14px; color: var(--mute); }
#status { flex-basis: 100%; min-width: 0; border-top: 1px solid var(--line); padding-top: 10px; overflow-wrap: anywhere; }
#status[data-state="idle"] { position: absolute; border: 0; padding: 0; }
#status[data-state="idle"] .signal { display: none; }
button { border: 0; border-radius: 2px; cursor: pointer; }
#choose { background: var(--blue); color: white; padding: 15px 18px; font: 700 15px/1.4 system-ui, sans-serif; box-shadow: 3px 3px 0 #91c9cf; }
#choose:hover { background: var(--ink); }
#send,#txt { margin-inline: auto; justify-self: center; }
@media (prefers-reduced-motion: no-preference) {
  #status[data-state="selected"] + #send:not([hidden]) { animation: send-flicker .55s ease-out; }
  #status[data-state="transcribing"] .signal path:first-child {
    transform-origin: center;
    animation: signal-pulse .8s ease-in-out infinite alternate;
  }
  #status[data-state="transcribing"] #status-text { animation: status-pulse 1.25s ease-in-out infinite alternate; }
}
@keyframes signal-pulse { from { transform: scaleY(.55); } to { transform: scaleY(1.2); } }
@keyframes status-pulse { to { opacity: .7; } }
@keyframes send-flicker {
  0% { opacity: .45; }
  35% { opacity: 1; }
  60% { opacity: .7; }
  100% { opacity: 1; }
}
button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wave { position: absolute; bottom: 0; left: 0; width: 100%; height: 28px; pointer-events: none; color: #558f97; }
.wave rect { animation: travel 10s linear infinite; }
.over .wave rect { animation-play-state: paused; }
@keyframes travel { to { transform: translateX(160px); } }
@media (prefers-reduced-motion: reduce) { .wave rect { animation: none; } }
.guide { grid-area: guide; border-top: 1px solid var(--line); padding-top: 17px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 14px; }
.steps article { border-left: 2px solid var(--line); padding-left: 14px; }
h3 { font-size: 30px; }
.steps p { color: var(--mute); font-size: 14px; margin-top: 5px; }
@media (max-width: 800px) {
  main { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'drop' 'art' 'guide'; gap: 16px; }
  h1 { font-size: clamp(44px, 9.8vw, 72px); }
  .sheet svg { max-height: 220px; }
  .drop { display: grid; gap: 14px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 15px; }
}
