/* The Twelve Rooms — tools. Brand: gold + navy, vintage-feminine, Apple-minimal.
   Never dark-mode-dark, never beige, never woo. Palette locked Jul 17 2026. */
:root {
  --midnight-1: #1f2b4e; --midnight-2: #101830;
  --navy: #26355e;          /* type on light */
  --gold: #a8863d;          /* flat gold on light */
  --gold-hi: #e6cf96;       /* highlight gold */
  --gold-soft: #c9a55c;
  --ink: #1d1d1f; --dove: #f2f2f5; --cream: #fbfaf7;
  --berry: #9c4460;         /* micro-accent only */
  --line: #e4ddcf;          /* warm hairline on cream */
  --soft: #6f7690;
  --serif: "Didot", "Bodoni 72", "Hoefler Text", Georgia, serif;
  --sans: Optima, "Helvetica Neue", -apple-system, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--ink); background: var(--cream); line-height: 1.55; }

/* ---- masthead (navy field, gold medallion + wordmark) ---- */
.masthead {
  background: radial-gradient(120% 140% at 50% 30%, var(--midnight-1), var(--midnight-2));
  color: var(--cream); position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(201,165,92,0.5);
}
.masthead-inner { max-width: 860px; margin: 0 auto; padding: 22px 16px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 2; }
.medallion { width: 62px; height: 62px; display: block; }
.wordmark { font-family: var(--serif); font-size: clamp(21px, 5vw, 30px); letter-spacing: 0.16em;
  color: #f3ecdd; margin-top: 8px; font-weight: 400; }
.wordmark a { color: inherit; text-decoration: none; }
.rule { display: flex; align-items: center; gap: 9px; margin: 9px 0 6px; width: min(360px, 80%); }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent); }
.rule .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); }
.tagline { font-family: var(--serif); font-style: italic; font-size: clamp(13px, 3.4vw, 17px);
  color: var(--gold); }
.productline { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.28em;
  color: #9aa5c2; margin-top: 8px; text-transform: uppercase; }
.masthead nav { margin-top: 15px; display: flex; gap: 6px 18px; flex-wrap: wrap; justify-content: center; }
.masthead nav a { font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #b9c2da; text-decoration: none; padding: 4px 2px; }
.masthead nav a:hover, .masthead nav a[aria-current] { color: var(--gold-hi); }
.masthead nav a { transition: color 0.2s ease; }
.spark { position: absolute; fill: var(--gold-soft); pointer-events: none; z-index: 1;
  animation: spark-breathe 7s ease-in-out infinite; }

/* ---- the night sky: twinkling stars, a slow medallion, a rare shooting star.
   Brand law: if you notice the sparkle before the words, there is too much sparkle.
   Everything is transform/opacity only (paint-cheap, zero CLS). ---- */
.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.star-dot { position: absolute; border-radius: 50%; background: var(--gold-hi);
  opacity: 0.15; animation: twinkle var(--tw, 5s) ease-in-out var(--twd, 0s) infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.75); }
  50%      { opacity: var(--o-max, 0.7); transform: scale(1); }
}
@keyframes spark-breathe {
  0%, 100% { transform: scale(0.92) rotate(-4deg); }
  50%      { transform: scale(1.06) rotate(4deg); }
}
.shooting { position: absolute; z-index: 1; width: 74px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, rgba(230,207,150,0), rgba(230,207,150,0.75));
  border-radius: 1px; opacity: 0; animation: shoot 1.7s ease-out forwards; }
@keyframes shoot {
  0%   { opacity: 0; transform: rotate(-16deg) translateX(0); }
  10%  { opacity: 0.65; }
  100% { opacity: 0; transform: rotate(-16deg) translateX(-230px) translateY(0); }
}
.medallion .ticks { transform-origin: 75px 75px; animation: turn 180s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.rule::before, .rule::after { background-size: 220% 100%;
  animation: shimmer 8s ease-in-out infinite; }
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}
.masthead-inner > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.masthead-inner > *:nth-child(2) { animation-delay: 0.08s; }
.masthead-inner > *:nth-child(3) { animation-delay: 0.16s; }
.masthead-inner > *:nth-child(4) { animation-delay: 0.24s; }
.masthead-inner > *:nth-child(5) { animation-delay: 0.32s; }
.masthead-inner > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* scroll-in reveal (class applied by JS only, so no-JS visitors see everything) */
.reveal { opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .spark, .star-dot, .shooting, .medallion .ticks, .rule::before, .rule::after,
  .masthead-inner > * { animation: none !important; }
  .star-dot { opacity: 0.4; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- body ---- */
.wrap { max-width: 720px; margin: 0 auto; padding: 30px 16px 64px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 6vw, 30px); color: var(--navy); margin-bottom: 8px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--navy); margin: 6px 0 8px; }
.lede { color: var(--soft); font-size: 15px; margin-bottom: 22px; max-width: 58ch; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  margin-bottom: 16px; box-shadow: 0 1px 2px rgba(38,53,94,0.04); }
label { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--soft); margin: 12px 0 3px; }
input, select { width: 100%; padding: 10px 12px; min-height: 44px; font: 400 15px var(--body);
  color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
button.go { margin-top: 18px; background: var(--navy); color: var(--cream); border: 0; padding: 12px 26px;
  border-radius: 10px; min-height: 46px; font: 600 15px var(--body); letter-spacing: 0.02em; cursor: pointer; }
button.go:hover { background: #2f4173; }
button.go:disabled { opacity: 0.5; }
.hint { font-size: 12.5px; color: var(--soft); margin-top: 4px; }
details { margin-top: 10px; }
summary { cursor: pointer; font-size: 12.5px; color: var(--gold); min-height: 30px; }
.picked { font-size: 13px; color: var(--navy); margin-top: 8px; }
.picked b { color: var(--gold); }

/* remember-my-birth-details, opt-in */
.remember { display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px; font-size: 13.5px; color: var(--navy); cursor: pointer; user-select: none; }
.remember input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.remember-note { color: var(--soft); font-size: 12px; }
.remember-note:not(:empty)::before { content: "· "; }

/* typeahead */
.loc { position: relative; }
.typeahead { position: absolute; z-index: 30; left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px rgba(38,53,94,0.12);
  overflow: hidden; display: none; }
.typeahead.open { display: block; }
.typeahead button { display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 11px 14px; font: 400 14px var(--body); cursor: pointer; min-height: 44px; color: var(--ink); }
.typeahead button:hover { background: var(--cream); }
.typeahead .sub { color: var(--soft); font-size: 12px; }

/* results */
.result svg { width: 100%; height: auto; }
.big { font-family: var(--serif); font-size: 30px; color: var(--navy); margin: 6px 0; }
.facts { font-size: 14.5px; margin: 8px 0 8px 18px; }
.facts li { margin: 5px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
td, th { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--cream); }
th { font-family: var(--sans); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--soft); }
.error { background: #fbf1f3; border: 1px solid #e6c4cf; color: var(--berry); border-radius: 10px; padding: 12px 14px; font-size: 14px; }

/* seed-to-season CTA (gold seal on navy) */
.cta { background: radial-gradient(120% 160% at 50% 0%, var(--midnight-1), var(--midnight-2));
  color: var(--cream); border-radius: 16px; padding: 24px 22px; margin: 26px 0 8px; text-align: center;
  border: 1px solid rgba(201,165,92,0.4); }
.cta h2 { font-family: var(--serif); color: var(--gold-hi); font-size: 19px; margin-bottom: 8px; }
.cta p { font-size: 14px; color: #c4cbe0; margin-bottom: 14px; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta a { display: inline-block; text-decoration: none; padding: 11px 22px; border-radius: 10px;
  font: 600 14px var(--body); letter-spacing: 0.02em; color: var(--midnight-2);
  background: linear-gradient(135deg, #e3c98b, #b18b45);
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cta a:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(212,176,106,0.35); }
.cta a::after { content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: skewX(-18deg); transition: left 0.55s ease; }
.cta a:hover::after { left: 130%; }
@media (prefers-reduced-motion: reduce) { .cta a::after { display: none; } }

/* tool index cards */
.toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.toolgrid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; text-decoration: none; color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.toolgrid a:hover { border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38,53,94,0.08), 0 2px 8px rgba(168,134,61,0.10); }
.toolgrid h2 { font-size: 17px; margin-bottom: 5px; }
.toolgrid p { font-size: 13px; color: var(--soft); }

/* ---- 10x result UX: glance, placements, aspects ---- */
.glance { background: radial-gradient(130% 150% at 50% 0%, var(--midnight-1), var(--midnight-2));
  color: var(--cream); border: 1px solid rgba(201,165,92,0.4); border-radius: 16px;
  padding: 24px 22px; margin-bottom: 16px; }
.glance h2 { font-family: var(--serif); color: var(--gold-hi); font-size: 15px; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 10px; }
.glance p { font-size: 16px; line-height: 1.6; color: #e8ebf4; }
.glance strong { color: var(--gold-hi); font-weight: 600; }
.triad { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.triad div { flex: 1; min-width: 92px; text-align: center; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,165,92,0.25); border-radius: 12px; padding: 12px 8px; }
.triad .tg { display: block; font-size: 24px; color: var(--gold); }
.triad b { display: block; font-family: var(--serif); font-size: 17px; color: var(--cream); margin: 3px 0 1px; }
.triad span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9aa5c2; }

.wheel-hint { font-size: 13px; color: var(--soft); text-align: center; margin-bottom: 10px; }
.moon-mood { font-size: 15px; line-height: 1.55; color: #33384a; margin: 8px 0 4px; padding: 12px 14px;
  background: var(--wash); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; }
.daynav { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.daynav a { font-size: 13.5px; color: var(--navy); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.daynav a:hover { background: var(--wash); }
.daynav a:nth-child(2) { color: var(--gold); font-weight: 600; }
.datebrowse { margin: 16px 2px; }
.datebrowse h3 { font-family: var(--serif); font-weight: 400; font-size: 16px; color: var(--navy); margin: 0 0 8px; }
.datebrowse .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.datebrowse a { font-size: 13px; color: var(--navy); text-decoration: none; padding: 5px 11px;
  border: 1px solid var(--line); border-radius: 999px; }
.datebrowse a:hover { background: var(--wash); border-color: var(--gold); }

.places { display: flex; flex-direction: column; gap: 2px; }
.place { display: flex; gap: 14px; padding: 13px 4px; border-bottom: 1px solid var(--cream); }
.place:last-child { border-bottom: 0; }
.place-glyph { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--wash-gold, #f4eee1);
  display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gold); }
.place-head { font-family: var(--serif); font-size: 15.5px; color: var(--navy); margin-bottom: 3px; }
.place-mean { font-size: 14px; line-height: 1.5; color: #33384a; }

.asp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .asp-grid { grid-template-columns: 1fr; } }
.asp-col h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--navy); margin: 0 0 2px; }
.asp-sub { font-size: 12.5px; color: var(--soft); margin: 0 0 12px; }
.asp-item { padding: 10px 0; border-top: 1px solid var(--cream); }
.asp-label { font-size: 12px; letter-spacing: 0.03em; color: var(--gold); font-weight: 600; margin-bottom: 3px; }
.asp-plain { font-size: 13.5px; line-height: 1.5; color: #33384a; }

/* almanac index cards */
.almanac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 8px; }
@media (max-width: 620px) { .almanac-grid { grid-template-columns: 1fr; } }
.almanac-card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; background: #fff; transition: border-color .15s, transform .15s; }
.almanac-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.almanac-card h3 { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--navy); margin: 0 0 5px; }
.almanac-card p { font-size: 13.5px; line-height: 1.5; color: var(--soft); margin: 0; }

/* readings (product bridge) cards */
.readings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 10px; }
@media (max-width: 620px) { .readings { grid-template-columns: 1fr; } }
.reading-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px;
  display: flex; flex-direction: column; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.reading-card:hover { border-color: var(--gold); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(38,53,94,0.08), 0 2px 8px rgba(168,134,61,0.10); }
.reading-card.flagship { grid-column: 1 / -1; background:
  radial-gradient(130% 160% at 50% 0%, var(--midnight-1), var(--midnight-2));
  border: 1px solid rgba(201,165,92,0.45); color: var(--cream); }
.reading-card.flagship h3, .reading-card.flagship .price { color: var(--gold-hi); }
.reading-card.flagship p { color: #c4cbe0; }
.reading-card h3 { font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--navy); margin: 0 0 2px; }
.reading-card .price { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.reading-card p { font-size: 14px; line-height: 1.55; color: #33384a; margin: 0 0 14px; }
.reading-card a { margin-top: auto; align-self: flex-start; text-decoration: none;
  font: 600 13.5px var(--body); color: var(--navy); padding: 9px 16px; border-radius: 9px;
  border: 1px solid var(--gold-soft); transition: background 0.2s ease, color 0.2s ease; }
.reading-card a:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.reading-card.flagship a { color: var(--midnight-2); border: 0;
  background: linear-gradient(135deg, #e3c98b, #b18b45); }

/* prominent disclaimer notice */
.disclaimer { border: 1px solid #d9c9a3; background: #fbf6ea; border-radius: 12px;
  padding: 14px 16px; margin: 6px 0 18px; font-size: 13.5px; line-height: 1.5; color: #5a4e33; }
.disclaimer strong { color: #7a5b1e; }

/* editorial content below the tool */
.prose { margin: 8px 2px 4px; max-width: 62ch; }
.prose h2, .faq h2 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 21px; margin: 26px 0 10px; }
.prose p { font-size: 15px; line-height: 1.65; color: #33384a; margin: 0 0 12px; }
.prose strong { color: var(--navy); font-weight: 600; }
.faq { margin: 8px 2px; max-width: 62ch; }
.faq .qa { border-top: 1px solid var(--line); padding: 14px 0; }
.faq .qa:last-child { border-bottom: 1px solid var(--line); }
.faq .qa h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 16.5px; margin: 0 0 5px; }
.faq .qa p { font-size: 14.5px; line-height: 1.6; color: #33384a; margin: 0; }

footer.site { margin-top: 34px; font-size: 12.5px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 16px; text-align: center; }
footer.site a { color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); transition: color 0.2s ease, border-color 0.2s ease; }
footer.site a:hover { color: var(--gold); border-color: var(--gold); }
footer.site .seal { color: var(--gold); font-family: var(--serif); font-style: italic; }
footer.site .privacy { margin-top: 8px; }
