@font-face {
  font-family: Instrument Sans;
  src: url('../assets/instrument-sans.woff2') format('woff2');
  font-display: swap;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: #f3f6f5;
  color: #17343a;
  font:
    16px/1.5 'Instrument Sans',
    sans-serif;
}
header,
main {
  width: min(1400px, calc(100% - 64px));
  margin: auto;
}
header {
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
a {
  color: #12685d;
  text-underline-offset: 4px;
}
header span,
p {
  color: #54686d;
}
h1 {
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
  margin: 22px 0 2px;
  line-height: 1.15;
}
p {
  margin: 8px 0 20px;
}
#eras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.montage-choice {
  border-color: #12685d;
}
button {
  font: inherit;
  background: #fbfcfb;
  color: #17343a;
  padding: 9px 22px;
  min-height: 44px;
  border: 1px solid #c8d5d2;
  border-radius: 8px;
  cursor: pointer;
}
button[aria-current='true'] {
  background: #12685d;
  color: #fff;
  border-color: #12685d;
}
button:hover {
  border-color: #12685d;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #12685d;
  outline-offset: 4px;
}
.film-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
h2 {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}
.film-heading a {
  font-size: 14px;
}
.frame {
  background: #132c30;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
video {
  display: block;
  width: 100%;
  height: 100%;
}
#status {
  margin: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 24px;
  color: #fff;
  pointer-events: none;
}
#caption {
  font-size: 13px;
  padding: 12px 0 30px;
}
@media (max-width: 600px) {
  header,
  main {
    width: calc(100% - 28px);
  }
  header {
    font-size: 12px;
  }
  button {
    flex: 1 0 28%;
    padding-inline: 10px;
  }
  #eras {
    gap: 6px;
    margin-block: 18px;
  }
  .montage-choice {
    flex-basis: 100%;
  }
  .film-heading {
    align-items: start;
  }
  h2 {
    font-size: 17px;
  }
  #status {
    font-size: 14px;
  }
}
