/*
 * Page shell around the widget: fonts, body, footer. Trimmed from
 * ep-training-map's chrome.css (no masthead or auth badge: this page lives in
 * an iframe on protectthevote.net, which has its own).
 *
 * The page dresses as the ELECTION PROTECTION COALITION, not Common Cause.
 * Tokens are the coalition's own, from 866ourvote.org's theme.
 *   Source of record: ep-tools-home/docs/ep-coalition-style-guide.md
 *
 * TYPE: Figtree, self-hosted (SIL OFL; fonts/OFL.txt). The coalition's
 * Proxima Nova kit is domain-locked to 866ourvote.org and must not be served
 * from here.
 */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white:  #FFFFFF;
  --cloud:  #CFD2E6;
  --slate:  #606480;
  --royal:  #222A5F;
  --sky:    #3FAFEF;
  --sea:    #1B7BB3;

  --font-sans: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica,
               Arial, sans-serif;
  --small: .875rem;
}

* { box-sizing: border-box; }

body.site-page {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-weight: 500;
  background: var(--white);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* No min-height: 100vh. In an iframe that sized to its content, a viewport
   floor would feed back into the reported height. */

.site-main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 20px 32px;
}

.site-footer {
  border-top: 1px solid var(--cloud);
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px 24px;
  font-size: var(--small);
  line-height: 1.5;
  color: var(--slate);
}

.site-footer p { margin: 0; }

.site-footer a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }

.site-footer a:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .site-main { padding: 16px 14px 28px; }
  .site-footer { padding: 14px 14px 20px; }
}
