:root {
  color-scheme: dark;
  --ink: #fff7fb;
  --muted: #d6c3df;
  --soft: rgba(255, 247, 251, 0.72);
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.16);
  --bg: #100713;
  --bg-2: #1a0b22;
  --pink: #ff4fb8;
  --pink-soft: #ff93d4;
  --teal: #38e6e0;
  --gold: #f7be64;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.46);
  --reaper-image: url("/assets/grimlicorne-reaper-hero.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 79, 184, 0.18), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(56, 230, 224, 0.13), transparent 28rem),
    linear-gradient(180deg, var(--bg), var(--bg-2) 48%, #0b0710);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  right: -12vw;
  bottom: -16vh;
  width: min(52vw, 720px);
  height: min(72vh, 780px);
  background: var(--reaper-image) right center / cover no-repeat;
  opacity: 0.13;
  filter: saturate(1.1) contrast(1.08);
  pointer-events: none;
}

body::selection {
  color: #130816;
  background: var(--pink-soft);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(9, 4, 13, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.intro-band {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 147, 212, 0.42);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 18px rgba(255, 79, 184, 0.22),
    inset 0 0 18px rgba(0, 0, 0, 0.22);
  object-fit: cover;
}

.nav-links {
  gap: clamp(12px, 3vw, 30px);
  color: var(--soft);
  font-size: 0.92rem;
}

.nav-links a,
.admin-link {
  text-decoration: none;
}

.nav-links a:hover,
.admin-link:hover {
  color: var(--pink-soft);
}

.admin-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--soft);
  font-weight: 750;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 7vw, 96px) 58px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 4, 14, 0.9), rgba(10, 4, 14, 0.46) 38%, rgba(10, 4, 14, 0.08) 76%),
    linear-gradient(0deg, rgba(16, 7, 19, 0.94), transparent 36%),
    radial-gradient(circle at 25% 40%, rgba(255, 79, 184, 0.18), transparent 22rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.mobile-reaper {
  display: none;
}

.status-pill,
.section-kicker,
.card-label {
  margin: 0;
  color: var(--pink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 79, 184, 0.38);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 79, 184, 0.13);
  box-shadow: 0 0 32px rgba(255, 79, 184, 0.18);
}

h1,
h2,
p {
  max-width: 760px;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span {
  display: block;
  color: var(--pink-soft);
  text-shadow: 0 0 34px rgba(255, 79, 184, 0.35);
}

.hero-copy {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button,
button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  background: linear-gradient(135deg, var(--pink), #7c3cff);
  box-shadow: 0 16px 38px rgba(255, 79, 184, 0.24);
}

.button-secondary,
.secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.intro-band {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  min-height: 76px;
  padding: 18px clamp(20px, 6vw, 80px);
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  margin: 0;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intro-band p::before {
  content: "+";
  width: 7px;
  height: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--pink-soft);
  font-size: 0.88rem;
  text-shadow: 0 0 16px rgba(255, 79, 184, 0.75);
  vertical-align: middle;
}

.section-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0;
}

.split-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.52fr) minmax(0, 0.78fr) minmax(300px, 1.1fr);
  gap: clamp(24px, 6vw, 82px);
  align-items: start;
}

.reaper-card-art {
  min-height: 420px;
  border: 1px solid rgba(255, 79, 184, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 4, 14, 0.04), rgba(10, 4, 14, 0.58)),
    var(--reaper-image) 73% center / auto 118% no-repeat;
  box-shadow:
    inset 0 0 90px rgba(0, 0, 0, 0.62),
    0 20px 70px rgba(255, 79, 184, 0.12);
}

.split-section h2,
.card h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.split-section > p,
.card p {
  color: var(--muted);
  line-height: 1.65;
}

.split-section > p {
  margin: 22px 0 0;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.reaper-marked::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 7, 19, 0.88), rgba(16, 7, 19, 0.72)),
    var(--reaper-image) 77% 42% / 180% auto no-repeat;
  opacity: 0.24;
}

.reaper-marked::after {
  content: "+ GRIM +";
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(255, 147, 212, 0.52);
  font-size: 0.72rem;
  font-weight: 850;
  text-shadow: 0 0 18px rgba(255, 79, 184, 0.55);
}

.card > * {
  position: relative;
  z-index: 1;
}

.feature-card {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(255, 79, 184, 0.22), rgba(56, 230, 224, 0.11)),
    var(--panel-strong);
}

.card h2 {
  font-size: clamp(1.45rem, 3vw, 2.6rem);
}

.card p:last-child {
  margin-bottom: 0;
}

footer {
  padding: 32px 20px 34px;
  color: rgba(255, 247, 251, 0.82);
  background: #07050b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

footer p {
  margin: 0 auto;
}

.admin-shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 5rem);
}

.text-link {
  color: var(--pink-soft);
  font-weight: 800;
}

.panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

textarea {
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status {
  min-height: 1.4em;
  margin: 0;
  color: var(--gold);
  font-weight: 750;
}

.hidden {
  display: none;
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }

  .split-section,
  .cards {
    grid-template-columns: 1fr;
  }

  .reaper-card-art {
    min-height: 380px;
    background-position: 72% center;
    background-size: auto 122%;
  }

  .feature-card {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    display: block;
    padding: 86px 18px 30px;
  }

  .hero-media {
    object-position: 73% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 4, 14, 0.88), rgba(10, 4, 14, 0.28) 44%, rgba(10, 4, 14, 0.94) 84%),
      linear-gradient(90deg, rgba(10, 4, 14, 0.88), rgba(10, 4, 14, 0.32));
  }

  .mobile-reaper {
    position: relative;
    z-index: 1;
    display: block;
    min-height: min(74vh, 620px);
    margin: 8px -18px 18px;
    background:
      linear-gradient(180deg, rgba(16, 7, 19, 0), rgba(16, 7, 19, 0.78) 86%),
      var(--reaper-image) 71% center / auto 112% no-repeat;
    border-block: 1px solid rgba(255, 79, 184, 0.22);
  }

  .hero-content {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.6rem);
  }

  body::before {
    right: -42vw;
    bottom: -10vh;
    width: 118vw;
    height: 78vh;
    opacity: 0.1;
  }

  .button {
    width: 100%;
  }

  .reaper-card-art {
    min-height: 72vh;
    margin-inline: -2px;
    background:
      linear-gradient(180deg, rgba(10, 4, 14, 0.02), rgba(10, 4, 14, 0.6)),
      var(--reaper-image) 72% center / auto 116% no-repeat;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
