:root {
  --ink: #111217;
  --charcoal: #1b1d22;
  --lime: #b5c145;
  --green: #759131;
  --pink: #ed3185;
  --gold: #f5c84b;
  --cyan: #38c4d8;
  --paper: #f3f3f1;
  --muted: #c2c0aa;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 22%, rgba(237, 49, 133, 0.22), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(56, 196, 216, 0.18), transparent 25rem),
    linear-gradient(180deg, #111217 0%, #202124 54%, #111217 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  background: rgba(17, 18, 23, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 3px white, 0 0 32px rgba(181, 193, 69, 0.45);
}

nav,
footer,
.actions,
.manage-actions,
.manage-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

nav {
  justify-content: flex-end;
}

.manage-heading {
  align-items: flex-start;
  justify-content: space-between;
}

nav a,
footer a {
  text-decoration: none;
  font-weight: 800;
}

.hero {
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(19rem, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 7rem clamp(1rem, 5vw, 5rem) 4rem;
  overflow: hidden;
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--pink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 0.83;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0.08em 0.08em 0 var(--pink), 0 0 48px rgba(245, 200, 75, 0.2);
}

.manage-panel h1,
.legal-page h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 42rem;
  color: rgba(243, 243, 241, 0.82);
  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1.15rem;
  border: 0;
  border-radius: 0.5rem;
  color: var(--ink);
  background: var(--paper);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px) rotate(-1deg);
}

.button.primary {
  background: var(--lime);
  box-shadow: 0 14px 36px rgba(181, 193, 69, 0.28);
}

.button.ghost {
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line);
}

.button.dark-button {
  color: var(--paper);
  background: var(--charcoal);
}

.button.danger {
  color: var(--paper);
  background: var(--pink);
}

.turntable {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(38rem, 80vw);
}

.logo-player {
  grid-area: 1 / 1;
}

.logo-player {
  position: relative;
  z-index: 4;
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  width: min(32rem, 82vw);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  color: transparent;
  font: inherit;
}

.logo-player:focus-visible {
  outline: 0.3rem solid var(--gold);
  outline-offset: 0.4rem;
}

.logo-player:hover img {
  transform: scale(1.04) rotate(-1deg);
}

.player-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.logo-player img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 50%;
  box-shadow: var(--shadow), 0 0 0 0.45rem white;
  animation: pulseLogo 3.8s ease-in-out infinite;
  pointer-events: none;
  transition: transform 180ms ease;
}

.logo-player.is-playing img {
  box-shadow: var(--shadow), 0 0 0 0.45rem white, 0 0 60px rgba(237, 49, 133, 0.5);
}

.ring {
  position: absolute;
  border: 0.12rem solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.ring-one {
  width: 80%;
  aspect-ratio: 1;
  border-top-color: var(--pink);
  border-right-color: var(--cyan);
}

.ring-two {
  width: 102%;
  aspect-ratio: 1;
  border-bottom-color: var(--gold);
  border-left-color: var(--lime);
  animation-direction: reverse;
}

.note {
  position: absolute;
  z-index: 3;
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 900;
  animation: floatNote 3s ease-in-out infinite;
}

.note-a {
  top: 18%;
  left: 0;
  color: var(--cyan);
}

.note-b {
  top: 9%;
  right: 7%;
  color: var(--gold);
  animation-delay: 550ms;
}

.note-c {
  right: 3%;
  bottom: 14%;
  color: var(--pink);
  animation-delay: 950ms;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--lime);
  color: var(--ink);
}

.ticker div {
  display: flex;
  width: max-content;
  gap: 2rem;
  padding: 0.8rem 0;
  font-size: 1.1rem;
  font-weight: 950;
  text-transform: uppercase;
  animation: marquee 20s linear infinite;
}

.ticker span {
  padding-left: 2rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.feature-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-grid article,
.blog-card,
.contact-form,
.month-card,
.manage-panel,
.legal-page {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
}

.feature-grid article,
.blog-card,
.contact-form,
.month-card {
  padding: 1.2rem;
}

.feature-grid strong {
  color: var(--lime);
  font-size: 1.2rem;
}

.blog-section {
  background: rgba(0, 0, 0, 0.24);
}

.calendar-section {
  background:
    linear-gradient(90deg, rgba(181, 193, 69, 0.08), rgba(237, 49, 133, 0.08)),
    rgba(0, 0, 0, 0.16);
}

.contact-section {
  background: rgba(0, 0, 0, 0.3);
}

.section-heading {
  max-width: 62rem;
  margin-bottom: 2rem;
}

.blog-card {
  min-height: 13rem;
}

.blog-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
}

.blog-card time {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.month-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.1rem 0.1rem 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: grab;
  user-select: none;
}

.month-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.month-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.month-card h3 {
  margin-bottom: 1rem;
  color: var(--lime);
}

.weekday-row,
.calendar-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-row {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}

.calendar-board {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

.calendar-day {
  display: block;
  width: 100%;
  min-height: 5.25rem;
  padding: 0.45rem;
  border-top: 0;
  border-left: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.calendar-day:hover,
button.calendar-day:focus-visible {
  background: rgba(255, 255, 255, 0.07);
}

button.calendar-day:focus-visible {
  position: relative;
  z-index: 1;
  outline: 1px solid var(--lime);
  outline-offset: -2px;
}

button.calendar-day.is-selected {
  background: rgba(255, 205, 78, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 205, 78, 0.58);
}

button.calendar-day.is-selected .day-number {
  color: var(--ink);
  background: var(--gold);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.is-muted {
  color: rgba(243, 243, 241, 0.28);
  background: rgba(0, 0, 0, 0.1);
}

.calendar-day.is-today .day-number {
  color: var(--ink);
  background: var(--gold);
}

.day-number {
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 950;
}

.calendar-event {
  display: block;
  margin-top: 0.35rem;
  padding: 0.28rem 0.35rem;
  border-radius: 0.35rem;
  color: white;
  background: var(--pink);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  max-width: 48rem;
}

.blog-card h3 {
  margin: 0.4rem 0;
  color: var(--paper);
}

.blog-card p,
.muted {
  color: rgba(243, 243, 241, 0.74);
  white-space: pre-wrap;
}

.delete-post {
  width: 100%;
  min-height: 2.5rem;
  border: 0;
  border-radius: 0.4rem;
  color: white;
  background: var(--pink);
  font-weight: 900;
  cursor: pointer;
}

footer {
  justify-content: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--line);
}

.manage-body,
.text-page {
  min-height: 100vh;
  padding: clamp(1rem, 4vw, 3rem);
}

.manage-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  max-width: 76rem;
  margin: 0 auto;
}

.manage-shell.single {
  grid-template-columns: minmax(18rem, 32rem);
  justify-content: center;
}

.manage-panel,
.legal-page {
  padding: clamp(1rem, 3vw, 2rem);
}

label {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  padding: 0.8rem;
  color: var(--paper);
  background: rgba(0, 0, 0, 0.28);
  font: inherit;
}

.compact {
  grid-template-columns: 1fr;
}

.legal-page {
  max-width: 48rem;
  margin: 4rem auto;
}

.error {
  color: white;
  background: rgba(237, 49, 133, 0.28);
  border: 1px solid rgba(237, 49, 133, 0.6);
  border-radius: 0.5rem;
  padding: 0.8rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseLogo {
  50% {
    transform: scale(1.035) rotate(1deg);
  }
}

@keyframes floatNote {
  50% {
    transform: translateY(-1rem) rotate(8deg);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 880px) {
  .topbar {
    position: static;
  }

  .hero,
  .split,
  .manage-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .feature-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .month-card {
    flex-basis: 100%;
  }

  .calendar-day {
    min-height: 4.4rem;
  }
}
