:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: #fe9900;
  background: #000;
}

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  padding-block-start: 30px;
  background: linear-gradient(
    to bottom,
    #000 0 9px,
    #141414 9px 10px,
    #000 10px 20px,
    #141414 20px 21px,
    #000 21px
  );
  background-color: #000;
}

.masthead {
  flex: none;
  border-block: 2px solid #670000;
  padding-block: 2px;
  background: #000;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  block-size: 300px;
  background: #670000;
}

.brand img {
  display: block;
  inline-size: 123.2px;
  block-size: 100.8px;
}

.brand h1 {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  transform: scaleX(1.05);
}

.statement {
  flex: 1;
  padding: 25px 20px 56px;
  background: repeating-linear-gradient(
    to bottom,
    #000 0 12px,
    #141414 12px 13px
  );
}

.tagline {
  display: flex;
  inline-size: fit-content;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.5;
  text-align: left;
  white-space: nowrap;
}

.prefix {
  flex: none;
}

/* The final phrase sets the width; cycling words cannot move the opening. */
.words {
  position: relative;
}

.word {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
}

.word,
.is-playing .ending {
  opacity: 0;
}

.period,
.easy {
  display: inline-block;
}

.period {
  transform-origin: center bottom;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
