:root {
  --night: #07111f;
  --night-2: #0b1930;
  --ink: #10223b;
  --paper: #f3ead7;
  --paper-soft: #d8cfbe;
  --gold: #c7a45a;
  --gold-pale: #e8d29a;
  --line: rgba(232, 210, 154, .24);
  --shadow: 0 28px 80px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 74, 116, .28), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(140, 96, 35, .12), transparent 28rem),
    var(--night);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
  min-height: 100vh;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 20;
  padding: .65rem 1rem;
  color: var(--night);
  background: var(--paper);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  text-decoration: none;
  color: var(--paper);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 1rem;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50% 50% 46% 46%;
  display: grid;
  place-items: center;
  color: var(--gold-pale);
  font-size: .84rem;
}
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: .82rem;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--paper-soft);
}
.nav a:hover, .nav a:focus-visible { color: var(--gold-pale); }

.oracle-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6.5rem) 0 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}
.eyebrow {
  margin: 0 0 1rem;
  font: 600 .74rem/1.4 Arial, Helvetica, sans-serif;
  color: var(--gold-pale);
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 400; line-height: 1.08; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7.7rem);
  letter-spacing: -.055em;
}
.intro {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--paper-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
}
.ritual-note {
  display: flex;
  gap: 1rem;
  margin: 2.1rem 0;
  max-width: 580px;
  color: #bdb4a5;
  font-size: .95rem;
}
.ritual-note::before {
  content: "";
  width: 44px;
  height: 1px;
  flex: 0 0 44px;
  margin-top: .8rem;
  background: var(--gold);
}
.draw-button {
  appearance: none;
  border: 1px solid var(--gold);
  border-radius: 100px;
  padding: 1rem 1.55rem;
  background: var(--gold);
  color: #101826;
  cursor: pointer;
  font: 700 .82rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.draw-button:hover { transform: translateY(-2px); background: var(--gold-pale); }
.draw-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.draw-button[disabled] { cursor: default; opacity: .65; transform: none; }

.card-stage { perspective: 1300px; justify-self: center; width: min(100%, 390px); }
.oracle-card {
  position: relative;
  aspect-ratio: 4 / 5;
  transform-style: preserve-3d;
  transition: transform .95s cubic-bezier(.2, .72, .25, 1);
}
.oracle-card.is-revealed { transform: rotateY(180deg); }
.card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(232, 210, 154, .55);
  border-radius: 180px 180px 24px 24px;
  box-shadow: var(--shadow);
  backface-visibility: hidden;
}
.card-back {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(rgba(4, 11, 23, .22), rgba(4, 11, 23, .54)),
    url("assets/porte-lunaire.webp") center / cover;
}
.card-back::before, .card-front::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(232, 210, 154, .48);
  border-radius: 170px 170px 16px 16px;
  pointer-events: none;
}
.card-sigil {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-pale);
  border-radius: 50%;
  background: rgba(7, 17, 31, .58);
  color: var(--gold-pale);
  font-size: 2.6rem;
  box-shadow: 0 0 0 10px rgba(7, 17, 31, .18);
}
.card-front {
  transform: rotateY(180deg);
  padding: 3.8rem 2.3rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(63, 103, 145, .38), transparent 43%),
    linear-gradient(155deg, #13294a, #07111f 72%);
}
.card-number { font: .7rem/1 Arial, sans-serif; letter-spacing: .22em; color: var(--gold-pale); }
.card-icon { color: var(--gold); font-size: 3rem; line-height: 1; }
.card-title { margin: .8rem 0 .7rem; font-size: clamp(2rem, 5vw, 3.1rem); }
.card-keyword { margin: 0; color: var(--paper-soft); font-style: italic; }
.card-seal { font: .68rem/1.4 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #a89d8b; }

.reading-wrap {
  width: min(840px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 6rem;
}
.reading {
  display: none;
  padding: clamp(1.6rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reading.is-visible { display: block; animation: rise .65s ease both; }
.reading h2 { margin: 0 0 1.5rem; font-size: clamp(2.2rem, 5vw, 4rem); }
.reading p { max-width: 700px; color: var(--paper-soft); }
.reading .question {
  margin-top: 2rem;
  padding-left: 1.3rem;
  border-left: 2px solid var(--gold);
  color: var(--paper);
  font-size: 1.1rem;
  font-style: italic;
}
.disclaimer { margin-top: 2rem; font: .76rem/1.6 Arial, sans-serif; color: #918b82; }

.manifesto {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 4rem;
  border-top: 1px solid var(--line);
}
.manifesto h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.8rem); }
.manifesto-copy { max-width: 680px; color: var(--paper-soft); }
.manifesto-copy p:first-child { margin-top: 0; font-size: 1.2rem; color: var(--paper); }

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: #8f887c;
  font: .76rem/1.6 Arial, sans-serif;
}
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--paper); }

.text-page {
  width: min(780px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 8rem) 0;
}
.text-page h1 { font-size: clamp(3rem, 7vw, 6rem); }
.text-page h2 { margin-top: 3rem; font-size: 2rem; }
.text-page p, .text-page li { color: var(--paper-soft); }
.back-link { display: inline-block; margin-top: 2rem; color: var(--gold-pale); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 820px) {
  .site-header { min-height: 72px; }
  .nav a:not(:last-child) { display: none; }
  .oracle-shell { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .oracle-copy { text-align: center; }
  .intro, .ritual-note { margin-left: auto; margin-right: auto; }
  .ritual-note { text-align: left; }
  .card-stage { margin-top: 1rem; width: min(86vw, 370px); }
  .manifesto { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
