@font-face {
  font-family: "HAL Timezone Mono Unlicensed";
  src: url("assets/SiloFonts/HAL Timezone Mono/OTF/HALTimezoneMonoUnlicensed-Regular.otf")
    format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "HAL Timezone Unlicensed";
  src: url("assets/SiloFonts/HAL Timezone/OTF/HALTimezoneUnlicensed-Regular.otf")
    format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Test Pitch Sans";
  src: url("assets/SiloFonts/pitch-sans-bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --eggshell: #fcf9ee;
  --dark-grey: #403f3b;
  --sage: #47493e;
  --mist: #e6e1d3;
  --error: #d33030;
  --font-mono: "HAL Timezone Mono Unlicensed", "Courier New", monospace;
  --font-body: "HAL Timezone Unlicensed", Georgia, serif;
  --font-caption: "Test Pitch Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--eggshell);
}

body {
  color: var(--eggshell);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  border: 0;
}

button,
a,
input[type="checkbox"] {
  -webkit-tap-highlight-color: transparent;
}

a {
  text-decoration: none;
}

.site {
  min-height: 100svh;
}

.landing {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--eggshell);
}

.landing__image {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.landing__image img {
  position: absolute;
  top: -27px;
  left: 50%;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.landing__shade {
  position: absolute;
  inset: 0;
  background: var(--dark-grey);
  opacity: 0.1;
  pointer-events: none;
}

.site-header {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.site-header__symbol,
.site-header__symbol picture,
.site-header__symbol img {
  display: block;
}

.site-header__symbol {
  position: absolute;
  top: 24px;
  left: 40px;
  width: 70px;
  height: 92px;
  pointer-events: auto;
}

.site-header__symbol img {
  width: 100%;
  height: 100%;
}

.site-header__time,
.join-button {
  position: absolute;
  top: 56px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header__time {
  left: calc(16.6667% + 31px);
}

.join-button {
  right: 40px;
  padding: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.join-button::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.join-button:hover::after,
.join-button:focus-visible::after {
  transform: scaleX(1);
}

.join-button:focus-visible,
.site-header__symbol:focus-visible,
.landing__social a:focus-visible,
.signup-modal__symbol:focus-visible,
.signup-modal__close:focus-visible,
.submit-button:focus-visible {
  outline: 1px solid var(--eggshell);
  outline-offset: 5px;
}

.landing__wordmark,
.landing__wordmark picture,
.landing__wordmark img {
  display: block;
}

.landing__wordmark {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 345px;
  height: 136px;
  transform: translate(-50%, -50%);
}

.landing__wordmark img {
  width: 100%;
  height: 100%;
}

.landing__footer {
  position: absolute;
  right: 40px;
  bottom: 36px;
  left: 40px;
  z-index: 1;
  height: 28px;
  color: var(--eggshell);
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing__location,
.landing__tagline {
  position: absolute;
  top: 0;
  margin: 0;
}

.landing__location {
  left: 0;
}

.landing__tagline {
  left: 50%;
  transform: translateX(-50%);
}

.landing__social {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 24px;
  align-items: center;
  height: 24px;
}

.landing__social a,
.landing__social img {
  display: block;
  width: 24px;
  height: 24px;
}

.signup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 70%);
  backdrop-filter: blur(5px);
}

.signup-overlay[hidden] {
  display: none;
}

.signup-modal {
  position: relative;
  width: 500px;
  height: 608px;
  overflow: hidden;
  color: var(--eggshell);
  background: var(--sage);
}

.signup-modal__symbol {
  display: none;
}

.signup-modal__close {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 1;
  display: block;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.signup-modal__close picture,
.signup-modal__close img {
  display: block;
  width: 100%;
  height: 100%;
}

.signup-modal__content {
  position: absolute;
  top: 50%;
  left: 50px;
  display: flex;
  width: 400px;
  flex-direction: column;
  gap: 50px;
  transform: translateY(-50%);
}

.signup-modal__intro {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
}

.signup-modal__intro h1,
.signup-modal__intro p {
  margin: 0;
}

.signup-modal__intro h1 {
  color: var(--eggshell);
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 400;
  line-height: 40px;
}

.mobile-only-break {
  display: none;
}

.signup-modal__intro p {
  width: 100%;
  color: var(--eggshell);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.signup-form {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 30px;
  margin: 0;
}

.signup-form__field {
  position: relative;
  width: 100%;
  height: 46px;
}

.signup-form__field label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  color: var(--eggshell);
  cursor: text;
  font-family: var(--font-caption);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  opacity: 0.8;
  text-transform: uppercase;
}

.signup-form__field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 46px;
  padding: 24px 24px 0 0;
  color: var(--eggshell);
  background: transparent;
  background-image: url("assets/form-line-desktop.svg");
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.signup-form__field input:focus {
  background-image: linear-gradient(var(--eggshell), var(--eggshell));
}

.signup-form__field > span {
  position: absolute;
  top: 0;
  right: -7px;
  color: var(--error);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 22px;
}

.signup-form__checkbox {
  display: flex;
  min-height: 20px;
  align-items: center;
  gap: 8px;
  color: var(--eggshell);
  cursor: pointer;
  font-family: var(--font-caption);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-transform: uppercase;
}

.signup-form__checkbox input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.signup-form__checkbox-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.signup-form__checkbox-icon::before {
  display: block;
  width: 20px;
  height: 20px;
  content: "";
  background: url("assets/checkbox-desktop.svg") center / 16px 16px no-repeat;
}

.signup-form__checkbox input:not(:checked) + .signup-form__checkbox-icon::before {
  background: none;
  border: 1px solid var(--eggshell);
}

.submit-button {
  display: flex;
  width: 119px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--eggshell);
  background: transparent;
  border: 1px solid var(--mist);
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.submit-button:hover {
  color: var(--dark-grey);
  background: var(--mist);
}

.signup-form__status {
  min-height: 0;
  margin: -20px 0 0;
  color: var(--eggshell);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 22px;
}

.signup-form__trap {
  position: absolute;
  left: -5000px;
}

.signup-form__status:empty {
  display: none;
}

@media (min-width: 768px) {
  body.modal-open .landing__image img {
    inset: 0;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: center;
    /* Same image as the mobile landing photo (popup-desktop.png was a copy). */
    content: url("assets/landing-mobile.webp");
  }

  body.modal-open .site-header__symbol {
    top: 20px;
    left: 80px;
  }

  body.modal-open .site-header__time {
    top: 54px;
    left: calc(16.6667% + 60px);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    text-transform: none;
  }

  body.modal-open .join-button {
    top: 42px;
    right: 80px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 24px;
    text-transform: none;
  }

  body.modal-open .landing__wordmark {
    width: 300px;
    height: 118px;
  }

  body.modal-open .landing__footer {
    right: 80px;
    bottom: 50px;
    left: 80px;
  }
}

@media (min-width: 768px) and (max-aspect-ratio: 5 / 4) {
  .landing__image img {
    top: 0;
    width: auto;
    height: 100%;
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .landing {
    min-height: 0;
  }

  .landing__image img {
    top: 50%;
    width: auto;
    height: 100%;
    transform: translate(-50%, -50%);
  }

  .landing__shade {
    display: none;
  }

  .site-header__symbol {
    top: 40px;
    left: 20px;
    width: 40px;
    height: 53px;
  }

  .site-header__time {
    display: none;
  }

  .join-button {
    top: 54px;
    right: 40px;
  }

  .landing__wordmark {
    width: 254px;
    height: 100px;
  }

  .landing__footer {
    right: 20px;
    bottom: 41px;
    left: 20px;
    height: 24px;
    font-size: 16px;
    line-height: 24px;
  }

  .landing__location,
  .landing__social {
    display: none;
  }

  .landing__tagline {
    left: 50%;
  }

  .signup-overlay {
    display: block;
    overflow: hidden;
    background: var(--sage);
    backdrop-filter: none;
  }

  .signup-modal {
    width: 100%;
    height: 100%;
    min-height: 100svh;
    background: transparent;
  }

  .signup-modal__symbol {
    position: absolute;
    top: 40px;
    left: 20px;
    display: block;
    width: 40px;
    height: 53px;
  }

  .signup-modal__symbol img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .signup-modal__close {
    top: 50px;
    right: 30px;
  }

  .signup-modal__content {
    top: 173px;
    left: 20px;
    width: calc(100% - 40px);
    transform: none;
  }

  .mobile-only-break {
    display: inline;
  }

  .signup-modal__intro p {
    font-size: 16px;
    line-height: 24px;
  }

  .signup-form__checkbox-icon::before {
    background-image: url("assets/checkbox-mobile.svg");
  }

  .signup-form__field input {
    background-image: url("assets/form-line-mobile.svg");
  }

  .submit-button {
    border-color: var(--eggshell);
  }
}
