/* ===================================================================
   REPORT BLENMAN-ELM — DARK theme, colored like the top of the
   Friends of Blenman-Elm site (friendsofblenmanelm.org)

   To use: in index.html, change
     <link rel="stylesheet" href="reportbe-design.css">
   to
     <link rel="stylesheet" href="reportbe-fobe-dark.css">

   Same palette and fonts as the FOBE site:
     Strato Blue      -> page and banner background (like the FOBE header/hero)
     Claeys Cream     -> text, form box
     River Blue       -> thin line under the banner (like the FOBE header)
     Heartland Yellow -> links, form border, line above the footer
     Rust Belt        -> intro box border
     Blue Sky         -> small print

   Edit the hex values below to restyle the whole page.
   =================================================================== */

/* Fonts (same as the FOBE site) */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=Libre+Franklin:wght@400;600&family=IBM+Plex+Mono:wght@500&display=swap");

:root{
  /* -- primary brand colors -- */
  --strato-blue:      #1D253C;
  --claeys-cream:     #F2E4D6;
  --river-blue:       #004D80;
  --heartland-yellow: #F2BA42;

  /* -- secondary brand colors (use sparingly) -- */
  --calm-blue:    #EEF4F8;
  --blue-sky:     #85B6C5;
  --rust-belt:    #D34E23;
  --buddy-gold:   #B88A57;
  --truman-brown: #653727;

  /* -- roles -- */
  --color-bg:        var(--strato-blue);   /* page background */
  --color-ink:       var(--claeys-cream);  /* text on the dark page */
  --color-ink-soft:  var(--blue-sky);      /* small print */
  --color-surface:   transparent;          /* intro box sits on the dark page */
  --color-accent:    var(--rust-belt);
  --color-dark:      var(--strato-blue);
  --color-blue:      var(--river-blue);
  --color-highlight: var(--heartland-yellow);

  /* -- type -- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Libre Franklin", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --radius: 4px;
}

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

body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img, iframe{ max-width: 100%; }
img{ height: auto; display: block; }
p{ margin: 0 0 1em; }

a{ color: var(--color-highlight); }
a:hover{ color: var(--claeys-cream); }

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

/* ===================================================================
   PAGE LAYOUT
   =================================================================== */
#allContent{
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(0rem, 4vw, 2.5rem) 0 2rem;
}

#mainbox{
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2rem) 0;
}

/* ===================================================================
   BANNER  (Strato Blue, blends into the page like the FOBE header)
   =================================================================== */
#banner{
  width: 100%;
  container-type: inline-size;
}

#banner .bannerLink{
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1000 / 369;
  background: var(--color-dark);
  color: var(--claeys-cream);
  border-bottom: 1px solid var(--river-blue); /* like the FOBE header */
  text-decoration: none;
}

#banner .bannerLink:hover{ color: var(--claeys-cream); }

#banner .bannerTitle{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 7.2vw;    /* fallback for older browsers */
  font-size: 7.2cqw;   /* scales with the banner's width */
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

@media (min-width: 700px){
  @supports not (font-size: 1cqw){
    #banner .bannerTitle{ font-size: 50px; }
  }
}

/* ===================================================================
   INTRO BOX
   =================================================================== */
p.highlight{
  background: var(--color-surface);
  border: 4px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ===================================================================
   FORM BOX  (holds the Tally form)
   =================================================================== */
.mainentry{
  background: var(--claeys-cream);
  border: 4px solid var(--color-highlight);
  border-radius: var(--radius);
  padding: .5rem clamp(.75rem, 4vw, 2rem);
  margin: 0 0 1.5rem;
  line-height: normal;
}

.mainentry iframe{
  display: block;
  width: 100%;
}

/* The "reload to submit another" note */
#mainbox > p:not(.highlight){
  color: var(--heartland-yellow);
  font-size: 1.5rem;
}

/* ===================================================================
   FOOTER
   =================================================================== */
#footer{
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 4px solid var(--color-highlight); /* like the FOBE footer */
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: var(--calm-blue);
  text-align: center;   /* centers the footer text */
}
#footer p{ margin: 0; }
