@font-face {
  font-family: Studio;
  src: url("/static/assets/studio-inter.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #1b151a;
  --paper: #f5f4f0;
  --line: #d3c2d2;
  --soft: #e9eae4;
  --lime: #f58249;
  --muted: #644e62;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.5 Studio,
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: white;
  border: 1px solid var(--line);
  padding: 0.66rem 1.05rem;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
}
button:hover,
.button:hover {
  background: var(--soft);
  border-color: #956d92;
}
button:disabled {
  opacity: 0.52;
  cursor: default;
}
.primary,
.button.primary {
  background: var(--lime);
  border-color: var(--ink);
}
.primary:hover {
  background: #f46d2a;
}
.dark {
  background: var(--ink);
  color: white;
}
.dark:hover {
  background: #4b3b4a;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #687d26;
  outline-offset: 2px;
}
header,
main,
footer {
  width: min(1440px, 94%);
  margin: auto;
}
header {
  min-height: 77px;
  border-bottom: 1px solid var(--ink);
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  padding: 0.8rem 0;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.085em;
}
.brand i {
  width: 0.56rem;
  height: 0.56rem;
  background: var(--lime);
  border: 1px solid var(--ink);
  margin: 0.15rem 0 0 0.2rem;
}
.nav,
.utilities,
.row,
.tabs {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.utilities {
  margin-left: auto;
}
.nav a,
.link {
  font-size: 0.9rem;
  text-underline-offset: 5px;
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  text-decoration: underline;
}
main {
  min-height: calc(100vh - 190px);
  padding: 2.3rem 0 4rem;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2.25rem, 5.5vw, 5.5rem);
  letter-spacing: -0.075em;
  line-height: 1.02;
  margin: 0.7rem 0 1.05rem;
}
h2 {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
}
h3 {
  font-size: 1.12rem;
  letter-spacing: -0.025em;
}
.lead {
  max-width: 65ch;
  color: var(--muted);
  margin: 0.3rem 0 1.2rem;
}
.tabs {
  gap: 0;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 1.45rem;
}
.tabs a {
  padding: 0.72rem 1rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  font-weight: 600;
  white-space: nowrap;
}
.tabs a.active {
  border-bottom-color: var(--ink);
  background: var(--lime);
}
.lab {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.surface,
.preview,
.block {
  border: 1px solid var(--line);
  padding: clamp(1.1rem, 2.2vw, 2rem);
  background: white;
}
.stack,
.fields,
.groups {
  display: grid;
  gap: 1rem;
}
.block + .block {
  margin-top: 1rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}
.stack > h2,
.stack > h3 {
  margin-top: 0.35rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}
label small,
small,
.muted {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b598b3;
  background: #fcfcfa;
  border-radius: 0;
  line-height: 1.4;
}
textarea {
  resize: vertical;
  min-height: 105px;
}
.check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.9rem;
}
.check input {
  margin-top: 0.25rem;
  accent-color: #423341;
}
.drop,
.meta-drop {
  border: 1px dashed #a989a7;
  background: #f7f8f3;
  padding: 1rem;
}
.drop input {
  padding: 0.45rem;
  border: 0;
  background: transparent;
}
.preview {
  background: #271e26;
  color: #f4f5f1;
}
.preview h2 {
  margin-bottom: 1rem;
}
.viewfinder {
  aspect-ratio: 4/3;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid #5d495c;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, #ffffff08 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #ffffff08 31px 32px);
  color: #d0bdce;
}
.viewfinder b {
  display: block;
  color: white;
  font-size: 1.1rem;
}
.preview .muted {
  color: #cdbbcc;
}
.media {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #1c161c;
}
.media.audio {
  margin: 1rem 0;
  background: none;
}
.preview pre,
.result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.result {
  min-width: 0;
}
.result .row {
  margin-top: 1rem;
}
.state {
  padding: 0.65rem 0.85rem;
  background: #f9e6d8;
  border-left: 3px solid #6d566c;
  color: #2b212a;
}
.warn {
  background: #fff0e9;
  border-color: #af542c;
}
.quiet {
  font-size: 0.87rem;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.fee {
  font-size: 1.15rem;
  font-weight: 650;
}
.history {
  margin-top: 2rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.cards > article {
  border: 1px solid var(--line);
  padding: 1rem;
  background: white;
}
.cards .media {
  max-height: 300px;
}
.cards p,
.result p,
.entry span {
  overflow-wrap: anywhere;
}
.entry {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.entry > strong:last-child {
  margin-left: auto;
}
.form-card {
  width: min(100%, 580px);
  margin: 2rem auto;
}
.form-card h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}
.subnav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.subnav .chosen {
  background: var(--ink);
  color: white;
}
.note {
  font-size: 0.9rem;
  line-height: 1.5;
}
.price {
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.06em;
  font-weight: 640;
}
.admin {
  display: grid;
  gap: 1rem;
}
.admin details {
  background: white;
  border: 1px solid var(--line);
  padding: 1rem;
}
.admin summary,
summary {
  cursor: pointer;
  font-weight: 650;
}
.admin details[open] > summary {
  margin-bottom: 1rem;
}
.meta-fields {
  display: grid;
  gap: 0.8rem;
}
.meta-workbench > * {
  margin-bottom: 1rem;
}
.meta-workbench video,
.meta-workbench img {
  max-width: 100%;
  max-height: 380px;
}
.meta-workbench fieldset {
  border: 1px solid var(--line);
}
.meta-workbench label {
  margin: 0.35rem 0;
}
.meta-workbench input[type="radio"] {
  width: auto;
}
.meta-workbench [hidden],
[hidden] {
  display: none !important;
}
#toast {
  position: fixed;
  z-index: 6;
  bottom: 1.5rem;
  right: 3%;
  padding: 1rem 1.3rem;
  max-width: min(480px, 94vw);
  background: #1b151a;
  color: white;
  box-shadow: 0 3px 12px #0003;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  z-index: 9;
}
footer {
  border-top: 1px solid var(--ink);
  padding: 1.25rem 0 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  .lab {
    grid-template-columns: 1fr;
  }
  .preview {
    padding: 1rem;
  }
  .viewfinder {
    aspect-ratio: 2.3;
  }
  .nav {
    order: 3;
    width: 100%;
    gap: 1.05rem;
  }
  header {
    gap: 0.6rem;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .tabs a {
    padding: 0.65rem 0.8rem;
  }
  .utilities {
    gap: 0.45rem;
  }
  .utilities .button {
    padding: 0.5rem 0.65rem;
  }
  main {
    padding-top: 1.15rem;
  }
  .surface {
    padding: 1rem;
  }
}
@media (max-width: 430px) {
  header,
  main,
  footer {
    width: 92%;
  }
  .brand {
    font-size: 1.8rem;
  }
  .utilities .button {
    font-size: 0.85rem;
  }
  .row > * {
    max-width: 100%;
  }
  .nav {
    font-size: 0.85rem;
  }
}

.lab > * {
  min-width: 0;
}
.preview p,
.preview small {
  overflow-wrap: anywhere;
}
.surface .button {
  color: var(--ink);
}
.preview .button:not(.primary) {
  color: var(--ink);
}
