/* Venue Crew supplier quote request.
 *
 * Brand: VC Brand Playbook 2026 v2. Ebony / Amethyst / Dark Amethyst / Pearl,
 * accents (Rouge) only for errors. Headings in Libre Baskerville, the playbook's
 * own named substitute for Quincy CF. Body copy only ever Ebony or white.
 * The Amethyst line device appears once, under "needs" in the headline.
 *
 * No inline styles anywhere: the CSP forbids them.
 */

@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/libre-baskerville-latin.woff2) format('woff2');
}
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/albert-sans-latin.woff2) format('woff2');
}

:root {
  --ebony: #24272c;
  --amethyst: #8866c5;
  --amethyst-dark: #5b457f;
  --pearl: #d6d6d6;
  --paper: #ffffff;
  --mist: #f6f5f8;          /* a whisper of Amethyst for quiet surfaces */
  --rule: #e4e2e8;
  --rouge-dark: #a4343e;    /* accent, errors only */
  --serif: 'Libre Baskerville', 'Times New Roman', serif;
  --sans: 'Albert Sans', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.step { scroll-margin-top: 32px; }
/* Headings and the suppliers legend take focus only from script, to move the
   reading position: no ring after a mouse click, a ring after keyboard Enter. */
.step h2:focus:not(:focus-visible), legend:focus:not(:focus-visible) { outline: none; }
.step h2:focus-visible, legend:focus-visible { outline: 2px solid var(--amethyst); outline-offset: 4px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ebony);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

/* ---------- layout ---------- */
.layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 38%) 1fr; overflow-x: clip; }
.intro { background: var(--ebony); color: #fff; position: relative; }   /* no overflow here: it would stop .intro-inner sticking */
.intro-inner {
  position: sticky; top: 0; min-height: 100vh;
  padding: 40px var(--gutter) 32px;
  display: flex; flex-direction: column;
}
.main { padding: 72px var(--gutter) 96px; }
.form, .done { max-width: 640px; }

/* ---------- intro panel ---------- */
.logo { display: inline-block; width: 150px; flex: none; }
/* Centred between the logo and the sign-off, so tall screens don't end in a
   slab of empty Ebony and short ones don't feel crammed. */
.intro-main { margin: auto 0; padding: 28px 0; }
.logo:focus-visible { outline: 2px solid var(--amethyst); outline-offset: 6px; }
.eyebrow {
  margin: 0 0 16px;
  font: 600 12px/1.4 var(--sans);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--pearl);
}
.eyebrow.dark { color: var(--amethyst-dark); margin-top: 0; }
h1 {
  margin: 0 0 22px;
  font: 400 clamp(34px, 3.1vw, 46px)/1.16 var(--serif);
  letter-spacing: -.01em;
}

/* The line device: a solid bar under the key word, 18:1, square ends, never
   wider than the word, with a gap above equal to its own height. Drawn as a
   box (not text-decoration), as the playbook requires. */
.device { position: relative; display: inline-block; }
.device::after {
  content: '';
  position: absolute; left: 0;
  /* Libre Baskerville's baseline sits 0.26em above the line box bottom at this
     line-height (measured). Start the bar on the baseline, then push it down by
     its own height: the gap above the bar equals the bar. */
  top: calc(100% - 0.26em);
  width: 100%; aspect-ratio: 18 / 1;
  background: var(--amethyst);
  transform: translateY(100%);
}

.lede { margin: 16px 0 26px; max-width: 34em; font-size: 16px; color: #fff; }


.intro-foot { margin: 0; flex: none; font: 400 15px/1.4 var(--serif); color: var(--pearl); }

/* ---------- progress guide (left panel) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.progress ol { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.progress a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff; text-decoration: none; opacity: .62;
  transition: opacity .2s ease;
}
.progress a:hover, .progress .is-current a, .progress .is-done a { opacity: 1; }
.progress a:focus-visible { opacity: 1; outline: 2px solid var(--amethyst); outline-offset: 4px; }
.p-num { font: 400 15px/1 var(--serif); color: var(--pearl); }
.is-current .p-num { color: #fff; }   /* Amethyst at 15px on Ebony was 3.6:1 */
.p-title { font-size: 15px; }
.is-current .p-title { font-weight: 600; }
.p-state { width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; position: relative; transition: background .2s ease, border-color .2s ease; }
.is-done .p-state { background: var(--amethyst); border-color: var(--amethyst); }
.is-done .p-state::after {
  content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.is-optional:not(.is-done) .p-state { width: auto; height: auto; border: 0; border-radius: 0; }
.is-optional:not(.is-done) .p-state::before { content: 'Optional'; font-size: 12px; color: var(--pearl); }

.sofar { padding: 14px 18px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.sofar-label { margin: 0 0 10px; font: 600 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pearl); }
.sofar-line { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 12px; font-size: 14px; line-height: 1.5; padding: 3px 0; }
.sofar-key { color: var(--pearl); }
.sofar-val { color: #fff; }
.sofar-val.is-empty { opacity: .55; }

/* ---------- steps ---------- */
.step { padding: 0 0 48px; margin: 0 0 48px; border-bottom: 1px solid var(--rule); }
.step-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.step-num { font: 400 15px/1 var(--serif); color: var(--amethyst-dark); min-width: 26px; }
.step h2 { margin: 0; font: 400 26px/1.25 var(--serif); }

/* ---------- fields ---------- */
.field { margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; margin: 0 0 6px; padding: 0; font-weight: 600; font-size: 16px; line-height: 1.4; }
.optional { font-weight: 400; font-size: 13px; color: var(--ebony); opacity: .75; margin-left: 6px; }
.help { margin: -2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--ebony); opacity: .78; }
input[type=text], input[type=email], input[type=number], textarea {
  width: 100%;
  padding: 13px 14px;
  font: 400 16px/1.45 var(--sans); color: var(--ebony);
  background: var(--paper);
  border: 1px solid var(--pearl); border-radius: 0;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
input[type=number] { max-width: 200px; -moz-appearance: textfield; }
textarea { resize: vertical; min-height: 92px; }
input:hover, textarea:hover { border-color: #b9b6c0; }
input:focus, textarea:focus { outline: none; border-color: var(--amethyst); box-shadow: 0 0 0 3px rgba(136,102,197,.22); }
.field.invalid input, .field.invalid textarea { border-color: var(--rouge-dark); }
.error { margin: 8px 0 0; font-size: 14px; color: var(--rouge-dark); min-height: 0; }
.error:empty { display: none; }

/* ---------- supplier tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; }
.tile { position: relative; margin: 0; font-weight: 400; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile-box {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 14px;
  border: 1px solid var(--pearl); background: var(--paper);
  font-size: 15px; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.tick { flex: none; width: 16px; height: 16px; border: 1px solid #9c98a5; position: relative; transition: inherit; }
.tile:hover .tile-box { border-color: var(--amethyst); }
.tile input:focus-visible + .tile-box { outline: 2px solid var(--amethyst); outline-offset: 2px; }
.tile input:checked + .tile-box { background: var(--ebony); border-color: var(--ebony); color: #fff; }
.tile input:checked + .tile-box .tick { border-color: var(--amethyst); background: var(--amethyst); }
.tile input:checked + .tile-box .tick::after {
  content: ''; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.suppliers.invalid .tile-box { border-color: var(--rouge-dark); }

/* ---------- briefs ---------- */
.briefs { margin-top: 32px; }
.briefs-empty { margin: 0; padding: 18px 20px; background: var(--mist); font-size: 14px; }
.brief {
  margin: 0 0 14px; padding: 20px 20px 18px 22px;
  background: var(--mist); border-left: 3px solid var(--amethyst);
  animation: rise .28s ease both;
}
.brief label { font: 400 19px/1.3 var(--serif); margin-bottom: 6px; }
.brief textarea { background: #fff; }

/* ---------- submit ---------- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { padding-top: 4px; }
.submit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 30px; min-width: 240px; justify-content: space-between;
  font: 600 16px/1 var(--sans); letter-spacing: .02em;
  color: #fff; background: var(--ebony); border: 0; border-radius: 0; cursor: pointer;
  transition: background .2s ease;
}
.submit:hover { background: var(--amethyst-dark); }
.submit:focus-visible { outline: 2px solid var(--amethyst); outline-offset: 3px; }
.submit[disabled] { opacity: .65; cursor: progress; }
.arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: transform .2s ease; }
.arrow::after { content: ''; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.submit:hover .arrow { transform: translateX(4px); }
.form-error { margin: 0 0 16px; color: var(--rouge-dark); font-size: 15px; }
.form-error:empty { display: none; }
.privacy { margin: 18px 0 0; font-size: 13px; opacity: .75; max-width: 34em; }

/* ---------- done ---------- */
.done { padding-top: 40px; animation: rise .4s ease both; }
.done:focus { outline: none; }
.done h2 { margin: 0 0 18px; font: 400 clamp(28px, 3vw, 38px)/1.2 var(--serif); }
.done p { font-size: 17px; max-width: 32em; }
.ref { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.intro-inner > *, .step { animation: rise .5s ease both; }
.intro-inner > :nth-child(2) { animation-delay: .05s; }
.intro-inner > :nth-child(3) { animation-delay: .1s; }
.intro-inner > :nth-child(4) { animation-delay: .15s; }
.intro-inner > :nth-child(5) { animation-delay: .2s; }
.step:nth-of-type(1) { animation-delay: .12s; }
.step:nth-of-type(2) { animation-delay: .2s; }
.step:nth-of-type(3) { animation-delay: .28s; }
.step:nth-of-type(4) { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .intro-inner { position: static; min-height: 0; padding: 28px 20px 40px; }
  .logo { width: 124px; margin-bottom: 0; }
  .progress, .sofar, .intro-foot { display: none; }
  .intro-main { margin: 0; padding: 40px 0 0; }
  .lede { margin-bottom: 0; font-size: 16px; }
  .main { padding: 40px 20px 72px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-box { padding: 10px 12px; gap: 10px; font-size: 14px; }
  .submit { width: 100%; }
}
@media (max-width: 330px) { .tiles { grid-template-columns: 1fr; } }

/* Short or narrow desktop screens: the panel must fit without scrolling, sign-off included. */
@media (min-width: 901px) and (max-height: 820px), (min-width: 901px) and (max-width: 1180px) and (max-height: 920px) {
  .lede { display: none; }
  h1 { margin-bottom: 26px; }
}
/* Desktop only: if the pinned panel is ever taller than the screen it scrolls on
   its own instead of hiding its bottom. (On phones it's a normal header.) */
@media (min-width: 901px) {
  .intro-inner { max-height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
}
@media (min-width: 901px) and (max-height: 720px) {
  .sofar { display: none; }
  .is-sent .sofar { display: block; }   /* the guide is gone after sending, so there's room for the record */
  h1 { font-size: 32px; }
  .intro-main { padding: 16px 0; }
}

/* After sending: the guide's sections are gone; the summary stays as a record. */
.is-sent .progress { display: none; }
