@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:wght@400;500;600;700&family=Noto+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #eef2fb;
  --muted: #9aa8c7;
  --bg: #08275f;
  --bg-soft: #0c3170;
  --panel: #0a1f4d;
  --line: #1f3d7a;
  --red: #af2424;
  --red-dark: #8f1c1c;
  --cyan: #1fcce4;
  --gold: #d7a941;
  --font-display: "Noto Serif", Georgia, serif;
  --font-body: "Noto Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #070f34 5%, #08275f 30%, #02040f 80%);
  background-attachment: fixed;
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-wrap: break-word;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/bg-texture.jpg") center 12% / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0 0 20px;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
}

h1 {
  font-size: clamp(30px, 4.6vw, 46px);
}

h2 {
  font-size: clamp(23px, 2.8vw, 30px);
}

h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.shell {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 11, 38, 0.6);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark__logo {
  width: 30px;
  height: 30px;
}

.brand-mark__logo--small {
  width: 20px;
  height: 20px;
}

.brand--footer {
  font-size: 15px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 13px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a[aria-current] {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 7px;
}

/* zodiac sign sub-navigation */
.sign-nav {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.sign-nav__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2px, 1.4vw, 6px) clamp(4px, 2.2vw, 20px);
  padding: 10px clamp(8px, 3vw, 16px);
}

.sign-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: clamp(52px, 16vw, 68px);
  padding: 6px 2px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: clamp(9.5px, 2.6vw, 11px);
  text-align: center;
}

.sign-chip__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(238, 242, 251, 0.12);
  border: 1px solid rgba(238, 242, 251, 0.18);
  color: var(--ink);
  font-size: 16px;
}

.sign-chip[aria-current],
.sign-chip:hover {
  color: var(--ink);
}

.sign-chip[aria-current] .sign-chip__icon {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* breadcrumb */
.breadcrumb {
  padding: 12px 0;
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.hero {
  padding: 54px 0;
}

.hero > div {
  max-width: 720px;
  animation: riseIn 0.7s ease both;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  min-height: 56px;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(175, 36, 36, 0.35);
}

.cta--ghost {
  background: transparent;
  border-color: var(--cyan);
  color: var(--cyan);
}

.cta--ghost:hover {
  background: rgba(31, 204, 228, 0.12);
  box-shadow: none;
}

/* sign hero color variants */
.sign-hero {
  border-bottom: 1px solid var(--line);
}

.sign-hero .shell {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
}

.sign-hero__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 30px;
}

.sign-hero h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 3.6vw, 36px);
}

.sign-hero p {
  margin: 0;
  color: rgba(238, 242, 251, 0.85);
  font-size: 14px;
}

.sign-hero--fire {
  background: linear-gradient(120deg, #7a1f1f, #af2424 60%, #d7742c);
}

.sign-hero--earth {
  background: linear-gradient(120deg, #1f3d24, #2f5c33 60%, #4a7a3a);
}

.sign-hero--air {
  background: linear-gradient(120deg, #0d3a52, #146a86 60%, #1fcce4);
}

.sign-hero--water {
  background: linear-gradient(120deg, #0c1f52, #1a3f8f 60%, #3a6fd7);
}

/* section */
.section {
  padding: 50px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading h2 {
  max-width: 600px;
  margin: 0;
}

.section-heading p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.card a {
  font-weight: 700;
  color: var(--cyan);
  text-underline-offset: 5px;
}

/* daily/weekly/monthly forecast cards */
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.forecast-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  display: block;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.forecast-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.forecast-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.forecast-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--cyan);
  font-size: 17px;
}

.forecast-card h3 {
  margin: 0;
  font-size: 16px;
}

.forecast-card__dates {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.forecast-card p {
  margin: 0;
  color: #cbd4ec;
  font-size: 13.5px;
}

/* glance / today cards (love-career-money-health) */
.glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.glance-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.glance-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.glance-card h3 {
  margin: 0;
  font-size: 15px;
}

.stars {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
}

.stars[data-dim] {
  color: var(--line);
}

.glance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.stat-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat-chip {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
}

.stat-chip span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-chip strong {
  font-family: var(--font-display);
  font-size: 16px;
}

.advice {
  padding: 16px 20px;
  border-left: 3px solid var(--cyan);
  background: var(--bg-soft);
  border-radius: 0 14px 14px 0;
}

.advice p {
  margin: 0;
  font-style: italic;
  color: var(--ink);
}

.callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  padding: 42px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.callout p:last-child {
  margin: 0;
}

.article-hero {
  padding: 54px 0 32px;
  max-width: 840px;
}

.article-hero h1 {
  font-size: clamp(32px, 4.6vw, 48px);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) 260px;
  gap: 50px;
  align-items: start;
  padding-bottom: 56px;
}

.article section {
  margin-bottom: 34px;
}

.article h2 {
  font-size: 23px;
}

.article p,
.article li {
  color: #cbd4ec;
  font-size: 15px;
}

.article ul {
  padding-left: 22px;
}

.article aside,
.example {
  padding: 22px;
  border-left: 3px solid var(--cyan);
  background: var(--bg-soft);
  margin: 24px 0;
  border-radius: 0 14px 14px 0;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.sidebar-box h2 {
  font-size: 17px;
  margin: 0 0 14px;
}

.glance-list {
  display: grid;
  gap: 9px;
  font-size: 13.5px;
}

.glance-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 9px;
}

.glance-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.glance-list span:first-child {
  color: var(--muted);
}

.match-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.match-list a {
  text-decoration: none;
  color: var(--cyan);
}

.match-list a:hover {
  text-decoration: underline;
}

/* related links grid */
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.related-grid a {
  display: block;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  transition: border-color 0.2s ease;
}

.related-grid a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* promo cards on home */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.promo-card {
  padding: 22px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  display: block;
}

.promo-card h3 {
  margin: 0 0 8px;
  color: #fff;
}

.promo-card p {
  margin: 0;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.82);
}

.promo-card--a {
  background: linear-gradient(135deg, #7a1f2f, #af2424);
}

.promo-card--b {
  background: linear-gradient(135deg, #0d3a52, #146a86);
}

.promo-card--c {
  background: linear-gradient(135deg, #3f2a70, #7a3f9e);
}

/* spotlight row on home */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.spotlight-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.spotlight-card .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.spotlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.spotlight-card--tip {
  background: linear-gradient(135deg, #3f1730, #7a2f52);
}

.spotlight-card--tip p {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* newsletter / calculator banners (decorative) */
.banner {
  padding: 26px 30px;
  border-radius: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.banner h3 {
  margin: 0 0 6px;
}

.banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.banner--gold {
  background: linear-gradient(120deg, var(--gold), #a9762c);
  border: none;
  color: #241505;
}

.banner--gold p {
  color: rgba(36, 21, 5, 0.75);
}

/* calculator (what's my sign) */
.calc-box {
  padding: 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 520px;
}

.calc-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.calc-form select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #16223f;
  font: inherit;
}

.calc-form button {
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.calc-result {
  margin-top: 16px;
  font-size: 15px;
}

.calc-result strong {
  color: var(--cyan);
}

.calc-result[hidden] {
  display: none;
}

/* sign date table */
.sign-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sign-table th,
.sign-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

.sign-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sign-table a {
  color: var(--cyan);
  text-decoration: none;
}

.sign-table a:hover {
  text-decoration: underline;
}

.sign-table__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* compatibility matrix */
.compat-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 10px;
}

.compat-table {
  border-collapse: separate;
  border-spacing: 6px;
  font-size: 13px;
  min-width: 920px;
}

.compat-table th,
.compat-table td {
  padding: 0;
  text-align: center;
}

.compat-table thead th {
  color: var(--muted);
  font-size: 17px;
  padding-bottom: 6px;
}

.compat-table tbody th {
  text-align: left;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  font-size: 12.5px;
  padding-right: 10px;
}

.compat-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #10131f;
}

.compat-cell--high {
  background: #4caf50;
  color: #06240a;
}

.compat-cell--mid {
  background: #d7a941;
  color: #241505;
}

.compat-cell--low {
  background: #c9504f;
  color: #2b0505;
}

.site-footer {
  padding: 38px 0 20px;
  border-top: 1px solid var(--line);
  background: #050b26;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--ink);
}

.footer-col nav {
  display: grid;
  gap: 8px;
}

.footer-col a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--cyan);
}

.site-footer p {
  margin-bottom: 8px;
  color: var(--muted);
}

.footer-legal {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-legal p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  color: var(--muted);
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-bottom button {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  color: inherit;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
  color: #cbd4ec;
}

.legal-copy {
  max-width: 840px;
  padding: 52px 0;
}

.legal-copy h1 {
  font-size: 36px;
}

.legal-copy h2 {
  font-size: 21px;
  margin-top: 30px;
}

.notice {
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 56px;
}

.contact-grid section {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 18px;
}

.contact-grid h2 {
  font-size: 24px;
}

.contact-grid address {
  font-style: normal;
}

.fine {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .header-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .cards,
  .promo-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 650px) {
  .shell {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 30px 0;
  }

  .sign-hero .shell {
    padding: 22px 0;
    gap: 14px;
  }

  .sign-hero__badge {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 24px;
  }

  .cards,
  .callout,
  .footer-grid,
  .article-layout,
  .contact-grid,
  .glance-grid,
  .promo-grid,
  .spotlight-grid,
  .stat-chips,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .callout {
    padding: 22px;
    gap: 20px;
  }

  .section {
    padding: 34px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }

  .article-hero {
    padding-top: 30px;
  }

  .site-nav {
    gap: 8px 14px;
  }

  .lead {
    font-size: 15.5px;
  }

  .legal-copy {
    padding: 30px 0;
  }

  .legal-copy h1 {
    font-size: 27px;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 600px) {
  div#CybotCookiebotDialog {
    position: fixed !important;
    top: auto !important;
    right: 8px !important;
    bottom: 8px !important;
    left: 8px !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: 75dvh !important;
    margin: 0 !important;
    transform: none !important;
    scale: 1 !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
