/* The website's one stylesheet: one column that fits a 360-pixel phone screen. */
:root {
  color-scheme: dark;
  --ink: #f1ece4;
  --muted: #b8ad9f;
  --paper: #17121c;
  --panel: #231b2b;
  --accent: #f58c28;
  --error: #ff8a7a;
  --warning: #ffd27a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}
header .brand { font-weight: 700; color: var(--accent); text-decoration: none; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.5rem; }
nav a, button.link { min-width: 44px; justify-content: center; }
main { max-width: 40rem; margin: 0 auto; padding: 0 1rem 3rem; overflow-wrap: anywhere; }
h1 { font-size: 1.5rem; line-height: 1.25; }
h2 { font-size: 1.15rem; margin-top: 1.5rem; }
a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: var(--accent);
}
a, button, label.preset, #share-link { min-height: 44px; }
label { display: block; margin: 0.75rem 0 0.25rem; }
input, button, progress { width: 100%; font: inherit; }
input {
  padding: 0.6rem;
  border: 1px solid var(--muted);
  border-radius: 0.4rem;
  background: var(--panel);
  color: var(--ink);
}
input::file-selector-button { min-height: 44px; font: inherit; }
input[type="radio"] { flex: none; width: auto; margin-right: 0.4rem; }
fieldset {
  min-inline-size: 0;
  border: 1px solid var(--muted);
  border-radius: 0.4rem;
  margin: 1rem 0;
}
label.preset { display: flex; align-items: center; margin: 0.4rem 0; }
button, .button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0.7rem;
  border: 0;
  border-radius: 0.4rem;
  background: var(--accent);
  color: #1b1208;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }
button.secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--muted); }
button.link {
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
}
form.inline { display: inline; }
progress { height: 0.75rem; margin-top: 1rem; }
.error { color: var(--error); }
.warning { color: var(--warning); }
.credit, .preset, .status { color: var(--muted); }
ul.jobs, ul.showcase, ul.steps { padding-left: 1.2rem; }
ul.jobs li, ul.showcase li { margin: 0.4rem 0; }
.share-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
#copy-share-link { margin: 0; }
#share-copy-status:empty { margin: 0; }

@media (max-width: 30rem) {
  .jobs li { padding-bottom: 0.5rem; }
  .jobs li a { display: flex; width: fit-content; }
  .jobs .status { margin-inline-start: 0.5rem; }
}

@media (max-width: 30rem) and (orientation: portrait) {
  #viewer-slot .splat-viewer { aspect-ratio: 1; }
}
