/*
 * backlot pages. The art direction is the one set by docs/plans/hosted-mcp/mockup.html
 * in jwaldrip/backlot: studio paperwork. Typed entries under violet printed labels,
 * rubber stamps for verdicts, 35mm film leader wherever there is picture.
 * Courier Prime and League Gothic are both under the SIL Open Font License 1.1.
 */

@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "League Gothic"; src: url("fonts/league-gothic-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #EEEFEA;
  --sheet: #F8F8F4;
  --ink: #1A1A1C;
  --ink2: #4C4D52;
  --violet: #4A3D8F;
  --violet2: #9289BF;
  --hair: #D4D0E3;
  --red: #B8232F;
  --film: #0E0E10;
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --gothic: "League Gothic", "Arial Narrow", sans-serif;
  --spr-h: url("img/sprocket-h.svg");
  --spr-v: url("img/sprocket-v.svg");
}

* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--mono); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--violet2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--violet); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font: 400 76px/.92 var(--gothic); letter-spacing: .004em; }
h2 { font: 700 19px/1.3 var(--mono); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button { font: inherit; color: inherit; }
code { font: 14px/1.5 var(--mono); }
b { font-weight: 700; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mk { width: 14px; height: 14px; flex: none; }

/* product chrome */
.topbar { display: flex; align-items: center; gap: 46px; padding: 16px 56px 13px; border-bottom: 3px double var(--violet); }
.wordmark { font: 400 34px/1 var(--gothic); letter-spacing: .012em; color: var(--ink); text-decoration: none; }
.topnav { display: flex; gap: 28px; font-size: 15px; }
.topnav a { color: var(--ink2); text-decoration: none; padding: 4px 0 3px; border-bottom: 2px solid transparent; }
.topnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.whoami { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--ink2); }
.whoami p { display: flex; flex-wrap: wrap; gap: 0 8px; }
.whoami p span:first-child { color: var(--ink); }
.whoami form { margin: 0; }

.page { padding: 40px 56px 112px; }
.lead { margin-top: 16px; max-width: 70ch; font-size: 17px; }
.who { margin-top: 12px; max-width: 78ch; font-size: 15px; color: var(--ink2); }
.aside { margin-top: 14px; max-width: 72ch; font-size: 14px; color: var(--ink2); }

/* printed form fields: violet labels, typed entries */
.fields { display: flex; flex-wrap: wrap; margin-top: 24px; border-top: 1px solid var(--violet); border-bottom: 1px solid var(--violet); }
.fields > div { padding: 9px 24px 10px 14px; border-left: 1px solid var(--hair); }
.fields > div:first-child { border-left: 0; padding-left: 0; }
.fields dt { font-size: 11px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.fields dd { margin-top: 4px; font-size: 15px; line-height: 1.35; }

/* rubber stamps */
.stamp { display: inline-block; padding: 5px 8px 3px; border: 2px solid currentColor; border-radius: 2px; font: 400 18px/1 var(--gothic); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; transform: rotate(-2.5deg); filter: url(#inkbleed); }
.stamp.red { color: var(--red); }
.stamp.violet { color: var(--violet); }
.stamp.ink { color: var(--ink); }
.stamp.faded { color: #8A8B90; }

.btn { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 12px 16px 11px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--sheet); font: 700 14px/1 var(--mono); white-space: nowrap; cursor: pointer; text-decoration: none; }
.linkish { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; text-decoration: underline; text-decoration-color: var(--violet2); text-underline-offset: 3px; cursor: pointer; }
.linkish:hover { text-decoration-color: var(--violet); }

.warn { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; max-width: 74ch; padding: 10px 0 10px 16px; border-left: 4px solid var(--red); font-size: 15px; }
.warn .mk { margin-top: 4px; color: var(--red); }
.leader { margin-top: 16px; max-width: 76ch; padding: 18px 20px; border: 1px dashed var(--violet2); color: var(--ink2); }

/* ---------- sign in ---------- */
.signin { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); min-height: 100vh; }
.signin-photo { position: relative; background: var(--film); }
.signin-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.pass { padding: 32px 64px 30px 56px; max-width: 900px; }
.pass .wordmark { font-size: 36px; }
.pass h1 { margin-top: 18px; max-width: 12em; font-size: 66px; }
.pass .lead { font-size: 16px; }
.terms { display: flex; margin-top: 22px; border-top: 1px solid var(--violet); border-bottom: 1px solid var(--violet); }
.terms > div { flex: 1 1 0; padding: 14px 22px 14px 0; }
.terms > div + div { padding: 14px 0 14px 22px; border-left: 1px solid var(--hair); }
.terms h2 { font-size: 16px; }
.marks { list-style: none; margin-top: 8px; }
.marks li { display: flex; gap: 10px; padding: 6px 0; font-size: 14px; line-height: 1.45; border-top: 1px solid var(--hair); }
.marks li:first-child { border-top: 0; }
.marks .mk { margin-top: 3px; color: var(--ink); }
.marks.no .mk { color: var(--red); }
.google { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 11px 18px 11px 14px; border: 1px solid #747775; border-radius: 4px; background: #fff; color: #1F1F1F; font: 500 15px/1 Roboto, Arial, Helvetica, sans-serif; text-decoration: none; }
.google:hover { background: #F3F5F7; }
.google svg { width: 20px; height: 20px; }
.stub { margin-top: 22px; padding-top: 14px; max-width: 72ch; border-top: 2px dashed var(--violet2); font-size: 13px; color: var(--ink2); }

/* ---------- creations ---------- */
.ledger { margin-top: 44px; }
.reel { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.reel th { padding: 0 16px 8px 0; border-bottom: 1px solid var(--violet); color: var(--violet); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.reel td { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.reel .c-frame { width: 250px; padding: 14px 21px; border-bottom-color: var(--film); background: var(--spr-v) 6px 0 / 7px 16px repeat-y, var(--spr-v) calc(100% - 6px) 0 / 7px 16px repeat-y, var(--film); }
.reel th.c-frame { padding-bottom: 8px; }
.reel .c-frame + td, .reel .c-frame + th { padding-left: 28px; }
.frame { display: block; width: 208px; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.frame video { width: 100%; height: 100%; object-fit: cover; }
.frame.blank { display: grid; place-items: center; padding: 8px; border: 1px dashed #55555B; background: transparent; color: #9A9A94; font-size: 12px; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.c-prod { min-width: 260px; }
.c-prod .title { font: 400 30px/1.02 var(--gothic); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.c-prod .title:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.c-prod .brief { margin-top: 8px; max-width: 62ch; color: var(--ink2); }
.c-prod .meta { margin-top: 8px; font-size: 13px; color: var(--ink2); }
.sep { margin: 0 8px; color: var(--violet2); }
.track { display: flex; list-style: none; gap: 3px; }
.track li { padding: 5px 8px 4px; border: 1px solid var(--ink); font-size: 12px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.track li.done { background: var(--ink); color: var(--sheet); }
.track li.running { background: var(--sheet); box-shadow: inset 0 -3px 0 var(--ink); }
.track li.failed { border-color: var(--red); background: var(--red); color: #fff; }
.track li.waiting, .track li.not_reached, .track li.unknown { border-style: dashed; border-color: #A9AAAE; color: #8A8B90; }
.c-status { min-width: 150px; }
.c-status p { margin-top: 10px; font-size: 13px; color: var(--ink2); max-width: 28ch; }
.c-spent { text-align: right; white-space: nowrap; }
.reel td.c-spent { padding-right: 0; }
.reel th.c-spent { padding-right: 0; text-align: right; }
.c-spent b { display: block; font: 400 30px/1 var(--gothic); letter-spacing: .02em; }
.c-spent span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink2); }

.empty { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; margin-top: 44px; }
.empty-photo { background: var(--film); }
.empty-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; }
.empty-copy > p:first-of-type { margin-top: 14px; max-width: 60ch; font-size: 17px; }
.steps { list-style: none; counter-reset: step; margin-top: 18px; }
/* The number hangs in the margin, so a step can mix bold words, links and text inline. */
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--hair); font-size: 15px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 42px; font: 400 34px/1 var(--gothic); color: var(--violet); }
.empty .steps li b { display: block; }

/* ---------- one creation ---------- */
.back { font-size: 14px; }
.head h1 { margin-top: 14px; max-width: 18em; }
.brief-full { margin-top: 18px; max-width: 78ch; color: var(--ink2); }
.stages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, 1fr); margin-top: 30px; list-style: none; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.stage { padding: 18px 24px 20px; border-left: 1px solid var(--violet); }
.stage:first-child { border-left: 0; padding-left: 0; }
.stage.on { background: var(--sheet); }
.stage.on:first-child { padding-left: 16px; }
.stage-top { display: flex; align-items: baseline; gap: 12px; }
.stage-n { font: 400 46px/.9 var(--gothic); color: var(--violet); }
.stage-name { font: 400 40px/.9 var(--gothic); }
.stage-top .stamp { margin-left: auto; }
.stage p { margin-top: 12px; font-size: 15px; }
.stage .stage-meta { color: var(--ink2); font-size: 13.5px; }
.tally { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; list-style: none; }
.tally li { flex: 1 1 0; min-width: 52px; padding: 6px 0 4px; border: 1px solid var(--ink); font-size: 13px; text-align: center; }
.tally li.ok { background: var(--ink); color: var(--sheet); }
.tally li.wip { border-style: dashed; }
.tally li.ng { border-color: var(--red); color: var(--red); text-decoration: line-through; }
.now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 22px; padding: 12px 0 12px 16px; border-left: 4px solid var(--ink); font-size: 17px; }
.now time { font-weight: 700; }
.now.quiet { border-left-color: var(--violet2); color: var(--ink2); font-size: 15px; }

.cut-sec { margin-top: 56px; }
.screening { margin-top: 18px; padding: 24px 26px; background: var(--spr-h) 0 7px / 16px 7px repeat-x, var(--spr-h) 0 calc(100% - 7px) / 16px 7px repeat-x, var(--film); }
.cut { width: 100%; aspect-ratio: 16 / 9; max-height: 70vh; background: #000; }
.cut-note, .review-link { margin-top: 12px; max-width: 78ch; font-size: 14px; color: var(--ink2); }
.review-link a { color: var(--ink); }

.report { margin-top: 56px; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; margin: 16px 0 24px; font-size: 13.5px; line-height: 1.5; }
.legend dt { font-weight: 700; }
.legend dd { color: var(--ink2); }
.shots { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.shots th { padding: 0 16px 8px 0; border-bottom: 1px solid var(--violet); color: var(--violet); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.shots td { padding: 14px 18px 14px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.shots tr.repaired td { border-bottom: 0; }
.c-shot { width: 34%; }
.c-takes { width: 14%; white-space: nowrap; }
.c-checks { width: 30%; }
.sid { font: 400 34px/1 var(--gothic); letter-spacing: .02em; }
.must { margin-top: 6px; max-width: 46ch; }
.scene { margin-top: 6px; font-size: 13px; color: var(--ink2); }
.take { position: relative; display: inline-grid; place-items: center; width: 42px; height: 32px; font-weight: 700; font-size: 16px; }
.take svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; }
.take.ok svg { stroke: var(--ink); stroke-width: 1.8; }
.take.ng { color: var(--ink2); }
.take.ng svg { stroke: var(--red); stroke-width: 2.4; }
.take.wip { border: 1.6px dashed var(--ink2); border-radius: 50%; width: 36px; height: 28px; margin: 2px 3px; }
.ng-tag { display: block; color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.no-take { font-size: 13px; color: var(--ink2); }
.chk { display: flex; gap: 7px; align-items: flex-start; }
.chk + .chk { margin-top: 4px; }
.chk .mk { margin-top: 4px; }
.chk em { display: block; color: var(--ink2); font-size: 13px; }
.chk em.names { font-style: normal; max-width: 40ch; }
.chk.bad { color: var(--red); }
.chk.bad em { color: var(--red); }
.chk.quiet { color: var(--ink2); }
.verdict p { margin-top: 8px; font-size: 13.5px; color: var(--ink2); }
tr.lineage > td { padding-top: 0; background: var(--sheet); border-bottom: 1px solid var(--hair); }
.lin-repair { display: flex; gap: 18px; align-items: flex-start; padding: 14px 16px 6px; border-left: 4px solid var(--red); }
.lin-repair .stamp { flex: none; margin-top: 2px; font-size: 20px; }
.lin-repair p { max-width: 86ch; font-size: 14.5px; }

/* ---------- connect ---------- */
.split { margin-top: 52px; max-width: 980px; }
.truths { list-style: none; counter-reset: truth; margin-top: 16px; }
.truths li { counter-increment: truth; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 12px; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.truths li::before { content: counter(truth); grid-row: span 2; font: 400 36px/1 var(--gothic); color: var(--violet); }
.truth-h { font-weight: 700; }
.address { margin-top: 60px; }
.address > p { margin-top: 12px; max-width: 72ch; }
.url-box { display: flex; margin-top: 16px; max-width: 780px; }
.url-box code { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--ink); border-right: 0; background: var(--sheet); font-size: 15px; overflow-wrap: anywhere; }
.howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 34px; }
.howto-col { padding-top: 16px; border-top: 2px solid var(--ink); }
.howto-col h3 { font: 400 34px/1 var(--gothic); letter-spacing: .02em; }
.howto .steps li { padding: 10px 0 10px 44px; font-size: 14.5px; }
.howto .steps li::before { top: 9px; width: 34px; font-size: 28px; }
.checked { margin-top: 20px; padding-top: 12px; max-width: 78ch; border-top: 2px dashed var(--violet2); font-size: 13px; color: var(--ink2); }
.keys { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 60px; align-items: start; margin-top: 64px; }
.keys-verdict { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 12px 16px; border-left: 4px solid var(--violet); background: var(--sheet); font-size: 15px; }
.keys-verdict .mk { margin-top: 4px; color: var(--violet); }
.keys-verdict.blocked { border-left-color: var(--red); }
.keys-verdict.blocked .mk { color: var(--red); }
.slots { list-style: none; margin-top: 22px; }
.slot { padding: 16px 0 18px; border-top: 1px solid var(--violet); }
.slot:last-child { border-bottom: 1px solid var(--violet); }
.vendor { font: 400 32px/1 var(--gothic); letter-spacing: .02em; }
.what { margin-top: 4px; font-size: 15px; color: var(--ink2); }
.slot-state { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 12px; font-size: 14.5px; }
.slot-form { margin-top: 14px; }
.slot-label { display: block; font-size: 11px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: var(--violet); }
.slot-in { display: flex; margin-top: 6px; max-width: 520px; }
.slot-input { flex: 1 1 auto; min-width: 0; padding: 10px 14px; border: 1px solid var(--ink); border-right: 0; border-radius: 0; background: var(--sheet); font: 15px/1.4 var(--mono); color: var(--ink); }
.slot-input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.slot-in .btn { border: 1px solid var(--ink); border-radius: 0; }
.slot-remove-form { margin-top: 8px; }
.saved-at { margin-top: 12px; font-size: 14px; color: var(--ink2); }
.saving { margin-top: 32px; font: 700 16px/1.3 var(--mono); }
.keys-main > p:not([class]) { margin-top: 10px; max-width: 70ch; }
.can { margin-top: 44px; background: var(--film); }
.can img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.can figcaption { padding: 14px 16px 16px; background: var(--paper); font-size: 14px; color: var(--ink2); }

@media (max-width: 1100px) {
  .page { padding: 32px 28px 96px; }
  .topbar { flex-wrap: wrap; gap: 14px 26px; padding: 14px 28px 12px; }
  .whoami { margin-left: 0; width: 100%; justify-content: space-between; }
  .signin, .empty, .keys, .howto { grid-template-columns: minmax(0, 1fr); }
  .signin-photo { min-height: 320px; }
  .pass { padding: 32px 28px; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage, .stage:first-child { padding: 16px 0; border-left: 0; border-top: 1px solid var(--violet); }
  .stage:first-child { border-top: 0; }
  .stage.on, .stage.on:first-child { padding: 16px; }
  .legend { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .can { margin-top: 0; }
}

@media (max-width: 760px) {
  h1 { font-size: 52px; }
  .pass h1 { font-size: 50px; }
  .terms { flex-direction: column; }
  .terms > div + div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--hair); }
  .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields > div { padding: 9px 10px 10px 12px; border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); }
  .fields > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fields > div:nth-child(-n+2) { border-top: 0; }
  .reel thead, .shots thead { display: none; }
  .reel, .reel tbody, .reel tr, .reel td, .shots, .shots tbody, .shots tr, .shots td { display: block; width: 100%; }
  .reel tr { margin-bottom: 26px; border-bottom: 1px solid var(--violet); }
  .reel td, .reel .c-frame + td { padding: 10px 0; border-bottom: 0; }
  .reel .c-frame { width: 100%; padding: 12px 21px; }
  .frame { width: 100%; }
  .c-prod, .c-status { min-width: 0; }
  .c-spent { text-align: left; }
  .shots tr { padding-bottom: 6px; border-bottom: 1px solid var(--violet); }
  .shots tr.repaired { border-bottom: 0; }
  .shots td { padding: 8px 0; border-bottom: 0; }
  .c-shot, .c-takes, .c-checks { width: 100%; }
  tr.lineage > td { padding: 0 0 12px; }
  .lin-repair { flex-direction: column; gap: 10px; }
  .url-box { flex-direction: column; }
  .url-box code { border-right: 1px solid var(--ink); border-bottom: 0; }
  .url-box .btn { justify-content: center; }
  .whoami { gap: 16px; }
  .whoami p span + span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
