/* Deliberately plain. Black, white and vermilion, system fonts, one column. */
:root {
  --black: #141210;
  --accent: #E8452C;
  --accent-dark: #C4351F;
  --white: #FFFFFF;
  --grey: #6B655F;
  --line: #E2DDD7;
  --ok: #1E7A46;
  --err: #B3261E;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
code { font-size: 0.85em; word-break: break-all; }

.wrap { width: min(640px, 100% - 32px); margin-inline: auto; }
main { padding: 32px 0 48px; }
h1 { font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1.05; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.2rem; margin: 0 0 0.6em; }
h3 { font-size: 1rem; margin: 1.2em 0 0.4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; }
.small { font-size: 0.88rem; color: var(--grey); }
.wordmark { font-weight: 800; color: var(--accent); margin: 0; }
.wordmark a { text-decoration: none; color: inherit; }

.block { border-top: 2px solid var(--black); padding-top: 18px; margin-top: 36px; }

label { display: block; font-weight: 600; margin: 0.9em 0 0.3em; }
input[type="text"], input[type="email"], input[type="datetime-local"], input[type="file"], textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--white);
  border: 1.5px solid var(--line); border-radius: 4px; padding: 0.5em 0.65em;
}
input:focus, textarea:focus, select:focus { border-color: var(--black); outline: none; }
textarea { min-height: 5em; resize: vertical; }
label.check { display: flex; gap: 0.5em; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 0.3em; accent-color: var(--accent); }
fieldset { border: 0; padding: 0; margin: 1.2em 0 0; }
legend { font-weight: 600; padding: 0; }

button, .button {
  display: inline-block; font: inherit; font-weight: 700; color: var(--white);
  background: var(--accent); border: 2px solid var(--black); border-radius: 4px;
  padding: 0.5em 1.1em; margin-top: 1.2em; cursor: pointer; text-decoration: none;
}
button:hover, .button:hover { background: var(--accent-dark); color: var(--white); }
button.secondary, .button.secondary { background: var(--white); color: var(--black); }
button.secondary:hover, .button.secondary:hover { background: #F4F1EE; }
button.link { color: var(--black); background: none; border: 0; padding: 0; margin: 0; font-weight: 600; text-decoration: underline; }
button.link:hover { color: var(--accent-dark); }
button:disabled { opacity: 0.5; cursor: progress; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.buttons .button { margin-top: 0; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li .small { margin-top: 2px; }
.shows img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; flex: none; }
.block-intro { margin-top: 36px; font-weight: 600; }

.flash { padding: 0.5em 0.75em; border-radius: 4px; font-weight: 600; }
.flash.ok { background: #E3F3E9; color: var(--ok); }
.flash.err { background: #FBE9E7; color: var(--err); }

.landing { padding-top: 18vh; }
.landing h1 { font-size: clamp(2.6rem, 10vw, 4.2rem); }

.prose ul { padding-left: 1.2em; }
.prose li { margin: 0.3em 0; }
.prose h2 { margin-top: 2em; }

.foot { padding: 0 0 40px; font-size: 0.88rem; color: var(--grey); }
.message { padding: 18vh 0; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 10px 18px; border-radius: 4px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }
#toast.err { background: var(--err); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.artist-photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: 4px; display: block; margin-bottom: 18px; }
.links { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.words { margin: 6px 0 4px; white-space: pre-line; }

/* Dashboard */
.hint { font-size: 0.88rem; color: var(--grey); margin: 0.25em 0 0; }
.group { border-left: 3px solid var(--line); padding-left: 14px; margin-top: 1.4em; }
.group > legend { margin-bottom: 0; }
.preview { border: 2px solid var(--black); border-radius: 4px; padding: 16px; margin-top: 1.4em; }
.preview img { width: 100%; max-width: 360px; aspect-ratio: 4 / 5; object-fit: contain; background: var(--black); display: block; border-radius: 2px; }
.preview .err { color: var(--err); }
.preview textarea { min-height: 10em; }
.preview h3 { margin-top: 0; }
.preview ul { padding-left: 1.2em; margin: 0.4em 0 0; }
.qr { width: 160px; height: 160px; display: block; margin: 8px 0; image-rendering: pixelated; }
.avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; display: block; margin-top: 8px; }
[hidden] { display: none !important; }
.formats { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.formats label.check { margin: 0.3em 0; }
label.check:has(input:disabled) { opacity: 0.45; }

.modes { display: inline-flex; border: 2px solid var(--black); border-radius: 4px; overflow: hidden; margin: 0 0 6px; }
.modes label { margin: 0; padding: 0.35em 1.1em; font-weight: 700; cursor: pointer; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes label:has(input:checked) { background: var(--black); color: var(--white); }
.modes label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }
.slides { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.slides img { width: 80%; max-width: 320px; flex: none; aspect-ratio: 4 / 5; object-fit: contain; background: var(--black); border-radius: 2px; scroll-snap-align: start; }
.slides img:only-child { width: 100%; max-width: 360px; }
.tabs { display: flex; gap: 18px; margin-bottom: 12px; }
.tab { margin: 0; padding: 0 0 4px; background: none; color: var(--grey); border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 700; }
.tab:hover { background: none; color: var(--black); }
.tab[aria-selected="true"] { color: var(--black); border-bottom-color: var(--accent); }
#pv-email { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
