:root {
  --ink: #0a1628;
  --ink-soft: #26334c;
  --rule: rgba(38, 51, 76, 0.18);
  --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica,
    Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: clamp(1rem, 4vmin, 3rem);
  background: radial-gradient(
    ellipse at 50% 0%,
    #ffffff 0%,
    #f4f6fa 55%,
    #e9edf4 100%
  );
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 60rem;
  animation: rise 0.8s ease-out both;
}

/* Sized against height as well as width so the logo shrinks in landscape
   instead of pushing the wordmark off screen. */
.brand__logo {
  display: block;
  width: min(58vw, 34vh, 20rem);
  height: auto;
}

.brand__text {
  min-width: 0;
}

.brand__name {
  margin: clamp(1.25rem, 4vmin, 2.25rem) 0 0;
  font-size: clamp(1.375rem, 5.5vmin, 3rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  text-wrap: balance;
}

.brand__rule {
  width: min(50vw, 16rem);
  height: 1px;
  margin: clamp(0.875rem, 3vmin, 1.75rem) auto 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--rule) 20%,
    var(--rule) 80%,
    transparent
  );
}

.brand__tagline {
  margin: clamp(0.75rem, 2.5vmin, 1.5rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.875rem, 2vmin, 1.0625rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-wrap: balance;
}

.notice {
  margin: clamp(1rem, 3vmin, 2rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.875rem, 2vmin, 1.0625rem);
  line-height: 1.6;
  text-wrap: balance;
}

.notice__code {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

.notice__link {
  color: var(--ink);
  text-underline-offset: 0.25em;
}

.notice__link:hover,
.notice__link:focus-visible {
  text-decoration-thickness: 2px;
}

/* Landscape on a short viewport (phones turned sideways): go side-by-side so
   the layout uses the available width rather than overflowing vertically. */
@media (orientation: landscape) and (max-height: 34rem) {
  .brand {
    flex-direction: row;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 3rem);
    text-align: left;
  }

  .brand__logo {
    width: min(30vw, 62vh);
  }

  .brand__name {
    margin-top: 0;
    font-size: clamp(1.25rem, 4.4vw, 2.5rem);
  }

  .brand__rule {
    width: min(28vw, 16rem);
    margin-left: 0;
    margin-right: 0;
  }
}

/* Very short viewports: drop the decorative rule to save vertical space. */
@media (max-height: 22rem) {
  .brand__rule {
    display: none;
  }
}

/* Very wide displays: allow the mark to grow a little rather than looking lost. */
@media (min-width: 100rem) and (min-height: 50rem) {
  .brand__logo {
    width: min(58vw, 34vh, 24rem);
  }

  .brand__name {
    font-size: clamp(3rem, 3.2vmin, 3.75rem);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand {
    animation: none;
  }
}
