/* reset css */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, header, nav, body, div, main, section, article, figure, h1, h2, h3, p, ol, ul, footer {
  margin: 0;
  padding: 0;
  border: 0;
}

/* layout css */
body {
  background-color: var(--color-background);
  position: relative;
  color: var(--color-foreground);
  width: 100%;
  transition: background-color 0.3s, color 0.3s;
}

header, nav, body, div, main, section, article, footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

section.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

section.content-fluid {
  position: relative;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  width: 100vw;
}

.flex-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

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

.bg-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-overlay);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: blur(.5px);
  z-index: -1;
}

.sr-only {
  height: 0 !important;
  margin: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
}

@media only screen and (min-width: 992px) {
  section.content-fluid { width: calc(100vw - 3% / 4); }

  .bg-parallax { background-attachment: fixed; }
}

/* typography css */
html {
  font-size: 80%;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

h1 { font-size: 2.5rem; }

h2 {
  font-size: 1.75rem;
  margin-top: 4vw;
}

h3 { font-size: 1rem; }

h4 {
  font-size: 2.25rem;
  margin: 0;
  line-height: 1;
}

p { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: inherit;
}

@media only screen and (min-width: 992px) {
  html { font-size: 100%; }
}

/* animation css */
.hover-scale {
  transition: transform 0.3s ease-in-out;
  transform-origin: center;
  transform: scale(1);
}

.hover-scale:hover {
  transform: scale(1.1);
}
