@font-face {
  font-family: "Passenger Serif";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/PassengerSerifLight.woff2") format("woff2"),
    url("../assets/fonts/PassengerSerifLight.woff") format("woff");
}

* {
  margin: 0;
  padding: 0;
  max-height: 1000000px;
  text-size-adjust: 100%;
}

a {
  font: inherit;
  text-decoration: none;
  text-decoration: inherit;
  color: inherit;
}
img {
  vertical-align: top;
}
a img {
  border: none;
}
ul {
  list-style: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
em,
i {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section {
  display: block;
}
table {
  border-collapse: collapse;
}
th {
  text-align: inherit;
}
abbr {
  text-decoration: none;
}
input,
textarea,
table,
select {
  font: inherit;
}
button {
  appearance: none;
  border: 0;
  font: inherit;
  text-align: inherit;
  background: none;
  color: inherit;
  cursor: pointer;
}
button::-moz-focus-inner,
input::-moz-focus-inner {
  padding: 0;
  border: 0;
}
::-webkit-input-placeholder {
  line-height: inherit;
}

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

html {
  background-color: black;
  color: white;
  font-family: "Passenger Serif", serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  font-size: 1em;
  line-height: 1.2;

  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;

  font-size: min(max(1em, 2vw), 1.5em);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.header {
  position: relative;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid white;
  background-color: black;
  display: flex;
  align-items: center;
  padding: 1em;
}
.header h1 {
  font-size: 1em;
  text-transform: uppercase;
  display: none;
}

video {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.header svg {
  max-width: 2048px;
  margin: 0 auto;
}

main {
  padding-top: 0;
  flex: 1;
  overflow: hidden;
}
p a:not([class]):hover {
  text-decoration: underline;
}

section.video {
  height: 100%;
}

.button {
  flex: 0 0 auto;
  display: inline-flex;
  border: 1px solid currentColor;
  padding: 0.5em 0.75em;
  align-items: center;
}
.button:hover {
  background-color: white;
  color: black;
}
.button--help::after {
  content: "";
  display: inline-block;
  background-image: url("../images/logo-seawatch.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  width: 1em;
  height: 0.75em;
  margin-left: 1rem;

  font-size: min(max(2em, 10vw), 9.5em);
}
.button:hover::after {
  filter: invert(1);
}
.button span {
  font-size: 1.3125em;
  text-transform: uppercase;
}
.button--medium {
  padding: 0.25em 1em;
}
.button--medium:hover {
  background-color: transparent;
  color: white;
  border-color: white;
}
.button--medium span {
  font-size: 2em;
}
.button--large {
  padding: 0.75em 2em;
}
.button--large span {
  font-size: min(max(2.5em, 15vw), 10em);
}

.section {
  min-height: calc(100vh - 4em);
  display: flex;
  align-items: center;
  justify-content: center;
}
.section__inner {
  max-width: 100%;
  flex: 0 0 auto;
  text-align: center;
  padding: 1em;
}
.section__inner div + p,
.section__inner p + p {
  margin-top: 2em;
}
.section__inner p + a,
.section__inner p + button,
.section__inner p + div {
  margin-top: 4em;
}
.video + .section,
.section + .section {
  /* margin-top: 10vw; */
}

.text-large {
  font-size: 2.375em;
}
.text-small {
  font-size: 1.375em;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.images {
  text-align: center;
}
.images__items {
  display: flex;
  flex-wrap: wrap;
}
.images__item {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  flex: 0 0 100%;
}

.images__image {
  display: block;
  position: relative;
  width: 100%;
}

.images__item.images__item--text {
  flex-grow: 1;
}

.images img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.images__item--square img {
  height: 100%;
}

.images__item p {
  padding: 2rem 1rem;
}

@media all and (min-width: 560px) {
  .header h1 {
    display: block;
  }
  .header__buttons {
    margin-right: -0.75em;
  }
}
@media all and (min-width: 768px) {
  .images__item {
    max-width: 50%;
    flex: 0 0 50%;
  }
}
@media all and (min-width: 1200px) {
  .images {
    padding-left: 4rem;
  }

  .images__item {
    max-width: 25%;
    flex: 0 0 25%;
  }
}
