:root {
  --paper: #f7f2e9;
  --paper-deep: #ece2d3;
  --ink: #22202a;
  --muted: #625d67;
  --plum: #4f294f;
  --plum-dark: #351a38;
  --gold: #a56f26;
  --gold-text: #86561c;
  --line: #d5c8b8;
  --white: #fffdf9;
  --shadow: 0 16px 40px rgba(48, 31, 49, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 12% 0%, rgba(165, 111, 38, 0.10), transparent 28rem), var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
a { color: var(--plum); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-text); }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: 0.55rem 0.8rem; background: var(--white); }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(247, 242, 233, 0.96); }
.site-header__inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  color: var(--plum-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 700;
  text-decoration: none;
}
.site-brand__mark { color: var(--gold); }
.site-brand small {
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem 1.2rem; font-size: 0.92rem; font-weight: 650; }
.primary-nav a { color: var(--ink); text-decoration: none; }
.primary-nav a:hover { color: var(--plum); }
.site-shell { position: relative; width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0 5rem; }
.hero { max-width: 900px; padding: 2rem 0 4.5rem; }
.eyebrow { margin: 0 0 0.55rem; color: var(--gold-text); font-size: 0.78rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--plum-dark); font-family: Georgia, "Times New Roman", serif; line-height: 1.16; text-wrap: balance; }
h1 { margin: 0 0 1.25rem; font-size: clamp(2.35rem, 7vw, 4.8rem); letter-spacing: -0.035em; }
h2 { margin: 2.6rem 0 0.8rem; font-size: clamp(1.55rem, 4vw, 2.25rem); letter-spacing: -0.02em; }
h3 { margin: 2rem 0 0.5rem; font-size: 1.25rem; }
.hero__lede, .article-lede { max-width: 760px; margin: 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2.5vw, 1.55rem); line-height: 1.55; }
.hero__note { max-width: 680px; margin: 1.6rem 0 0; padding-left: 1rem; border-left: 3px solid var(--gold); color: var(--muted); font-size: 0.94rem; }
.category-directory { margin: 4.5rem 0; padding: 3.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-directory > h2 { margin-top: 0; }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; margin-top: 1.8rem; }
.category-card {
  min-height: 150px;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.category-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.category-card__mark { min-width: 2rem; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; line-height: 1.3; }
.category-card strong { display: block; color: var(--plum-dark); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.category-card small { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.editorial-split { display: grid; grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.35fr); gap: 2rem 4rem; margin: 5rem 0; padding-top: 3rem; border-top: 1px solid var(--line); }
.editorial-split h2 { margin-top: 0; }
.editorial-split p:first-child { margin-top: 0; }
.source-note { color: var(--muted); font-size: 0.84rem; }
.link-directory { margin-top: 4.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-intro { max-width: 660px; color: var(--muted); }
.sign-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.8rem; }
.sign-grid a {
  min-height: 118px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.75rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.sign-grid a:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
.sign-grid small { grid-column: 2; align-self: start; color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.76rem; font-weight: 500; }
.sign-symbol { grid-row: 1 / 3; color: var(--gold); font-size: 2rem; font-weight: 400; }
.analysis-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.analysis-links a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; text-decoration: none; }
.analysis-links span { color: var(--muted); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.76rem; font-weight: 500; text-align: right; }
.zodiac-article, .guide-article, .site-shell > table { width: min(100%, 760px) !important; margin: 0 auto; border: 0; border-collapse: collapse; background: transparent; }
.site-shell > table, .site-shell > table tbody, .site-shell > table tr, .site-shell > table td { display: block; }
.site-shell > table td { padding: 0; text-align: left; }
.zodiac-article header, .guide-article header, .site-shell > table center { display: block; margin: 0 0 2.25rem; text-align: left; }
.zodiac-article h1, .guide-article h1, .site-shell > table h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
.zodiac-article p, .guide-article p { margin: 0 0 1.35rem; }
.zodiac-article > p, .zodiac-article > ul li, .zodiac-article > ol li, .site-shell > table td { line-height: 1.8; }
.zodiac-article ul, .zodiac-article ol, .guide-article ul, .guide-article ol, .site-shell > table ul, .site-shell > table ol { margin: 1rem 0 1.5rem; padding-left: 1.35rem; }
.zodiac-article li, .guide-article li, .site-shell > table li { margin-bottom: 0.55rem; }
.article-context { margin: 0 0 2.8rem !important; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 253, 249, 0.6); color: var(--muted); font-size: 0.92rem; }
.breadcrumb { margin: 0 0 2.2rem; color: var(--muted); font-size: 0.85rem; }
.breadcrumb a { font-weight: 650; }
.reflection { margin: 2.4rem 0; padding: 1.25rem 1.4rem; border-left: 3px solid var(--gold); background: rgba(236, 226, 211, 0.55); }
.reflection h2 { margin-top: 0; font-size: 1.35rem; }
.reflection p:last-child { margin-bottom: 0; }
.related-reading { width: min(100%, 760px); margin: 4.5rem auto 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.related-reading h2 { margin: 0 0 1rem; font-size: 1.5rem; }
.related-reading__links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.related-reading__links a { font-weight: 650; }
.category-hero { max-width: 820px; margin-bottom: 4rem; }
.category-hero h1 { max-width: 780px; }
.category-hero--visual { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 330px); align-items: center; gap: 2.5rem 4.5rem; }
.category-hero__figure { margin: 0; }
.category-hero__figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.category-hero__figure figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 4rem; }
.article-card { display: flex; flex-direction: column; min-height: 280px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 8px 24px rgba(48, 31, 49, 0.04); }
.article-card .eyebrow { margin-bottom: 0.7rem; }
.article-card h2 { margin: 0 0 0.8rem; font-size: 1.45rem; }
.article-card p { margin: 0 0 1.2rem; color: var(--muted); font-size: 0.93rem; }
.article-card a { margin-top: auto; font-weight: 700; }
.method-note { margin: 2.6rem 0; padding: 1.35rem 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(236, 226, 211, 0.58); }
.method-note h2, .method-note h3 { margin-top: 0; }
.method-note p:last-child { margin-bottom: 0; }
.question-list { counter-reset: questions; list-style: none; padding-left: 0 !important; }
.question-list li { position: relative; padding: 0 0 1.15rem 2.6rem; }
.question-list li::before { counter-increment: questions; content: counter(questions); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--plum); color: white; font-size: 0.8rem; font-weight: 750; line-height: 1.8rem; text-align: center; }
.palm-diagram { margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.palm-diagram img { display: block; width: min(100%, 620px); height: auto; margin: 0 auto; }
.palm-diagram figcaption { max-width: 620px; margin: 0.8rem auto 0; color: var(--muted); font-size: 0.82rem; }
.article-figure { margin: 2.4rem 0; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.article-figure figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.article-figure--portrait { width: min(100%, 440px); margin-left: auto; margin-right: auto; }
.article-figure--diagram { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.article-figure--diagram img { border: 0; border-radius: 8px; }
.article-figure--diagram figcaption { margin-bottom: 0; }
.article-figure__scroll { overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--line); border-radius: 16px; background: var(--white); scrollbar-gutter: stable; }
.article-figure__scroll img { width: 100%; max-width: none; border: 0; border-radius: 0; }
.article-figure__scroll:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sources { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.84rem; }
.sources h2 { margin-top: 0; font-size: 1.25rem; }
.ad-placement { margin: 2.75rem auto; overflow: hidden; text-align: center; }
.ad-placement--auto { width: min(100%, 760px); min-height: 90px; }
.ad-placement--big { width: min(100%, 336px); min-height: 280px; }
.ad-placement--wide { display: none; width: 728px; min-height: 90px; }
.ad-placement--long { display: none; }
.site-shell img, .site-shell iframe, .site-shell ins { max-width: 100%; }
.site-footer { padding: 2.5rem 1rem; border-top: 1px solid var(--line); background: var(--plum-dark); color: #f5eadc; text-align: center; }
.site-footer p { max-width: 760px; margin: 0.35rem auto; font-size: 0.83rem; }
@media (max-width: 800px) {
  .site-header__inner { padding: 1rem 0; align-items: flex-start; flex-direction: column; gap: 0.8rem; }
  .site-brand small { display: none; }
  .primary-nav { justify-content: flex-start; }
  .site-shell { padding-top: 2.5rem; }
  .sign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-links { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editorial-split { grid-template-columns: 1fr; gap: 0.5rem; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; }
  .category-hero--visual { grid-template-columns: 1fr; }
  .category-hero__figure { width: min(100%, 320px); margin: 0 auto; }
  .site-shell .article-figure__scroll img { width: 900px; max-width: none; }
}
@media (min-width: 801px) {
  .ad-placement--wide { display: block; }
}
@media (min-width: 1180px) {
  .ad-placement--long { position: absolute; top: 4rem; right: 0; display: block; width: 160px; height: 600px; margin: 0; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .site-header__inner, .site-shell { width: min(100% - 1.25rem, 1120px); }
  .primary-nav { gap: 0.35rem 0.9rem; font-size: 0.84rem; }
  .hero { padding-top: 0.5rem; }
  .sign-grid { gap: 0.55rem; }
  .sign-grid a { min-height: 100px; padding: 0.8rem; column-gap: 0.55rem; }
  .sign-symbol { font-size: 1.65rem; }
  .related-reading__links { display: grid; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sign-grid a, .category-card { transition: none; }
}
