/* Kelly's Pet Portraits — palette pulled from the logo and banners */
:root {
  --cream: #fbf6ec;
  --parchment: #f6eddc;
  --ink: #3f2116;          /* deep brown script */
  --ink-soft: #6b4a3a;
  --gold: #b8863b;
  --gold-light: #e2b86a;
  --burgundy: #6e2a2f;     /* book spines */
  --burgundy-dark: #561e23;
  --lavender: #9b7bb5;
  --sunset: #f3b77a;

  --font-script: "Pinyon Script", "Snell Roundhand", cursive;
  --font-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Cormorant Garamond", Garamond, Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: clamp(2rem, 6vh, 4rem) 16px 1.5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(to bottom,
      rgba(251, 246, 236, 0) 0%,
      rgba(251, 246, 236, 0) 55%,
      rgba(251, 246, 236, 0.55) 82%,
      var(--cream) 100%),
    url("../assets/banner.png") center 35% / cover no-repeat;
}

/* soft golden-hour glow behind the card */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 55% 45% at 50% 45%, rgba(255, 226, 170, 0.45), transparent 70%);
  pointer-events: none;
}

/* ---------- Twinkling sparkles ---------- */

.sparkles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: -1;
  color: #fff6dc;
  font-size: clamp(0.9rem, 1.6vw, 1.4rem);
  text-shadow: 0 0 10px rgba(255, 220, 150, 0.9);
  animation: twinkle 4s ease-in-out var(--d) infinite;
  opacity: 0.2;
}

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

/* ---------- Card (arched storybook window) ---------- */

.card {
  position: relative;
  width: 100%;
  max-width: 470px;
  padding: 1.25rem 2rem 1.75rem;
  text-align: center;
  background: rgba(251, 246, 236, 0.94);
  border-radius: 240px 240px 22px 22px;
  border: 1px solid rgba(184, 134, 59, 0.55);
  box-shadow:
    0 0 0 6px rgba(251, 246, 236, 0.55),
    0 0 0 7px rgba(184, 134, 59, 0.35),
    0 30px 60px -20px rgba(63, 33, 22, 0.45),
    0 10px 25px -10px rgba(110, 42, 47, 0.25);
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@supports (backdrop-filter: blur(1px)) {
  .card {
    background: rgba(251, 246, 236, 0.86);
    backdrop-filter: blur(8px);
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.card__logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 auto 0.25rem;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow span { font-size: 0.85em; }

.title {
  margin: 0.1rem 0 0.4rem;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 4.4rem);
  line-height: 1.05;
  color: var(--ink);
}

.lede {
  margin: 0 auto 1.4rem;
  max-width: 34ch;
  color: var(--ink-soft);
}

/* ---------- Notify form ---------- */

.notify {
  display: flex;
  gap: 0.5rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid rgba(184, 134, 59, 0.45);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(63, 33, 22, 0.06);
}

.notify:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(226, 184, 106, 0.35);
}

.notify input {
  flex: 1;
  min-width: 0;
  padding: 0.55rem 0.9rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
}

.notify input::placeholder { color: #a48d7f; }

.notify button {
  flex: none;
  padding: 0.6rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--burgundy), var(--burgundy-dark));
  color: #f7e4bd;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.notify button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -6px rgba(110, 42, 47, 0.7);
}

.notify button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.fineprint {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}

.notify[hidden] { display: none; }

.notify button:disabled { opacity: 0.6; cursor: wait; }

/* Sign-up feedback: shown by script, or via #bedankt / #fout after a plain form post */
.notify-msg {
  display: none;
  margin: 0.8rem 0 0;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  font-size: 1rem;
}

.notify-msg.is-shown,
.notify-msg:target { display: block; }

.notify-msg--ok {
  background: rgba(184, 134, 59, 0.12);
  border: 1px solid rgba(184, 134, 59, 0.45);
  color: var(--ink);
}

.notify-msg--error {
  background: rgba(110, 42, 47, 0.08);
  border: 1px solid rgba(110, 42, 47, 0.35);
  color: var(--burgundy);
}

.privacy {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.contact {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact a {
  color: var(--burgundy);
  text-decoration-color: rgba(184, 134, 59, 0.6);
  text-underline-offset: 3px;
}

.contact a:hover { text-decoration-color: var(--gold); }

/* ---------- Flourish ---------- */

.flourish {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.2rem auto 0;
  max-width: 220px;
}

.flourish span {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.flourish span:last-child {
  background: linear-gradient(to left, transparent, var(--gold));
}

.flourish__paw { fill: var(--ink); opacity: 0.85; }

/* ---------- Footer ---------- */

.footer {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Small screens ---------- */

@media (max-width: 480px) {
  .hero {
    gap: 1.25rem;
    padding-top: 1.25rem;
  }

  .card {
    padding: 0.9rem 1.1rem 1.25rem;
    border-radius: 160px 160px 18px 18px;
  }

  .card__logo { width: min(64vw, 240px); }

  .title {
    margin: 0 0 0.3rem;
    font-size: 2.9rem;
  }

  .lede {
    margin-bottom: 1.1rem;
    font-size: 1.02rem;
    line-height: 1.45;
  }

  .notify {
    flex-direction: column;
    gap: 0.35rem;
    border-radius: 16px;
  }

  .notify input { padding: 0.6rem 0.75rem; text-align: center; }

  .notify button { padding: 0.75rem; border-radius: 12px; }

  .fineprint,
  .contact { font-size: 0.9rem; }

  .flourish { margin-top: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .sparkles span { animation: none; }
  .sparkles span { opacity: 0.6; }
}
