/* The holding page at boisdarcfire.org while the real site is built.

   Its own stylesheet rather than the draft's styles.css, so a change to the
   draft can't break the public address. The tokens and the sign are copied
   from styles.css; keep them in step if the district's colors change.

   System fonts only: the draft loads Overpass from Google Fonts, which sends
   each visitor's address to Google. The public address shouldn't, and the
   README's launch list self-hosts the font before the real site goes live. */

:root {
  --green: #0b5a3b;        /* white on it is 8.3:1 */
  --gold: #f0b43a;
  --ink: #1c2622;
  --muted: #4a5751;        /* 7.6:1 on white */
  --white: #ffffff;
  --alarm: #b3261e;        /* 911 only */

  --focus: var(--green);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius-sign: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

p {
  margin: 0;
}

.emergency {
  background: var(--alarm);
  color: var(--white);
  font-size: 0.9375rem;
  --focus: var(--white);
}

.emergency p {
  padding-block: 0.5rem;
}

.emergency a {
  color: inherit;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: 4.5rem 3rem;
}

/* The draft's road sign: green, a white line set in from the edge, and a tab
   on top whose border joins the sign's. */
.sign {
  position: relative;
  width: 100%;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius-sign);
  background: var(--green);
  color: var(--white);
  box-shadow:
    inset 0 0 0 8px var(--green),
    inset 0 0 0 12px var(--white);
  --focus: var(--gold);
}

.sign-tab {
  position: absolute;
  bottom: calc(100% - 12px);
  right: clamp(1.5rem, 5vw, 3.5rem);
  padding: 1rem 1.35rem 0.85rem;
  border-radius: var(--radius-sign) var(--radius-sign) 0 0;
  background: var(--green);
  box-shadow:
    inset 0 8px 0 0 var(--green),
    inset 8px 0 0 0 var(--green),
    inset -8px 0 0 0 var(--green),
    inset 0 12px 0 0 var(--white),
    inset 12px 0 0 0 var(--white),
    inset -12px 0 0 0 var(--white);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.sign-title {
  margin: 0 0 1.5rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.sign-title-main {
  display: block;
  font-size: clamp(2.75rem, 1.5rem + 6.5vw, 6rem);
}

.sign-title-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sign-lede {
  max-width: 34ch;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

footer {
  padding-block: 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The draft's one moment of motion: light sweeps across the sign once, like
   headlights on reflective sheeting. It ends transparent, so the sign reads
   the same whether or not it runs. */
.sign::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 61%
  ) no-repeat;
  background-size: 250% 100%;
  background-position: 130% 0;
  opacity: 0;
  pointer-events: none;
  animation: headlights 1.6s ease-out 0.3s 1;
}

@keyframes headlights {
  0%   { opacity: 1; background-position: 130% 0; }
  100% { opacity: 1; background-position: -30% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sign::after {
    animation: none;
  }
}
