:root {
  --parchment: #ece5d2;
  --parchment-deep: #ddd3ba;
  --ruby: #8a1e3a;
  --ruby-deep: #6e1730;
  --gold: #b88a3e;
  --ink: #2a1c12;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Mulish", system-ui, sans-serif;
  background: var(--parchment);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 3rem;
}

.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.lockup__name {
  font-family: "waverly-cf", serif;
  font-weight: 700;
  font-style: normal;
  color: var(--ruby);
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0.005em;
  white-space: nowrap;
  /* Waverly CF stylistic sets: ss03 = alt R, ss04 = alt S + lowercase s, ss05 = lowercase swash alts, swsh = swashes, dlig = discretionary ligatures. */
  font-feature-settings: "ss03", "ss04", "dlig";
}

.lockup__alt-o {
  /* Try ss05 on just the o; falls back to salt if ss05 doesn't change the o. */
  font-feature-settings: "ss05", "salt";
}

.lockup__discipline {
  font-family: "Mulish", sans-serif;
  font-weight: 800;
  color: var(--ruby);
  font-size: clamp(0.85rem, 1.4vw, 1.15rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.btn {
  display: inline-block;
  font-family: "Mulish", sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn--outline {
  color: var(--ruby);
  border: 1px solid var(--ruby);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--ruby);
  color: var(--parchment);
  outline: none;
}

.btn--outline:focus-visible {
  box-shadow: 0 0 0 3px rgba(138, 30, 58, 0.25);
}

@media (max-width: 480px) {
  .lockup__name {
    white-space: normal;
  }
}

/* ----- Disco mode ----- */

button.btn {
  font: inherit;
  cursor: pointer;
}

.disco-lights,
.disco-rain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 10;
}

.disco-rain {
  z-index: 20;
  overflow: hidden;
}

body.disco .disco-lights,
body.disco .disco-rain {
  opacity: 1;
}

/* Three rotating neon spotlights — different colors, different speeds. */
.disco-lights::before,
.disco-lights::after,
.disco-lights > .beam {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 200, 0.55) 0%, rgba(255, 0, 200, 0) 35%);
  mix-blend-mode: screen;
  filter: blur(20px);
  animation: disco-spin 6s linear infinite;
}

.disco-lights::after {
  background: radial-gradient(circle at 30% 40%, rgba(0, 220, 255, 0.5) 0%, rgba(0, 220, 255, 0) 35%);
  animation-duration: 8s;
  animation-direction: reverse;
}

.disco-lights > .beam {
  background: radial-gradient(circle at 70% 60%, rgba(255, 230, 60, 0.5) 0%, rgba(255, 230, 60, 0) 35%);
  animation-duration: 10s;
}

@keyframes disco-spin {
  from { transform: rotate(0deg) scale(1.1); }
  50%  { transform: rotate(180deg) scale(1.3); }
  to   { transform: rotate(360deg) scale(1.1); }
}

.disco-emoji {
  position: absolute;
  top: -2rem;
  font-size: 2rem;
  will-change: transform;
  animation: disco-fall linear forwards;
  user-select: none;
}

@keyframes disco-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
  }
}

/* Subtle hue cycling on the lockup while disco is on. */
body.disco .lockup,
body.disco .btn {
  animation: disco-hue 2s linear infinite;
}

@keyframes disco-hue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .disco-lights::before,
  .disco-lights::after,
  .disco-lights > .beam,
  .disco-emoji,
  body.disco .lockup,
  body.disco .btn {
    animation: none;
  }
}
