:root {
  --green-950: #003c1b;
  --green-900: #0a4507;
  --green-800: #12452d;
  --sage: #aec49c;
  --mint: #e8ffe8;
  --white: #ffffff;
  --image-ratio: 1672 / 941;
}

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

html {
  min-height: 100%;
  background: var(--white);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--green-950);
  background: var(--white);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--white);
}

.landing {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 1024px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--white);
}

.brand-mark {
  position: absolute;
  left: 35px;
  top: 19px;
  z-index: 2;
  font-family: "Oranienbaum", Georgia, serif;
  font-size: 26px;
  line-height: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.top-nav {
  position: absolute;
  top: 3px;
  right: 39px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.top-nav a {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 50px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #000000;
}

.eyebrow {
  position: absolute;
  left: 35px;
  top: 103px;
  width: 137px;
  margin: 0;
  font-family: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.24px;
  text-align: center;
  text-transform: uppercase;
  color: var(--sage);
}

#hero-title {
  position: absolute;
  left: 35px;
  top: 136px;
  width: 613px;
  margin: 0;
  font-family: "Oranienbaum", Georgia, serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 60px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--green-950);
}

.japan-map {
  position: absolute;
  left: 14px;
  top: 301px;
  width: 640px;
  height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  left: calc(50% + 8px);
  top: 0;
  width: calc(50% - 8px);
  height: 1024px;
  overflow: hidden;
  pointer-events: none;
}

.hero-image picture,
.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image img {
  object-fit: cover;
  object-position: center;
}

.wordmark {
  position: absolute;
  left: 35px;
  top: 726px;
  margin: 0;
  font-family: "Oranienbaum", Georgia, serif;
  font-size: 96px;
  font-weight: 400;
  line-height: 116px;
  letter-spacing: 0;
  text-transform: uppercase;
  text-wrap: nowrap;
  color: var(--green-950);
}

.body-copy {
  position: absolute;
  left: 35px;
  top: 842px;
  width: 650px;
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  text-transform: capitalize;
  color: var(--green-900);
}

.actions {
  position: absolute;
  left: 35px;
  top: 955px;
  width: 488px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.button {
  position: relative;
  width: 232px;
  height: 42px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 17.093px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.button span {
  position: relative;
  z-index: 1;
}

.button img {
  position: absolute;
  right: 0;
  top: -0.06px;
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
  pointer-events: none;
}

.button-light {
  color: var(--green-950);
  background: var(--mint);
}

.button-dark {
  color: var(--white);
  background: var(--green-950);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 60, 27, 0.18);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(0, 60, 27, 0.18);
  color: var(--green-950);
}

.modal-panel h2 {
  margin: 0 0 18px;
  font-family: "Oranienbaum", Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 42px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  color: var(--green-950);
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 24px;
}

#early-access-form {
  display: grid;
  gap: 12px;
}

#early-access-form label {
  display: grid;
  gap: 6px;
  font-family: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--green-800);
}

#early-access-form input,
#early-access-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 60, 27, 0.24);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--green-950);
  background: var(--white);
  outline: none;
  resize: vertical;
}

#early-access-form input:focus,
#early-access-form textarea:focus {
  border-color: var(--green-950);
}

.submit-button {
  height: 42px;
  margin-top: 4px;
  border: 0;
  color: var(--white);
  background: var(--green-950);
  cursor: pointer;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.form-status {
  min-height: 17px;
  margin: 0;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 17px;
  color: var(--green-800);
}

@media (min-width: 768px) and (max-width: 1179px) {
  .landing {
    max-width: 834px;
    height: 1112px;
  }

  .brand-mark {
    left: 40px;
    top: 28px;
  }

  .top-nav {
    top: 22px;
    right: 40px;
  }

  .eyebrow {
    left: 40px;
    top: 96px;
  }

  #hero-title {
    left: 40px;
    top: 130px;
    width: min(700px, calc(100% - 80px));
    font-size: 60px;
    line-height: 64px;
  }

  .japan-map {
    display: none;
  }

  .hero-image {
    left: 40px;
    top: 284px;
    width: min(754px, calc(100% - 80px));
    height: auto;
    aspect-ratio: var(--image-ratio);
  }

  .hero-image img {
    object-fit: cover;
    object-position: center;
  }

  .wordmark {
    left: 40px;
    top: 736px;
    font-size: 86px;
    line-height: 104px;
  }

  .body-copy {
    left: 40px;
    top: 846px;
    width: min(680px, calc(100% - 80px));
    font-size: 15px;
    line-height: 22px;
  }

  .actions {
    left: 40px;
    top: 986px;
    width: min(520px, calc(100% - 80px));
  }

  .button {
    flex: 1 1 0;
    width: auto;
  }
}

@media (max-width: 767px) {
  html,
  body {
    overflow: hidden;
  }

  .page-shell {
    min-height: 0;
    height: min(100svh, calc(852px * var(--mobile-scale, 1)));
    overflow: hidden;
  }

  .landing {
    width: 393px;
    max-width: none;
    height: 852px;
    transform: scale(var(--mobile-scale, 1));
    transform-origin: top center;
    --mobile-x: 28px;
    --mobile-column: 337px;
  }

  .brand-mark {
    left: var(--mobile-x);
    top: 12px;
  }

  .top-nav,
  .japan-map {
    display: none;
  }

  .eyebrow {
    left: var(--mobile-x);
    top: 73px;
    width: 137px;
    text-align: left;
  }

  #hero-title {
    left: var(--mobile-x);
    top: 100px;
    width: var(--mobile-column);
    font-size: 34px;
    line-height: 40px;
    letter-spacing: 0;
  }

  .hero-image {
    left: var(--mobile-x);
    top: 212px;
    width: var(--mobile-column);
    height: auto;
    aspect-ratio: var(--image-ratio);
  }

  .hero-image img {
    object-fit: cover;
    object-position: center;
  }

  .wordmark {
    left: var(--mobile-x);
    top: 435px;
    width: var(--mobile-column);
    font-size: 50px;
    line-height: 72px;
  }

  .body-copy {
    left: var(--mobile-x);
    top: 520px;
    width: var(--mobile-column);
    font-size: 12px;
    line-height: 16px;
  }

  .actions {
    left: var(--mobile-x);
    top: 632px;
    width: var(--mobile-column);
    gap: 17px;
  }

  .button {
    width: 160px;
    font-size: 11px;
  }

  .modal {
    padding: 18px;
  }

  .modal-panel {
    transform: none;
    transform-origin: center;
  }
}
