﻿:root {
  --color: #272727;
  --bcolor: white;
  --accent: #D4004F;
  --text-font: "magneta", serif;
  --text-max-width: 48rem;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

a, a:visited {
  text-decoration: none;
  color: inherit;
}
a:active, a:visited:active {
  transform: translate(0.2em, 0.2em);
}

body {
  margin: 0;
  margin: 0;
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  -webkit-backdrop-filter: grayscale(0.8) sepia(0.2) blur(2px);
  backdrop-filter: grayscale(0.8) sepia(0.2) blur(2px);
}

article {
  background: var(--bcolor);
  box-shadow: 0px -16px 20px 0px rgba(0, 0, 0, 0.56);
  flex-grow: 1;
  font-family: var(--text-font);
  font-style: normal;
  font-weight: normal;
  padding: 1rem;
  padding-bottom: 2rem !important;
  position: relative;
}
article h2 {
  font-family: var(--text-font);
  font-weight: 200;
}
@media (max-width: 640px) {
  article {
    padding: 0.5rem;
    font-size: 90%;
    line-height: 1.6em;
  }
}
article .images {
  column-gap: 0.4rem;
  row-gap: 0.4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 1rem;
  padding-top: 1rem;
  row-gap: 0.4rem;
}
article .images > a {
  aspect-ratio: 1/1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}
@media (max-width: 640px) {
  article .images {
    grid-template-columns: repeat(2, 1fr);
  }
}

aside {
  font-family: "john-doe", sans-serif;
  font-size: 1em;
  font-weight: 200;
  padding: 1rem 0 0rem 0rem;
}
aside:empty {
  display: none;
}
aside span:not(:empty) {
  display: block;
  line-height: 1.4em;
}
@media (max-width: 640px) {
  aside span:not(:empty) {
    font-size: 0.8em;
  }
}

h1, h2 {
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: "quatro", sans-serif;
}

h1 {
  font-size: 3em;
  font-weight: 700;
  margin: 0;
}
@media (min-width: 640px) and (max-width: 1024px) {
  h1 {
    font-size: 2em;
    padding-bottom: 1rem;
  }
}

h2 {
  font-size: 2em;
  margin: 0;
}
@media (min-width: 640px) and (max-width: 1024px) {
  h2 {
    font-size: 1.4em;
  }
}

footer {
  background-color: var(--bcolor);
  border-top: 1px solid var(--accent);
  min-height: 4em;
}

nav {
  align-content: center;
  align-items: flex-start;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 2em 2em 1em 2em;
  box-sizing: border-box;
  width: 100%;
  background-color: var(--accent);
  box-shadow: 0 4px 7px rgba(0, 0, 0, 0.5);
}
nav .search-icon {
  fill: transparent;
  stroke: var(--accent);
  width: 2em;
}
nav > input[type=search] {
  border: 1px solid var(--accent);
  border-radius: 1em;
  font-size: 1.2em;
  line-height: 1em;
  outline: none !important;
  padding: 0.4rem 1rem 0.4rem 1rem;
  width: 16em;
}
@media (max-width: 640px) {
  nav > input[type=search] {
    font-size: 1em;
    width: 50vw;
  }
}
@media (max-width: 640px) {
  nav {
    padding: 1rem;
  }
}

p {
  font-size: 1.4em;
  max-width: var(--text-max-width);
}
p.credits {
  font-style: italic;
  margin-bottom: 0;
}
p.credits + .credits {
  margin-top: 0.4em;
}
p .question {
  display: block;
}
@media (max-width: 640px) {
  p {
    font-size: 1.2em;
  }
}

.abafb-logo {
  fill: white;
  stroke: white;
  height: 4em;
}
.abafb-logo .blog-text {
  fill: var(--accent);
  stroke: var(--accent);
}
@media (max-width: 640px) {
  .abafb-logo {
    height: 2em;
  }
}

.abafr-logo svg {
  height: 3rem;
  fill: white;
  stroke: white;
}
@media (max-width: 640px) {
  .abafr-logo svg {
    height: 2rem;
  }
}

.cards {
  display: grid;
  gap: 1em;
  grid-auto-flow: row;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem;
  background-color: var(--bcolor);
}
@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
    padding: 0.4rem;
  }
}
@media (min-width: 640px) and (max-width: 1024px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.cards .card {
  align-content: center;
  align-items: flex-start;
  border-radius: 0.4rem;
  box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.13), 0 1px 2px 0 rgba(0, 0, 0, 0.11);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  font-size: 50%;
  justify-content: flex-start;
  outline: none !important;
  padding-bottom: 1rem;
  text-decoration: none;
}
.cards .card > * {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
.cards .card header {
  aspect-ratio: 1/1;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0.4rem 0.4rem 0 0;
  display: block;
  width: 100%;
  padding: 0;
}
.cards .card h1 {
  border-radius: 0.2em 0.2em 0 0;
  font-weight: 400;
  padding-top: 1rem;
  color: var(--accent);
}
.cards .card h2 {
  font-weight: normal;
  padding-top: 0.6rem;
  color: var(--accent);
}
.cards .card aside {
  color: var(--color);
  text-transform: lowercase;
  font-size: 1.4em;
  line-height: 1.4em;
  padding-top: 1rem;
}
.cards .card aside + aside {
  padding-top: 0em;
}

.txt body {
  background-image: none !important;
}
.txt h1, .txt h2, .txt aside {
  color: var(--accent);
  text-shadow: none;
}
.txt header, .txt article {
  max-width: var(--text-max-width);
  width: 100%;
}
.txt .post nav {
  position: relative;
}
.txt .post nav .abafr-logo {
  fill: var(--accent);
  stroke: var(--accent);
}
.txt .post header {
  height: auto;
  padding-top: 2em;
  position: relative;
}
.txt .post article {
  box-shadow: none;
}
.txt.center .post nav {
  position: sticky;
  top: 1em;
}
@media (max-width: 640px) {
  .txt.center .post nav {
    position: relative;
  }
}
@media (min-width: 640px) and (max-width: 1024px) {
  .txt.center .post nav {
    position: relative;
  }
}
.txt.center .post header, .txt.center .post article {
  display: block;
  margin: 0 auto;
}
.txt.cap .post article p:first-child:first-letter {
  color: var(--accent);
  display: block;
  float: left;
  font-size: 4em;
  line-height: 1em;
  margin-bottom: -2rem;
  padding-left: 0;
  padding-right: 0.1em;
  padding-top: 0em;
  margin-top: -0.2rem;
}

#page-back {
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  position: fixed;
  z-index: -100;
  filter: grayscale(1);
  opacity: 0.8;
}
@media (max-width: 640px) {
  #page-back {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
  }
}
#page-back > div {
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
@media (max-width: 640px) {
  #page-back > div {
    aspect-ratio: 1/1.4;
  }
}

#viewport {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  max-width: 100vw;
  min-height: 100vh;
}
#viewport > header {
  min-height: clamp(60vh, 60vw, 80vh);
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: flex-start;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 4em;
}
.home #viewport > header {
  background-color: rgba(0, 0, 0, 0.3);
}
#viewport > header h1, #viewport > header h2 {
  padding: 0 2rem;
  color: var(--bcolor);
  text-shadow: 1px 1px 4px var(--color);
}
@media (max-width: 640px) {
  #viewport > header h1, #viewport > header h2 {
    font-size: clamp(1.4em, 10vw, 2.2em);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}
#viewport > header h1 + h2 {
  font-size: clamp(1em, 5vw, 2em);
}
@media (max-width: 640px) {
  #viewport > header h1 + h2 {
    font-size: 1em;
  }
}
