/*
 * Site-wide styling.
 */

/*
 * Bump the font sizes as they're a bit tough to read on mobile at
 * 1em. Note that our virtual line height is 1.5rem.
 */

:root {
  line-height: 1.8em;
  font-size: 1.2em;
}

/*
 * Grid areas.
 */

.logotype {
  grid-area: logotype;
}

.top-nav {
  grid-area: top-nav;
}

.logo {
  grid-area: logo;
}

.company-nav {
  grid-area: company-nav;
  border-top: 2px solid #111111;
}

.resources-nav {
  grid-area: resources-nav;
}

.elsewhere-nav {
  grid-area: elsewhere-nav;
}

.copyright {
  grid-area: copyright;
}

/*
 * Styling.
 */

main {
  /* Purely semantic, transparent to grid. */
  display: contents;
}

article {
  /* Purely semantic, transparent to grid. */
  display: contents;
}

footer {
  /* Purely semantic, transparent to grid. */
  display: contents;
}

nav.top-nav ul {
  padding: 0;
}

nav.top-nav ul li {
  font-family: "Source Sans Pro", sans;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
}

body {
  background-color: #fbfbf8;
  color: #111111;
  font-family: "Source Sans Pro", sans;
}

.logotype h1 {
  font-family: "Source Serif Pro", serif;
  font-weight: 600;
  color: #000000;

  /* This is a banner.. */
  font-size: 12vw;
  line-height: 6rem;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-column h2 {
  font-family: "Source Sans Pro", sans;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #111111;
}

.nav-column ul {
  padding: 0;
}

a:any-link {
  color: #111111;
}

/* Don't underline the logotype. */
.logotype h1 a:any-link {
  text-decoration: none;
}

ul {
  list-style-type: none;
}

h1 {
  font-weight: 600;
  font-size: 2rem;
  line-height: 3rem;
  color: #b12727;
}

h2 {
  margin-top: 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #111111;
}

h3 {
  margin-top: 1.5rem;
  font-weight: 400;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #111111;
}

code {
  font-family: "Source Code Pro", monospace;
  font-size: 0.9rem;
}

p {
  font-family: "Source Sans Pro", sans;
}

p + ul {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

p + ul li {
  font-family: "Source Sans Pro", sans;
}

p + ol li {
  font-family: "Source Sans Pro", sans;
}

p + p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

p.copyright {
  display: flex;
  justify-content: flex-end;

  font-family: "Source Sans Pro", sans;
  color: #888888;
}

h1 + table {
  margin-top: 1.5rem;
}

p + table {
  margin-top: 1.5rem;
}

table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border-spacing: 10px 5px;
}

thead tr th {
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #111111;

  font-family: "Source Sans Pro", sans;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
}

tbody tr th {
  text-align: left;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #777777;

  font-family: "Source Sans Pro", sans;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
}

tbody tr td {
  text-align: left;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #777777;

  font-family: "Source Sans Pro", sans;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
}

/*
 * Media queries for more expansive page sizes.
 */

@media (min-width: 640px) {
  :root {
    /* Mozilla recommends 1.5 for accessiblity reasons */
    line-height: 1.5em;
    font-size: 1em;
  }

  nav.top-nav ul {
    display: flex;
    justify-content: flex-end;
  }

  nav.top-nav ul li {
    flex: 1 1 auto;
    text-align: right;
  }

  .resources-nav {
    border-top: 2px solid #111111;
  }

  .elsewhere-nav {
    border-top: 2px solid #111111;
  }

  .logotype h1 {
    font-size: 3rem;
    line-height: 4.5rem;
  }
}
