@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Dancing+Script:wght@600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:       #e8e4dc;
  --maroon:   #5c1828;
  --maroon-2: #7a2238;
  --dark:     #1a1a1a;
  --mid:      #888;
  --card-bg:  #f0ece4;
  --border:   rgba(92,24,40,0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--dark);
  font-family: 'Space Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Sparkle decoration ── */
.sparkle {
  display: inline-block;
  font-style: normal;
  color: var(--maroon);
  animation: twinkle 2.5s ease-in-out infinite;
}
.sparkle:nth-child(2) { animation-delay: 0.8s; }
.sparkle:nth-child(3) { animation-delay: 1.6s; }

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50%       { opacity: 0.4; transform: scale(0.7) rotate(20deg); }
}

/* ── Hero / Header ── */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  overflow: hidden;
}

/* big background letters */
header::after {
  content: 'LILY';
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-size: clamp(12rem, 30vw, 26rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(92,24,40,0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.05em;
  z-index: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  animation: fadeUp 1s cubic-bezier(.16,1,.3,1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-sparkles {
  font-size: 2rem;
  letter-spacing: 1rem;
  margin-bottom: 1rem;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 900;
  color: var(--maroon);
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

header h2 {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--dark);
  margin-top: 1.2rem;
  opacity: 0.7;
  animation: fadeUp 1s 0.2s cubic-bezier(.16,1,.3,1) both;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: 0.6;
  animation: bounceDown 1.8s ease-in-out infinite;
}

.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--maroon);
  display: block;
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Main content ── */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── Section label ── */
.section-label {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: var(--maroon);
  opacity: 0.7;
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Links section ── */
.links-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--maroon);
  line-height: 1;
  margin-bottom: 3rem;
  position: relative;
}

.links-title span.script {
  font-family: 'Dancing Script', cursive;
  font-size: 0.6em;
  font-weight: 600;
  display: block;
  color: var(--dark);
  margin-top: 0.2rem;
  opacity: 0.65;
}

/* ── Link cards ── */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.link-list li {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(.16,1,.3,1) forwards;
}

.link-list li:nth-child(1) { animation-delay: 0.1s; }
.link-list li:nth-child(2) { animation-delay: 0.2s; }
.link-list li:nth-child(3) { animation-delay: 0.3s; }
.link-list li:nth-child(4) { animation-delay: 0.4s; }
.link-list li:nth-child(5) { animation-delay: 0.5s; }
.link-list li:nth-child(6) { animation-delay: 0.6s; }

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--dark);
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease;
}

/* sliding maroon fill on hover */
.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(.16,1,.3,1);
  z-index: 0;
}

.link-card:hover::before {
  transform: translateX(0);
}

.link-card:hover {
  color: #f0ece4;
}

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

.card-index {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.4;
  min-width: 2.5rem;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  flex: 1;
  padding: 0 1.5rem;
  transition: letter-spacing 0.3s ease;
}

.link-card:hover .card-name {
  letter-spacing: 0.02em;
}

.card-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.link-card:hover .card-arrow {
  transform: translateX(6px);
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 5rem 0 3rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-stars {
  font-size: 1rem;
  color: var(--maroon);
  letter-spacing: 0.5rem;
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

footer .footer-name {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: var(--maroon);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Floating sparkle corner decorations ── */
.corner-deco {
  position: fixed;
  font-size: 3rem;
  color: var(--maroon);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  animation: twinkle 3s ease-in-out infinite;
}
.corner-deco.tl { top: 2rem; left: 2rem; }
.corner-deco.tr { top: 2rem; right: 2rem; animation-delay: 1s; }
.corner-deco.bl { bottom: 2rem; left: 2rem; animation-delay: 2s; }
.corner-deco.br { bottom: 2rem; right: 2rem; animation-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .link-card {
    padding: 1.2rem 1.2rem;
  }

  .card-name {
    padding: 0 0.8rem;
  }
}
