@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --bg: #000000;
  --panel: #050505;
  --fg: #f2f2f2;
  --fg-strong: #ffffff;
  --muted: #9a9a9a;
  --soft: #c9c9c9;
  --rule: rgba(255, 255, 255, 0.3);
  --rule-soft: rgba(255, 255, 255, 0.22);
  --invert-fg: #000000;

  --love: #e05a5a;
  --work: #5a8fe0;
  --self: #e0c34a;
  --timing: #9a6ae0;
  --gifts: #5ac98f;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Avenir Next', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="day"] {
  --bg: #ffffff;
  --panel: #fbfbfb;
  --fg: #101010;
  --fg-strong: #000000;
  --muted: #6a6a6a;
  --soft: #333333;
  --rule: rgba(0, 0, 0, 0.32);
  --rule-soft: rgba(0, 0, 0, 0.18);
  --invert-fg: #ffffff;

  --love: #b83c3c;
  --work: #3568b8;
  --self: #9a8218;
  --timing: #6f43b8;
  --gifts: #2f9463;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- starfield ---------- */
#starfield {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#starfield span {
  position: absolute;
  border-radius: 50%;
  background: var(--fg-strong);
  animation: twinkle 5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.7; }
}

/* ---------- layout ---------- */
nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(16px, 5vw, 48px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-strong);
  text-decoration: none;
}
.brand span { margin-right: 10px; }
.navlinks { display: flex; gap: 4px; flex-wrap: wrap; }
.navlinks a {
  color: var(--muted);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
}
.navlinks a:hover { color: var(--fg-strong); }
.navlinks a.active {
  background: var(--fg-strong);
  color: var(--invert-fg);
  font-weight: 600;
}

main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 32px) 80px;
}

/* ---------- type ---------- */
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  margin: 0;
  color: var(--fg-strong);
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  margin: 0;
  color: var(--fg-strong);
  text-align: center;
}
h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg-strong);
}
.hero { text-align: center; margin-bottom: 44px; }
.hero-date { color: var(--muted); font-size: 14px; letter-spacing: 0.08em; margin: 0 0 6px; }
.sub { color: var(--soft); font-size: 17px; max-width: 540px; margin: 16px auto 0; line-height: 1.6; }
.meta { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.disclaimer { font-size: 13px; color: var(--muted); text-align: center; margin-top: 18px; line-height: 1.6; }

.section-head { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 56px; }
.section-head .rule { flex: 1; max-width: 120px; height: 1px; background: var(--rule); }

/* ---------- sign grid ---------- */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.sign-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, border-color .18s ease;
}
.sign-card:hover { border-color: var(--fg-strong); transform: translateY(-2px); }
.card-art { position: relative; border-bottom: 1px solid var(--rule-soft); background: var(--bg); }
.card-art .sym {
  position: absolute; right: 10px; bottom: 6px;
  font-size: 26px; color: var(--fg-strong); font-family: var(--serif);
}
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.card-body .name { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--fg-strong); }
.card-body .dates { font-size: 12.5px; color: var(--muted); }
.card-body .el { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--soft); margin-top: 6px; }

/* ---------- banner ---------- */
.banner {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--bg);
}
.banner-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 12px;
}
.banner-overlay .sym { font-size: 40px; font-family: var(--serif); line-height: 1; margin-bottom: 4px; color: var(--fg-strong); }

/* ---------- tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.tabs button {
  background: none;
  border: 1px solid var(--rule);
  color: var(--soft);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14.5px;
  font-family: var(--sans);
}
.tabs button[aria-selected="true"] {
  background: var(--fg-strong);
  color: var(--invert-fg);
  font-weight: 600;
  border-color: var(--fg-strong);
}

.pill-group {
  display: flex;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 30px;
  overflow: auto;
}
.pill-group button {
  background: none;
  border: none;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  padding: 9px clamp(12px, 3vw, 22px);
  cursor: pointer;
  font-size: 13.5px;
  font-family: var(--sans);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.pill-group button:last-child { border-right: none; }
.pill-group button[aria-selected="true"] { background: var(--fg-strong); color: var(--invert-fg); font-weight: 600; }

/* ---------- boxes ---------- */
.box {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 28px clamp(20px, 4vw, 36px);
  margin-bottom: 24px;
}
.reading {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.65;
  margin: 0;
  color: var(--fg-strong);
}
.lucky {
  display: flex; gap: 28px; justify-content: center;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14.5px; color: var(--soft); flex-wrap: wrap;
}

.trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.mini {
  background: var(--panel);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  padding: 20px;
  overflow: hidden;
}
.mini p { font-size: 15px; line-height: 1.6; color: var(--soft); margin: 0; }
.mini.love { border-top: 2px solid var(--love); }
.mini.work { border-top: 2px solid var(--work); }
.mini.self { border-top: 2px solid var(--self); }
.mini.love h3 span { color: var(--love); }
.mini.work h3 span { color: var(--work); }
.mini.self h3 span { color: var(--self); }

/* ---------- accordion ---------- */
.acc {
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--panel);
  overflow: hidden;
}
.acc summary {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px; cursor: pointer;
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--fg-strong);
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc p { padding: 0 22px 20px 92px; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--soft); }
@media (max-width: 560px) { .acc p { padding-left: 22px; } }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--soft); }
input, select {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--fg);
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--sans);
}
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px clamp(18px, 4vw, 30px);
  align-items: end;
}
.cta {
  background: var(--fg-strong);
  color: var(--invert-fg);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sans);
}
.ghost {
  background: none;
  border: 1px solid var(--rule);
  color: var(--fg-strong);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  cursor: pointer;
  font-family: var(--sans);
  width: 100%;
}

.signup {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 30px clamp(18px, 4vw, 36px) 32px;
  text-align: center;
  background: var(--panel);
}
.signup-row {
  display: flex; gap: 10px; justify-content: center;
  align-items: stretch; flex-wrap: wrap; margin-top: 20px;
}
.promises { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-top: 22px; }
.promises span {
  font-size: 12.5px; color: var(--soft);
  border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px;
}

/* ---------- compatibility ---------- */
.medallions {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 4vw, 34px); margin-bottom: 26px; flex-wrap: wrap;
}
.medallion {
  position: relative; width: 160px; height: 160px; border-radius: 50%;
  border: 1.5px solid var(--fg-strong); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.medallion .inner { position: absolute; inset: 8px; border-radius: 50%; overflow: hidden; opacity: .85; }
.medallion .sym { font-size: 36px; font-family: var(--serif); position: relative; z-index: 1; color: var(--fg-strong); }
.medallion .nm { font-family: var(--serif); font-size: 18px; position: relative; z-index: 1; color: var(--fg-strong); }
.pickers { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }

/* ---------- voices ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.voice {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  padding: 20px 14px 18px; cursor: pointer; font-family: var(--sans);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--fg-strong); text-align: center;
}
.voice .nm { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-top: 8px; }
.voice .role { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.voice .tag { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 5px; }

/* ---------- famous ---------- */
.famous-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.famous {
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  padding: 20px 20px 16px; text-align: center;
}
.famous .nm { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; color: var(--fg-strong); }
.famous .sm { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.famous .row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--rule-soft); padding-top: 12px; gap: 6px; margin-top: 14px;
}
.famous .cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.famous .cell .g { font-size: 15px; color: var(--fg-strong); }
.famous .cell .l { font-size: 10.5px; color: var(--muted); letter-spacing: 0.04em; }
.famous .cell .s { font-size: 13px; color: var(--fg); }

/* ---------- shop ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.product {
  position: relative; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  padding: 22px 16px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.product .catmark { position: absolute; top: 10px; right: 12px; font-size: 13px; }
.product .iconwrap {
  width: 88px; height: 88px; border-radius: 50%;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; background: var(--bg);
}
.product .nm { font-family: var(--serif); font-size: 18.5px; font-weight: 600; margin: 0; color: var(--fg-strong); line-height: 1.2; }
.product .ds { font-size: 12.5px; color: var(--muted); margin: 5px 0 0; line-height: 1.45; }
.product .pr { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--fg-strong); margin: 10px 0 12px; }

/* ---------- footer ---------- */
footer {
  position: relative; z-index: 1; text-align: center;
  padding: 26px 16px 40px; color: var(--muted); font-size: 13.5px;
  border-top: 1px solid var(--rule-soft);
}
footer .links { margin-bottom: 18px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
footer .links a { color: var(--muted); }
.theme-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid #888; display: inline-block; }
.swatch.night { background: #000; }
.swatch.day { background: #fff; }

/* ---------- prose pages ---------- */
.prose { max-width: 680px; margin: 0 auto; }
.prose h2 { text-align: left; font-size: 24px; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--soft); font-size: 15.5px; line-height: 1.7; }

:focus-visible { outline: 2px solid var(--fg-strong); outline-offset: 2px; }

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