:root {
  --action-on-primary: #FFFFFF;
  --border-input: #7C8894;
  --c-action: #2B4BDB;
  --c-action-hover: #2340C4;
  --c-bad-ink: #B5321F;
  --c-border: #D9E1EA;
  --c-ink: #2F3A45;
  --c-ink-2: #56626E;
  --c-ink-4: #7C8894;
  --c-page: #EEF3F8;
  --c-surface: #FFFFFF;
  --dur-fast: 120ms;
  --focus-ring-color: #2340C4;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --leading-body: 1.55;
  --leading-snug: 1.25;
  --r-sm: 6px;
  --sp-1: 4px;
  --sp-10: 40px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --text-3xl: 30px;
  --text-4xl: 40px;
  --text-lg: 16px;
  --text-md: 14px;
  --text-placeholder: #7C8894;
  --text-sm: 13px;
  --text-xl: 20px;
  --text-xs: 12px;
  --weight-medium: 500;
  --weight-regular: 400;
  --weight-semibold: 600;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.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;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.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;
}

:root {
  color-scheme: light;
  --gutter: clamp(var(--sp-6), 6vw, 104px);
}

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

[hidden] {
  display: none !important;
}

html {
  background: var(--c-page);
}

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font: var(--weight-regular) var(--text-lg) / 1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(70% 60% at 10% 6%, var(--c-surface) 0%, transparent 72%), var(--c-page);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: clamp(18px, 3vw, var(--sp-10)) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: 44px;
  color: var(--c-ink);
  text-decoration: none;
}

.brand .m {
  width: 17px;
  height: 22px;
}

.brand .w {
  width: 66px;
  height: 13px;
}

.lang {
  display: flex;
  align-items: center;
  font: var(--weight-medium) var(--text-xs) / 1 var(--font-mono);
  letter-spacing: 0.14em;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  color: var(--c-ink-2);
  text-decoration: none;
}

.lang a[aria-current="page"] {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.lang a:hover {
  color: var(--c-ink);
}

.lang i {
  font-style: normal;
  color: var(--c-border);
}

.hero {
  align-self: end;
  padding: 0 var(--gutter) clamp(64px, 15vh, 168px);
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  font-weight: var(--weight-semibold);
  font-size: clamp(var(--text-3xl), 2.1vw + var(--text-xl), var(--text-4xl));
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.facts {
  --facts-separator: 2.34em;
  display: flex;
  flex-wrap: wrap;
  margin: 22px 0 0 calc(-1 * var(--facts-separator));
  clip-path: inset(0 0 0 var(--facts-separator));
  padding: 0;
  list-style: none;
  font: var(--weight-medium) var(--text-xs) / 1.6 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}

.facts li::before {
  content: "·";
  content: "·" / "";
  display: inline-block;
  width: var(--facts-separator);
  text-align: center;
  color: var(--c-ink-4);
}

.join {
  margin-top: clamp(44px, 8vh, 80px);
  max-width: 30rem;
}

.row {
  display: flex;
  gap: var(--sp-2);
}

.field {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--r-sm);
  background: var(--c-surface);
  color: var(--c-ink);
  font: var(--weight-regular) var(--text-lg) / 1 var(--font-sans);
  transition: border-color var(--dur-fast);
}

.field::placeholder {
  color: var(--text-placeholder);
  opacity: 1;
}

.field:focus-visible {
  border-color: var(--c-action);
  outline-offset: 2px;
}

.field[aria-invalid="true"] {
  border: 2px solid var(--c-bad-ink);
  padding: 0 13px;
}

.go {
  flex: none;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--c-action);
  color: var(--action-on-primary);
  font: var(--weight-semibold) 15px / 1 var(--font-sans);
  cursor: pointer;
  transition: background-color var(--dur-fast);
}

.go:hover {
  background: var(--c-action-hover);
}

.go[aria-disabled="true"] {
  cursor: progress;
}

.msg {
  margin: 10px 0 0;
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--c-bad-ink);
}

.note {
  margin: 14px 0 0;
  max-width: 32rem;
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  color: var(--c-ink-2);
}

.note a {
  color: var(--c-ink-2);
}

.note a:hover {
  color: var(--c-ink);
}

.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.done {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-top: clamp(44px, 8vh, 80px);
  max-width: 30rem;
}

.done::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-action);
  transform: translateY(-2px);
}

.done p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.done p:focus {
  outline: none;
}

.lead {
  margin: 22px 0 0;
  max-width: 32rem;
  font-size: 17px;
  line-height: 1.5;
  color: var(--c-ink-2);
}

.notice {
  max-width: 42rem;
  margin-top: clamp(28px, 5vh, 44px);
  line-height: var(--leading-body);
}

.notice section + section {
  margin-top: var(--sp-8);
}

.notice h2 {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.notice p,
.notice ul,
.notice dl {
  margin: var(--sp-3) 0 0;
}

.notice ul {
  padding-left: var(--sp-5);
}

.notice li + li {
  margin-top: var(--sp-1);
}

.notice dl div {
  display: grid;
  grid-template-columns: 13rem 1fr;
  gap: 0 var(--sp-4);
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--c-border);
}

.notice dt {
  color: var(--c-ink-2);
}

.notice dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.actions {
  margin: clamp(44px, 8vh, 80px) 0 0;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 520px) {
  .row {
    flex-direction: column;
  }

  
  .field {
    flex: none;
    width: 100%;
  }

  .go {
    width: 100%;
  }

  .notice dl div {
    grid-template-columns: 1fr;
  }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--sp-6);
  padding: 0 var(--gutter) clamp(var(--sp-3), 2.5vw, 28px);
  font: var(--weight-medium) 11px / 1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}

.foot nav {
  display: flex;
  gap: var(--sp-6);
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.foot a:hover {
  color: var(--c-ink);
  text-decoration: underline;
}

@media (max-width: 520px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
