/* Callboard - the public marketing page.
 *
 * THE BRIEF: it has to read like the call board by the stage door.
 *
 * A call board is a framed case or a cork sheet in a dim backstage corridor
 * with the day's call typed and posted on it. So: the page is the board - a
 * warm near-black deck - and the content sits on it as paper. Not a white
 * page with a coloured header.
 *
 * Three decisions carry the whole thing, and they are the ones to defend if
 * anybody wants to "clean this up":
 *
 *   1. The black is WARM (#131110). Blue-black reads as tech and kills it.
 *   2. The paper is a photocopy cream (#F2EEE6), never white.
 *   3. Times, codes and anything read off a sheet are MONOSPACE. This does
 *      more than any other single choice to make it a call sheet rather
 *      than a dashboard.
 *
 * Gel Red is defined and DELIBERATELY UNUSED here. In the app it means "a
 * worker must act now"; spending it on a marketing button is how it stops
 * meaning that. */

:root {
  /* The house. Warm blacks - stage deck, masking, road case. */
  --deck: #131110;
  --deck-raise: #1f1b18;
  --deck-rule: #332c27;

  /* The posted sheet. */
  --sheet: #f2eee6;
  --sheet-edge: #d9d1c2;
  --ink: #16130f;
  --pencil: #5e5649;

  /* The bulb. Incandescent, and it only ever marks what is lit or current. */
  --bulb: #ffb340;
  --bulb-dim: #8a5a12;
  --bulb-glow: rgba(255, 179, 64, 0.22);

  /* Gels. Red is reserved for "act now" and is not used on this page. */
  --gel-red: #cc3b2e;
  --gel-green: #3e7c59;
  --work-blue: #43607f;

  --display: 'Oswald', 'Public Sans', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Helvetica, Arial, sans-serif;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 1rem;
  --measure: 46rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--deck);
  color: var(--sheet);
  font-family: var(--body);
  /* Officers read this on a phone, often not in good light. Nothing small. */
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
}

/* The posted-notice header: condensed caps, letterspaced, with the hairline
   under it that every typed notice on a board seems to have. */
.notice-head {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bulb-dim);
}

/* ------------------------------------------------------- the marquee strip

   A row of incandescent bulbs along the top edge. It is the most
   recognisable mark available and it is drawn with a repeating gradient -
   no image, no markup beyond one empty element. */

.bulbs {
  height: 10px;
  background-image: radial-gradient(
    circle at 7px 5px,
    var(--bulb) 0 2.5px,
    var(--bulb-glow) 2.5px 5px,
    transparent 5px
  );
  background-size: 14px 10px;
  background-repeat: repeat-x;
  border-bottom: 1px solid var(--deck-rule);
}

/* ------------------------------------------------------------------ hero */

.hero {
  border-bottom: 1px solid var(--deck-rule);
  /* The ghost light: one warm source, up and to the left, falling off fast. */
  background:
    radial-gradient(
      60rem 28rem at 18% -20%,
      rgba(255, 179, 64, 0.1),
      transparent 70%
    ),
    var(--deck);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.125rem var(--gutter);
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--sheet);
}

.wordmark.small {
  font-size: 1.125rem;
}

.hero-copy {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 3.5rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.005em;
}

.subhead {
  margin: 1.125rem 0 0;
  max-width: 34rem;
  font-size: 1.1875rem;
  color: #c9c0b2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 0.6875rem 1.375rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.3;
}

/* The lit button. This is the bulb doing its job: the one live action. */
.btn-primary {
  background: var(--bulb);
  color: #241703;
  box-shadow: 0 0 0 1px rgba(255, 179, 64, 0.25), 0 0 22px var(--bulb-glow);
}

.btn-primary:hover {
  background: #ffc265;
}

.btn-secondary {
  background: transparent;
  color: var(--sheet);
  border-color: #4a403a;
}

.btn-secondary:hover {
  border-color: var(--bulb-dim);
  color: var(--bulb);
}

a.quiet {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1968a;
  text-decoration: none;
}

a.quiet:hover {
  color: var(--bulb);
}

a:focus-visible {
  outline: 2px solid var(--bulb);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ------------------------------------------------- what is posted on it

   Each block is a sheet on the board. Square corners and a flat edge: this
   is paper under a clip, not a rounded card in a design system. */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem var(--gutter) 0;
}

.features {
  display: grid;
  gap: 1.25rem;
}

.sheet {
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid var(--sheet-edge);
  border-radius: 2px;
  padding: 1.375rem 1.375rem 1.5rem;
  /* Lifted a millimetre off the board, lit from above. */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 22px rgba(0, 0, 0, 0.4);
}

.feature h2 {
  margin: 0.375rem 0 0.625rem;
  font-size: 1.3125rem;
  line-height: 1.2;
}

.feature p {
  margin: 0 0 0.75rem;
  color: var(--pencil);
}

.feature p:last-child {
  margin-bottom: 0;
}

/* The hairline under a posted-notice header. */
.feature .notice-head {
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--sheet-edge);
}

.boundaries,
.talk {
  margin-top: 1.25rem;
}

.boundaries h2,
.talk h2 {
  margin: 0.375rem 0 1rem;
  font-size: 1.3125rem;
}

.boundaries ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.875rem;
}

.boundaries li {
  color: var(--pencil);
  padding-left: 0.875rem;
  border-left: 2px solid var(--sheet-edge);
}

.boundaries strong {
  color: var(--ink);
  font-weight: 600;
}

.talk p {
  margin: 0 0 1.25rem;
  color: var(--pencil);
  max-width: 36rem;
}

/* On a sheet the primary button is dark ink, not a bulb - an amber button on
   cream has nothing like the contrast it has on the deck. */
.sheet .btn-primary {
  background: var(--ink);
  color: var(--sheet);
  box-shadow: none;
}

.sheet .btn-primary:hover {
  background: #000;
}

/* ---------------------------------------------------------------- footer */

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--deck-rule);
  background: var(--deck-raise);
}

footer > * {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

footer .wordmark {
  padding-top: 2rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 0.75rem;
}

footer nav a {
  color: #a1968a;
  text-decoration: none;
  font-size: 0.9375rem;
}

footer nav a:hover {
  color: var(--bulb);
  text-decoration: underline;
}

.fineprint {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  margin: 0;
  /* The small print on a posted notice is typed, like the rest of the call. */
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #8c8276;
  max-width: 42rem;
}

/* ------------------------------------------------------------ wider than
   a phone. The single column is the real layout; the rules below only widen
   things once there is honestly room. */

@media (min-width: 46rem) {
  :root {
    --gutter: 2rem;
  }

  .hero-copy {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

/* Three abreast only from here. Below this the columns get narrow enough
   that the copy sets ragged and tall, which reads as cheap. */
@media (min-width: 56rem) {
  :root {
    --measure: 60rem;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
