:root {
  --ink: #121314;
  --ink-2: #24201c;
  --paper: #f6efe4;
  --paper-2: #fffaf1;
  --teal: #0e706c;
  --teal-dark: #094844;
  --crimson: #b64d5a;
  --gold: #d5a64a;
  --plum: #5a426a;
  --clay: #b87445;
  --mist: #e7efe8;
  --line: rgba(18, 19, 20, 0.14);
  --light-line: rgba(255, 250, 241, 0.22);
  --shadow: 0 24px 70px rgba(18, 19, 20, 0.20);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

:where(.btn, .header-action, .mode-chip, .filter-pill, .tab, .copy-button, .menu-toggle, .faq-list summary):focus-visible {
  box-shadow: 0 0 0 4px rgba(213, 166, 74, 0.30);
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--paper-2);
  background: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  color: var(--paper-2);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.open {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: 0 0 30px;
}

.brand-mark span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-mark::before {
  inset: -4px;
  border: 1px solid currentColor;
  opacity: 0.25;
}

.brand-mark::after {
  width: 9px;
  height: 9px;
  right: -3px;
  top: 2px;
  background: var(--gold);
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  opacity: 0.82;
}

.nav a:hover {
  opacity: 1;
}

.header-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--paper-2);
  font-size: 14px;
  font-weight: 900;
}

.site-header.scrolled .header-action,
.site-header.open .header-action {
  color: var(--paper-2);
  background: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-header.open .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.site-header.open .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper-2);
  background: var(--ink);
  isolation: isolate;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("assets/hero-tarot-si-o-no.webp");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 19, 20, 0.94) 0%, rgba(18, 19, 20, 0.70) 42%, rgba(18, 19, 20, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 19, 20, 0.74) 0%, rgba(18, 19, 20, 0.08) 44%, rgba(18, 19, 20, 0.58) 100%);
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 118px 28px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 46px;
  align-items: end;
}

.hero-copy {
  padding-bottom: 18px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 82px;
  line-height: 0.95;
  font-weight: 700;
}

.hero-copy p {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 250, 241, 0.88);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn::after {
  content: "→";
  font-weight: 900;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--paper-2);
  background: var(--teal);
  box-shadow: 0 16px 40px rgba(14, 112, 108, 0.26);
}

.btn.primary:hover {
  background: var(--teal-dark);
}

.btn.ghost {
  color: var(--paper-2);
  border-color: var(--light-line);
  background: rgba(255, 250, 241, 0.08);
  backdrop-filter: blur(10px);
}

.btn.full {
  width: 100%;
}

.oracle-panel {
  padding: 24px;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: var(--radius);
  background: rgba(18, 19, 20, 0.58);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  max-width: 260px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.05;
}

.question-field {
  display: grid;
  gap: 8px;
  color: rgba(255, 250, 241, 0.86);
  font-size: 14px;
  font-weight: 850;
}

.question-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--paper-2);
  background: rgba(255, 250, 241, 0.10);
}

.question-field textarea:focus {
  border-color: var(--gold);
}

.question-field textarea:focus-visible {
  box-shadow: 0 0 0 4px rgba(213, 166, 74, 0.30);
}

.question-field textarea::placeholder {
  color: rgba(255, 250, 241, 0.48);
}

.mode-row,
.filter-row,
.question-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-row {
  margin: 14px 0 16px;
}

.mode-chip,
.filter-pill,
.tab {
  min-height: 38px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.mode-chip {
  color: rgba(255, 250, 241, 0.82);
}

.mode-chip.active {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold);
}

.deck-preview {
  height: 74px;
  position: relative;
  margin-bottom: 16px;
}

.deck-preview span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 52px;
  height: 72px;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 7px;
  background:
    radial-gradient(circle at center, rgba(213, 166, 74, 0.34), transparent 36%),
    linear-gradient(135deg, #193d41, #151316 62%, #6b2e3e);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition: transform 280ms ease;
}

.deck-preview span:nth-child(1) {
  transform: translateX(-82px) rotate(-10deg);
}

.deck-preview span:nth-child(2) {
  transform: translateX(-26px) rotate(0deg);
}

.deck-preview span:nth-child(3) {
  transform: translateX(30px) rotate(10deg);
}

.deck-preview.shuffling span:nth-child(1) {
  transform: translateX(-68px) translateY(5px) rotate(7deg);
}

.deck-preview.shuffling span:nth-child(2) {
  transform: translateX(-22px) translateY(-6px) rotate(-8deg);
}

.deck-preview.shuffling span:nth-child(3) {
  transform: translateX(22px) translateY(4px) rotate(14deg);
}

.reading-result {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.08);
}

.result-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.reading-result h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.reading-result p {
  margin: 10px 0 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.6;
}

.reading-result strong {
  color: var(--paper-2);
}

.inline-answer {
  font-weight: 950;
}

.inline-answer.yes {
  color: #86ded4;
}

.inline-answer.no {
  color: #ff9aa5;
}

.inline-answer.maybe {
  color: #f4ca72;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--paper-2);
  background: var(--ink);
  border-top: 1px solid rgba(255, 250, 241, 0.13);
}

.trust-strip div {
  min-height: 112px;
  padding: 24px 28px;
  border-right: 1px solid rgba(255, 250, 241, 0.13);
}

.trust-strip strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.trust-strip span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 250, 241, 0.70);
  font-size: 14px;
}

.section-pad {
  padding: 88px 28px;
}

.section-heading,
.intro,
.method,
.spreads,
.cards-section,
.questions,
.ethics,
.faq,
.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.section-heading h2,
.method-copy h2,
.cards-copy h2,
.ethics-panel h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  line-height: 1.06;
}

.section-heading p:not(.eyebrow),
.intro-copy p,
.method-copy p,
.cards-copy p,
.ethics-copy p {
  margin: 0;
  color: rgba(18, 19, 20, 0.72);
  font-size: 18px;
  line-height: 1.72;
}

.intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 18px;
}

.method {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(28px, 1fr) minmax(0, 430px) minmax(0, 700px) minmax(28px, 1fr);
  gap: 44px;
  align-items: center;
  color: var(--paper-2);
  background: var(--ink);
}

.method-copy {
  grid-column: 2;
}

.method-copy h2,
.method-copy p {
  color: var(--paper-2);
}

.method-copy p:not(.eyebrow) {
  margin-top: 22px;
  color: rgba(255, 250, 241, 0.74);
}

.step-grid {
  grid-column: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.step-grid article,
.spread-card,
.arcana-card,
.question-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.step-grid article {
  min-height: 238px;
  padding: 24px;
  color: var(--ink);
  border-color: rgba(255, 250, 241, 0.12);
  background: rgba(255, 250, 241, 0.08);
}

.step-grid span,
.spread-number,
.arcana-number {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  line-height: 1;
}

.step-grid h3,
.spread-card h3,
.arcana-card h3,
.question-list h3 {
  margin: 22px 0 10px;
  font-size: 22px;
  line-height: 1.18;
}

.step-grid p {
  margin: 0;
  color: rgba(255, 250, 241, 0.72);
  line-height: 1.6;
}

.section-heading.compact {
  max-width: 780px;
  margin-inline: 0;
}

.section-heading.compact p:not(.eyebrow) {
  margin-top: 18px;
}

.spread-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.spread-card {
  padding: 26px;
  min-height: 302px;
}

.spread-card.featured {
  grid-row: span 2;
  color: var(--paper-2);
  background: var(--teal-dark);
  border-color: rgba(255, 250, 241, 0.10);
  box-shadow: var(--shadow);
}

.spread-card p,
.arcana-card p,
.question-list p {
  margin: 0;
  color: rgba(18, 19, 20, 0.70);
  line-height: 1.65;
}

.spread-card.featured p,
.spread-card.featured li {
  color: rgba(255, 250, 241, 0.78);
}

.spread-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.spread-card li {
  position: relative;
  padding-left: 22px;
  line-height: 1.55;
}

.spread-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.cards-section {
  width: 100%;
  max-width: none;
  background: var(--mist);
  padding-inline: max(28px, calc((100vw - var(--max)) / 2));
}

.cards-copy {
  max-width: 760px;
}

.cards-copy p:not(.eyebrow) {
  margin-top: 20px;
}

.filter-row {
  margin-top: 28px;
}

.filter-pill {
  border-color: rgba(18, 19, 20, 0.24);
  color: var(--ink);
}

.filter-pill.active {
  color: var(--paper-2);
  border-color: var(--ink);
  background: var(--ink);
}

.arcana-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.arcana-card {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  overflow: hidden;
}

.arcana-card.hidden {
  display: none;
}

.arcana-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.answer-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--paper-2);
  background: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.answer-badge.no {
  background: var(--crimson);
}

.answer-badge.maybe {
  color: var(--ink);
  background: var(--gold);
}

.arcana-card h3 {
  margin-top: 26px;
}

.arcana-card small {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal-dark);
  font-weight: 900;
  line-height: 1.45;
}

.questions {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.question-tools {
  display: grid;
  gap: 18px;
}

.tab {
  border-color: rgba(18, 19, 20, 0.18);
  color: var(--ink);
  background: rgba(255, 250, 241, 0.55);
}

.tab.active {
  color: var(--paper-2);
  border-color: var(--plum);
  background: var(--plum);
}

.question-list {
  display: grid;
  gap: 12px;
}

.question-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.question-list span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-2);
  background: var(--crimson);
  font-weight: 950;
}

.question-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.copy-button {
  min-width: 86px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 900;
}

.ethics {
  width: 100%;
  max-width: none;
  padding-inline: max(28px, calc((100vw - var(--max)) / 2));
  color: var(--paper-2);
  background:
    linear-gradient(135deg, rgba(90, 66, 106, 0.88), rgba(14, 112, 108, 0.92)),
    var(--plum);
}

.ethics-panel {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: start;
}

.ethics-panel h2,
.ethics-copy p {
  color: var(--paper-2);
}

.ethics-copy {
  display: grid;
  gap: 18px;
}

.ethics-copy p {
  color: rgba(255, 250, 241, 0.78);
}

.faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
}

.faq-list summary {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 22px;
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--crimson);
  font-size: 24px;
  font-weight: 700;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
  color: rgba(18, 19, 20, 0.68);
  line-height: 1.65;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  padding: 48px 28px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 470px;
  margin: 18px 0 0;
  color: rgba(18, 19, 20, 0.64);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 26px;
  align-content: start;
  font-weight: 850;
}

@media (max-width: 1050px) {
  .hero-inner,
  .intro,
  .questions,
  .ethics-panel,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    align-items: start;
  }

  .oracle-panel {
    max-width: 560px;
  }

  .method {
    grid-template-columns: 1fr;
    padding-inline: 28px;
  }

  .method-copy,
  .step-grid {
    grid-column: auto;
  }

  .spread-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .arcana-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    padding-inline: 20px;
  }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    grid-template-columns: 1fr;
    justify-content: start;
    gap: 0;
    padding: 16px 20px 24px;
    color: var(--ink);
    background: rgba(255, 250, 241, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .header-action {
    justify-self: end;
  }

  .menu-toggle {
    display: grid;
  }

  .hero h1 {
    font-size: 62px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-heading h2,
  .method-copy h2,
  .cards-copy h2,
  .ethics-panel h2 {
    font-size: 40px;
  }

  .step-grid,
  .arcana-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
    gap: 12px;
  }

  .brand {
    font-size: 15px;
  }

  .header-action {
    display: none;
  }

  .nav {
    top: 66px;
  }

  .hero {
    min-height: auto;
  }

  .hero-bg {
    background-position: 62% center;
  }

  .hero-inner {
    padding: 94px 20px 30px;
    gap: 24px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .oracle-panel {
    padding: 18px;
  }

  .panel-heading h2 {
    font-size: 24px;
  }

  .trust-strip,
  .spread-grid,
  .step-grid,
  .arcana-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    min-height: 92px;
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 250, 241, 0.13);
  }

  .section-pad {
    padding: 66px 20px;
  }

  .section-heading h2,
  .method-copy h2,
  .cards-copy h2,
  .ethics-panel h2 {
    font-size: 34px;
  }

  .section-heading p:not(.eyebrow),
  .intro-copy p,
  .method-copy p,
  .cards-copy p,
  .ethics-copy p {
    font-size: 16px;
  }

  .method,
  .cards-section,
  .ethics {
    padding-inline: 20px;
  }

  .spread-card.featured {
    grid-row: auto;
  }

  .question-list article {
    grid-template-columns: auto 1fr;
  }

  .copy-button {
    grid-column: 2;
    width: fit-content;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 20px;
  }

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