@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #18241f;
  background: #fbfcfb;
  font-synthesis: none;
  --line: #dbe1dd;
  --muted: #65736b;
  --accent: #d9f065;
}
.payment-options {
  border: 0;
  padding: 0;
  margin: 18px 0;
}
.payment-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.payment-buttons button {
  min-width: 110px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-weight: 600;
}
.payment-buttons button[aria-pressed="true"] {
  border: 2px solid #18241f;
  background: var(--accent);
}
.payment-buttons button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.payment-icon {
  font-size: 28px;
  line-height: 1;
}
.payment-buttons button:focus-visible {
  outline: 3px solid #65736b;
  outline-offset: 3px;
}
#invoice-qr {
  max-width: 100%;
  height: auto;
  background: white;
}
.input-tools {
  margin: 12px 0 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.input-tools summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.launch-explainer {
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #84a518;
  outline-offset: 3px;
}
header,
main,
footer {
  max-width: 1300px;
  margin: auto;
  padding-left: 40px;
  padding-right: 40px;
}
header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.mark {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: var(--accent);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 8px 4px;
  font-weight: 600;
}
.notice {
  text-align: center;
  background: #eaf3c4;
  padding: 10px;
  font-size: 14px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 46px 0 34px;
  gap: 24px;
}
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  font-weight: 500;
}
h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -1.8px;
  margin-top: 10px;
}
.page-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 2px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.studio {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.section-heading > span {
  font-size: 14px;
  color: var(--muted);
}
.status {
  background: #eef1ee;
  padding: 5px 10px;
  border-radius: 30px;
}
.stream {
  aspect-ratio: 16/10;
  background: #e9eeea;
  overflow: hidden;
  border-radius: 4px;
  display: grid;
  place-items: center;
}
.stream iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.stream-empty {
  text-align: center;
  padding: 30px;
  color: #53645a;
}
.stream-empty strong {
  display: block;
  font-weight: 500;
  font-size: 18px;
}
.stream-empty p {
  font-size: 14px;
  max-width: 290px;
  line-height: 1.5;
}
.pen-symbol {
  font-size: 76px;
  font-family: serif;
  display: block;
  transform: rotate(-12deg);
  color: #8c9d90;
  margin-bottom: 8px;
}
.stream-caption {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 16px;
  padding: 14px 0;
}
.bids {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.bids ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bids li {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 15px;
}
.bids li .rank {
  font-size: 13px;
  color: var(--muted);
  width: 20px;
}
.bids li strong {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.empty {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.draw-panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 24px;
}
.draw-panel h2 {
  font-size: 21px;
  margin-top: 5px;
}
.countdown {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.countdown strong {
  display: block;
  color: #18241f;
  font-size: 24px;
  font-family: "Space Grotesk", sans-serif;
  font-variant-numeric: tabular-nums;
}
.canvas-wrap {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  aspect-ratio: 1;
  max-height: 390px;
  margin: auto;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
#canvas-hint {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 45%;
  text-align: center;
  color: #9aa39d;
  font-size: 15px;
  line-height: 1.6;
  pointer-events: none;
}
.tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0 16px;
}
.tools button {
  font-size: 13px;
  margin-left: 8px;
}
.fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: #18241f;
  min-height: 44px;
  font-size: 16px;
}
input:focus,
select:focus {
  outline: 2px solid #8ea932;
  outline-offset: 1px;
}
.consent {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
}
.consent input {
  margin: 3px 0 0;
  flex-shrink: 0;
}
.primary {
  background: var(--accent);
  border: 1px solid #ccdf69;
  width: 100%;
  padding: 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
}
.primary:hover:not(:disabled) {
  background: #cce84d;
}
.fine-print {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
#message {
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.5;
}
.error {
  color: #ac3426;
}
.receipt {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
}
.receipt a {
  display: block;
  text-decoration: underline;
  font-weight: 600;
}
.receipt textarea {
  font-size: 12px;
  height: 95px;
  resize: vertical;
}
.sheet-section {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.sheet-section h2 {
  margin-top: 7px;
}
.sheet-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
}
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  background: #eef1ee;
  padding: 12px;
}
.tile {
  aspect-ratio: 1;
  background: white;
  border: 1px solid var(--line);
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}
.tile.active {
  border: 2px solid #92a633;
  background: #f7fae8;
}
.tile-number {
  position: absolute;
  top: 5px;
  left: 6px;
  font-size: 11px;
  color: #839088;
}
.tile svg {
  width: 90%;
  height: 90%;
  margin-top: 5px;
}
.tile.queued {
  background: #f4f6f2;
}
.tile-state {
  font-size: 10px;
  color: var(--muted);
}
.sheet-note {
  padding-top: 25px;
}
.sheet-note h3 {
  font-size: 27px;
}
.sheet-note p {
  color: var(--muted);
  line-height: 1.7;
}
#archive {
  padding: 50px 0;
}
.archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.archive-entry {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.archive-entry h3 {
  margin-bottom: 12px;
}
.archive-entry img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  background: #eee;
}
.archive-entry .sheet-grid {
  gap: 2px;
  padding: 5px;
}
.archive-entry .tile-number {
  display: none;
}
footer {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  padding-bottom: 32px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
dialog {
  max-width: 540px;
  width: calc(100% - 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  color: #18241f;
}
dialog::backdrop {
  background: #18241f66;
}
dialog li,
dialog p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}
dialog .close {
  float: right;
}
dialog h2 {
  margin: 24px 0;
}
#card-container {
  margin: 16px 0;
}
[hidden] {
  display: none !important;
}
.admin-wrap {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.admin-tools button {
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
}
.job-card {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}
.job-card svg {
  width: 120px;
  height: 120px;
}
.job-card button {
  margin: 10px;
  padding: 8px;
}
.job-card p {
  font-size: 14px;
}
.admin-wrap pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
@media (min-width: 900px) {
  .canvas-wrap {
    width: 100%;
    max-width: 390px;
  }
}
@media (max-width: 900px) {
  header,
  main,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .studio {
    gap: 20px;
  }
  .page-heading {
    align-items: start;
  }
  .page-heading p {
    max-width: 260px;
  }
  h1 {
    font-size: 35px;
  }
  .draw-panel {
    padding: 18px;
  }
  .sheet-layout {
    gap: 25px;
    grid-template-columns: 1fr 220px;
  }
}
@media (max-width: 680px) {
  header {
    height: 78px;
  }
  .brand {
    font-size: 17px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  nav a:first-child {
    display: none;
  }
  .page-heading {
    display: block;
    padding: 28px 0;
  }
  .page-heading p {
    max-width: none;
    margin-top: 18px;
  }
  .studio {
    grid-template-columns: 1fr;
  }
  .watch {
    display: contents;
  }
  .watch > .section-heading,
  .stream,
  .stream-caption {
    order: 0;
  }
  .draw-panel {
    order: 1;
  }
  .bids {
    order: 2;
    margin-top: 6px;
  }
  .stream {
    aspect-ratio: 16/9;
  }
  .stream-caption {
    padding: 0;
  }
  .canvas-wrap {
    max-height: none;
  }
  .sheet-layout {
    grid-template-columns: 1fr;
  }
  .sheet-note {
    padding: 0;
  }
  .sheet-grid {
    gap: 3px;
    padding: 6px;
  }
  .sheet-section {
    margin-top: 35px;
  }
  footer {
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .section-heading {
    margin-bottom: 12px;
  }
}
