/* Photo Shoot Director. Warm, printed-brief feel — this gets read on a phone
   in a shop with the lights on, so contrast and type size lead. */
:root {
  --bg: #fbf8f4;
  --card: #ffffff;
  --ink: #1c1815;
  --ink-2: #5e564d;
  --ink-3: #8a8077;
  --line: #e6ded3;
  --accent: #c2410c;
  --accent-soft: #fdf0e8;
  --good: #15803d;
  --good-soft: #eaf6ee;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --bad: #b91c1c;
  --bad-soft: #fdeceb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28,24,21,.05), 0 8px 24px -12px rgba(28,24,21,.16);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.22; margin: 0 0 .4em; letter-spacing: -.015em; }
h1 { font-size: clamp(28px, 5vw, 42px); }
h2 { font-size: clamp(21px, 3vw, 27px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
small, .small { font-size: 13.5px; color: var(--ink-2); }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 18px; }
.wide { max-width: 1080px; }

header.bar {
  border-bottom: 1px solid var(--line); background: rgba(251,248,244,.92);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.bar .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--ink); font-size: 16px; }
.brand span { color: var(--accent); }
.bar .spacer { flex: 1; }
.bar nav { display: flex; gap: 14px; align-items: center; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 11px 18px; border-radius: 11px; font: inherit; font-weight: 650;
  font-size: 15px; cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn:hover { filter: brightness(1.06); }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.sm { padding: 7px 13px; font-size: 14px; min-height: 36px; border-radius: 9px; }
.btn.block { width: 100%; }

input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 78px; resize: vertical; }
label { display: block; font-weight: 640; font-size: 14.5px; margin: 0 0 5px; }
label .hint { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.field { margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650;
  padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  border: 1px solid #f6d9c7; letter-spacing: .01em;
}
.pill.good { background: var(--good-soft); color: var(--good); border-color: #cfe8d8; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: #f3e0bd; }
.pill.bad  { background: var(--bad-soft);  color: var(--bad);  border-color: #f4cfcd; }
.pill.mute { background: #f4efe8; color: var(--ink-2); border-color: var(--line); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.muted { color: var(--ink-2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* the shot card — the thing they read while holding a phone */
.shot { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.shot + .shot { margin-top: 14px; }
.shot > header {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px 18px;
  border-bottom: 1px solid var(--line); background: #fffdfb; cursor: pointer;
}
.shot > header .n {
  flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.shot.done > header .n { background: var(--good); }
.shot.reshoot > header .n { background: var(--warn); }
.shot > header h3 { margin: 0; font-size: 16.5px; }
.shot > header .purpose { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.shot .body { padding: 4px 18px 18px; }
.spec { margin: 14px 0 0; }
.spec dt {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--accent); margin-bottom: 3px;
}
.spec dd { margin: 0 0 13px; font-size: 15.5px; }
.spec dd.done-when { background: var(--good-soft); border-left: 3px solid var(--good); padding: 9px 12px; border-radius: 0 8px 8px 0; }
.spec dd.failure { background: var(--warn-soft); border-left: 3px solid var(--warn); padding: 9px 12px; border-radius: 0 8px 8px 0; }

.locked { position: relative; }
.lockbox {
  background: repeating-linear-gradient(135deg, #faf5ef, #faf5ef 10px, #f5eee5 10px, #f5eee5 20px);
  border: 1px dashed #ddd0bf; border-radius: 11px; padding: 16px; text-align: center;
  margin-top: 14px; color: var(--ink-2); font-size: 14.5px;
}

.crit { border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; overflow: hidden; }
.crit > header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fffdfb; border-bottom: 1px solid var(--line); }
.crit .inner { padding: 14px; }
.crit img.shotimg { width: 100%; max-width: 320px; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 12px; }
.prob { border-left: 3px solid var(--accent); padding: 2px 0 2px 12px; margin: 0 0 14px; }
.prob .what { font-weight: 650; }
.prob .where { font-size: 13.5px; color: var(--ink-3); }
.prob .fix { margin-top: 5px; background: var(--accent-soft); padding: 9px 11px; border-radius: 8px; font-size: 15px; }
.onechange { background: var(--ink); color: #fff; padding: 13px 15px; border-radius: 11px; margin-top: 12px; font-size: 15.5px; }
.onechange b { color: #ffb992; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 3px; }
.scores { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.score { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; background: #fff; }
.score b { color: var(--ink); }

.dropzone {
  border: 2px dashed #ddd0bf; border-radius: 12px; padding: 18px; text-align: center;
  background: #fffdfb; cursor: pointer; margin-top: 6px;
}
.dropzone:hover { border-color: var(--accent); background: var(--accent-soft); }

.notice { padding: 12px 15px; border-radius: 11px; margin-bottom: 16px; font-size: 14.5px; }
.notice.err { background: var(--bad-soft); color: #7f1d1d; border: 1px solid #f4cfcd; }
.notice.ok { background: var(--good-soft); color: #14532d; border: 1px solid #cfe8d8; }
.notice.info { background: var(--accent-soft); color: #7c2d12; border: 1px solid #f6d9c7; }

.spinner {
  width: 17px; height: 17px; border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(28,24,21,.2); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }

.shootrow {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-decoration: none; color: inherit; margin-bottom: 10px;
}
.shootrow:hover { border-color: var(--accent); }
.shootrow .t { font-weight: 650; }

.priceGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 700px) { .priceGrid { grid-template-columns: 1fr; } }
.price { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: #fff; text-align: center; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price .amt { font-size: 32px; font-weight: 750; letter-spacing: -.03em; }
.price .per { color: var(--ink-3); font-size: 13.5px; margin-bottom: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.step .k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }

.sample { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 18px; font-size: 15px; }
.sample .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-top: 12px; }
.sample .lbl:first-child { margin-top: 0; }

footer.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 26px 0 44px; color: var(--ink-3); font-size: 13.5px; }

/* Phone. The whole point of the shot card is that it is read one-handed while
   the other hand holds the camera, so nothing in the chrome may wrap into it. */
@media (max-width: 560px) {
  .bar .wrap { height: auto; min-height: 54px; padding: 9px 14px; gap: 10px; }
  .brand { font-size: 14.5px; white-space: nowrap; }
  .bar nav { gap: 11px; font-size: 13px; }
  .bar nav a { white-space: nowrap; }
  /* On a phone "My shoots" duplicates the in-page back link; drop it so the
     bar fits without a horizontal scroll. Sign out stays — a phone user with no
     way to sign out is a worse problem than a tight bar. */
  .bar nav a[href="#/"] { display: none; }
  .brand { font-size: 0; }
  .brand::after { content: "PSD"; font-size: 15px; color: var(--ink); }
  .brand span { display: none; }
  .btn.sm { padding: 6px 11px; font-size: 13px; min-height: 34px; }
  .shot > header { padding: 13px 14px; }
  .shot .body { padding: 4px 14px 16px; }
  .card { padding: 16px; }
  .spec dd { font-size: 16px; }
}
