* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f5f5;
  color: rgb(64, 63, 63);
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
}

#drawCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  padding: 70px 5vw;
}

.intro {
  max-width: 780px;
}

h1 {
  margin: 0 0 22px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  color: rgb(64, 63, 63);
  font-style: italic;

}

p {
  margin: 0 0 42px;
  font-size: clamp(1.50rem, 2vw, 1.50rem);
  line-height: 1.35;
  font-weight: 400;
}

em {
  font-style: italic;
  font-weight: 400;
  box-shadow: inset 0 -0.22em 0 rgba(84, 163, 125, 0.28);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 44px;
  align-items: start;
}

.video-wrap {
  position: relative;
  width: 100%;
}

video {
  width: 100%;
  display: block;
  background: #ddd;
  object-fit: cover;
  stroke-width: 4px;
  stroke:rgb(64, 63, 63);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 2px;
  font-family: Arial, Helvetica, sans-serif;
}

nav a {
  color: rgb(64, 63, 63);
  text-decoration: none;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  font-weight: 700;
  display: inline-block;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: border 0.15s ease, transform 0.15s ease;
}

nav a:hover {
  border: 1px solid rgb(64, 63, 63);
  text-decoration: none;
  transform: scale(1.03);
}

@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px 28px;
  }

  #playButton {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
}
#drawCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
}