:root {
  --paper: #e8e1cf;
  --paper-strong: #e8e1cf;
  --soft-grey: #d8d5cf;
  --white: #ffffff;
  --ink: #0b0b0b;
  --muted: #5b5d63;
  --line: #10100f;
  --blue: #4253f2;
  --yellow: #dce81a;
  --pink: #cc78a8;
  --red: #f05f42;
  --green: #4fd58b;
  --success: #4fd58b;
  --error: #10100f;
  --shadow-none: none;
  --border: 2px;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

html.has-modal,
html.has-modal body {
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 14px;
  border: var(--border) solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.skip-link:focus {
  top: 16px;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.landing {
  width: min(1520px, calc(100% - 20px));
  margin: 0 auto;
  padding: 10px 0 42px;
}

.notice {
  padding: 14px 16px;
  border: var(--border) solid var(--line);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.notice--success {
  background: var(--success);
}

.notice--error {
  background: var(--red);
  color: var(--white);
}

.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.form__type,
.modal__label {
  font-family: var(--font-mono);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.input,
.textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: var(--border) solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  appearance: none;
}

.input:focus,
.textarea:focus {
  outline: none;
  background: var(--yellow);
}

.textarea {
  min-height: 152px;
  resize: vertical;
}

.form__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form__submit {
  padding: 14px 20px;
  border: var(--border) solid var(--line);
  background: var(--blue);
  color: var(--ink);
  cursor: pointer;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.form__submit:hover,
.form__submit:focus-visible {
  outline: none;
  background: var(--pink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.modal.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 15, 0.78);
}

.modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 24px;
  border: var(--border) solid var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: var(--shadow-none);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: var(--border) solid var(--line);
  border-radius: 0;
  background: var(--pink);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  transform: rotate(45deg);
}

.modal__title {
  max-width: 11ch;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

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

article.fallback-page {
  width: min(1120px, calc(100% - 20px));
  margin: 10px auto 0;
  border: var(--border) solid var(--line);
  background: var(--paper-strong);
}

.fallback-page__bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: var(--border) solid var(--line);
  background: var(--yellow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.fallback-page__body {
  display: grid;
  gap: 22px;
  padding: 24px 18px 30px;
}

.fallback-page__title {
  max-width: 9ch;
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 144px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.07em;
}

.fallback-page__text {
  max-width: 32rem;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.fallback-page__link {
  width: fit-content;
  padding: 10px 12px;
  border: var(--border) solid var(--line);
  background: var(--blue);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer {
  background: transparent;
}

.site-footer__main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border: var(--border) solid var(--line);
}

.site-footer__primary {
  padding: 14px 16px 13px;
  border-right: var(--border) solid var(--line);
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 0.88vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer__primary--center {
  text-align: center;
}

.site-footer__primary--right {
  text-align: right;
}

.site-footer__primary:last-child {
  border-right: 0;
}

.site-footer__secondary {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 16px 10px;
  border-left: var(--border) solid var(--line);
  border-right: var(--border) solid var(--line);
  border-bottom: var(--border) solid var(--line);
  background: var(--paper);
}

.site-footer__link {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer--page {
  width: min(1120px, calc(100% - 20px));
  margin: 10px auto 42px;
}

.site-footer--home {
  width: 100%;
}

.h1,
.text h1,
.text h2 {
  font-family: var(--font-display);
}

@media (max-width: 780px) {
  body {
    font-size: 17px;
  }

  .landing {
    width: min(1520px, calc(100% - 12px));
    padding-bottom: 32px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .form__actions {
    align-items: flex-start;
  }

  .modal__panel {
    padding: 18px 14px;
  }

  .fallback-page__bar {
    flex-direction: column;
    align-items: flex-start;
  }

  article.fallback-page {
    width: min(1120px, calc(100% - 12px));
  }

  .site-footer--page {
    width: min(1120px, calc(100% - 12px));
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__primary {
    border-right: 0;
    border-bottom: var(--border) solid var(--line);
  }

  .site-footer__primary--center,
  .site-footer__primary--right {
    text-align: left;
  }

  .site-footer__primary:last-child {
    border-bottom: 0;
  }

  .site-footer__secondary {
    flex-wrap: wrap;
  }
}
