@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@200;400;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: hsl(120, 50%, 10%);
  --secondary-color: rgba(20, 20, 20, 0.6);
  --faded-color: rgba(20, 20, 20, 0.18);
  --link-color: rgba(200, 120, 110, 0.97);
  --accent-color: #ff3e00;
  --bg: #fff;
}

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

body {
  font-family: "Dosis", sans-serif;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  color: var(--primary-color);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Typography ---- */

h1 {
  font-family: "Dosis", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  color: var(--primary-color);
}

h2 {
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.8rem;
}

p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Layout ---- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.site-header .logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: none;
}

.site-header .logo:hover {
  opacity: 0.8;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-family: "Dosis", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s linear;
}

nav a:hover,
nav a.active {
  color: var(--accent-color);
}

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

/* ---- Hero (home) ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.hero img {
  border-radius: 4px;
}

.hero h1 {
  color: var(--accent-color);
  text-transform: uppercase;
  font-weight: 200;
  animation: fly-in 1.5s ease-out;
}

@keyframes fly-in {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Content pages ---- */

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.page-content video {
  border-radius: 4px;
}

/* ---- Footer ---- */

.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--faded-color);
  font-size: 0.85rem;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  nav ul {
    gap: 1rem;
  }

  main {
    padding: 1rem;
  }
}
