:root {
  color-scheme: light;
  --page: #fbfaf6;
  --surface: #fbfaf6;
  --text: #1f241f;
  --muted: #5a625b;
  --line: #d9ded5;
  --accent: #1d684f;
  --accent-soft: #e5f1ea;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--page);
  color: var(--text);
  font-family:
    "Hanken Grotesk",
    "Space Grotesk",
    "IBM Plex Sans",
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 3vmin, 2rem);
}

.migration-poster {
  width: min(1180px, 100%);
  height: min(720px, 100%);
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(24rem, 1fr);
  gap: clamp(2.75rem, 6vw, 5.75rem);
  align-items: center;
}

.illustration-frame {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 0;
  background: var(--surface);
}

.migration-art {
  display: block;
  width: 100%;
  height: auto;
}

.notice-panel {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: clamp(1.25rem, 3vmin, 2rem);
  align-content: center;
  min-width: 0;
  padding: clamp(1.15rem, 3vmin, 2rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-copy {
  min-width: 0;
}

.domain-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: clamp(0.78rem, 1.6vmin, 0.95rem);
  line-height: 1.35;
}

.domain-strip span:first-child,
.domain-strip strong {
  color: var(--accent);
  font-weight: 800;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.35rem, 7vmin, 4.85rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 0.92;
}

.lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vmin, 1.12rem);
  line-height: 1.55;
}

.notice-actions {
  display: grid;
  gap: 0.72rem;
  justify-items: start;
  min-width: 0;
}

.primary-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.primary-action:hover {
  background: transparent;
  color: var(--accent);
}

.primary-action:active {
  transform: translateY(1px);
}

.primary-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
  outline-offset: 4px;
}

.account-note,
.noscript-note {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.7vmin, 0.92rem);
  line-height: 1.45;
}

.account-note strong {
  color: var(--accent);
  font-weight: 820;
}

@media (max-width: 820px) {
  .page-shell {
    display: block;
    padding: 0.9rem;
  }

  .migration-poster {
    width: min(100%, calc(100dvh * 0.42), 35rem);
    height: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, auto) minmax(0, auto);
    gap: 1.15rem;
    align-content: center;
    margin: 0;
  }

  .illustration-frame {
    grid-column: 1;
    grid-row: 1;
    width: min(100%, 35rem);
    justify-self: center;
  }

  .notice-panel {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 35rem);
    justify-self: center;
    gap: 0.95rem;
    padding: 0.95rem 0;
  }

  .domain-strip {
    margin-bottom: 0.55rem;
    gap: 0.26rem;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 8.8vw, 2.85rem);
    line-height: 0.96;
  }

  .lede {
    margin-top: 0.65rem;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .notice-actions {
    gap: 0.58rem;
  }

  .primary-action {
    width: 100%;
    white-space: normal;
  }

  .account-note strong {
    display: block;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0.75rem;
  }

  .migration-poster {
    width: min(100%, calc(100dvh * 0.41));
    gap: 0.95rem;
  }

  .notice-panel {
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  h1 {
    font-size: clamp(1.85rem, 8.8vw, 2.35rem);
  }

  .lede,
  .account-note,
  .noscript-note {
    font-size: 0.86rem;
  }
}

@media (max-height: 700px) and (min-width: 821px) {
  .migration-poster {
    grid-template-columns: minmax(18rem, 0.7fr) minmax(22rem, 1fr);
    gap: clamp(2rem, 4.6vw, 3.5rem);
  }

  h1 {
    font-size: clamp(2.15rem, 6.4vmin, 3.95rem);
  }

  .lede {
    margin-top: 0.75rem;
  }
}

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