:root {
  --cream: #fff7d8;
  --text: #244a47;
  --text-soft: rgba(36, 74, 71, 0.76);

  --moss: #446f2e;
  --pond: #5eb3bf;
  --sun: #dfd352;

  --magenta: #d63eb8;
  --magenta-hot: #ff5bd5;

  --radius-xl: clamp(28px, 4vw, 54px);
  --radius-lg: 28px;
  --radius-pill: 999px;

  --page-pad: clamp(12px, 2vmin, 20px);
  --panel-pad: clamp(16px, 2.2vmin, 26px);

  --shadow-soft: 0 24px 70px rgba(24, 64, 61, 0.18);
  --shadow-small: 0 12px 28px rgba(39, 79, 77, 0.12);
}

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

html {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--pond);
  background-image:
    radial-gradient(circle at 18% 16%, rgba(255, 91, 213, 0.18), transparent 30%),
    radial-gradient(circle at 86% 22%, rgba(223, 211, 82, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(94, 179, 191, 0.04), rgba(39, 79, 77, 0.16)),
    url("/images/sunflower.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

::selection {
  color: var(--cream);
  background: var(--magenta);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Page layout */
.page-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 247, 216, 0.04), rgba(255, 255, 255, 0.11), rgba(255, 247, 216, 0.04)),
    radial-gradient(circle at 50% 100%, rgba(255, 91, 213, 0.16), transparent 38%);
}

/* Floating color orbs */
.pond-orb {
  position: fixed;
  z-index: -2;
  border-radius: var(--radius-pill);
  pointer-events: none;
  filter: blur(4px);
  opacity: 0.68;
  animation: drift 14s ease-in-out infinite alternate;
}

.pond-orb-one {
  width: clamp(12rem, 22vw, 22rem);
  height: clamp(12rem, 22vw, 22rem);
  left: -7rem;
  top: 6vh;
  background: rgba(255, 91, 213, 0.36);
}

.pond-orb-two {
  width: clamp(14rem, 28vw, 28rem);
  height: clamp(14rem, 28vw, 28rem);
  right: -9rem;
  bottom: -5rem;
  background: rgba(223, 211, 82, 0.28);
  animation-delay: -5s;
}

.pond-orb-three {
  width: clamp(8rem, 16vw, 16rem);
  height: clamp(8rem, 16vw, 16rem);
  right: 14vw;
  top: 9vh;
  background: rgba(214, 62, 184, 0.24);
  animation-delay: -9s;
}

/* Main card */
.hero-card {
  width: min(760px, 100%);
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 247, 216, 0.25), rgba(255, 247, 216, 0.1)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px) saturate(1.06);
}

.content-panel {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(9px, 1.35vmin, 15px);
  padding: var(--panel-pad);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 91, 213, 0.12), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(223, 211, 82, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 247, 216, 0.34), rgba(255, 247, 216, 0.18));
}

/* Header and logo */
.brand-header {
  display: grid;
  justify-items: center;
  margin: 0;
  text-align: center;
}

.logo-slot {
  display: grid;
  place-items: center;
  width: clamp(310px, 44vmin, 500px);
  height: clamp(310px, 44vmin, 500px);
  overflow: visible;
  text-decoration: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.logo-slot:hover {
  transform: translateY(-4px) scale(1.03);
  filter: saturate(1.08);
}

.logo-slot:focus-visible {
  outline: 4px solid var(--magenta-hot);
  outline-offset: 8px;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  padding: 0;
  border-radius: 50%;
}

.logo-fallback {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--cream);
  font-weight: 950;
  letter-spacing: -0.08em;
  font-size: clamp(2.4rem, 6vmin, 5rem);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(223, 211, 82, 0.95), transparent 34%),
    linear-gradient(135deg, var(--magenta-hot), var(--moss));
}

/* Text */
.eyebrow {
  width: fit-content;
  margin: 0 auto clamp(5px, 0.7vmin, 9px);
  padding: 8px 13px;
  color: var(--cream);
  font-size: clamp(0.68rem, 1.1vmin, 0.82rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 91, 213, 0.94), rgba(70, 0, 43, 0.88));
  box-shadow: 0 12px 30px rgba(214, 62, 184, 0.18);
}

h1 {
  max-width: 900px;
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8.1vmin, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(255, 247, 216, 0.42);
}

.lede {
  max-width: 700px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.96rem, 1.72vmin, 1.18rem);
  line-height: 1.46;
  text-align: center;
  text-wrap: pretty;
  font-weight: bold;
}

/* Status messages */
.form-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(680px, 100%);
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px;
  font-weight: 850;
  font-size: 0.95rem;
  line-height: 1.3;
  text-align: center;
  box-shadow: var(--shadow-small);
}

.form-message.success {
  color: #31581f;
  border: 1px solid rgba(68, 111, 46, 0.18);
  background: rgba(223, 211, 82, 0.36);
}

.form-message.error {
  color: #79243e;
  border: 1px solid rgba(121, 36, 62, 0.18);
  background: rgba(255, 91, 213, 0.18);
}

/* Newsletter: compact 2-row layout */
.newsletter-intro {
  width: min(620px, 100%);
  margin: clamp(3px, 0.6vmin, 6px) auto 0;
  text-align: center;
}

.newsletter-intro h2 {
  margin: 0 0 3px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.65vmin, 1.9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.newsletter-intro p {
  max-width: 500px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(0.84rem, 1.35vmin, 0.96rem);
  line-height: 1.28;
}

/* Row 2: form */
.newsletter-form {
  width: min(640px, 100%);
  margin: clamp(5px, 0.9vmin, 9px) auto 0;
}

.newsletter-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 5px;
  border: 1px solid rgba(214, 62, 184, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.54);
  box-shadow:
    0 14px 30px rgba(39, 79, 77, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(8px);
}

.input-wrap {
  position: relative;
  min-width: 0;
}

.input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--magenta);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  height: clamp(42px, 5vmin, 50px);
  min-height: clamp(42px, 5vmin, 50px);
  padding: 0 14px 0 44px;
  color: var(--text);
  font-weight: 700;
  border: 0;
  border-radius: var(--radius-pill);
  outline: none;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: none;
  transition:
    background 180ms ease,
    box-shadow 180ms ease;
}

.input-wrap input::placeholder {
  color: rgba(36, 74, 71, 0.48);
  font-weight: 650;
}

.input-wrap input:hover,
.input-wrap input:focus {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 2px rgba(255, 91, 213, 0.28);
}

.newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(46px, 5.2vmin, 54px);
  height: clamp(42px, 5vmin, 50px);
  min-width: clamp(46px, 5.2vmin, 54px);
  min-height: clamp(42px, 5vmin, 50px);
  padding: 0;
  color: var(--cream);
  font-weight: 950;
  white-space: nowrap;
  border: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--magenta-hot), var(--magenta), #8f277e);
  box-shadow:
    0 14px 30px rgba(214, 62, 184, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow:
    0 18px 38px rgba(214, 62, 184, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.newsletter-form button:active {
  transform: translateY(0);
}

.newsletter-form button:focus-visible,
.contact-strip a:focus-visible,
.input-wrap input:focus-visible {
  outline: 4px solid rgba(255, 91, 213, 0.42);
  outline-offset: 4px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact links */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 1.2vmin, 12px);
  width: min(720px, 100%);
  margin: clamp(4px, 0.8vmin, 7px) 0 0;
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--text);
  font-weight: 900;
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 10px 24px rgba(39, 79, 77, 0.08);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.contact-strip i {
  color: var(--magenta);
  font-size: 1.02rem;
}

.contact-strip a:hover {
  color: var(--cream);
  background: linear-gradient(135deg, var(--pond), var(--moss));
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(39, 79, 77, 0.2);
}

.contact-strip a:hover i {
  color: var(--sun);
}

.is-shaking {
  animation: shake 380ms ease;
}

/* Desktop: keep everything inside viewport */
@media (min-width: 921px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-shell {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }

  .hero-card {
    width: min(760px, calc(100vw - var(--page-pad) * 2));
    max-height: calc(100vh - var(--page-pad) * 2);
    max-height: calc(100svh - var(--page-pad) * 2);
    min-height: 0;
  }

  .content-panel {
    overflow: hidden;
  }
}

/* Short desktop screens */
@media (min-width: 921px) and (max-height: 760px) {
  :root {
    --page-pad: 10px;
    --panel-pad: clamp(12px, 2vmin, 20px);
  }

  .content-panel {
    gap: clamp(7px, 1.1vmin, 12px);
  }

  .logo-slot {
    width: clamp(190px, 28vmin, 270px);
    height: clamp(190px, 28vmin, 270px);
  }

  h1 {
    font-size: clamp(2.35rem, 6.8vmin, 4.8rem);
  }

  .lede {
    max-width: 660px;
    font-size: clamp(0.86rem, 1.45vmin, 1rem);
    line-height: 1.32;
  }

  .lede::before {
    height: 4px;
    margin-bottom: 8px;
  }

  .eyebrow {
    padding: 7px 11px;
    font-size: 0.68rem;
  }

  .newsletter-intro h2 {
    font-size: clamp(1.2rem, 2.4vmin, 1.65rem);
  }

  .newsletter-intro p {
    font-size: clamp(0.78rem, 1.25vmin, 0.9rem);
    line-height: 1.22;
  }

  .input-wrap input,
  .newsletter-form button {
    height: 42px;
    min-height: 42px;
  }

  .newsletter-form button {
    width: 46px;
    min-width: 46px;
  }

  .contact-strip a {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.88rem;
  }
}

/* Very short desktop screens */
@media (min-width: 921px) and (max-height: 620px) {
  .content-panel {
    gap: 6px;
  }

  .logo-slot {
    width: clamp(140px, 22vmin, 200px);
    height: clamp(140px, 22vmin, 200px);
  }

  h1 {
    font-size: clamp(2.15rem, 6.4vmin, 4rem);
  }

  .lede {
    line-height: 1.25;
  }

  .newsletter-intro {
    margin-top: 2px;
  }

  .newsletter-intro h2 {
    font-size: clamp(1.1rem, 2.2vmin, 1.45rem);
  }

  .newsletter-intro p {
    font-size: 0.78rem;
  }

  .newsletter-form {
    margin-top: 5px;
  }

  .input-row {
    padding: 4px;
  }

  .input-wrap input,
  .newsletter-form button {
    height: 38px;
    min-height: 38px;
  }

  .newsletter-form button {
    width: 42px;
    min-width: 42px;
  }

  .contact-strip a {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 0.84rem;
  }
}

/* Tablet and mobile */
@media (max-width: 920px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    padding: clamp(14px, 4vw, 28px);
  }

  .hero-card {
    min-height: auto;
  }

  .content-panel {
    padding: clamp(20px, 5.4vw, 38px);
  }

  .logo-slot {
    width: clamp(200px, 54vw, 310px);
    height: clamp(200px, 54vw, 310px);
  }

  h1 {
    font-size: clamp(2.9rem, 14vw, 5.6rem);
  }

  .lede {
    font-size: clamp(0.98rem, 3.7vw, 1.14rem);
    line-height: 1.44;
  }

  .newsletter-intro {
    max-width: 560px;
  }

  .newsletter-intro p {
    max-width: 440px;
  }

  .contact-strip span {
    display: none;
  }

  .contact-strip a {
    min-height: 46px;
    padding: 10px;
  }

  .contact-strip i {
    font-size: 1.18rem;
  }
}

/* Small phones */
@media (max-width: 640px) {
  .content-panel {
    gap: 10px;
  }

  .newsletter-intro h2 {
    font-size: clamp(1.28rem, 6vw, 1.7rem);
  }

  .newsletter-intro p {
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .input-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px;
  }

  .input-wrap input {
    height: 46px;
    min-height: 46px;
    padding-left: 42px;
    font-size: 0.95rem;
  }

  .input-wrap i {
    left: 15px;
  }

  .newsletter-form button {
    width: 48px;
    min-width: 48px;
    height: 46px;
    min-height: 46px;
  }

  .newsletter-form button i {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .eyebrow {
    letter-spacing: 0.11em;
  }

  .input-row {
    gap: 5px;
  }

  .input-wrap input {
    padding-left: 40px;
    font-size: 0.92rem;
  }

  .newsletter-form button {
    width: 46px;
    min-width: 46px;
  }

  .contact-strip {
    gap: 6px;
  }

  .contact-strip a {
    min-height: 42px;
    padding: 8px;
  }

  .contact-strip i {
    font-size: 1.08rem;
  }
}

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

/* Animations */
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(18px, -16px, 0) scale(1.04);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}