:root {
  --paper: #f4f0e8;
  --ink: #1c1916;
  --muted: #6d645b;
  --line: #ddd4c8;
  --field: #fffdf9;
  --accent: #1b4332;
  --accent-hover: #16382a;
  --danger: #8a2f1f;
  --rec: #b42318;
  --radius: 10px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Figtree, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.masthead {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

h1 {
  margin: 0 0 10px;
  font-family: Fraunces, Georgia, serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 38em;
  color: var(--muted);
}

.job {
  margin: 0 0 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.job p {
  margin: 0 0 14px;
  max-width: 42em;
}

.job p:last-child {
  margin-bottom: 0;
}

.job ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.job li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 18px;
  max-width: 42em;
}

.job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.job .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 22px;
}

.job .meta div {
  padding: 14px 16px;
  background: #ebe4d8;
  border-radius: var(--radius);
}

.job .meta dt {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.job .meta dd {
  margin: 0;
  font-weight: 600;
}

.job .meta .span-2 {
  grid-column: 1 / -1;
}

.block {
  margin: 0 0 32px;
}

h2 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.section-note {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
.grid .span-2 { grid-column: 1 / -1; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

label span em,
.drop-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
}

input, select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 22px;
  border: 1px dashed #c9bba8;
  border-radius: var(--radius);
  background: var(--field);
  cursor: pointer;
}

.drop.over { background: #efe8dc; }
.drop input { display: none; }
.drop-title { font-weight: 600; }
.drop-hint { color: var(--muted); font-size: 14px; font-weight: 400; }

blockquote {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: #ebe4d8;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.stage {
  position: relative;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ece7df;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.rec-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 12, 10, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rec-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rec);
}

.timer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.timer-max { color: var(--muted); font-weight: 500; }

.meter {
  flex: 1;
  height: 4px;
  background: #ddd4c8;
  border-radius: 99px;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #f7f3ec;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn.ghost:hover:not(:disabled) { background: #ebe4d8; }
.btn.danger { background: var(--danger); }
.btn.submit {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  font-size: 16px;
}

.upload-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.error, .form-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.success {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.success h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 32px;
  text-transform: none;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 500;
}

.success p { color: var(--muted); }

@media (max-width: 700px) {
  h1 { font-size: 32px; }
  .grid.two, .grid.three,
  .job .meta { grid-template-columns: 1fr; }
}
