/* =========================================================================
   Rosie Makes — Coming Soon
   Edit the palette and fonts below to re-theme the whole page.
   ========================================================================= */

:root {
  /* --- Palette (tweak freely) --- */
  --color-forest: #2f5233;   /* headings / primary text */
  --color-sage: #88a47c;     /* accents / buttons */
  --color-sage-soft: #a7c4a0;/* lighter accents / bunting */
  --color-cream: #faf6ef;    /* background (paper/craft feel) */
  --color-cream-2: #f3ecdf;  /* card / subtle contrast */
  --color-terracotta: #d98e73;/* warm call-to-action highlight */
  --color-terracotta-dark: #c6755b;
  --color-ink: #3a3a36;      /* body text */
  --color-error: #b3402f;
  --color-success: #2f7d4f;

  /* --- Fonts (swap families in index.html <link> too) --- */
  --font-display: "Caveat", "Brush Script MT", cursive;
  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Misc --- */
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(47, 82, 51, 0.12);
  --maxw: 620px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  /* Subtle paper texture using layered soft radial dots */
  background-image:
    radial-gradient(rgba(136, 164, 124, 0.10) 1px, transparent 1.4px),
    radial-gradient(rgba(217, 142, 115, 0.08) 1px, transparent 1.4px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  line-height: 1.6;
}

/* ---------- Bunting ---------- */
.bunting {
  width: 100%;
  line-height: 0;
}

.bunting__svg {
  width: 100%;
  height: 56px;
  display: block;
}

.bunting__string {
  stroke: var(--color-forest);
  stroke-width: 2;
  opacity: 0.5;
}

.bunting__flags polygon:nth-child(3n + 1) {
  fill: var(--color-sage);
}
.bunting__flags polygon:nth-child(3n + 2) {
  fill: var(--color-terracotta);
}
.bunting__flags polygon:nth-child(3n + 3) {
  fill: var(--color-sage-soft);
}

/* ---------- Hero / Card ---------- */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 40px;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  background: var(--color-cream-2);
  border: 1px solid rgba(47, 82, 51, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 26px 34px;
  text-align: center;
}

/* ---------- Logo ---------- */
.logo {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}

/* ---------- Text ---------- */
.tagline {
  font-family: var(--font-display);
  color: var(--color-terracotta-dark);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  margin: 2px 0 0;
}

.description {
  color: var(--color-ink);
  font-size: 1.02rem;
  margin: 14px auto 0;
  max-width: 46ch;
}

.coming-soon {
  color: var(--color-forest);
  font-size: 1.05rem;
  margin: 18px 0 4px;
}

.coming-soon strong {
  font-weight: 700;
}

/* ---------- Divider ---------- */
.divider {
  color: var(--color-sage);
  margin: 14px auto 2px;
  max-width: 240px;
}
.divider svg {
  width: 100%;
  height: 22px;
  display: block;
}

/* ---------- Sign-up ---------- */
.signup {
  margin-top: 26px;
}

.signup__heading {
  font-family: var(--font-display);
  color: var(--color-forest);
  font-size: 1.9rem;
  margin: 0;
}

.signup__sub {
  margin: 2px 0 14px;
  font-size: 0.97rem;
  color: var(--color-ink);
}

.signup__form {
  margin: 0 auto;
  max-width: 460px;
}

.signup__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

input[type="email"] {
  flex: 1 1 200px;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 2px solid var(--color-sage-soft);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="email"]::placeholder {
  color: #9aa39a;
}

input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px rgba(136, 164, 124, 0.35);
}

.btn {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-terracotta);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--color-terracotta-dark);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 142, 115, 0.45);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup__message {
  min-height: 1.3em;
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.signup__message.is-error {
  color: var(--color-error);
}

.signup__message.is-success {
  color: var(--color-success);
}

/* ---------- Socials ---------- */
.socials {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sage);
  color: #fff;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.socials__link:hover {
  background: var(--color-forest);
  transform: translateY(-2px);
}

.socials__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 82, 51, 0.35);
}

.socials__link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 18px 16px 28px;
  font-size: 0.85rem;
  color: var(--color-forest);
  opacity: 0.85;
}

.footer__heart {
  color: var(--color-terracotta);
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .card {
    padding: 48px 44px 40px;
  }
  .bunting__svg {
    height: 64px;
  }
  .logo {
    width: 240px;
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
