/* Goosebumps - the skin over portal's own stylesheet (site.yaml
   `stylesheet`, loaded after main.css, so these rules win).

   One idea: a poster on the door of a house its users run. Newsprint
   and black ink, one signal orange for what moves or must be seen,
   heavy condensed capitals for what is asked, a plain sans for what is
   said. Hard edges, no rounding; the shadow is a misregistered print,
   not a glow. Both colour schemes are drawn; the page follows the
   reader's. */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..900&display=swap');

/* ---- colour: dark (portal's default), then light ----------------- */

:root {
  --signal: #ff5a2b;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.14);
  --paper: #131211;
  --ink: #f1ede3;
  --ink-dim: #b7b1a4;
  --line: #f1ede3;
  --rule: rgba(241, 237, 227, 0.22);
  --card-bg: #1b1a18;
  --card-bg-opaque: #1b1a18;
  --card-shadow: rgba(0, 0, 0, 0.6);
  --print: var(--signal);
  --on-signal: #131211;
  --field: #131211;
  --hero-glow: rgba(19, 18, 17, 0.85);
  --error: #ff8a70;
  --heading: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --radius: 0;
  --measure: 46rem;
  --edge: 0.16rem;
  --offset: 0.35rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --signal: #ff4b1f;
    --accent: #c9330f;
    --accent-soft: rgba(255, 75, 31, 0.12);
    --paper: #f2efe6;
    --ink: #121110;
    --ink-dim: #4f4b44;
    --line: #121110;
    --rule: rgba(18, 17, 16, 0.2);
    --card-bg: #fbf9f3;
    --card-bg-opaque: #fbf9f3;
    --card-shadow: rgba(18, 17, 16, 0.12);
    --print: #121110;
    --on-signal: #121110;
    --field: #ffffff;
    --hero-glow: rgba(242, 239, 230, 0.85);
    --error: #a3240b;
    color-scheme: light;
  }
}

/* ---- type ------------------------------------------------------- */

body {
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1.02rem;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--heading);
  color: var(--ink);
  line-height: 1.05;
}

/* ---- the top ---------------------------------------------------- */

.hero:not(.hero-slides),
.hero-bar,
.hero-slides .hero-copy {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  box-sizing: border-box;
}

.hero {
  align-items: stretch;
  text-align: left;
}

.hero-top {
  justify-content: space-between;
}

.hero-top .session {
  position: static;
  transform: none;
}

.wordmark,
.wordmark:hover {
  opacity: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.6rem;
}

/* What is asked: set like a poster headline, heavy and narrow. */
.hero-copy h1 {
  margin: 1.1rem 0 0;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.1rem);
  font-weight: 900;
  font-stretch: 68%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  text-wrap: balance;
}

.hero-copy p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--ink);
}

/* The house meeting, announced: a strip of signal across the top. */
.announce {
  justify-content: flex-start;
  margin-top: -1rem;
}

.announce-item {
  border: var(--edge) solid var(--line);
  border-radius: 0;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 700;
}

.announce-item:hover,
.announce-item[aria-current="page"] {
  border-color: var(--line);
}

.announce-when,
.announce-relative {
  color: var(--on-signal);
}

/* ---- the cards -------------------------------------------------- */

.alternatives {
  max-width: var(--measure);
  gap: 1.6rem;
}

/* A sheet pasted to the door: a hard black edge and a print that
   slipped a few millimetres. */
.alt-card {
  background: var(--card-bg);
  border: var(--edge) solid var(--line);
  border-radius: 0;
  box-shadow: var(--offset) var(--offset) 0 var(--print);
  padding: 1.5rem 1.6rem 1.6rem;
  backdrop-filter: none;
}

.alt-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 850;
  font-stretch: 80%;
  letter-spacing: 0.005em;
}

.alt-description {
  color: var(--ink);
}

.feature h3,
.feature-name {
  font-weight: 800;
  font-stretch: 92%;
  letter-spacing: 0.01em;
}

.feature p,
.feature .resource-empty {
  color: var(--ink-dim);
}

.feature-icon {
  background-color: var(--accent);
}

.feature p a,
.alt-description a,
.hero-copy p a {
  color: var(--ink);
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.14em;
  border-bottom: 0;
}

.alt-encouragement {
  color: var(--ink-dim);
}

/* ---- lists: the cases, the meetings, the money ------------------ */

.answer-row {
  border: var(--edge) solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

/* Public lists name their states in words, so no row is greyed out
   for having moved; the stamp says where it stands. */
.answer-row.decided {
  opacity: 1;
}

.answer-field-key {
  color: var(--ink-dim);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.answer-field-value {
  font-size: 0.98rem;
  white-space: pre-line;
}

/* Where it stands: a rubber stamp in signal. */
.answer-state {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.answer-link {
  justify-self: start;
  font-weight: 800;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.18em;
}

/* ---- forms ------------------------------------------------------ */

.field-label {
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

input,
textarea {
  background: var(--field);
  border: var(--edge) solid var(--line);
  border-radius: 0;
  color: var(--ink);
}

input:focus-visible,
textarea:focus-visible {
  outline: 0.2rem solid var(--signal);
  outline-offset: 0.1rem;
}

.select-option {
  border: var(--edge) solid var(--line);
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
}

.select-option.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.alt-submit {
  font-family: var(--heading);
  font-weight: 900;
  font-stretch: 80%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--signal);
  color: var(--on-signal);
  border: var(--edge) solid var(--line);
  border-radius: 0;
  box-shadow: 0.2rem 0.2rem 0 var(--line);
  transition: transform 80ms, box-shadow 80ms;
}

.alt-submit:hover:not(:disabled) {
  transform: translate(-0.08rem, -0.08rem);
  box-shadow: 0.28rem 0.28rem 0 var(--line);
}

.alt-submit:active:not(:disabled) {
  transform: translate(0.2rem, 0.2rem);
  box-shadow: 0 0 0 var(--line);
}

/* ---- the foot --------------------------------------------------- */

.question-nav,
.down-the-tree-foot,
.question-responsible {
  font-weight: 700;
}

.question-nav a:hover {
  color: var(--accent);
}

/* ---- a phone ---------------------------------------------------- */

@media (max-width: 34rem) {
  :root {
    --edge: 0.14rem;
    --offset: 0.25rem;
  }

  .alternatives {
    gap: 1.2rem;
    padding-inline: 0.7rem 0.95rem;
  }

  .alt-card {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .alt-card h2 {
    font-size: 1.35rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 1.6rem + 6vw, 3.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .alt-submit {
    transition: none;
  }
}
