@font-face {
  font-family: 'Averia Serif Libre';
  font-style: normal;
  font-weight: normal;
  src: url(/assets/averia.woff2) format('woff2');
  font-display: swap;
}

body {
  --color-bg: #FCFAF2;
  --color-fg: #000;
  --color-pri: #2C4932;
  --color-pri-hint: #2C493244;
  --color-sec: #666144;
  --color-highlight: #f3db7b66;

  margin: 0;
  min-height: 100vh;
  /* for the bg img */

  background: var(--color-bg);
  color: var(--color-fg);

  font-family: 'Averia Serif Libre', serif;
  font-size: 16px;
  line-height: 1.3;
}

body>video.background {
  object-fit: cover;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

/* page layout */

.content,
.pagebg {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  clear: both;
}

.pagebg {
  background: var(--color-bg);
  border-radius: 10px;
  border: 1px solid #fff;
}

.cols {
  display: flex;
  justify-content: center;
  max-width: 1000px;
  margin: 40px auto;
  gap: 20px;
}

.cols .col {
  flex: 1;
  max-width: 600px;
}

/* header and footer */

.header {
  background: var(--color-bg);
  position: sticky;
  top: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.header .content {
  display: flex;
  height: 50px;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header .logo {
  height: 30px;
}

.header a:not(:hover) {
  text-decoration: none;
}

.footer {
  font-size: 12px;
  text-align: center;
  padding: 30px 0 10px;
  background: linear-gradient(to bottom, #0000, #0006, #0009);
  color: white;
  text-shadow: 0 0 3px black;
}

/* typography and article content */

h1,
h2 {
  font-weight: normal;
  margin-top: 0;
  line-height: 1.1;
  color: var(--color-pri);
}

*+h1,
*+h2 {
  margin-top: 1.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-decoration: underline;
}

li {
  margin-bottom: 1em;
}

a {
  color: var(--color-sec);
}

strong {
  font-weight: normal;
  display: inline;
  padding: 2px;
  background: var(--color-highlight);
  border-radius: 5px;
}

p img {
  width: 100%;
}

/* blockquotes */

.quote {
  border-left: 1px solid var(--color-pri-hint);
  padding-left: 2em;
  margin-left: 0;
  margin-inline-end: 1em;
}

.quote .byline {
  text-align: right;
}


/* collapsible summary/details */

details {
  border: 1px solid var(--color-pri-hint);
  border-left: none;
  border-right: none;
}

details+details {
  border-top: none;
}

details summary {
  padding: 10px;
  cursor: pointer;
  text-decoration: underline;
  user-select: none;
}

details summary:hover {
  background: var(--color-highlight);
}

details p {
  margin-left: 1.5em;
}

/* floating/hero section */

.floating {
  position: relative;
  padding: 20px;
  max-width: 400px;
  color: white;
  background: #35322299;
  border: 1px solid #fff3;
  border-bottom-color: #6663;
  box-shadow: 0 2px 10px #0009;
  backdrop-filter: blur(8px);
  border-radius: 10px;
  float: right;
  margin: 160px 0 200px;
}

.floating strong {
  background: #0006;
}

.floating h1,
.floating h2 {
  color: white;
}

/* CTA button */

button,
.button {
  background: none;
  padding: 5px;
  border: 1px solid white;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1.2em;
  color: inherit;
  cursor: pointer;
  transition: all .2s ease-out;
  text-decoration: none;
}

button::before,
.button::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 16px;
  vertical-align: middle;
  background: url(/assets/favicon.svg) no-repeat;
  filter: brightness(100);
}

button:hover,
.button:hover {
  background: var(--color-pri);
  color: var(--color-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0.3);
}

/* responsive */
@media(max-width: 1000px) {
  .cols {
    flex-direction: column;
  }

  .content {
    padding: 0;
  }

  .floating {
    margin-left: 10px;
    margin-right: 10px;
  }
}