@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/work-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: #182336;
  background-color: #dddbe4;
  background-image: url("../assets/platinum-field.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

::selection {
  background: #d9cfe6;
  color: #182336;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 5;
  padding: 0.5rem 0.75rem;
  background: #fbfbfd;
  color: #182336;
  border: 2px solid #182336;
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(1440px, 100%);
  min-height: 100dvh;
  margin-inline: auto;
  padding: 1.125rem 1.5rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.layout {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
}

.masthead {
  display: block;
  width: min(19.25rem, 82%);
  height: auto;
  margin-inline: auto;
}

.copy {
  margin: 0;
}

.headline {
  margin: 0 0 0.4rem;
  font-size: 1.3125rem;
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: -0.014em;
}

.lede {
  margin: 0;
  max-width: 40rem;
  font-size: 1.0625rem;
  line-height: 1.38;
}

.art {
  width: min(15.75rem, 100%);
  margin: 0 auto;
}

.art img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 0 0 1px #c0bacc;
}

.signup {
  width: 100%;
  max-width: 32rem;
  margin: 0;
}

.field label,
.consent label {
  font-size: 1rem;
  line-height: 1.35;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.field input {
  display: block;
  width: 100%;
  height: 3.125rem;
  margin: 0;
  padding: 0 0.85rem;
  border: 1px solid #7b8090;
  border-radius: 7px;
  background: #fbfbfd;
  color: #182336;
  font: inherit;
  font-size: 1rem;
}

.field input:focus-visible,
.consent input:focus-visible,
.signup button:focus-visible,
.footer-nav a:focus-visible,
.footer-nav button:focus-visible,
dialog a:focus-visible,
dialog button:focus-visible,
.skip:focus {
  outline: 2px solid #182336;
  outline-offset: 3px;
}

.field input[aria-invalid="true"] {
  border-color: #6e1e2a;
  border-width: 2px;
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: #182336;
  box-shadow: 0 0 0 1000px #fbfbfd inset;
}

.error {
  margin: 0.4rem 0 0;
  color: #6e1e2a;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.consent input {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  flex: 0 0 auto;
  border: 1.5px solid #5a5e6e;
  border-radius: 3px;
  background: #fff;
  display: grid;
  place-items: center;
}

.consent input:checked {
  background: #4c2e6c;
  border-color: #4c2e6c;
}

.consent input:checked::after {
  content: "";
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.consent label {
  font-size: 0.9375rem;
  line-height: 1.35;
}

.signup button,
dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.125rem;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 7px;
  background: #4c2e6c;
  color: #fff;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.signup button {
  width: 100%;
  margin-top: 1rem;
}

.signup button:hover,
dialog button:hover {
  background: #3c2458;
}

.signup button:active,
dialog button:active {
  background: #321e49;
}

.status {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #b7b3c4;
  border-radius: 7px;
  background: rgba(251, 251, 253, 0.88);
  color: #182336;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.status strong {
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  padding-top: 0.85rem;
}

.footer-rule {
  height: 1px;
  margin: 0 0 0.7rem;
  border: 0;
  background: #b5b7c3;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 0 0.35rem;
  color: #444856;
  font-size: 0.875rem;
  line-height: 1.3;
}

.footer-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot-desktop {
  display: none;
}

.footer-nav button,
.footer-nav a {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.2rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
  border-radius: 3px;
}

.footer-nav a:visited {
  color: inherit;
}

.footer-nav button:hover,
.footer-nav button:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration-color: currentColor;
}

dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.35rem 1.35rem 1.15rem;
  border: 1px solid #c8c4d2;
  border-radius: 10px;
  background: #f6f5f8;
  color: #182336;
  box-shadow: 0 18px 50px rgba(24, 35, 54, 0.18);
}

dialog::backdrop {
  background: rgba(24, 35, 54, 0.46);
}

dialog h2 {
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  font-weight: 560;
  line-height: 1.25;
  outline: none;
}

dialog h2:focus-visible {
  outline: 2px solid #182336;
  outline-offset: 3px;
}

dialog p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.45;
}

dialog .pending {
  margin: -0.25rem 0 0.75rem;
  color: #4c2e6c;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

dialog a {
  color: #182336;
  font-weight: 560;
}

dialog button {
  margin-top: 0.35rem;
  min-width: 7rem;
}

@media (max-width: 700px) {
  body {
    background-attachment: scroll;
  }
}

@media (min-width: 960px) {
  .page {
    padding: 3.15rem 5.25rem 1.15rem;
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 35.5rem) minmax(16rem, 35.625rem);
    grid-template-areas:
      "mast ."
      "copy art"
      "form art";
    column-gap: clamp(1.25rem, 8.5%, 6.75rem);
    row-gap: 1.15rem;
    align-items: start;
    align-content: start;
    justify-content: start;
  }

  .masthead {
    grid-area: mast;
    width: min(26.25rem, 100%);
    margin: 0.2rem 0 0.85rem;
  }

  .copy {
    grid-area: copy;
    max-width: 35.5rem;
  }

  .headline {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.7rem;
  }

  .lede {
    font-size: 1.3125rem;
    line-height: 1.52;
  }

  .art {
    grid-area: art;
    align-self: end;
    width: 100%;
    max-width: 35.625rem;
    margin: 0 0 0 auto;
  }

  .signup {
    grid-area: form;
    max-width: 31.875rem;
    margin-top: 1.15rem;
  }

  .consent label {
    font-size: 1rem;
  }

  .site-footer {
    padding-top: 1.35rem;
  }

  .footer-nav {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9375rem;
  }

  .dot-desktop {
    display: inline;
  }
}

@media (forced-colors: active) {
  .signup button,
  dialog button,
  .field input,
  .consent input {
    border: 1px solid ButtonText;
  }

  .masthead,
  .art img {
    forced-color-adjust: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

.page.rules-page {
  width: min(42rem, 100%);
  padding: 1.35rem 1.5rem 2.75rem;
}

.rules-page .masthead {
  width: min(13.5rem, 68%);
  height: auto;
  margin: 0 0 0.85rem;
}

.back-link {
  margin: 0 0 1.65rem;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.back-link a {
  color: #444856;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.back-link a:visited {
  color: #444856;
}

.rules h1 {
  margin: 0 0 0.85rem;
  font-size: 1.75rem;
  font-weight: 560;
  line-height: 1.2;
  letter-spacing: -0.014em;
}

.rules h2 {
  margin: 1.5rem 0 0.45rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.rules p {
  margin: 0 0 0.85rem;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.rules a {
  color: #182336;
  font-weight: 560;
}

.rules a:visited {
  color: #182336;
}

.back-link a:focus-visible,
.rules a:focus-visible {
  outline: 2px solid #182336;
  outline-offset: 3px;
  border-radius: 2px;
}

@media (min-width: 960px) {
  .page.rules-page {
    padding: 2.75rem 1.75rem 3.5rem;
  }

  .rules-page .masthead {
    width: 16rem;
    margin: 0 0 0.75rem;
  }

  .rules h1 {
    font-size: 2rem;
  }
}

/* Live signup additions */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  margin: 0.55rem 0 0;
  color: #444856;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.fine a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.fine a:focus-visible {
  outline: 2px solid #182336;
  outline-offset: 3px;
  border-radius: 2px;
}

.signup button[disabled] {
  opacity: 0.75;
  cursor: progress;
}

.status.is-error {
  border-color: #6e1e2a;
  color: #6e1e2a;
}
