/* CSS document */

html,
body,
div,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
}

img {
  width: 100%;
  display: block;
}

video {
  width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: "nimbus-sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

div.container,
div.home-container {
  max-width: 40em;
  margin: auto;
}

h1 {
  width: 12em;
  margin-top: 1em;
}

h1,
nav {
  margin-top: 0.5em;
}

h2 {
  font-family: "mencken-std-narrow", sans-serif;
  font-weight: 700;
  font-style: normal;
  color: #26221a;
}

section {
  margin-bottom: 2em;
}

header,
h2,
p {
  margin: 0.2rem 0.5rem 0;
}

article h2 {
  font-size: 2.5em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

article p {
  margin-bottom: 1em;
}

section.mainstory h2 {
  font-size: 1.5em;
}

section.secondary h2 {
  font-size: 1.5em;
}

aside {
  background: #73675a;
  padding: 1em 0.5em;
  margin-top: 1em;
}

aside section.tertiary h2 {
  font-size: 1.5em;
}

section.tertiary h2 {
  border-top: 1px solid #26221a;
  padding-top: 0.5em;
}

a {
  color: #26221a;
  text-decoration: none;
}

nav ul li {
  list-style-type: none;
}

nav ul li a {
  font-weight: bold;
  color: #26221a;
}

nav ul li a:hover {
  color: #731717;
}

figcaption {
  color: #555;
  font-family: "nimbus-sans", sans-serif;
  font-weight: 300;
  font-style: italic;
  margin: 0.2rem 0.5rem 1em;
}

aside {
  background-color: #f2e6d0;
  padding: 1em;
}

aside section.secondary h2 {
  font-size: 1.5em;
}

footer {
  width: 100%;
  background: #73675a;
  color: #eee;
  padding: 0.5em 0;
  box-sizing: border-box;
}

@media screen and (min-width: 40em) {
  header,
  h2,
  p {
    margin: 0.2rem 0 0;
  }

  figcaption {
    color: #555;
    font-style: italic;
    margin: 0.2rem 0 1em;
  }

  nav ul li {
    display: inline;
    margin-right: 1em;
  }
}

@media only screen and (min-width: 60em) {
  div.home-container {
    max-width: 80em;
    padding: 0 1em;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 1em;
  }

  div.container {
    max-width: 60em;
    padding: 0 1em;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 1em;
  }

  header,
  footer {
    grid-column: 1/3;
  }

  div.home-container main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1em;
  }

  div.container aside {
    margin-top: 0;
  }

  div.home-container aside {
    background: none;
    padding: 0;
    margin-top: 0;
  }

  section.mainstory {
    display: flex;
    grid-column: 2/4;
    grid-row: 1/3;
  }

  section.mainstory a {
    flex: 1 0 12em;
    display: flex;
    flex-direction: column;
  }

  section.mainstory a figure {
    flex: 1 0 12em;
    background: #731717;
    display: flex;
  }

  section.mainstory a figure img {
    object-fit: cover;
  }

  section.mainstory a h2 {
    flex: 0 0 1em;
  }

  section.mainstory a p {
    flex: 0 0 4em;
  }

  section.secondary {
    display: flex;
  }

  section.secondary a {
    flex: 1 0 12em;
    display: flex;
    flex-direction: column;
  }

  section.secondary a figure {
    flex: 1 0 12em;
    background: #731717;
    display: flex;
  }

  section.secondary a figure img {
    object-fit: cover;
  }

  section.secondary a h2 {
    flex: 0 0 1em;
  }

  section.secondary a p {
    flex: 0 0 4em;
  }
}
