/* Scarecrow brand, shared by every page scarecrow.ai serves to a member (#315).

   Include it once, in <head>:   <link rel="stylesheet" href="/brand/brand.css">
   It brings Rubik, the palette, the page frame and the states a page needs: the Coil Spinner while it
   waits, the Shrug when it cannot find what was asked for, and the error and refusal states.
   The standards are the live site's: background #0b111c, panels #141e2d, primary buttons gold #dfa838
   with dark text and 12px corners, secondary buttons outlined, harvest gold #f5b942 and straw #ffd98a
   from the marks, success #2dd4a7, error #f2707a, Rubik with Segoe UI and the system font behind it.
   The marks are in this folder (see frame.js). */

@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap");

:root {
  --sc-bg: #0b111c;
  --sc-panel: #141e2d;
  --sc-line: #243347;
  --sc-line-strong: #2a3b52;
  --sc-text: #e8eef5;
  --sc-soft: #c3cfdb;
  --sc-muted: #9fb0c2;
  --sc-gold: #dfa838;
  --sc-harvest: #f5b942;
  --sc-straw: #ffd98a;
  --sc-ok: #2dd4a7;
  --sc-error: #f2707a;
  --sc-radius: 12px;
  --sc-font: "Rubik", "Segoe UI", system-ui, sans-serif;
  /* the width of running text, in characters */
  --sc-measure: 70ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--sc-bg); }

body.sc-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--sc-bg);
  color: var(--sc-text);
  font-family: var(--sc-font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.sc-page a:not(.sc-btn) { color: var(--sc-gold); }
.sc-page a:not(.sc-btn):hover { color: var(--sc-straw); }
.sc-page :focus-visible { outline: 3px solid var(--sc-straw); outline-offset: 3px; }

/* The header: the primary lockup, not a link (a page that wants one wraps it itself). */
.sc-header {
  padding: 20px 24px;
  background: #0a101c;
  border-bottom: 1px solid #17233a;
}
.sc-header .sc-logo { display: block; height: 56px; width: auto; max-width: 100%; }

/* The page body. .sc-main centres a card; .sc-main--wide leaves the width to a document page. */
.sc-main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 16px 64px;
}
.sc-main--wide { max-width: 1120px; }
.sc-main:focus { outline: none; }

.sc-card {
  background: var(--sc-panel);
  border: 1px solid var(--sc-line);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
.sc-card h1 { margin: 24px 0 8px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.sc-card p { margin: 0 auto 16px; max-width: 44ch; color: var(--sc-soft); }
.sc-card .sc-fine { color: var(--sc-muted); font-size: 14px; }

/* A card for reading rather than announcing, and running text at the brand's reading width. */
.sc-card.sc-left { text-align: left; }
.sc-prose { max-width: var(--sc-measure); margin: 0 0 16px; color: var(--sc-soft); white-space: pre-wrap; overflow-wrap: anywhere; }

/* A mark of the library: a picture, never the only carrier of the meaning. */
.sc-mark { display: block; width: 144px; height: 144px; margin: 0 auto; object-fit: contain; }

/* The Coil Spinner: the animated head, never a generic spinner. One per page. */
.sc-spinner { display: block; width: 72px; height: 72px; margin: 0 auto; }

.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }

/* Buttons: primary is gold with dark text, secondary is outlined; both have 12px corners. */
.sc-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--sc-radius);
  border: 2px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.sc-btn-primary { background: var(--sc-gold); color: #0b111c; box-shadow: 0 10px 30px rgba(223, 168, 56, 0.25); }
.sc-btn-primary:hover { background: var(--sc-harvest); color: #0b111c; }
.sc-btn-secondary { background: transparent; border-color: var(--sc-gold); color: var(--sc-gold); }
.sc-btn-secondary:hover { color: var(--sc-straw); border-color: var(--sc-straw); }

/* Words that carry a state's colour; the text says it too, so colour is never the only signal. */
.sc-ok { color: var(--sc-ok); }
.sc-error { color: var(--sc-error); }
.sc-eyebrow { color: var(--sc-gold); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600; }

@media (max-width: 480px) {
  .sc-main { padding: 24px 16px 40px; }
  .sc-card { padding: 28px 20px; }
  .sc-card h1 { font-size: 24px; }
  .sc-actions .sc-btn { width: 100%; text-align: center; }
}
