/*
 * Love Me Too expressive gateway layer.
 * Adds authored art direction while preserving the existing accessibility,
 * privacy, learning, and proof behavior supplied by styles.css + app.js.
 */

:root {
  --garden-night: #241d36;
  --garden-plum: #6d3f78;
  --garden-coral: #e46f66;
  --garden-sun: #f4c44f;
  --garden-leaf: #3e7a63;
  --garden-water: #4d8fac;
  --garden-cream: #fff9eb;
  --garden-lilac: #eee5ff;
  --garden-line: rgba(36, 29, 54, 0.24);
}

html:not(.high-contrast) body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(244,196,79,.34), transparent 18rem),
    radial-gradient(circle at 89% 12%, rgba(228,111,102,.26), transparent 22rem),
    radial-gradient(circle at 15% 68%, rgba(62,122,99,.2), transparent 28rem),
    radial-gradient(circle at 82% 72%, rgba(109,63,120,.16), transparent 30rem),
    linear-gradient(180deg, #fff9eb 0%, #fffdf8 42%, #f8f2ff 100%);
}

.ribbon {
  position: relative;
  z-index: 50;
  background: linear-gradient(90deg, var(--garden-night), #3a3153, var(--garden-night));
  letter-spacing: .06em;
}

.nav {
  border-bottom: 0;
  background: rgba(255,249,235,.88);
  box-shadow: 0 10px 35px rgba(36,29,54,.06);
}

html:not(.high-contrast) .nav .brand {
  border-color: transparent;
  background: transparent;
  color: var(--garden-plum);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, .92fr);
  min-height: min(820px, calc(100vh - 7rem));
  gap: clamp(2rem, 7vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
}

.hero::before {
  content: "";
  position: absolute;
  width: 17rem;
  height: 17rem;
  left: -9rem;
  bottom: 1rem;
  border: 1px dashed rgba(109,63,120,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(109,63,120,.025), 0 0 0 7rem rgba(77,143,172,.018);
  pointer-events: none;
}

.eyebrow {
  color: var(--garden-plum);
  letter-spacing: .15em;
}

h1 {
  max-width: 7.8ch;
  font-size: clamp(4.5rem, 10.5vw, 9.5rem);
  line-height: .82;
  letter-spacing: -.07em;
}

html:not(.high-contrast) h1 span {
  color: transparent;
  background: linear-gradient(95deg, var(--garden-coral), var(--garden-plum) 48%, var(--garden-water));
  -webkit-background-clip: text;
  background-clip: text;
}

.lede {
  max-width: 43rem;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
}

.seeds {
  gap: .55rem .8rem;
  margin-block: 1.7rem;
}

html:not(.high-contrast) .seeds span {
  position: relative;
  padding: .35rem .2rem .45rem;
  border: 0;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
}

html:not(.high-contrast) .seeds span:nth-child(1) { color: var(--garden-water); }
html:not(.high-contrast) .seeds span:nth-child(2) { color: var(--garden-leaf); }
html:not(.high-contrast) .seeds span:nth-child(3) { color: var(--garden-plum); }
html:not(.high-contrast) .seeds span:nth-child(4) { color: #a43e57; }
html:not(.high-contrast) .seeds span:nth-child(5) { color: #7c5c08; }
html:not(.high-contrast) .seeds span:nth-child(6) { color: #a65335; }

.nav a,
.button,
.access-bar button,
.nav-toggle {
  border-radius: 1.2rem .45rem 1.2rem .45rem;
}

.button {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px) rotate(-.35deg);
  box-shadow: 4px 6px 0 rgba(36,29,54,.12);
}

html:not(.high-contrast) .button.primary {
  border-color: var(--garden-night);
  background: var(--garden-night);
}

.garden {
  min-height: 540px;
  transform: rotate(1deg);
}

html:not(.high-contrast) .garden::before {
  inset: 4% 0 3% 4%;
  border-radius: 43% 57% 68% 32% / 41% 38% 62% 59%;
  background:
    radial-gradient(circle at 28% 25%, rgba(255,255,255,.9), transparent 12%),
    radial-gradient(circle at 72% 25%, rgba(244,196,79,.8), transparent 22%),
    radial-gradient(circle at 67% 74%, rgba(228,111,102,.72), transparent 25%),
    radial-gradient(circle at 24% 74%, rgba(62,122,99,.58), transparent 24%),
    linear-gradient(135deg, #cceaf3, #eee5ff 45%, #fff1b9);
  box-shadow: 22px 28px 0 rgba(36,29,54,.065);
  animation: garden-breathe 8s ease-in-out infinite alternate;
}

.orbit {
  border-width: 2px;
  border-color: rgba(36,29,54,.28);
  animation: orbit-turn 28s linear infinite;
}

.orbit2 {
  border-style: solid;
  border-color: rgba(109,63,120,.2);
  animation-direction: reverse;
  animation-duration: 36s;
}

html:not(.high-contrast) .person {
  width: 168px;
  height: 168px;
  border: 0;
  background: linear-gradient(155deg, #fff, #fff5dd);
  box-shadow: 0 18px 0 rgba(36,29,54,.08), 0 30px 60px rgba(36,29,54,.14);
}

.person strong {
  letter-spacing: .1em;
}

.petal {
  border-width: 2px;
  border-radius: 64% 36% 58% 42% / 45% 58% 42% 55%;
  transition: transform 180ms ease;
}

.petal:hover {
  transform: scale(1.06) rotate(0deg);
}

.p1 { border-radius: 70% 30% 65% 35% / 48% 62% 38% 52%; }
.p2 { border-radius: 38% 62% 30% 70% / 62% 43% 57% 38%; }
.p3 { border-radius: 55% 45% 70% 30% / 35% 66% 34% 65%; }
.p4 { border-radius: 35% 65% 55% 45% / 63% 38% 62% 37%; }

.spark {
  animation: spark-float 3.8s ease-in-out infinite alternate;
}

.s2 { animation-delay: .8s; }
.s3 { animation-delay: 1.6s; }

.section {
  position: relative;
  isolation: isolate;
  margin-block: clamp(3rem, 7vw, 7rem);
  padding: clamp(2rem, 5vw, 4.8rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--garden-line);
  border-radius: 3rem 1rem 4.5rem 1.8rem;
  background: rgba(255,255,255,.55);
  transform: rotate(-.35deg);
}

.joyful::before {
  border: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(244,196,79,.22), transparent 17rem),
    radial-gradient(circle at 90% 75%, rgba(77,143,172,.17), transparent 22rem),
    rgba(255,255,255,.52);
  border-radius: 5rem 1.2rem 6rem 2rem;
}

.question-grid {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1rem, 3vw, 2.2rem);
  margin-top: 2.4rem;
}

.card {
  min-height: 15rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 2px solid var(--garden-night);
  border-radius: 2.8rem .8rem 2.1rem 1rem;
  box-shadow: 8px 10px 0 rgba(36,29,54,.09);
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.card:hover {
  transform: translateY(-5px) rotate(.25deg);
  box-shadow: 11px 15px 0 rgba(36,29,54,.12);
}

.q1 { transform: rotate(-1.1deg); border-top-color: var(--garden-sun); }
.q2 { transform: translateY(1.1rem) rotate(.8deg); border-top-color: var(--garden-coral); }
.q3 { transform: rotate(.75deg); border-top-color: var(--garden-plum); }
.q4 { transform: translateY(1rem) rotate(-.65deg); border-top-color: var(--garden-water); }

.card b {
  border-radius: 64% 36% 58% 42%;
}

.promise {
  margin-top: 3rem;
  padding: 1.5rem clamp(1.2rem,4vw,2.2rem);
  border: 2px solid var(--garden-plum);
  border-radius: 1rem 3rem 1.2rem 2.5rem;
  background: rgba(238,229,255,.72);
  transform: rotate(-.35deg);
  font-size: 1.08rem;
}

.roots-callout {
  min-height: 36rem;
  gap: clamp(3rem, 8vw, 7rem);
}

.roots-callout::before {
  border: 0;
  background:
    radial-gradient(circle at 77% 43%, rgba(62,122,99,.18), transparent 17rem),
    radial-gradient(circle at 19% 70%, rgba(244,196,79,.19), transparent 18rem),
    rgba(255,255,255,.32);
}

.mini-roots span {
  border-radius: 44% 56% 62% 38% / 62% 41% 59% 38%;
  transform: translateX(-50%) rotate(-2deg);
}

.living-record-gateway {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(16rem,.85fr);
  align-items: center;
  gap: clamp(2rem,7vw,6rem);
}

.living-record-gateway::before {
  border: 0;
  border-radius: 1rem 5rem 1.5rem 6rem;
  background: linear-gradient(125deg, rgba(36,29,54,.96), rgba(67,56,91,.97));
  box-shadow: 18px 18px 0 rgba(228,111,102,.17);
}

.living-record-gateway,
.living-record-gateway .eyebrow,
.living-record-gateway h2,
.living-record-gateway p {
  color: #fff;
}

.living-record-gateway .eyebrow {
  color: #ffd774;
}

.living-record-gateway .button {
  border-color: #fff;
  background: #fff;
  color: var(--garden-night);
}

.record-orbit {
  position: relative;
  min-height: 18rem;
  display: grid;
  place-items: center;
}

.record-orbit::before,
.record-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
}

.record-orbit::before { inset: 5%; }
.record-orbit::after { inset: 18%; border-style: dashed; }

.record-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 9.5rem;
  height: 9.5rem;
  padding: 1rem;
  border-radius: 50%;
  background: #fff9eb;
  color: var(--garden-night);
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.record-core strong,
.record-core small {
  display: block;
}

.record-core strong {
  font-size: 1.15rem;
}

.record-core small {
  margin-top: .35rem;
  color: #655c70;
}

.worlds {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: clamp(1.2rem,4vw,3rem);
  padding-block: 1.5rem;
}

.worlds a {
  aspect-ratio: 1;
  min-height: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 8px 10px 0 rgba(36,29,54,.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.worlds a:nth-child(2n) { transform: translateY(1.5rem); }
.worlds a:nth-child(3n) { transform: rotate(2deg); }
.worlds a:hover { transform: translateY(-.4rem) rotate(-1deg); box-shadow: 12px 16px 0 rgba(36,29,54,.12); }
.worlds span { font-size: 2.8rem; }

.history-callout::before {
  border: 0;
  border-left: .8rem solid var(--garden-sun);
  border-radius: .5rem 3rem 3rem .5rem;
  background: linear-gradient(100deg, rgba(255,248,218,.88), rgba(238,229,255,.62));
}

.footer {
  position: relative;
  overflow: hidden;
  background: var(--garden-night);
}

.footer::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  right: -7rem;
  bottom: -10rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 8rem rgba(255,255,255,.018);
}

@keyframes garden-breathe {
  from { transform: rotate(-4deg) scale(.99); }
  to { transform: rotate(-1deg) scale(1.025); }
}

@keyframes orbit-turn {
  to { transform: rotate(378deg); }
}

@keyframes spark-float {
  from { transform: translateY(-4px) rotate(-5deg); }
  to { transform: translateY(7px) rotate(7deg); }
}

@media (max-width: 900px) {
  .hero,
  .living-record-gateway {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
  }
  .garden {
    max-width: 42rem;
    width: 100%;
    margin-inline: auto;
  }
  .worlds {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 720px) {
  .hero::before {
    display: none;
  }
  h1 {
    font-size: clamp(3.5rem, 18vw, 6rem);
  }
  .question-grid,
  .worlds {
    grid-template-columns: 1fr;
  }
  .q1,
  .q2,
  .q3,
  .q4,
  .worlds a:nth-child(n) {
    transform: none;
  }
  .card {
    min-height: 0;
  }
  .worlds a {
    aspect-ratio: auto;
    min-height: 11rem;
    border-radius: 2.5rem .8rem 2.5rem .8rem;
  }
  .living-record-gateway::before {
    border-radius: 1rem 2.6rem 1rem 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .garden::before,
  .orbit,
  .spark {
    animation: none !important;
  }
  .button,
  .card,
  .worlds a,
  .petal {
    transition: none !important;
  }
}

@media print {
  .section::before,
  .hero::before,
  .footer::after,
  .record-orbit::before,
  .record-orbit::after {
    display: none !important;
  }
  .living-record-gateway,
  .living-record-gateway h2,
  .living-record-gateway p,
  .living-record-gateway .eyebrow {
    color: #000 !important;
  }
  .worlds a {
    aspect-ratio: auto;
    min-height: 0;
  }
}
