:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #fff;
  color: #111;
  font-family: Helvetica, Arial, sans-serif;
}

html[data-theme="dark"],
html[data-theme="fog-dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body,
html[data-theme="fog-dark"] body {
  background: #111;
  color: #f5f5f0;
}

html[data-theme="fog-light"] body {
  background: #fff;
}

body::after {
  content: "";
  display: none;
  position: fixed;
  z-index: 2;
  inset: -8vh -12vw auto;
  height: 40vh;
  pointer-events: none;
}

html[data-theme="fog-light"] body::after {
  display: block;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(232, 232, 228, 0.72), transparent 38%),
    radial-gradient(ellipse at 76% 8%, rgba(255, 255, 255, 0.96), transparent 48%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
}

html[data-theme="fog-dark"] body::after {
  display: block;
  background:
    radial-gradient(ellipse at 20% 16%, rgba(100, 100, 100, 0.5), transparent 38%),
    radial-gradient(ellipse at 78% 10%, rgba(72, 72, 72, 0.38), transparent 44%),
    linear-gradient(to bottom, rgba(35, 35, 35, 0.92), rgba(35, 35, 35, 0));
}

html[data-theme="fog-light"] body::after,
html[data-theme="fog-dark"] body::after {
  height: 60vh;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
}

.language-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  margin: 0;
  padding: 4px 0;
  border: 0;
  color: currentColor;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
}

.logo {
  width: min(72vw, 420px);
  height: auto;
  display: block;
}

.tagline {
  max-width: 88vw;
  margin: 0 0 28px;
  color: #111;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

html[data-theme="dark"] .tagline,
html[data-theme="fog-dark"] .tagline {
  color: #f5f5f0;
}

html[data-theme="dark"] .logo,
html[data-theme="fog-dark"] .logo {
  filter: invert(1);
}

.punchline {
  max-width: min(88vw, 760px);
  min-height: 42px;
  margin: 32px 0 0;
  color: #111;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
  word-break: auto-phrase;
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-theme="dark"] .punchline,
html[data-theme="fog-dark"] .punchline {
  color: #f5f5f0;
}

.join-link {
  display: inline-block;
  margin-top: 36px;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-color: rgba(17, 17, 17, 0.45);
  color: #111;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

html[data-theme="dark"] .join-link,
html[data-theme="fog-dark"] .join-link {
  color: #f5f5f0;
  border-color: rgba(245, 245, 240, 0.45);
}

.join-link:hover {
  text-decoration: underline;
}

.x-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  color: #111;
}

html[data-theme="dark"] .x-icon-link,
html[data-theme="fog-dark"] .x-icon-link {
  color: #f5f5f0;
}

.x-icon {
  display: block;
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.x-icon-link:hover {
  opacity: 0.55;
}

.home-logo {
  width: 96px;
  margin-bottom: 48px;
}

.form-shell {
  width: min(92vw, 520px);
}

.join-note {
  width: min(92vw, 520px);
  margin: -12px 0 36px;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.join-note p {
  margin: 0;
}

.join-note p + p {
  margin-top: 6px;
}

.shirt-mockup {
  position: relative;
  width: min(38vw, 168px);
  aspect-ratio: 16 / 15;
  margin: 0 auto 28px;
}

.shirt-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: #111;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

html[data-theme="dark"] .back-link,
html[data-theme="fog-dark"] .back-link {
  color: #f5f5f0;
}

.back-link:hover {
  text-decoration: underline;
}

form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.bilingual-line,
.bilingual-action,
.field-label,
.check-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 24px;
  align-items: baseline;
}

.bilingual-line > :last-child,
.bilingual-action > :last-child,
.field-label > :last-child,
.check-copy > :last-child {
  text-align: right;
  opacity: 0.68;
}

.field-label {
  letter-spacing: 0.08em;
}

.check-field {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-transform: none;
}

.check-copy {
  flex: 1;
}

.turnstile-container {
  min-height: 65px;
}

.form-error {
  margin: -4px 0 0;
  color: #8a1f1f;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

html[data-theme="dark"] .form-error,
html[data-theme="fog-dark"] .form-error {
  color: #ffb4a8;
}

.check-field input {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 1px solid #111;
}

.optional {
  opacity: 0.55;
  text-transform: none;
}

.application-result {
  margin-top: 18px;
  padding: 18px 0 20px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.result-title {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.result-copy {
  margin-top: 24px;
}

.result-copy p {
  margin: 0;
}

.result-copy p + p {
  margin-top: 18px;
}

.share-link {
  margin-top: 24px;
  padding: 10px 0;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  color: #111;
  text-decoration: none;
}

html[data-theme="dark"] .share-link,
html[data-theme="fog-dark"] .share-link {
  color: #f5f5f0;
}

.share-link:hover {
  text-decoration: underline;
}

.x-contact-link {
  display: grid;
  margin-top: 18px;
  padding: 10px 0;
  border-top: 1px solid currentColor;
  color: #111;
  text-decoration: none;
}

html[data-theme="dark"] .x-contact-link,
html[data-theme="fog-dark"] .x-contact-link {
  color: #f5f5f0;
}

.x-contact-link > :first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.x-contact-link:hover {
  text-decoration: underline;
}

input,
select,
textarea,
button {
  font: inherit;
  color: #111;
  background: #fff;
  border: none;
  border-bottom: 1px solid #111;
  border-radius: 0;
  padding: 8px 0;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] button,
html[data-theme="fog-dark"] input,
html[data-theme="fog-dark"] select,
html[data-theme="fog-dark"] textarea,
html[data-theme="fog-dark"] button {
  color: #f5f5f0;
  background: transparent;
  border-color: #f5f5f0;
}

.check-field input {
  padding: 0;
  border: 1px solid #111;
  background: #fff;
}

html[data-theme="dark"] .check-field input,
html[data-theme="fog-dark"] .check-field input {
  border-color: #f5f5f0;
  background: transparent;
}

textarea {
  min-height: 72px;
  resize: vertical;
}

button {
  margin-top: 12px;
  border-bottom-width: 1px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}

.apply-button {
  text-align: left;
  text-transform: none;
}

.back-link {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

button:hover {
  opacity: 0.55;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.note {
  margin-top: 28px;
  font-size: 11px;
  color: #111;
}

@media (max-width: 600px) {
  .page {
    padding: 48px 20px 32px;
  }

  .language-toggle {
    top: 16px;
    right: 20px;
  }

  .tagline {
    margin-bottom: 16px;
  }

  .punchline {
    min-height: 105px;
    margin-top: 20px;
  }

  .join-link {
    margin-top: 24px;
  }

  .x-icon-link {
    margin-top: 44px;
  }
}

@media (max-width: 360px) {
  .bilingual-line:not(.field-label),
  .bilingual-action:not(.check-copy) {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .bilingual-line:not(.field-label) > :last-child,
  .bilingual-action:not(.check-copy) > :last-child {
    text-align: left;
  }
}
