:root {
  --color-paper: #f4efe5;
  --color-surface: #fffcf5;
  --color-ink: #181612;
  --color-muted: #61584f;
  --color-sage: #506a5c;
  --color-deep-green: #142b24;
  --color-gold: #b78c4a;
  --color-clay: #934f4d;
  --color-mist: #ded4c3;
  --color-error: #9e3b3b;
  --shadow: 0 24px 70px rgba(20, 43, 36, 0.12);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-family: var(--font-body);
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  color: var(--color-ink);
  background:
    linear-gradient(180deg, rgba(20, 43, 36, 0.08), transparent 280px),
    linear-gradient(90deg, rgba(20, 43, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 43, 36, 0.035) 1px, transparent 1px),
    var(--color-paper);
  background-size: auto, 44px 44px, 44px 44px, auto;
  line-height: 1.6;
  overflow-x: hidden;
}
main, section, header, footer {
  max-width: 100vw;
}
a { color: var(--color-deep-green); }
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(183, 140, 74, 0.35);
  background: rgba(20, 43, 36, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  color: #fff8ec;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a {
  color: #fff8ec;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
nav a:hover { color: #e2c98d; }
.hero-shell, .pair-detail-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 34px) clamp(18px, 4vw, 32px) clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.pair-detail-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  padding-bottom: clamp(10px, 2.4vw, 28px);
}
.article-hero, .content-band, .split-section, .pair-preview, .free-section, .faq-section, .bottom-cta, .article-body {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 72px) clamp(18px, 4vw, 32px);
}
.article-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) clamp(18px, 4vw, 32px) clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.article-layout .article-body {
  padding: 0;
  margin: 0;
}
.content-band {
  padding-top: clamp(22px, 3vw, 40px);
}
.eyebrow {
  color: var(--color-clay);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0;
}
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.28rem, 4.4vw, 3.55rem); margin: 10px 0 20px; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); margin: 0 0 16px; }
h3 { font-size: 1.2rem; margin: 10px 0 8px; }
.hero-copy {
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 1px solid rgba(183, 140, 74, 0.45);
}
.pair-detail-copy {
  padding-left: clamp(16px, 2vw, 24px);
  border-left: 1px solid rgba(183, 140, 74, 0.45);
}
.pair-detail-hero h1 {
  font-size: clamp(2.15rem, 3.7vw, 2.9rem);
  max-width: 15.5ch;
}
.pair-detail-hero .lede {
  max-width: 46ch;
}
.lede {
  color: #2e2a25;
  font-size: clamp(1.03rem, 1.7vw, 1.18rem);
  max-width: 58ch;
}
.trust-note, .privacy-line {
  color: var(--color-muted);
  font-weight: 700;
}
.tool-panel, .result-panel, .method-callout, .steps-grid article, .free-section, .faq-section details, .pair-card, .calculation-box {
  background: rgba(255, 252, 245, 0.9);
  border: 1px solid rgba(20, 43, 36, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-shell > *, .pair-detail-hero > *, .tool-panel, .result-panel, .pair-card, .method-callout {
  min-width: 0;
}
.tool-panel {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  border-color: rgba(183, 140, 74, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.96), rgba(247, 240, 228, 0.9)),
    var(--color-surface);
}
.tool-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--color-deep-green), var(--color-gold), var(--color-clay));
}
.calculator-form { display: grid; gap: 12px; }
.tool-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 43, 36, 0.16);
}
.tool-proof div {
  min-height: auto;
  border: 0;
  border-radius: 0;
  padding: 6px 18px 2px 0;
  background: transparent;
}
.tool-proof div + div {
  border-left: 1px solid rgba(183, 140, 74, 0.36);
  padding-left: 18px;
  padding-right: 0;
}
.tool-proof strong, .tool-proof span {
  display: block;
}
.tool-proof strong {
  font-family: var(--font-display);
  margin-bottom: 8px;
}
.tool-proof span {
  color: var(--color-muted);
  font-size: 0.92rem;
}
label { font-weight: 800; }
input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(20, 43, 36, 0.26);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(255, 252, 245, 0.92);
  color: var(--color-ink);
  font: inherit;
}
input:focus, select:focus {
  outline: 2px solid rgba(183, 140, 74, 0.36);
  outline-offset: 2px;
  border-color: rgba(20, 43, 36, 0.58);
}
button, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: linear-gradient(180deg, #1f4337, var(--color-deep-green));
  color: #fffaf2;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
button:hover, .button-link:hover {
  background: linear-gradient(180deg, #294f42, #173229);
}
button.secondary-button {
  border: 1px solid rgba(183, 140, 74, 0.58);
  background: linear-gradient(180deg, #fffaf2, #eadfca);
  color: var(--color-deep-green);
}
button.secondary-button:hover {
  background: linear-gradient(180deg, #fffdf8, #e2d2b8);
}
.text-link { font-weight: 800; }
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 8px;
}
.result-actions .button-link, .result-actions button {
  width: auto;
}
.magic-note {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0;
}
.pair-insights {
  display: grid;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 28px);
  padding-top: 18px;
  border-top: 1px solid rgba(183, 140, 74, 0.34);
}
.pair-insights span {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.pair-insights strong {
  color: var(--color-deep-green);
  font-size: 0.78rem;
  text-transform: uppercase;
}
.result-panel {
  max-width: 1040px;
  margin: 0 auto 32px;
  padding: clamp(22px, 4vw, 34px);
}
.result-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.result-panel .result-cards {
  grid-template-columns: repeat(2, minmax(220px, 290px));
  justify-content: center;
  gap: clamp(16px, 2vw, 22px);
}
.pair-detail-hero .result-cards {
  gap: clamp(16px, 2vw, 22px);
  margin: 0;
}
.result-panel .tarot-card {
  aspect-ratio: 0.72;
  min-height: 424px;
  padding: 22px 18px 24px;
}
.pair-detail-hero .tarot-card {
  aspect-ratio: 0.72;
  min-height: 300px;
}
.tarot-card {
  position: relative;
  min-height: 226px;
  border: 1px solid rgba(183, 140, 74, 0.88);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(183, 140, 74, 0.22), transparent 23%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.96), rgba(223, 208, 185, 0.84));
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  place-items: center;
  padding: 22px 20px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 20px 50px rgba(20, 43, 36, 0.1);
  overflow: hidden;
}
.tarot-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(20, 43, 36, 0.16);
  border-radius: 6px;
  pointer-events: none;
}
.tarot-card::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  top: 40%;
  left: 50%;
  border: 1px solid rgba(183, 140, 74, 0.34);
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}
.card-number {
  position: absolute;
  top: 22px;
  left: 22px;
  color: var(--color-clay);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.card-mark {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-top: 22px;
  border: 1px solid rgba(20, 43, 36, 0.22);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(20, 43, 36, 0.32) 49%, rgba(20, 43, 36, 0.32) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(20, 43, 36, 0.32) 49%, rgba(20, 43, 36, 0.32) 51%, transparent 52%);
}
.card-art {
  position: relative;
  z-index: 1;
  width: min(88%, 300px);
  height: clamp(150px, 16vw, 220px);
  object-fit: cover;
  object-position: center top;
  align-self: center;
  margin-top: 26px;
  border: 1px solid rgba(255, 248, 232, 0.18);
  border-radius: 6px;
  filter: drop-shadow(0 18px 28px rgba(20, 43, 36, 0.18));
}
.pair-detail-hero .card-art {
  height: clamp(165px, 18vw, 235px);
}
.result-panel .card-art {
  width: min(88%, 238px);
  height: clamp(232px, 20vw, 270px);
  object-position: center 36%;
  margin-top: 22px;
}
.result-panel .tarot-card strong {
  margin-top: 14px;
}
.tarot-card.has-card-art {
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 206, 132, 0.34), transparent 34%),
    linear-gradient(145deg, rgba(255, 252, 245, 0.98), rgba(225, 211, 188, 0.86));
}
.tarot-card.has-card-art::after {
  opacity: 0.26;
}
.tarot-card strong {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-top: 18px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}
.tarot-card small {
  position: relative;
  z-index: 1;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}
.steps-grid, .pair-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.steps-grid article { padding: 18px; }
.steps-grid span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-deep-green);
  color: #fff;
  font-weight: 800;
}
.split-section {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 28px;
}
.method-callout { padding: 22px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.pair-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  text-decoration: none;
}
.pair-card:hover, .steps-grid article:hover {
  border-color: rgba(183, 140, 74, 0.55);
  box-shadow: 0 18px 45px rgba(20, 43, 36, 0.1);
}
.mini-cards { display: flex; gap: 8px; }
.mini-cards i {
  width: 28px;
  height: 42px;
  border: 1px solid rgba(183, 140, 74, 0.84);
  border-radius: 4px;
  background: linear-gradient(160deg, #fff8ec, #dfd0b9);
}
.free-section ul, .article-body ul { padding-left: 22px; }
.faq-section details { padding: 16px 18px; margin-bottom: 12px; }
.faq-section summary { cursor: pointer; font-weight: 800; }
.bottom-cta { text-align: center; }
.article-body { max-width: 780px; }
.article-body h2 {
  margin-top: 32px;
}
.article-body h2:first-child {
  margin-top: 0;
}
.reading-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  padding-left: 16px;
  border-left: 1px solid rgba(183, 140, 74, 0.42);
}
.reading-nav span {
  color: var(--color-clay);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.reading-nav a {
  color: var(--color-muted);
  font-weight: 800;
  text-decoration: none;
}
.reading-nav a:hover {
  color: var(--color-deep-green);
}
.calculation-box {
  padding: 16px;
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}
.site-footer {
  padding: 28px clamp(18px, 4vw, 48px);
  border-top: 1px solid rgba(183, 140, 74, 0.28);
  background: #182d26;
  color: #fff8ec;
}
.site-footer nav { margin-top: 12px; }
.error-text { color: var(--color-error); font-weight: 800; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.comparison-table th, .comparison-table td {
  border: 1px solid rgba(32, 54, 45, 0.18);
  padding: 10px;
  text-align: left;
}
@media (max-width: 820px) {
  * {
    min-width: 0;
  }
  body, main {
    width: 100vw;
    max-width: 100vw;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }
  nav {
    gap: 12px 16px;
  }
  nav a {
    font-size: 0.92rem;
  }
  .hero-shell, .pair-detail-hero, .split-section, .article-layout {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }
  .steps-grid, .pair-grid {
    grid-template-columns: 1fr;
  }
  .tool-proof {
    grid-template-columns: 1fr;
  }
  .tool-proof div + div {
    border-left: 0;
    border-top: 1px solid rgba(183, 140, 74, 0.34);
    margin-top: 12px;
    padding-left: 0;
    padding-top: 14px;
  }
  .result-cards {
    grid-template-columns: 1fr;
  }
  .result-panel .result-cards {
    grid-template-columns: minmax(0, 320px);
    justify-content: center;
  }
  .pair-detail-hero .result-cards {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  h1 {
    font-size: 2.08rem;
    max-width: 11ch;
  }
  .pair-detail-hero h1 {
    font-size: 2.25rem;
    max-width: 12ch;
  }
  h2 { font-size: 1.8rem; }
  .hero-copy, .pair-detail-copy {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pair-insights span {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .lede {
    font-size: 1rem;
  }
  .hero-shell, .article-hero, .content-band, .split-section, .pair-preview, .free-section, .faq-section, .bottom-cta, .article-body, .article-layout {
    padding-left: 20px;
    padding-right: 20px;
  }
  .tool-panel, .tool-proof, .tool-proof div, input, select {
    width: 100%;
    max-width: 100%;
  }
  button, .button-link {
    width: 100%;
  }
  .result-actions {
    display: grid;
  }
  .result-actions .button-link, .result-actions button {
    width: 100%;
  }
  .pair-detail-copy .button-link {
    width: auto;
  }
  p, li, span, strong, a, label, summary {
    overflow-wrap: anywhere;
  }
  .pair-detail-copy p, .pair-insights span, .article-body p, .article-body li {
    overflow-wrap: normal;
    word-break: normal;
  }
  .tool-panel {
    padding: 20px;
    box-shadow: none;
  }
  .tarot-card {
    min-height: 190px;
    padding: 18px 14px 20px;
  }
  .result-panel .tarot-card {
    aspect-ratio: auto;
    min-height: 366px;
  }
  .pair-detail-hero .tarot-card {
    aspect-ratio: auto;
    min-height: 198px;
  }
  .card-mark {
    width: 42px;
    height: 42px;
  }
  .card-art {
    width: min(88%, 240px);
    height: 170px;
    margin-top: 24px;
  }
  .result-panel .card-art {
    height: 242px;
    object-position: center 36%;
  }
  .tarot-card strong {
    font-size: 1.06rem;
  }
  .reading-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    padding-bottom: 16px;
    border-left: 0;
    border-bottom: 1px solid rgba(183, 140, 74, 0.34);
  }
  .reading-nav span {
    grid-column: 1 / -1;
  }
  .tool-panel h2 {
    font-size: 1.48rem;
    max-width: 10ch;
  }
  .privacy-line, .tool-proof span, .trust-note {
    overflow-wrap: anywhere;
  }
}
