/*
 * Shared style of dandelionmywishlist.com (landing page, early access).
 * Page-specific bits live in each page's <style>. Palette names match the app's theme.
 */

/* ── Palette ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #F5DE7A;   /* pollen300 — splash screen yellow */
  --surface:   #FAF9F5;   /* seed100 */
  --text:      #1E1A14;   /* earth800 */
  --muted:     #564E3E;   /* earth600 */
  --soft:      #7A6E58;   /* earth500 */
  --accent:    #C47E10;   /* pollen600 */
  --line:      rgba(30, 26, 20, 0.12);
  --button:    #1E1A14;
  --button-fg: #F5DE7A;
  --icon-shadow: 0 12px 40px rgba(30, 26, 20, 0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #100E0A; /* earth900 — dark splash screen */
    --surface:   #1E1A14;
    --text:      #FAF9F5;
    --muted:     #C4BAA8;
    --soft:      #A0947E;
    --accent:    #F0C635;
    --line:      rgba(250, 249, 245, 0.12);
    --button:    #F0C635;
    --button-fg: #100E0A;
    --icon-shadow: none;
  }
}

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  text-align: center;
}

/* ── Top bar ─────────────────────────────────────────────────────────────── */
header { padding-top: env(safe-area-inset-top); }
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.8;
}
.top-link:hover { opacity: 1; }

/* ── Main button ─────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-fg);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: scale(0.98); }

/* ── Footer: contact, links, language ───────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--soft);
}
.contact {
  text-align: center;
  margin-bottom: 36px;
}
.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.contact-button:hover { border-color: var(--soft); }
.contact-button svg { width: 17px; height: 17px; }
.contact-address {
  margin-top: 8px;
  font-size: 13px;
  user-select: all;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Language: a quiet dropdown, not a row of buttons */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lang svg { width: 15px; height: 15px; opacity: 0.7; }
.lang select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--soft);
  font: inherit;
  padding: 4px 18px 4px 0;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px center, right 2px center;
  background-size: 4px 4px;
  background-repeat: no-repeat;
}
.lang select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.lang select option { color: #1E1A14; }

/* ── Gentle entrance ─────────────────────────────────────────────────────── */
.fade { opacity: 0; transform: translateY(12px); animation: fadeUp 0.7s ease forwards; }
.fade-2 { animation-delay: 0.1s; }
.fade-3 { animation-delay: 0.2s; }
.fade-4 { animation-delay: 0.3s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (min-width: 900px) {
  header .wrap, footer .wrap { max-width: 1000px; }
}
