:root {
  --background: #f7f4ff;
  --foreground: #171029;
  --card: #ffffff;
  --card-foreground: #171029;
  --popover: #ffffff;
  --popover-foreground: #171029;
  --primary: #6c39f4;
  --primary-foreground: #ffffff;
  --secondary: #eafcff;
  --secondary-foreground: #171029;
  --muted: #eee9fb;
  --muted-foreground: #655d75;
  --accent: #ff4e97;
  --accent-foreground: #ffffff;
  --destructive: #e7000b;
  --border: #d9cef4;
  --input: #d9cef4;
  --ring: #6c39f4;
  --chart-1: #6c39f4;
  --chart-2: #1fd7ef;
  --chart-3: #ff4e97;
  --chart-4: #ffc83d;
  --chart-5: #1f1640;
  --radius: 1.25rem;
  --sidebar: #ffffff;
  --sidebar-foreground: #171029;
  --sidebar-primary: #6c39f4;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #eafcff;
  --sidebar-accent-foreground: #171029;
  --sidebar-border: #d9cef4;
  --sidebar-ring: #6c39f4;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);
  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);
  --radius-sm: calc(var(--radius) - 8px);
  --radius-md: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 8px);
  --font-sans: "Trebuchet MS", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--background);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

a { color: inherit; }

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px clamp(22px, 5vw, 76px) 24px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.96) 0 12%, transparent 36%),
    linear-gradient(135deg, #f7f4ff 0%, #e8fbff 52%, #fff0f6 100%);
}

.site-shell::before {
  content: "N";
  position: absolute;
  z-index: -2;
  right: -0.08em;
  bottom: -0.32em;
  color: rgba(108, 57, 244, 0.055);
  font: 900 min(72vw, 840px) / 1 Arial, sans-serif;
  letter-spacing: -0.14em;
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.8;
  animation: drift 9s ease-in-out infinite alternate;
}

.ambient-one {
  top: 11%;
  right: 8%;
  width: min(24vw, 260px);
  aspect-ratio: 1;
  background: rgba(119, 235, 255, 0.5);
}

.ambient-two {
  bottom: -10%;
  left: 28%;
  width: min(30vw, 380px);
  aspect-ratio: 1;
  background: rgba(255, 111, 172, 0.23);
  animation-delay: -3s;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1220px, 100%);
  margin-inline: auto;
}

.wordmark {
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.wordmark span { color: #6c39f4; }

.site-header p {
  margin: 0;
  color: #5b5369;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(42px, 7vw, 110px);
  width: min(1160px, 100%);
  min-height: calc(100svh - 145px);
  margin: 0 auto;
  padding: clamp(48px, 6vh, 82px) 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: #6c39f4;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  color: #ff4e97;
  font-size: 1.5em;
  animation: twinkle 2s ease-in-out infinite;
}

h1 {
  margin: 0;
  background: linear-gradient(112deg, #21144a 4%, #6c39f4 50%, #ff4e97 92%);
  background-clip: text;
  color: transparent;
  font: 900 clamp(5.3rem, 12vw, 10.8rem) / 0.82 Arial, sans-serif;
  letter-spacing: -0.105em;
  transform: translateX(-0.04em);
}

.lead {
  max-width: 590px;
  margin: clamp(28px, 4vw, 46px) 0 30px;
  color: #302842;
  font-size: clamp(1.18rem, 2vw, 1.56rem);
  font-weight: 700;
  line-height: 1.55;
  text-wrap: balance;
}

.message { width: min(100%, 520px); }

.message summary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 10px 12px 10px 24px;
  border: 2px solid #21144a;
  border-radius: 999px;
  background: #21144a;
  box-shadow: 7px 7px 0 rgba(108, 57, 244, 0.2);
  color: #ffffff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  list-style: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.message summary::-webkit-details-marker { display: none; }

.message summary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 rgba(108, 57, 244, 0.24);
}

.message summary:focus-visible {
  outline: 4px solid rgba(31, 215, 239, 0.75);
  outline-offset: 5px;
}

.heart {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6baa, #ff367d);
  color: #fff;
  font-size: 1.15rem;
  transition: transform 250ms ease;
}

.message[open] .heart { transform: rotate(12deg) scale(1.08); }

.message-card {
  position: relative;
  margin: 18px 0 0;
  padding: 22px 25px;
  border: 2px solid rgba(108, 57, 244, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(46, 24, 98, 0.12);
  backdrop-filter: blur(15px);
  animation: reveal 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.message-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.65;
}

.message-card .signature {
  margin-top: 12px;
  color: #6c39f4;
  font-family: Georgia, serif;
  font-size: 1.18rem;
  font-style: italic;
}

.portrait-stage {
  position: relative;
  width: min(100%, 510px);
  justify-self: center;
  padding: 20px;
}

.portrait-card {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: clamp(10px, 1.5vw, 15px) clamp(10px, 1.5vw, 15px) 18px;
  border: 2px solid rgba(34, 18, 75, 0.15);
  border-radius: clamp(29px, 4vw, 46px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 30px 80px rgba(59, 24, 120, 0.22),
    14px 16px 0 rgba(108, 57, 244, 0.14),
    -12px -10px 0 rgba(31, 215, 239, 0.18);
  transform: rotate(2deg);
}

.photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 691 / 695;
  border-radius: clamp(22px, 3.3vw, 36px);
  background: #d8d1c9;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 26%, rgba(255, 255, 255, 0.22) 45%, transparent 59%);
  transform: translateX(-120%);
  animation: sheen 6s ease-in-out 1s infinite;
  pointer-events: none;
}

.portrait-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-top: 16px;
  color: #33294a;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portrait-card figcaption span { color: #ff4e97; }

.sticker {
  position: absolute;
  z-index: 3;
  right: -20px;
  bottom: 14%;
  display: grid;
  place-content: center;
  width: clamp(100px, 10vw, 132px);
  aspect-ratio: 1;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c39f4 8%, #1fd7ef 52%, #ff70ae 98%);
  box-shadow: 0 15px 30px rgba(52, 22, 118, 0.25);
  color: #fff;
  text-align: center;
  transform: rotate(-10deg);
}

.sticker span {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.sticker small {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.orbit {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(61, 26, 125, 0.2);
  font-weight: 900;
}

.orbit-one {
  top: -12px;
  left: -14px;
  width: 62px;
  aspect-ratio: 1;
  background: #ffdf59;
  color: #6c39f4;
  font-size: 1.8rem;
  animation: bob 4s ease-in-out infinite;
}

.orbit-two {
  top: 18%;
  right: -30px;
  width: 52px;
  aspect-ratio: 1;
  background: #fff;
  color: #ff4e97;
  font-size: 1.15rem;
  animation: bob 4.8s ease-in-out -1.4s infinite;
}

footer {
  padding-top: 18px;
  border-top: 1px solid rgba(62, 43, 95, 0.15);
  color: #5c536a;
  font-size: 0.82rem;
  font-weight: 700;
}

footer p { margin: 0; }

footer span {
  color: #6c39f4;
  font-weight: 900;
  letter-spacing: 0.12em;
}

@keyframes drift {
  to { transform: translate3d(18px, -16px, 0) scale(1.06); }
}

@keyframes twinkle {
  50% { transform: rotate(20deg) scale(1.18); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes sheen {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@keyframes bob {
  50% { transform: translateY(-10px) rotate(7deg); }
}

@media (max-width: 840px) {
  .site-shell { padding: 24px 22px 22px; }

  .site-header p {
    max-width: 155px;
    text-align: right;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
    padding: 62px 0 70px;
  }

  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }

  .lead,
  .message { margin-inline: auto; }

  .message summary { margin-inline: auto; }
  .portrait-stage { width: min(90vw, 490px); }

  footer { align-items: flex-end; }
  footer p { max-width: 220px; }
}

@media (max-width: 480px) {
  .site-header p { font-size: 0.76rem; }
  .hero { padding-top: 50px; }
  h1 { font-size: clamp(5rem, 26vw, 7.2rem); }
  .lead { font-size: 1.1rem; }

  .message summary {
    min-height: 54px;
    font-size: 0.92rem;
  }

  .portrait-stage { padding-inline: 8px; }
  .sticker { right: -7px; }
  .orbit-one { left: -8px; }
  .orbit-two { right: -12px; }
}

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