/* garden.css — shared layer/animation styles for the brittanycerra.com alternatives. */

:root {
  --paper: #FBF4E3;
  --cream: #F8ECD3;
  --ink: #3F3F3F;
  --ink-soft: #6B6353;
  --moss: #6F7D5C;
  --sage: #A8B29A;
  --bark: #996E4F;
  --rose: #EFC0B7;
  --gold: #E7C27A;
  --hairline: #D8CCAE;
  /* Licensed faces slot in via @font-face under these names when delivered. */
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --script: "The Seasons", "Cormorant Garamond", Georgia, serif;
  --sans: "Gotham", "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--serif);
  overflow: hidden;
}

/* ---------- the stage ---------- */
.scene {
  position: fixed;
  inset: 0;
  overflow: hidden;
}
.layer {
  position: absolute;
  inset: -4%;              /* bleed so parallax never shows edges */
  will-change: transform;
  pointer-events: none;
}
.layer img.plate {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* cutout sprites — positioned per-page */
.sprite {
  position: absolute;
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* light rays overlay: screen blend, slow breathing */
.light {
  position: absolute; inset: -4%;
  mix-blend-mode: screen;
  opacity: .55;
  animation: breathe 11s ease-in-out infinite;
  pointer-events: none;
}
.light img { width: 100%; height: 100%; object-fit: cover; }
@keyframes breathe {
  0%, 100% { opacity: .38; }
  50%      { opacity: .62; }
}

/* warm vignette to seat the composition */
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(46, 40, 28, .38) 100%);
}

/* ---------- petals ---------- */
.petal-stage { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.petal-src { display: none; }
.petal {
  position: absolute;
  top: -6vh;
  animation-name: petal-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 2px 3px rgba(46, 40, 28, .25));
}
@keyframes petal-fall {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(calc(var(--drift) * .4), 28vh) rotate(calc(var(--spin) * .3)); }
  50%  { transform: translate(calc(var(--drift) * .7), 55vh) rotate(calc(var(--spin) * .6)); }
  75%  { transform: translate(calc(var(--drift) * .85), 82vh) rotate(calc(var(--spin) * .85)); }
  100% { transform: translate(var(--drift), 112vh) rotate(var(--spin)); opacity: 0; }
}

/* ---------- fireflies / motes ---------- */
.firefly-field { position: absolute; inset: 0; pointer-events: none; }
.firefly {
  position: absolute;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 2px rgba(231, 194, 122, .55);
  opacity: 0;
  animation-name: mote-drift, mote-glow;
  animation-timing-function: ease-in-out, ease-in-out;
  animation-iteration-count: infinite, infinite;
}
@keyframes mote-drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(var(--fx), var(--fy)); }
}
@keyframes mote-glow {
  0%, 100% { opacity: 0; }
  50%      { opacity: .85; }
}

/* ---------- shared type & form ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--moss);
  margin: 0 0 14px;
}
.signup { margin: 0; }
.signup .row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: inherit;
}
.signup input[type="email"] {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink);
  background: rgba(251, 244, 227, .92);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 13px 22px;
  min-width: 240px;
  flex: 1 1 240px;
  outline: none;
}
.signup input[type="email"]:focus { border-color: var(--moss); }
.signup input::placeholder { color: var(--ink-soft); opacity: .75; }
.signup button {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--moss);
  border: 0; border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.signup button:hover { background: #5d6a4c; transform: translateY(-1px); }
.signup .fineprint {
  font-family: var(--sans); font-weight: 500;
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 14px;
}
.signup.sent .row, .signup.sent .fineprint { display: none; }
.signup .thanks { display: none; font-style: italic; font-size: 1.15rem; color: var(--moss); }
.signup.sent .thanks { display: block; }

.yt-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s;
}
.yt-link:hover { color: var(--bark); }
.yt-link svg { width: 20px; height: 14px; fill: currentColor; }

/* iOS tilt-permission invitation */
.tilt-chip {
  position: fixed;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  z-index: 90;
  font-family: var(--sans); font-weight: 600;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream);
  background: rgba(63, 63, 63, .55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(248, 236, 211, .35);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
}
