:root {
  color-scheme: light;
  --ink: #25202a;
  --muted: #685f6e;
  --line: #e2d9e8;
  --paper: #fff;
  --canvas: #f5f1f8;
  --purple: #70438d;
  --purple-dark: #3d1c55;
  --amber: #80530a;
  --amber-pale: #fff5df;
  --green: #18764a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 86% 4%, #eadcf2 0, transparent 31rem),
    var(--canvas);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", Arial, sans-serif;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #e8a92a;
  outline-offset: 4px;
}

.site-header, main, .site-footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-dark);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--purple-dark);
  color: var(--paper);
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -.06em;
}

.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: .99rem; }
.brand-copy span { margin-top: 3px; color: var(--muted); font-size: .78rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); font-size: .91rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover, .text-link:hover { color: var(--purple); }
.site-nav .nav-login { color: var(--purple-dark); }

.hero {
  position: relative;
  display: grid;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 6vw, 72px);
  border-radius: 26px;
  background: linear-gradient(122deg, #341746 0%, #58326e 60%, #80549a 100%);
  color: var(--paper);
  box-shadow: 0 20px 48px #3d1c5526;
}

.hero::after {
  position: absolute;
  inset: auto -90px -265px auto;
  width: 510px;
  height: 510px;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  box-shadow: 0 0 0 32px #ffffff0b, 0 0 0 68px #ffffff0b;
  content: "";
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; max-width: 560px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  color: #e4d2ef;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow-dot, .status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e8b44e;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 17px;
  font-size: clamp(2.6rem, 6.6vw, 5rem);
  font-weight: 780;
  letter-spacing: -.055em;
  line-height: .99;
}

h1 span { color: #e4d2ef; }
.hero-description { max-width: 490px; margin-bottom: 27px; color: #f2ebf6; font-size: 1.02rem; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: .93rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.button-light { background: var(--paper); color: var(--purple-dark); }
.button-primary { width: 100%; background: var(--purple); color: var(--paper); }
.button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 18px #24122b22; }

.hero-art { position: relative; z-index: 1; display: grid; min-height: 280px; place-items: center; }
.orbit { position: absolute; width: min(28vw, 300px); aspect-ratio: 1; border: 1px solid #ffffff36; border-radius: 50%; }
.orbit-one { transform: scaleX(.72) rotate(34deg); }
.orbit-two { transform: scaleX(.72) rotate(-34deg); }
.shuttle { position: relative; width: 150px; height: 164px; transform: rotate(38deg); }
.shuttle-feather {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 34px;
  height: 94px;
  border: 2px solid #fff;
  border-radius: 85% 85% 20% 20%;
  background: linear-gradient(180deg, #ffffff35, #ffffff09);
  transform-origin: 50% 100%;
}

.feather-one { transform: translateX(-50%) rotate(-31deg); }
.feather-two { transform: translateX(-50%); }
.feather-three { transform: translateX(-50%) rotate(31deg); }
.shuttle-cork {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 49px;
  height: 60px;
  border: 2px solid #fff;
  border-radius: 8px 8px 24px 24px;
  background: linear-gradient(145deg, #f8e6c1, #d6a64c);
  transform: translateX(-50%);
}

.art-caption {
  position: absolute;
  right: 0;
  bottom: 4px;
  color: #e4d2ef;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  right: 26px;
  top: 24px;
  color: #ffffff9c;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
  gap: 22px;
  margin-top: 24px;
}

.welcome-card, .login-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 28px #102e4209;
}

.welcome-card { display: flex; min-height: 280px; flex-direction: column; align-items: flex-start; justify-content: center; }
.eyebrow-dark { margin-bottom: 8px; color: var(--purple); }
.welcome-card h2, .login-card h2 { margin-bottom: 9px; color: var(--purple-dark); font-size: clamp(1.45rem, 3vw, 1.85rem); letter-spacing: -.035em; line-height: 1.2; }
.welcome-card > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 430px; margin-bottom: 22px; color: var(--muted); }
.text-link { position: relative; z-index: 1; color: var(--purple-dark); font-size: .92rem; font-weight: 750; text-decoration: none; }
.text-link span { padding-left: 4px; }
.welcome-decoration { position: absolute; right: 19px; bottom: -52px; color: #f5f1f8; font-size: 15rem; font-weight: 900; line-height: 1; }

.login-heading { display: flex; align-items: center; gap: 14px; }
.login-icon { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: #f1e9f7; color: var(--purple); }
.login-icon svg { width: 24px; height: 24px; }
.login-heading .eyebrow { margin-bottom: 4px; }
.login-heading h2 { margin-bottom: 0; }
.login-intro { margin: 18px 0; color: var(--muted); font-size: .92rem; }
fieldset { display: grid; gap: 9px; margin: 0; padding: 0; border: 0; }
label { color: var(--ink); font-size: .84rem; font-weight: 700; }
input {
  width: 100%;
  min-height: 47px;
  margin-bottom: 5px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbf9fc;
  color: var(--ink);
  font: inherit;
}

input::placeholder { color: #958a9b; }
fieldset:disabled { opacity: .63; }
fieldset:disabled .button { cursor: not-allowed; }
.login-status { display: flex; align-items: center; gap: 9px; margin: 17px 0 0; color: var(--amber); font-size: .81rem; font-weight: 700; }
.status-dot { width: 7px; height: 7px; background: #d49a24; }

.site-footer {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 25px;
  color: var(--muted);
  font-size: .82rem;
}

.site-footer a { color: var(--purple-dark); font-weight: 700; text-decoration: none; }
.footer-brand { font-size: .91rem; }

@media (max-width: 760px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 560px); }
  .site-header { min-height: 78px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: .82rem; }
  .hero { min-height: 420px; grid-template-columns: 1fr; padding: 38px 28px; }
  .hero-copy { max-width: 550px; }
  .hero-art { position: absolute; right: 12px; bottom: -35px; width: 210px; min-height: 220px; opacity: .38; }
  .orbit { width: 190px; }
  .shuttle { transform: scale(.75) rotate(38deg); }
  .art-caption { display: none; }
  .hero::after { right: -240px; bottom: -300px; }
  .content-grid { grid-template-columns: 1fr; gap: 16px; }
  .welcome-card { min-height: 230px; }
  .login-card { padding: 25px; }
  .site-footer { flex-wrap: wrap; padding: 20px 0; }
}

@media (max-width: 420px) {
  .site-header, main, .site-footer { width: min(100% - 24px, 560px); }
  .brand { gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy span { font-size: .7rem; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: .75rem; }
  .hero { min-height: 400px; padding: 32px 22px; border-radius: 20px; }
  h1 { font-size: clamp(2.45rem, 12vw, 3.3rem); }
  .hero-description { max-width: 330px; font-size: .95rem; }
  .hero-art { right: -32px; opacity: .25; }
  .welcome-card { padding: 25px 22px; }
  .site-footer { gap: 10px 16px; font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
