/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

html,
body {
  font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #e9eff0;
  color: #666;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

body {
  color: #696969;
  width: 100vw;
  max-width: 100vw;
  display: grid;
  grid-template-columns: auto 0 1fr 0;
  grid-template-rows: auto auto auto;
  grid-gap: 0.6em;
}

body > main {
  display: block;
  margin-right: 0.4em;
  margin-left: 0.4em;
  background: white;
  padding: 1.5em;
  margin-bottom: 1em;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2), 0 0 3px 1px rgba(0, 0, 0, 0.05);
  margin-top: 1em;
  border-radius: 0.7em;
  display: flex;
  flex-direction: column;
}

body > main > h1:first-of-type {
  order: -1;
  margin-top: 0;
}

body > aside {
  background: white;
  display: flex;
  flex-direction: column;
  padding-top: 1em;
  margin: 1px;
  box-shadow: 0 0 3px white, 0 0 4px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.15);
  min-height: calc(100vh - 4px);
}

body > aside .site-title {
  text-align: center;
  margin: 0;
  margin-bottom: 0.3em;
}

body > aside .visit-pt {
  text-align: center;
  margin-bottom: 1em;
}

body > aside .nav-item {
  display: block;
  padding: 0.6em;
}

body > aside .nav-item,
body > aside .nav-item:visited {
  color: #33353a;
  text-decoration: none;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 2em;
}

.page-header a {
  text-decoration: none;
  font-size: 1.2em;
}

@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
    font-size: 14px;
  }

  body > main,
  body > main > * {
    width: calc(100% - 0.4em - 0.4em);
  }

  body > aside {
    margin: 0.4em;
    padding: 0.6em 0;
    border-radius: 3px;
  }

  .page-header {
    padding-left: 1em;
  }
}

@media (min-width: 1322px) {
  body {
    grid-template-columns: auto 1fr auto 1fr;
  }

  body > main {
    width: 70em;
  }

  body > aside .nav-item {
    padding: 0.6em 1.5em;
  }
}

a,
a:visited,
a:focus {
  color: #4099b9;
}

a:hover,
a:focus:hover {
  color: #0b96c7;
}

p,
ul,
ol {
  margin-top: 0.75em;
  margin-bottom: 0.2em;
  margin-left: 0;
  margin-right: 0;
}

p,
ul,
ol,
li,
button {
  font-size: 1.15rem;
}

p,
main,
strong,
em {
  line-height: 1.625em;
  letter-spacing: 0.00938em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif;
  margin-top: 0.3em;
  /* Padding so anchors to elements have some whitespace */
  padding-top: 1em;
  margin-bottom: 0;
  line-height: 1;
}

h2 {
  color: hsl(207, 10%, 44%);
}

h3 {
  color: hsl(207, 5%, 47%);
}

h4,
h5,
h6 {
  color: hsl(207, 5%, 54%);
}

ul a {
  text-decoration: none;
}

h1 {
  margin-top: 1em;
  font-size: 3.5rem;
  letter-spacing: -0.01562em;
}

h1 + p,
h1 + ul {
  margin-top: calc(3.5em * 0.6667);
}

h2 {
  font-size: 2.6rem;
  letter-spacing: -0.01562em;
}

h2 + p,
h2 + ul {
  margin-top: calc(2em * 0.6667);
}

h3 {
  font-size: 2.125rem;
  letter-spacing: -0.01562em;
}

h3 + p,
h3 + ul {
  margin-top: calc(2.125em * 0.6667);
}

h4 {
  font-size: 1.5rem;
}

h4 + p,
h4 + ul {
  margin-top: calc(1.5em * 0.6667);
}

h5 {
  font-size: 1.25rem;
}

h1 + h2,
h2 + h3,
h3 + h4,
h4 + h5,
h5 + h6 {
  margin-top: 0.1em;
}

li > ul {
  margin-top: 0;
}

ul > li:not(:first-of-type),
li li {
  margin-top: 0.4em;
}

h2 {
  position: relative;
}

h2::before {
  content: '';
  display: block;
  position: absolute;
  height: 1px;
  /* 100% - (h2's padding-top / 2) + (h2's margin-top / 2) */
  bottom: calc(100% - 0.5em + 0.15em);
  left: 0;
  right: 0;
  border-top: 1px solid #999;
}

h1 + h2::before {
  display: none;
}

.page-home {
  position: relative;
}

.page-home h2 {
  margin-bottom: 0.65em;
}

.page-home .items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  grid-template-rows: repeat(auto-fill, auto);
  grid-gap: 3em 4.5em;
}

.page-home .items.items-big > * {
  margin: 0;
}

.page-home .items.items-big a {
  display: flex;
  background: #f7f7f7;
  text-align: center;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  padding: 1em 0.3em;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3), 0 0 2px rgba(0, 0, 0, 0.15);
  color: #444547;
  border-radius: 5px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.page-home .items.items-big a:hover {
  z-index: 1;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 0, 0, 0.15);
}

.page-home .items.items-faq {
  grid-template-columns: repeat(auto-fill, minmax(25em, 1fr));
}

[data-page-name] main {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

[data-page-name] main::after {
  content: '';
  display: block;
  background-color: rgba(77, 33, 18, 0.6);
  background-image: url('/assets/banner.jpg');
  background-size: 100%;
  background-position: 0 74%;
  background-repeat: no-repeat;
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  padding-bottom: 18%;

  z-index: -1;
  box-shadow: 0 -0.2em 0.5em rgba(174, 152, 127, 1),
    0 -0.5em 1em rgba(77, 33, 18, 0.6);
}

@media all and (-webkit-min-device-pixel-ratio: 1.5), all and (-o-min-device-pixel-ratio: 3/2), all and (min--moz-device-pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5) {
  [data-page-name] main::after {
    background-image: url('/assets/banner@2x.jpg');
  }
}

[data-page-name='index'] main > ul:first-of-type {
  display: none;
}

[data-page-name] main h1:first-of-type {
  color: white;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.7), 0 0 rgba(0, 0, 0, 0.1);
  padding-left: 0.4em;
  margin-bottom: 1.2em;
}

aside > a[href='/'] {
  text-decoration: none;
  transition: color 0.23s;
}

aside > a[href='/']:hover > h2 {
  color: hsl(207, 30%, 44%);
}
