body,
main,
article,
section,
header,
footer {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Revalia", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: rgba(59, 58, 66, 0.973);
  color: rgb(233, 229, 225);
  padding: 20px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: "Bungee Spice", sans-serif;
  font-weight: 400;
  font-size: 2.5em;
}

/* === TWO-COLUMN HERO === */
.hero {
  background-image: url(../images/fluid01.jpg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top-right-radius: 2em;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.hero p {
  width: 80%;
  margin-top: 16px;
  font-size: 0.88em;
  line-height: 1.8;
}

.hero-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.hero-image figure {
  margin: 0;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
}

.hero-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.55);
  font-family: "Revalia", sans-serif;
  font-size: 0.82em;
  text-align: center;
  line-height: 1.6;
  color: rgb(233, 229, 225);
}

/* === FIVE-COLUMN SECTION === */
section {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 5px;
}

.em {
  background-image: url(../images/fluid02.jpg);
  border: 1em solid #f00366;
}

.rem {
  background-image: url(../images/fluid03.jpg);
  border: 0.5rem dotted rgb(81, 243, 16);
}

.percent {
  background-image: url(../images/fluid04.jpg);
}

.percent p {
  width: 75%;
}

.box {
  background-image: url(../images/fluid05.jpg);
  box-sizing: border-box;
  border: 13px solid rgb(220, 247, 177);
}

.vw {
  background-image: url(../images/fluid06.jpg);
  border: 1vw dashed rgb(252, 8, 8);
  font-size: 1vw;
}

footer {
  padding: 16px 0 0;
  font-size: 0.7em;
  color: rgba(233, 229, 225, 0.5);
  text-align: center;
}

@media (max-width: 768px) {
  .pure-g > [class*="pure-u"] {
    width: 100%;
  }

  .hero,
  .hero-image {
    min-height: 360px;
  }

  .hero p,
  .percent p {
    width: 100%;
  }

  .vw {
    font-size: 0.85rem;
  }
}
