/* /join — paper sheet. Same tokens as the hero. No print marks. */

html:has(body.join) {
  scroll-snap-type: none;
}

.join {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
  color: var(--ink);
}

.join-fourier {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.join main,
.join .site-footer {
  position: relative;
  z-index: 1;
}

.join main {
  flex: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: calc(var(--header-h) + 28px) var(--gut) 48px;
}

body.join.letterbox {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--gray-100);
}

.join.letterbox main {
  min-height: 0;
  overflow-y: auto;
  padding: calc(var(--header-h) + 28px) var(--gut) calc(var(--letterbox-h) + 28px);
}

.join.letterbox .site-footer {
  z-index: 100;
}

.join-sheet {
  width: min(100%, 640px);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: rgba(240, 238, 235, 0.92);
  background-image: linear-gradient(180deg, rgba(243, 241, 237, 0.94) 0%, rgba(236, 234, 230, 0.94) 55%, rgba(228, 225, 219, 0.94) 100%);
  box-shadow: 0 28px 64px rgba(38, 38, 38, 0.08), 0 8px 20px rgba(38, 38, 38, 0.04);
}

.join-sheet__body {
  position: relative;
  padding: 38px 48px 44px;
}

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

.join-sheet h1 {
  margin: 0;
  font-size: clamp(4rem, 13vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.join-form {
  margin-top: 30px;
}

.join-field {
  margin-bottom: 18px;
}

.join-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.join-field input,
.join-field textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: rgba(240, 238, 235, 0.65);
  font-family: var(--font-mono);
  font-size: 13px;
}

.join-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.join-field input::placeholder,
.join-field textarea::placeholder {
  color: var(--muted);
}

.join-field input:hover,
.join-field textarea:hover {
  border-color: var(--ink);
}

.join-field input:focus,
.join-field textarea:focus {
  border-color: var(--coral);
  background: #fbfaf8;
  box-shadow: 0 0 0 1px var(--coral);
}

.join-field input[aria-invalid="true"] {
  border-color: var(--coral);
}

.join-submit {
  width: 100%;
  min-height: 55px;
  margin-top: 8px;
  padding: 0 17px;
  border: 1px solid var(--gray-900);
  border-radius: 0;
  background: var(--gray-900);
  color: var(--gray-100);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  cursor: pointer;
}

.join-submit:hover {
  background: var(--gray-800);
  border-color: var(--gray-800);
}

.join-submit:disabled {
  cursor: wait;
  opacity: 0.82;
}

.join-status {
  min-height: 1.4em;
  margin-top: 12px;
  color: var(--coral);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.join-status.is-ok {
  color: var(--ink);
}

@media (max-width: 520px) {
  .join-sheet__body {
    padding: 28px 20px 30px;
  }
}
