/* Fonts: self-hosted, SIL Open Font License 1.1. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-100-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-100-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(fonts/big-shoulders-display-500-900-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url(fonts/big-shoulders-display-500-900-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/courier-prime-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Courier Prime';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/courier-prime-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The Call Sheet: same tokens as delivertuesday.com. Dark only, by design. */
:root {
  color-scheme: dark;
  --black: #0E0B09; --black-2: #17120E; --black-3: #211A15;
  --bone: #EDE6DA; --bone-dim: rgba(237, 230, 218, 0.72); --grey: #8F867D;
  --rule: rgba(237, 230, 218, 0.15); --rule-strong: rgba(237, 230, 218, 0.32);
  --orange: #FF6B00; --green: #9FBF8F; --red: #FF8A6B;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --type: "Courier Prime", "Courier New", monospace;
  --gutter: max(16px, clamp(16px, 3vw, 40px));
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--black); color: var(--bone); font: 16px/1.5 var(--text); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
code { font: 0.9rem var(--type); word-break: break-all; color: var(--bone); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
::selection { background: var(--orange); color: var(--black); }

/* Type */
.type { font-family: var(--type); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--grey); }
.dim { color: var(--bone-dim); }
.small { font-size: 0.9rem; }
.o { color: var(--orange); }
.hd { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.9; text-wrap: balance; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: 0.95; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 8px 0 20px; }
.h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.lede { font-size: 1.1rem; color: var(--bone-dim); max-width: 60ch; margin-top: 18px; }
.pre { white-space: pre-wrap; }

/* Wordmark */
.wm { display: inline-flex; align-items: baseline; line-height: 1; white-space: nowrap; font-family: var(--text); font-weight: 800; font-variation-settings: "wdth" 82; letter-spacing: -0.04em; font-size: 1.6rem; }
.wm .dot { display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--orange); margin-left: 0.06em; }

/* Frame */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px var(--gutter); border-bottom: 1px solid var(--rule); }
.bar-home { text-decoration: none; }
.bar-tag { color: var(--orange); }
.bar-who { margin-left: auto; color: var(--grey); display: flex; gap: 14px; align-items: center; }
.main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 96px; }
.foot { padding: 18px var(--gutter); border-top: 1px solid var(--rule); color: var(--grey); text-transform: none; letter-spacing: 0; }
.narrow { max-width: 640px; }
.narrow > * + * { margin-top: 18px; }
.intro { margin-bottom: 40px; }
.intro .h1 { margin-top: 10px; }
.page-head { margin-bottom: 40px; }
.page-head .h1 { margin: 8px 0 10px; }

/* Buttons: rectangular, no pills, no shadows */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border: 0; border-radius: 0; cursor: pointer; text-decoration: none;
  background: var(--orange); color: var(--black); font: 900 1.25rem var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.btn:hover { background: var(--bone); }
.btn-line { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.btn-line:hover { background: var(--bone); color: var(--black); }
.btn-small { padding: 9px 14px; font-size: 1rem; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; background: var(--grey); }
.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; color: inherit; }
.link:hover { color: var(--orange); }

/* Messages */
.alert, .notice { padding: 14px 18px; margin: 0 0 28px; border-left: 3px solid var(--orange); background: var(--black-2); max-width: 70ch; }
.alert { border-left-color: var(--red); }
.notice.warn { border-left-color: var(--red); }
.notice code { display: inline-block; margin: 8px 0 2px; }
.callout { border-left: 2px solid var(--orange); padding: 4px 0 4px 16px; margin: 28px 0; color: var(--bone-dim); max-width: 70ch; }
.empty { color: var(--grey); padding: 24px 0; border-top: 1px solid var(--rule); }
.ok { color: var(--green); margin-bottom: 16px; }

/* Forms */
.stack { display: grid; gap: 22px; max-width: 460px; }
.brief { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.brief-main { min-width: 0; }
fieldset { border: 0; margin: 0 0 40px; padding: 0; min-width: 0; }
legend { padding: 0 0 10px; margin-bottom: 18px; width: 100%; border-bottom: 2px solid var(--bone); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.fields .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label.f > span:first-child, .q { font-family: var(--type); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
input[type=text], input[type=email], input[type=date], input:not([type]), textarea, select {
  font: 400 1.08rem var(--text); color: var(--bone); background: transparent; border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0; padding: 8px 0; width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--orange); }
textarea { resize: vertical; min-height: 120px; }
input[type=date] { color-scheme: dark; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: block; padding: 9px 14px; border: 1px solid var(--rule-strong); font-size: 0.95rem; }
.choice input:checked + span { background: var(--bone); color: var(--black); border-color: var(--bone); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.hint { color: var(--grey); font-size: 0.9rem; margin-top: 6px; }
.cf-turnstile { min-height: 65px; }

/* Brief side panel: what's still missing */
.side { position: sticky; top: 24px; border: 1px solid var(--rule); background: var(--black-2); padding: 22px; }
.side .btn { width: 100%; margin-top: 16px; }
.check { list-style: none; padding: 0; margin: 16px 0; }
.check li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.check li::before { content: "○"; color: var(--grey); width: 1em; flex: none; }
.check li.ok { color: var(--grey); margin: 0; }
.check li.ok::before { content: "●"; color: var(--orange); }
.promise { margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--bone); font-size: 0.92rem; color: var(--bone-dim); display: grid; gap: 10px; }
.promise b { color: var(--bone); font-weight: 600; }
.ref { display: inline-block; margin-top: 18px; padding: 6px 10px; background: var(--black-2); border: 1px solid var(--rule); }

/* Producer desk */
.desk-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 28px; margin-bottom: 28px; }
.desk-head .type { color: var(--grey); }
.tabs { margin-left: auto; display: flex; gap: 18px; }
.tabs a { text-decoration: none; color: var(--grey); font-family: var(--type); text-transform: uppercase; font-size: 0.8rem; }
.tabs a.on { color: var(--bone); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
.tbl-wrap { overflow-x: auto; max-width: 100%; }
.tbl td:first-child a { overflow-wrap: anywhere; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 400 0.75rem var(--type); letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); padding: 10px 12px 10px 0; border-bottom: 2px solid var(--bone); }
.tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl a { text-decoration: none; }
.tbl a:hover { color: var(--orange); }
.badge { display: inline-block; padding: 1px 7px; font-family: var(--type); font-size: 0.72rem; text-transform: uppercase; border: 1px solid var(--rule-strong); white-space: nowrap; }
.badge.new { background: var(--orange); color: var(--black); border-color: var(--orange); }
.badge.yes { color: var(--green); border-color: var(--green); }
.badge.talk { color: var(--orange); border-color: var(--orange); }
.badge.no { color: var(--grey); }
.two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-top: 36px; align-items: start; }
.two > * { min-width: 0; }
.two .h3 { margin: 32px 0 12px; }
.two section > .h3:first-child { margin-top: 0; }
.dl { display: grid; grid-template-columns: 10rem minmax(0, 1fr); border-top: 2px solid var(--bone); margin: 0; }
.dl dt, .dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.dl dt { font-family: var(--type); font-size: 0.78rem; text-transform: uppercase; color: var(--grey); padding-top: 15px; }
.panel { border: 1px solid var(--rule); background: var(--black-2); padding: 22px; display: grid; gap: 16px; }
.lock { padding: 14px 16px; border-left: 2px solid var(--orange); background: var(--black); color: var(--bone-dim); font-size: 0.95rem; }
.lock b { color: var(--bone); display: block; }
.decide { display: flex; flex-wrap: wrap; gap: 10px; }
.inline { display: inline; }
.draft { background: var(--black); border-left: 2px solid var(--orange); padding: 16px 18px; margin: 0; color: var(--bone-dim); white-space: pre-wrap; font: 0.95rem/1.55 var(--text); }
.contacts, .events { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--bone); }
.contacts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.events li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 0.92rem; }
.events .type { color: var(--grey); margin-right: 8px; }
.add-contact { display: grid; gap: 14px; margin-top: 18px; padding: 16px; border: 1px solid var(--rule); }
.add-contact .btn { justify-self: start; }

/* Client job page: files */
.drops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.drop { border: 1px solid var(--rule-strong); background: var(--black-2); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; position: relative; min-width: 0; }
.drop.over { border-color: var(--orange); background: var(--black-3); }
.drop .plus { font: 900 2.4rem/1 var(--display); color: var(--orange); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { outline: 2px solid var(--orange); outline-offset: 2px; }
.files { list-style: none; padding: 0; margin: 6px 0 0; font-size: 0.92rem; position: relative; z-index: 1; }
.files li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule); }
.files .fname { overflow-wrap: anywhere; }
.files .muted { white-space: nowrap; }
.files .rm { font-size: 0.72rem; color: var(--grey); }
.files .rm:hover { color: var(--orange); }
.files li.err .muted { color: var(--red); }
.files progress { grid-column: 1 / -1; width: 100%; height: 3px; appearance: none; border: 0; background: var(--rule); }
.files progress::-webkit-progress-bar { background: var(--rule); }
.files progress::-webkit-progress-value { background: var(--orange); }
.files progress::-moz-progress-bar { background: var(--orange); }

/* Client job page: consent and done */
.consent { margin-top: 48px; border-top: 2px solid var(--bone); padding-top: 14px; }
.consent-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: 6px 12px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--rule); cursor: pointer; }
.consent-row input { width: 18px; height: 18px; accent-color: var(--orange); margin: 3px 0 0; }
.consent .hint { padding: 14px 0; max-width: 70ch; }
.done { margin-top: 48px; padding: 24px 26px; background: var(--orange); color: var(--black); display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.done p { font: 900 1.6rem/1 var(--display); text-transform: uppercase; }
.done .btn { background: var(--black); color: var(--bone); }
.done .btn:hover { background: var(--bone); color: var(--black); }

/* Narrow screens */
@media (max-width: 900px) {
  .brief, .two { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
}
@media (max-width: 700px) {
  .fields, .drops { grid-template-columns: minmax(0, 1fr); }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { padding-bottom: 0; border-bottom: 0; }
  .consent-row { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .consent-row .type { grid-column: 2; }
  .tbl.briefs th:nth-child(3), .tbl.briefs td:nth-child(3), .tbl.briefs th:nth-child(5), .tbl.briefs td:nth-child(5) { display: none; }
  .bar-who { margin-left: 0; width: 100%; }
}
