:root {
  --bg: #fbfaf6;
  --bg-soft: #f3f5ef;
  --bg-card: #eef3eb;
  --surface: #ffffff;
  --text: #15161b;
  --text-soft: #707276;
  --accent: #31563f;
  --accent-soft: #6b8a72;
  --gold: #b58a4a;
  --border: #e7e0d8;
  --shadow: 0 8px 28px rgba(21, 22, 27, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(ellipse 85% 45% at 50% 0%, rgba(49, 86, 63, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 45% at 92% 100%, rgba(181, 138, 74, 0.06), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 680px; margin: 0 auto; padding: 64px 24px 96px; position: relative; }
.container--narrow { max-width: 600px; }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.85rem; margin-bottom: 0.3em; color: var(--accent); animation: fadeUp 0.6s ease both; }
h2 { font-size: 1.7rem; margin: 2.2em 0 0.6em; color: var(--text); }
h3 { font-size: 1.2rem; margin: 1.6em 0 0.4em; font-style: italic; color: var(--accent); }

p { margin-bottom: 1em; color: var(--text); }

ul { margin: 0.8em 0 1.2em 1.4em; }
ul li { margin-bottom: 0.5em; }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
a:hover { border-bottom-color: var(--accent); color: var(--gold); }

strong { font-weight: 600; color: var(--text); }

.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--accent);
  color: #fbfaf6;
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
  transition: transform 0.18s, box-shadow 0.25s, background 0.2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(49, 86, 63, 0.22); background: #2a4a37; }

.tagline {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 2em;
  letter-spacing: 0.02em;
  animation: fadeUp 0.6s ease 0.1s both;
}

.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text); display: inline-block;
  border-bottom: 1px solid transparent;
}

.meta { font-size: 0.875rem; color: var(--text-soft); margin-bottom: 2em; font-style: italic; }

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 18px 22px;
  margin: 1.4em 0;
  border-radius: 14px;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.coming-soon {
  display: inline-block;
  padding: 13px 26px;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin: 1.5em 0;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.divider { border: none; border-top: 1px solid var(--border); margin: 3em 0 2em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 1.4em 0;
}

.info-card {
  display: block;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.info-card strong { display: block; margin-bottom: 0.35em; color: var(--accent); }
.info-card span { color: var(--text-soft); font-size: 0.92rem; }
a.info-card:hover { border-color: var(--accent); }

.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  margin: 1.5em 0;
  box-shadow: var(--shadow);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field input:focus, .field select:focus { outline: 2px solid rgba(49, 86, 63, 0.18); border-color: var(--accent); }

.calculator-result {
  margin: 18px 0 0;
  padding: 18px;
  background: var(--bg-card);
  border-radius: 14px;
}
.calculator-result strong {
  display: block;
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1.2;
}
.calculator-result span { color: var(--text-soft); font-size: 0.9rem; }
.calculator-note { color: var(--text-soft); font-size: 0.85rem; margin-top: 0.8em; }

.steps { counter-reset: steps; list-style: none; margin-left: 0; }
.steps li { position: relative; padding-left: 42px; margin-bottom: 1.2em; }
.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 4em; padding-top: 2em;
  font-size: 0.875rem; color: var(--text-soft);
  display: flex; flex-wrap: wrap; gap: 1em 2em; justify-content: space-between;
}
footer .links { display: flex; gap: 1.5em; }

/* "pick your sign" widget (index + todays-lucky-color) */
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.5em 0; padding: 0; list-style: none; }
.signs button {
  width: 100%; padding: 14px 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer; font: inherit; color: var(--text); text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s, background 0.2s;
}
.signs button:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.signs button[aria-pressed="true"] { border-color: var(--accent); background: var(--bg-card); box-shadow: var(--shadow); }
.signs .name { font-weight: 600; display: block; }
.signs .dates { font-size: 0.72rem; color: var(--text-soft); }
#result { margin: 1.5em 0; }
#result:not([hidden]) { animation: fadeUp 0.45s ease both; }
.look-img { width: 100%; max-width: 340px; border-radius: 16px; display: block; margin: 0 0 1.4em; box-shadow: var(--shadow); }
.swatch { height: 96px; border-radius: 16px; display: flex; align-items: flex-end; padding: 14px 18px; box-shadow: var(--shadow); }
.swatch .cname { font-size: 1.3rem; font-family: "Cormorant Garamond", Georgia, serif; }
.reading { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.35rem; color: var(--accent-soft); margin: 0.8em 0 0.2em; }
.style-kw { font-size: 0.9rem; color: var(--text-soft); }
.look-colors { font-size: 0.9rem; color: var(--accent); margin: 1.2em 0 0.4em; }
.look-items { margin: 0 0 0 1.2em; padding: 0; font-size: 0.9rem; color: var(--text-soft); }
.look-items li { margin-bottom: 0.2em; }

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

/* floating panda mascot */
.hero-panda {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 1.2em;
  filter: drop-shadow(0 16px 22px rgba(49, 86, 63, 0.2));
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* soft drifting light orbs for a fresh, lively backdrop */
body::before, body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(45px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.55;
}
body::before { width: 230px; height: 230px; background: rgba(49, 86, 63, 0.14); top: 10%; left: -70px; animation: drift1 19s ease-in-out infinite; }
body::after { width: 270px; height: 270px; background: rgba(181, 138, 74, 0.14); bottom: 6%; right: -90px; animation: drift2 23s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(45px, 30px); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-45px, -30px); } }

@media (max-width: 540px) {
  .container { padding: 40px 20px 64px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.45rem; }
  .tagline { font-size: 1.15rem; }
  footer { flex-direction: column; gap: 0.8em; }
  .swatch .cname { font-size: 1.1rem; }
  .card-grid, .calculator-grid { grid-template-columns: 1fr; }
}

/* floating panda stylist chat */
.panda-launcher {
  position: fixed; bottom: 20px; right: 20px; z-index: 50;
  width: 140px; height: 140px; padding: 0; border: none; background: transparent;
  cursor: grab; filter: drop-shadow(0 10px 18px rgba(49, 86, 63, 0.28));
  animation: floaty 4.5s ease-in-out infinite; touch-action: none;
  transition: transform 0.15s;
}
.panda-launcher:active { cursor: grabbing; }
.panda-launcher:hover { transform: scale(1.06); }
.panda-launcher img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

.panda-panel {
  position: fixed; bottom: 176px; right: 22px; z-index: 51;
  width: 340px; max-width: calc(100vw - 32px); height: 60vh; max-height: 520px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(21, 22, 27, 0.18);
  display: flex; flex-direction: column; overflow: hidden;
  animation: fadeUp 0.25s ease both;
}
.panda-panel[hidden] { display: none; }
.panda-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.panda-head img { width: 38px; height: 38px; }
.panda-head strong { display: block; font-size: 0.95rem; color: var(--text); }
.panda-head span { font-size: 0.78rem; color: var(--text-soft); }
.panda-close { margin-left: auto; background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--text-soft); cursor: pointer; padding: 0 4px; }
.panda-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.panda-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; word-wrap: break-word; }
.panda-msg.bot { background: var(--bg-card); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.panda-msg.user { background: var(--accent); color: #fbfaf6; align-self: flex-end; border-bottom-right-radius: 4px; }
.panda-msg a { color: inherit; text-decoration: underline; }
.panda-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); }
.panda-input input { flex: 1; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; font: inherit; font-size: 0.9rem; background: var(--bg); color: var(--text); }
.panda-input input:focus { outline: none; border-color: var(--accent); }
.panda-input button { width: 42px; flex-shrink: 0; border: none; border-radius: 999px; background: var(--accent); color: #fbfaf6; font-size: 1.15rem; cursor: pointer; }
@media (max-width: 540px) {
  .panda-panel { right: 12px; left: 12px; width: auto; bottom: 124px; height: 64vh; }
  .panda-launcher { bottom: 12px; right: 12px; width: 104px; height: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  h1, .tagline, #result:not([hidden]), .hero-panda, .panda-launcher, body::before, body::after { animation: none; }
  html { scroll-behavior: auto; }
  .button:hover, .signs button:hover, .panda-launcher:hover { transform: none; }
}
