/* The colours, the type and the header and footer every page carries.
   Every rule here is on :root or under .site-head / .site-foot, so this
   sheet can sit beside the board calculator's own stylesheets. */

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-bold.woff2') format('woff2');
}

:root {
  --ink: #1b2c3d;
  --ink-deep: #111e2a;
  --yellow: #ffcc00;
  --gold: #e2ab3a;
  --timber: #c4855f;
  --plaster: #f3f4f6;
  --sand: #e8dfd5;
  --surface: #ffffff;
  --line: #d4dade;
  --muted: #586a7a;
  --note: #fff6cc;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

/* The header and footer carry their own colours, so a page with its own
   stylesheet (the calculator) cannot change them, nor they it. */
.site-head,
.site-foot {
  --ink: #1b2c3d;
  --ink-deep: #111e2a;
  --yellow: #ffcc00;
  --timber: #c4855f;
  --body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  font-family: var(--body);
  line-height: 1.5;
  box-sizing: border-box;
}
.site-head *,
.site-foot * {
  box-sizing: border-box;
}
.site-head .wrap,
.site-foot .wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.site-head a:focus-visible,
.site-foot a:focus-visible {
  outline: 3px solid var(--timber);
  outline-offset: 3px;
}

.site-head {
  background: var(--ink);
  color: #fff;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  flex-wrap: wrap;
  padding-block: 10px;
}
.site-head .brand {
  display: block;
  line-height: 0;
  padding: 0;
  border: 0;
  background: none;
}
.site-head .brand img {
  height: 54px;
  width: auto;
  max-width: 100%;
  display: block;
}
.site-head .nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: center;
  font-weight: 700;
  font-size: 17px;
}
.site-head .nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-head .nav a:hover {
  border-bottom-color: var(--yellow);
}
.site-head .status {
  font: 700 12px/1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: 7px 10px;
  border-radius: 4px;
}

.site-foot {
  background: var(--ink-deep);
  color: #cbd5dd;
  font-size: 15px;
}
/* As on the company's other app sites: the app above, the parent company and
   its legal details below a thin rule. */
.site-foot .wrap {
  padding-block: 44px 24px;
  display: grid;
  gap: 32px;
}
.site-foot .foot-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
.site-foot .foot-brand,
.site-foot nav {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.site-foot .foot-wordmark {
  display: block;
  height: 44px;
  width: auto;
}
.site-foot p {
  margin: 0;
  max-width: 40ch;
}
/* "nav h2", so the calculator page's own ".board-page h2" can't win. */
.site-foot nav h2 {
  margin: 0 0 2px;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.site-foot a {
  color: #fff;
}
.site-foot nav a {
  text-decoration: none;
}
.site-foot nav a:hover {
  text-decoration: underline;
}
.site-foot .foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  color: #9fb0bd;
}
.site-foot .company-logo-link {
  flex: none;
  display: inline-block;
  transition: opacity 0.2s;
}
.site-foot .company-logo-link:hover {
  opacity: 0.8;
}
/* The company's logo as a white silhouette, as on PointUp and SnugTeam. */
.site-foot .company-logo {
  display: block;
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.site-foot .foot-legal {
  flex: 1 1 20rem;
  max-width: 44rem;
}
@media (max-width: 760px) {
  .site-foot .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-foot .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .site-head .brand img {
    height: 46px;
  }
}
