:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #090909;
  --muted: #6c6c6c;
  --rule: #cfcfcf;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding:
    max(34px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.page {
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(24px, 5.5vh, 58px) 0 clamp(28px, 6vh, 64px);
}

.content {
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  display: block;
  width: clamp(170px, 17vw, 224px);
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.divider {
  width: 58px;
  height: 1px;
  margin: clamp(28px, 4.1vh, 42px) 0 clamp(30px, 4.6vh, 48px);
  background: var(--rule);
}

.announcement {
  width: 100%;
}

.eyebrow {
  margin: 0 0 clamp(18px, 2.7vh, 26px);
  font-size: 0.6875rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

h1 span {
  display: block;
}

.subtext {
  margin: clamp(22px, 3.2vh, 30px) 0 0;
  color: var(--muted);
  font-size: clamp(0.875rem, 1.25vw, 0.975rem);
  line-height: 1.55;
  letter-spacing: 0.005em;
}

.footer {
  width: 100%;
  color: #777777;
  font-size: 0.625rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .site-shell {
    padding-top: max(24px, env(safe-area-inset-top));
    padding-right: max(20px, env(safe-area-inset-right));
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    padding-left: max(20px, env(safe-area-inset-left));
  }

  .page {
    padding: clamp(22px, 4.5vh, 36px) 0 clamp(28px, 5.5vh, 46px);
  }

  .brand {
    width: clamp(146px, 43vw, 180px);
  }

  .divider {
    width: 48px;
    margin-top: clamp(23px, 3.7vh, 31px);
    margin-bottom: clamp(25px, 4vh, 34px);
  }

  .eyebrow {
    margin-bottom: clamp(17px, 2.8vh, 22px);
    font-size: 0.625rem;
    letter-spacing: 0.28em;
  }

  h1 {
    max-width: 460px;
    font-size: clamp(2.5rem, 11.8vw, 3.7rem);
    line-height: 1.01;
    letter-spacing: -0.05em;
  }

  .subtext {
    max-width: 300px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.85rem;
  }
}

@media (max-height: 700px) {
  .site-shell {
    padding-top: max(18px, env(safe-area-inset-top));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .page {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .brand {
    width: clamp(128px, 24vh, 166px);
  }

  .divider {
    margin-top: 20px;
    margin-bottom: 22px;
  }

  .eyebrow {
    margin-bottom: 15px;
  }

  h1 {
    font-size: clamp(2.25rem, 8vh, 3.35rem);
  }

  .subtext {
    margin-top: 17px;
  }
}

@media (max-width: 390px) {
  h1 {
    font-size: clamp(2.3rem, 11.5vw, 2.8rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .divider,
  .eyebrow,
  h1,
  .subtext,
  .footer {
    opacity: 0;
    transform: translateY(7px);
    animation: reveal 600ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }

  .divider { animation-delay: 60ms; }
  .eyebrow { animation-delay: 110ms; }
  h1 { animation-delay: 160ms; }
  .subtext { animation-delay: 210ms; }
  .footer { animation-delay: 260ms; }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
