/* =========================================================================
   CultureForce — AI intake demo
   "The arts desk": a broadsheet skin, because CultureForce's own logo is a
   newspaper masthead and the product's subject is a listings page. Editorial
   convention also happens to be what this audience needs — the operator is in
   his eighties, so type is large, leading is generous, rules do the work that
   boxes would, and nothing important is smaller than 15px.
   Palette + fonts are the CMS's own tokens (_sass/_modern.scss).
   ========================================================================= */

:root {
  --paper:      #f7f3ec;
  --surface:    #ffffff;
  --ink:        #211d1b;
  --body:       #4a443f;
  --muted:      #8c847d;
  --red:        #e30405;
  --red-dark:   #b8040b;
  --line:       rgba(33, 29, 27, 0.12);
  --line-2:     rgba(33, 29, 27, 0.22);
  --serif:      'Spectral', Georgia, 'Times New Roman', serif;
  --sans:       'Hanken Grotesk', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sheet { max-width: 940px; margin: 0 auto; padding: 0 32px 96px; }

/* ---- Masthead ----------------------------------------------------------
   A rule above and below the logo, the way a paper sets its nameplate. */
.masthead {
  padding: 40px 0 22px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.masthead img { width: 268px; max-width: 60vw; height: auto; display: block; }
.masthead .edition {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  text-align: right;
  padding-bottom: 6px;
}

/* ---- Standfirst --------------------------------------------------------- */
.standfirst { padding: 40px 0 8px; max-width: 42em; }
.standfirst .kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}
.standfirst h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 18px;
}
.standfirst p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  color: var(--body);
  margin: 0;
}

/* ---- Steps -------------------------------------------------------------
   Hanging numerals in the left margin: an old typesetting device that gives
   an unmistakable reading order without any UI chrome at all. */
.step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0 24px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}
.step:first-of-type { border-top: 3px solid var(--ink); margin-top: 34px; }

.step .numeral {
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 700;
  line-height: 0.86;
  color: var(--red);
  text-align: right;
  font-feature-settings: "lnum" 1;
}
.step h2 {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.step .hint {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 46em;
}

/* ---- Fields ------------------------------------------------------------
   Large targets, real contrast, a red focus ring you cannot miss. */
label.field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 7px;
}
input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 15px 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]::placeholder,
input[type="url"]::placeholder,
textarea::placeholder { color: #b3aaa2; }
input[type="text"]:focus,
input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 4, 5, 0.16);
}
textarea { min-height: 132px; resize: vertical; }

.url-row { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; }
.url-row input { flex: 1; }
.url-row .drop {
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  width: 46px; height: 46px;
  cursor: pointer;
  transition: all .15s ease;
}
.url-row .drop:hover { border-color: var(--red); color: var(--red); background: #fff; }

.add-link {
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  color: var(--red); cursor: pointer;
}
.add-link:hover { color: var(--red-dark); text-decoration: underline; }

/* ---- Artwork ------------------------------------------------------------ */
.art-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .art-grid { grid-template-columns: 1fr; } }

.dropzone {
  position: relative;
  background: var(--surface);
  border: 2px dashed var(--line-2);
  border-radius: 10px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  min-height: 168px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--red); background: #fffdfa; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-role {
  font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 4px;
}
.dropzone .dz-spec { font-size: 14px; color: var(--muted); }
.dropzone .dz-file { font-size: 15px; color: var(--red); font-weight: 600; margin-top: 10px; word-break: break-all; }
.dropzone img.dz-thumb { max-width: 100%; max-height: 104px; border-radius: 6px; margin-bottom: 10px; }

/* ---- Submit ------------------------------------------------------------- */
.actions {
  border-top: 3px solid var(--ink);
  margin-top: 8px;
  padding-top: 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.btn {
  font-family: var(--sans);
  font-size: 19px; font-weight: 700;
  color: #fff; background: var(--red);
  border: none; border-radius: 9px;
  padding: 17px 34px;
  cursor: pointer;
  transition: background .16s ease, transform .06s ease;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.actions .note { font-size: 15px; color: var(--muted); max-width: 30em; }

.err {
  background: #fdecec; border-left: 4px solid var(--red);
  padding: 14px 18px; border-radius: 6px; margin: 26px 0 0;
  color: #8c1113; font-size: 16px;
}

/* ---- Working overlay ---------------------------------------------------
   The pipeline takes ten to fifteen seconds and does four genuinely distinct
   things. Naming them as they happen makes the wait legible instead of dead,
   and it shows the machinery — which is half the point of a demo. */
.working {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(247, 243, 236, 0.97);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.working.on { display: flex; }
.working-inner { text-align: left; width: min(460px, 86vw); }
.working h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 600;
  color: var(--ink); margin: 0 0 28px;
}
.working ol { list-style: none; margin: 0; padding: 0; }
.working li {
  display: flex; align-items: center; gap: 14px;
  font-size: 17px; color: #c3bab2;
  padding: 11px 0;
  transition: color .3s ease;
}
.working li .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: #dcd4cb; flex: 0 0 auto; transition: background .3s ease;
}
.working li.active { color: var(--ink); font-weight: 600; }
.working li.active .dot { background: var(--red); animation: pulse 1.1s ease-in-out infinite; }
.working li.done { color: var(--body); }
.working li.done .dot { background: var(--ink); }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* ---- Load-in ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); animation: rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
