body {
  background: #000;
  color: #fff;
  /* font trickery */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-rendering: geometricPrecision;
  font-size: 22px;
  margin: 0px;
  padding: 0px 0px 1em 0px;
  font-family: Georgia, "Times New Roman", Times, serif;
}

a {
  color: yellow;
  font-weight: bold;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-size: 40px;
  line-height: 1.25em;
}

p {
  line-height: 1.5em;
}

footnote {
  font-size: 16px;
}

.compact {
  margin-top: 0px;
}

.video-wrapper {
  position: relative;
}

.video-wrapper video {
  margin-top: 0px;
  margin-bottom: 0px;
}

.non-italic {
  font-style: normal;
}

.tight-bottom {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.image-wrapper {
  display: inline-block;
  text-align: center;
  padding-bottom: 1em;
}

.image-wrapper img {
  padding-bottom: 0px;
}

.image-caption {
  text-align: center;
  font-style: italic;
  font-size: 16px;
  margin: 0px;
  padding: 0px;
}

.full-width-link {
  position: absolute;
  top: 0px;
  left: 0px;
  display: block;
  width: 100%;
  height: 100%;
}

.cta-link {
  position: relative;
}

.cta,
.hazard-tape h3 {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -2px;
  transform: translate3d(-50%, -50%, 0);
  padding: 12px 18px;
  font-size: 32px;
  white-space: nowrap;
  border: 4px solid yellow;
  outline: 4px solid rgba(0, 0, 0, 0.33);
  color: yellow;
  border-radius: 16px;
  background: black;
  color: #fff;
}

.cta .link-label {
  color: yellow;
}

.hazard-tape {
  position: relative;
  /**
   * Hat tip:
   * https://www.reddit.com/r/css/comments/gwrx5j/hazard_tape_border_background_effect/
   * https://codepen.io/hzlo/pen/VweYrLX
   */
  min-height: 6vw;
  color: white;
  padding: 5px;
  background-image: repeating-linear-gradient(
    -55deg,
    #000,
    #000 3%,
    yellow 3%,
    yellow 6%
  );
}

.hazard-tape.has-item {
  min-height: 5em;
}

.hazard-tape h3 {
  margin: 0px;
  display: inline-block;
}

.some-spacing {
  margin-top: 1em;
  margin-bottom: 1em;
}

.more-spacing {
  margin-top: 2em;
  margin-bottom: 2em;
}

.center {
  text-align: center;
}

.indent {
  padding-left: 1em;
  padding-right: 1em;
}

@supports (-webkit-touch-callout: none) {
  /* iOS: try to account for The Notch. */
  .indent {
    margin-right: calc(env(safe-area-inset-right) / 2);
    margin-left: calc(env(safe-area-inset-left) / 2);
  }
}

.text {
  max-width: 40em;
  margin: 0px auto;
}

.quote {
  font-style: italic;
}

.nice-picture,
.fullwidth-video {
  width: 100%;
  padding: 1em 0px 0px 0px;
}

.halfwidth-video {
  width: 50%;
  padding: 1em 0px;
  margin: 0px auto;
}

.center.portraits {
  position: relative;
  font-size: 0px;
}

.center.portraits .portrait-photo {
  width: 33%;
}

.center.portraits .portrait-photo:not(:first-of-type):not(:last-of-type) {
  margin-left: 0.5%;
  margin-right: 0.5%;
}

.portrait-photo {
  width: auto;
  max-width: 768px;
  margin: 0px auto;
}

.fullwidth-video {
  height: 100%;
  max-height: 1080px;
  max-height: 100vh;
}

.portrait-video {
  /* presuming 1080x1920 */
  /* max-width: 1080px; */
  height: 100%;
  max-height: 1080px;
  max-height: 100vh;
  margin: 0px auto;
}

/* in landscape view, drop the 100vh constraint. */
@media screen and (orientation: landscape) {
  .fullwidth-video,
  .portrait-video {
    max-height: auto;
  }
}

#header {
  position: relative;
}

#header img {
  display: block;
  width: 100%;
  height: auto;
}

.doc-great-scott {
  position: absolute;
  bottom: 0px;
  left: 4vw;
  width: 25vw;
  height: 100%;
  /* hat tip: https://www.pinterest.ca/pin/426082814716349646/ */
  background-image: url(image/doc-great-scott-line-art.jpg);
  z-index: -1;
  background-position: 0px 0px;
  background-size: contain;
  background-repeat: no-repeat;
}

.great-scott,
.achievement-unlocked {
  /* effectively hide the text */
  color: transparent;
  pointer-events: none;
  user-select: none;
  position: relative;
  display: block;
  border: 3vw solid transparent;
  border-left: none;
  border-right: none;
  min-height: 20vw;
  margin: 0px auto;
  background-image: url(image/great-scott.png);
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.achievement-unlocked {
  background-image: url(image/achievement_unlocked_you_found_a_time_machine.png);
}

@media screen and (max-width: 1280px) and (orientation: landscape) {
  h1,
  h2,
  h3 {
    font-size: 24px;
  }
}

@media screen and (max-width: 980px) and (orientation: portrait) {
  body {
    font-size: 20px;
  }
  footnote {
    font-size: 16px;
  }
  h1,
  h2,
  h3 {
    font-size: 26px;
  }
  .achievement-unlocked {
    min-height: 30vw;
  }
  .cta,
  .hazard-tape h3 {
    font-size: 26px;
    padding: 12px 18px;
  }
}

blockquote,
footnote,
h1,
h2,
h3,
p,
.video-wrapper,
.image-caption {
  margin-left: calc(env(safe-area-inset-right));
  margin-right: calc(env(safe-area-inset-left));
}
