@font-face {
  font-family: Barlow;
  src: url(../practice/fonts/BarlowCondensed-Bold.ttf) format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  font:
    16px/1.45 "Helvetica Neue",
    Arial,
    sans-serif;
  color: #312c26;
  background: #424840;
  --ink: #312c26;
  --rule: #a49576;
  --red: #843a2f;
  --paper: #f5e7c9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: clamp(5px, 2vw, 26px);
}
.sheet {
  max-width: 1200px;
  margin: auto;
  background: url(../practice/stock.svg), #efdfbd;
  border: 5px solid #39362d;
  padding: clamp(12px, 2.5vw, 32px);
}
header,
header a,
.row,
.transport,
.timeline,
.tools,
.library,
.caption {
  display: flex;
  align-items: center;
  gap: 8px;
}
header {
  justify-content: space-between;
  border-bottom: 4px double var(--ink);
  padding-bottom: 6px;
}
header a {
  color: inherit;
  text-decoration: none;
  font:
    700 23px/1 Barlow,
    sans-serif;
}
header > span {
  font:
    italic 16px Georgia,
    serif;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2,
legend {
  font-family: Barlow, sans-serif;
  font-weight: 700;
}
h1 {
  font-size: clamp(43px, 6vw, 73px);
  line-height: 1.05;
  margin: 12px 0;
}
h2 {
  font-size: 27px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.library,
.row,
.tools,
.transport,
.timeline {
  flex-wrap: wrap;
}
.library {
  align-items: end;
  padding-bottom: 16px;
}
.library label {
  min-width: min(260px, 100%);
  margin: 0;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
}
.plate,
.panel,
.extras > div {
  border: 1px solid var(--ink);
}
.panel,
.extras > div {
  padding: 15px;
}
.caption {
  justify-content: space-between;
  padding: 8px 12px;
  background: #304a3d;
  color: #fff1d2;
  font:
    700 18px Barlow,
    sans-serif;
  overflow-wrap: anywhere;
}
.caption span {
  font:
    italic 14px Georgia,
    serif;
  flex-shrink: 0;
}
canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.transport,
.timeline {
  padding: 8px;
  border-top: 1px solid var(--rule);
}
.timeline button {
  font:
    italic 14px Georgia,
    serif;
  border: 0;
  min-height: 40px;
}
.timeline button[aria-current="step"] {
  border-bottom: 2px solid var(--red);
  font-weight: bold;
}
label {
  display: block;
  font:
    600 14px/1.3 Arial,
    sans-serif;
  margin: 8px 0;
}
input,
select {
  margin-top: 3px;
  width: 100%;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid var(--rule);
  background: #fff6de;
  font:
    16px Arial,
    sans-serif;
  color: inherit;
}
button,
.file {
  font:
    600 14px/1.2 Arial,
    sans-serif;
  border: 1px solid var(--ink);
  background: #faf0d9;
  color: inherit;
  min-height: 44px;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.red,
.tools [aria-pressed="true"] {
  background: var(--red);
  color: #fff3d9;
}
#play {
  background: var(--ink);
  color: #fff3d9;
}
.step {
  padding: 8px 0;
  margin: 8px 0;
  border-block: 1px solid var(--rule);
}
fieldset {
  margin: 8px 0;
  padding: 0;
  border: 0;
}
legend {
  font-size: 20px;
}
.tools {
  gap: 4px;
}
.hint,
.extras p {
  font-size: 14px;
  line-height: 1.45;
  margin: 8px 0;
}
.extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.file {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.file input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
}
.file:focus-within,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #18617b;
  outline-offset: 2px;
}
#video {
  width: min(560px, 100%);
  margin-top: 12px;
  background: #262b25;
}
#status {
  min-height: 24px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}
body.project .editor,
body.project header,
body.project h1,
body.project #video,
body.viewer .editor {
  display: none;
}
body.project .layout,
body.viewer .layout {
  display: block;
}
body.project .plate {
  max-width: min(100%, calc((100svh - 180px) * 1.44));
  margin: auto;
}
body.project .sheet {
  min-height: 95vh;
}
[hidden] {
  display: none !important;
}
@media (max-width: 710px) {
  .layout,
  .extras {
    grid-template-columns: 1fr;
  }
  .caption span {
    font-size: 12px;
  }
  .panel {
    padding: 12px;
  }
  .sheet {
    border-width: 3px;
  }
  header > span {
    font-size: 13px;
  }
  header img {
    width: 44px;
    height: auto;
  }
  .library label {
    min-width: 0;
    flex: 1 1 160px;
  }
  .transport button {
    padding: 6px;
    font-size: 13px;
  }
  .tools button {
    flex: 1;
  }
  .extras {
    gap: 8px;
  }
}

.note {
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
  font:
    italic 16px/1.45 Georgia,
    serif;
}
.timeline button {
  overflow-wrap: anywhere;
}

.browse {
  display: inline-flex;
  align-items: center;
  padding: 6px;
  min-height: 44px;
  color: var(--red);
  font-weight: 650;
}

.adult-capture {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.adult-capture h3 {
  font:
    700 21px/1.15 Barlow,
    sans-serif;
  margin: 0;
}
.adult-capture a {
  color: var(--red);
}
.mic-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
}
.mic-choice input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
}
.capture-strip {
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #85392d;
  color: #fff1cf;
}
#capture-message:empty {
  display: none;
}
