:root {
  color-scheme: dark;
  --night: #030712;
  --ink: #f8fbff;
  --body: #ced9ec;
  --blue: #b6cfff;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--night);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; position: relative; }
p { margin: 0; }
::selection { color: var(--night); background: var(--blue); }
html { scrollbar-color: #697fa8 var(--night); }

.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.starfield {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  opacity: .85;
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, .38);
}

.page {
  position: relative;
  width: min(100% - 64px, 1000px);
  min-height: 100svh;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 72px;
}

.product-mark {
  width: 210px;
  max-width: 100%;
  padding: 10px 14px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #ffffff;
}

.product-mark img { width: 100%; height: auto; display: block; }
.company-name { font-size: .75rem; line-height: 1.5; color: var(--body); }

.hero {
  width: 100%;
  margin-bottom: auto;
  padding-block: 32px 72px;
}

.chapter {
  color: var(--blue);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .12em;
}

h1 {
  margin: 18px auto 22px;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.description {
  max-width: 64ch;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}

.transition-note {
  max-width: 66ch;
  margin: 28px auto 0;
  color: var(--body);
  font-size: .875rem;
  line-height: 1.8;
}

.future-home { margin-top: 10px; }
.future-home strong { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.attendance-help {
  max-width: 62ch;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(206, 217, 236, .25);
  font-size: .875rem;
  line-height: 1.8;
  color: var(--body);
}

.attendance-help h2 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; color: var(--ink); }
.attendance-help a {
  display: inline-block;
  margin-top: 8px;
  padding-block: 8px;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 160ms ease-out;
}
.attendance-help a:hover { color: var(--blue); }
.attendance-help a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 2px; }

.page-footer {
  padding-block: 0 28px;
  font-size: .75rem;
  line-height: 1.8;
  color: var(--body);
}

.tagline { margin-top: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: arrive 800ms cubic-bezier(.16, 1, .3, 1) both; }
}

@keyframes arrive {
  from { opacity: .65; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (width < 700px) {
  .page { width: calc(100% - 40px); }
  .brand-header { padding-top: 48px; }
  .hero { padding-block: 28px 48px; }
  h1 { max-width: 18ch; margin-block: 18px 22px; font-size: clamp(2.25rem, 7vw, 3rem); }
  .description { font-size: 1rem; }
  .transition-note { font-size: .8125rem; margin-top: 24px; }
  .chapter { letter-spacing: .08em; }
  .page-footer { padding-bottom: 24px; }
}

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