/* Shared styles for every page: page basics, header, mobile drawer, footer.
   Rewritten from the Gatsby site's React (emotion) styles; values unchanged. */

:root {
  --dark: #1d1d1d;
  --highlight: #b4fba8;
  --muted: #909090;
  --font-body: Arimo, sans-serif;
  --font-header: "DIN W01 Cond Bold", sans-serif;
}

/* Page basics */
* { box-sizing: border-box; }
html { min-width: initial !important; }
body { margin: 0; background-color: var(--dark); font-family: var(--font-body); color: white; }
h1, h2, h3, h4, nav, header, address { font-family: var(--font-header); text-transform: uppercase; }
h1, h2, h3, h4 { text-align: center; }
h1 { font-size: 3rem; font-weight: normal; }
main { width: 100%; display: flex; flex-flow: column nowrap; align-items: center; background-color: var(--dark); }
a { text-decoration: none; color: white; }
a:hover { color: var(--highlight); }
a:focus { outline: 1px dotted var(--muted); }
button { font-size: 100%; font-family: inherit; border: 0; padding: 0; background: none; text-transform: uppercase; font-weight: bold; cursor: pointer; }
button:focus { outline: none; }
img { height: auto; }
div:focus { outline: 1px dotted var(--muted); }
.container_wrap { border-top-style: none !important; }

/* Header */
.site-header {
  font-family: var(--font-header);
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
  display: flex; flex-flow: row nowrap; justify-content: space-between; align-items: flex-end;
  font-weight: bold; text-transform: uppercase;
}
.site-logo {
  position: absolute; z-index: 1; top: 16px; left: 20px; width: 200px;
  /* the logo SVG is black; these filters turn it white, and green on hover */
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(353deg) brightness(112%) contrast(104%);
}
.site-logo:hover {
  filter: invert(93%) sepia(5%) saturate(2399%) hue-rotate(55deg) brightness(94%) contrast(110%);
}
.site-logo__img { display: block; width: 200px; }
.site-nav {
  transition: transform 300ms;
  width: 100%;
  border-bottom: 2px solid var(--highlight);
  background: #1d1d1dcf;
  padding: 20px 48px;
  display: flex; justify-content: flex-end;
}
.site-nav__link {
  font-size: 1rem; color: var(--muted); letter-spacing: 0.03em; margin: auto 10px;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--highlight); }
.site-nav__menu-button { display: none; margin: 0 10px; color: var(--muted); }

/* Mobile drawer (opened by the Menu button) */
.drawer { position: fixed; inset: 0; z-index: 10000; }
.drawer[hidden] { display: block; visibility: hidden; pointer-events: none; transition: visibility 0s 0.3s; }
.drawer__mask { position: absolute; inset: 0; background: black; opacity: 0.3; transition: opacity 0.3s; }
.drawer[hidden] .drawer__mask { opacity: 0; }
.drawer__panel {
  position: absolute; top: 0; left: 0; height: 100%; width: 300px; max-width: 85vw;
  background-color: var(--highlight);
  display: flex; flex-flow: column nowrap; padding: 10px 0 0 30px; overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
}
.drawer[hidden] .drawer__panel { transform: translateX(-100%); }
.drawer__link { margin-top: 20px; font-size: 2rem; color: var(--dark); }
.drawer__link:hover { color: var(--dark); text-decoration: underline; }

/* Pages with no bar behind the menu (Resources, 404) */
.site-header--transparent .site-nav { background: none; border-bottom: none; }
/* Home: the menu links slide up out of view until the header is hovered (site.js) */
.site-header--autohide.is-hidden .site-nav { transform: translateY(-100px); }

/* Round outlined button (Back to Resources, 404 page) */
.round-button {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 150px; height: 150px; padding: 16px;
  border: 1px solid white; border-radius: 50%;
  font-family: var(--font-header); font-size: 1.5rem; text-transform: uppercase; text-align: center;
  color: white; letter-spacing: 0.03em;
}
.round-button:hover { background-color: var(--highlight); border-color: var(--highlight); color: var(--dark); }
@media (hover: none) {
  .round-button { background-color: var(--highlight); border-color: var(--highlight); color: var(--dark); }
}

/* Page wrapper for text pages (About and articles) */
.page-article { width: 100%; padding: 80px 20px 20px; }

/* Footer */
.site-footer {
  width: 100%; background-color: var(--dark);
  display: flex; flex-flow: column nowrap; align-items: center;
  border-top: 2px solid var(--highlight);
  padding: 15px 0;
}
.site-footer__links { display: flex; gap: 1.5em; }
.site-footer__links a { font-size: 1rem; text-transform: uppercase; font-family: var(--font-header); }
.site-footer__origin { margin: 10px 0 0; font-size: 0.8rem; color: var(--muted); }
.site-footer__origin a { color: var(--muted); text-decoration: underline; }
.site-footer__origin a:hover { color: var(--highlight); }
/* Tablet and up: the origin line sits at the right edge, level with the links,
   so the links stay centred and the footer keeps its original height. */
@media (min-width: 768px) {
  .site-footer { position: relative; }
  .site-footer__origin { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); margin: 0; }
}

/* Widths: tablet 700px, desktop 1000px */
@media (min-width: 768px) and (max-width: 1023px) {
  .page-article { width: 700px; }
}
@media (min-width: 1024px) {
  .page-article { width: 1000px; }
}
@media (max-width: 767px) {
  .site-logo, .site-logo__img { width: 150px; }
  .site-nav { padding: 15px 5px; }
  .site-nav__link { display: none; }
  .site-nav__menu-button { display: initial; }
  .page-article { padding: 80px 0 0; }
}
@media (min-width: 768px) {
  .drawer { display: none; }
}
