:root {
  color-scheme: dark;
  --ink: #080909;
  --ink-soft: #101111;
  --paper: #f4eee8;
  --paper-muted: #c9beb5;
  --line: rgba(244, 238, 232, 0.16);
  --line-strong: rgba(244, 238, 232, 0.34);
  --red: #d01822;
  --red-deep: #8d0e15;
  --red-soft: rgba(208, 24, 34, 0.14);
  --gold: #bf9a64;
  --max: 1320px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 12%, rgba(121, 19, 26, 0.1), transparent 26rem),
    radial-gradient(circle at 8% 72%, rgba(111, 86, 63, 0.08), transparent 30rem),
    linear-gradient(145deg, #090a0a 0%, #0d0e0e 52%, #080909 100%);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.1;
  pointer-events: none;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  transform: translateY(-180%);
  border: 1px solid var(--paper);
  background: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(244, 238, 232, 0.1);
  background: rgba(8, 9, 9, 0.88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto minmax(10rem, 1fr);
  align-items: center;
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: 76px;
  margin: 0 auto;
  gap: 1.5rem;
}

.wordmark {
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  letter-spacing: 0.29em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav,
.language-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a,
.language-nav a {
  position: relative;
  min-height: 44px;
  align-content: center;
  font-family: var(--serif);
  font-size: 0.92rem;
  text-decoration: none;
}

.main-nav a::after,
.language-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.45rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  content: "";
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.language-nav a:hover::after,
.language-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-nav {
  justify-self: end;
  gap: 0.8rem;
}

.language-nav span {
  color: #746e69;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(790px, calc(100svh - 76px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0 0 0 52%;
  z-index: -2;
  background:
    linear-gradient(90deg, #090a0a 0%, transparent 35%),
    radial-gradient(circle at 64% 42%, rgba(201, 21, 31, 0.18), transparent 21rem),
    linear-gradient(150deg, #151515 0%, #090a0a 58%);
  content: "";
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(90deg, rgba(8, 9, 9, 0.98) 0%, rgba(8, 9, 9, 0.93) 48%, rgba(8, 9, 9, 0.28) 100%);
  content: "";
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
  align-items: center;
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 8rem) 0;
  gap: clamp(2rem, 5vw, 6rem);
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 43rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
  color: var(--paper-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 1px;
  background: var(--red);
  content: "";
}

.hero h1,
.section-heading h2,
.about-copy h2,
.coming-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(4.6rem, 10vw, 9.4rem);
  letter-spacing: -0.05em;
  line-height: 0.82;
}

.hero-tagline {
  max-width: 24ch;
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.12;
  text-wrap: balance;
}

.hero-intro {
  max-width: 54ch;
  margin: 1.35rem 0 0;
  color: var(--paper-muted);
  font-size: 1.04rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--red);
  background: linear-gradient(135deg, var(--red-deep), var(--red));
  color: #fff7f2;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #e01a25;
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--paper);
}

.button-ghost:hover {
  border-color: var(--paper);
  background: rgba(244, 238, 232, 0.06);
}

.hero-books {
  position: relative;
  min-height: 530px;
  transform: translateX(2%);
}

.hero-book {
  position: absolute;
  top: 50%;
  width: clamp(12rem, 19vw, 17rem);
  overflow: hidden;
  border: 1px solid rgba(244, 238, 232, 0.26);
  background: #141414;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.58);
}

.hero-book img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-book:nth-child(1) {
  z-index: 2;
  left: 3%;
  transform: translateY(-49%) rotate(-7deg);
}

.hero-book:nth-child(2) {
  z-index: 3;
  left: 34%;
  transform: translateY(-55%) rotate(1.8deg);
}

.hero-book:nth-child(3) {
  z-index: 1;
  left: 62%;
  transform: translateY(-44%) rotate(8deg);
}

.thread-art {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.thread-art path {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-width: 2.3;
  filter: drop-shadow(0 0 7px rgba(208, 24, 34, 0.38));
  vector-effect: non-scaling-stroke;
}

.thread-art .thread-shadow {
  stroke: #56080d;
  stroke-width: 5.5;
  opacity: 0.45;
}

.hero .thread-art path:not(.thread-shadow) {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-thread 2.2s 250ms cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

@keyframes draw-thread {
  to {
    stroke-dashoffset: 0;
  }
}

.books-section,
.tarot-section,
.about-section,
.coming-section {
  position: relative;
  isolation: isolate;
}

.books-section {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.books-shell,
.about-shell,
.footer-shell {
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 34rem);
  align-items: end;
  margin-bottom: 2.2rem;
  gap: 2rem;
}

.section-heading h2,
.about-copy h2,
.coming-copy h2 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-heading p,
.about-copy > p,
.coming-copy p {
  margin: 0;
  color: var(--paper-muted);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.45rem 0.95rem;
}

.book-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.book-cover {
  position: relative;
  overflow: hidden;
  margin: 0 0 1rem;
  border: 1px solid rgba(244, 238, 232, 0.2);
  background: transparent;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.34);
}

.book-cover::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  transition: border-color 180ms ease;
}

.book-card:hover .book-cover::after {
  border-color: rgba(208, 24, 34, 0.72);
}

.book-cover img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 320ms ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.025);
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.book-meta span + span::before {
  margin-right: 0.45rem;
  color: #6a625d;
  content: "•";
}

.book-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}

.book-card p {
  margin: 0.85rem 0 1.1rem;
  color: var(--paper-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.book-card .button {
  width: 100%;
  margin-top: 0.35rem;
}

.tarot-section {
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 38%, rgba(191, 154, 100, 0.12), transparent 25rem),
    linear-gradient(135deg, #0b0b0b, #12100e 55%, #090909);
}

.tarot-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  align-items: start;
  width: min(calc(100% - 2.5rem), var(--max));
  margin: 0 auto;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.tarot-gallery {
  min-width: 0;
}

.tarot-product-visual {
  position: relative;
  width: min(100%, 24rem);
  margin: 0;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.tarot-product-visual::after {
  display: none;
}

.tarot-product-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1229 / 1536;
  object-fit: contain;
}

.tarot-sealed-showcase {
  position: relative;
  display: flex;
  min-height: clamp(430px, 46vw, 610px);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(218, 188, 143, 0.52);
  box-shadow: inset 0 0 0 9px #090a0a, inset 0 0 0 10px rgba(218, 188, 143, 0.23), 0 34px 80px rgba(0, 0, 0, 0.5);
  color: #eadbc4;
  background:
    linear-gradient(132deg, transparent 48%, rgba(208, 24, 34, 0.78) 49%, rgba(208, 24, 34, 0.78) 50%, transparent 51%),
    radial-gradient(circle at center, rgba(191, 154, 100, 0.18), transparent 38%),
    #090b0c;
  text-align: center;
}

.tarot-sealed-showcase::before,
.tarot-sealed-showcase::after {
  position: absolute;
  border: 1px solid rgba(218, 188, 143, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.tarot-sealed-showcase::before {
  width: min(72%, 28rem);
  aspect-ratio: 1;
}

.tarot-sealed-showcase::after {
  width: min(88%, 35rem);
  aspect-ratio: 1;
}

.tarot-sealed-showcase > * {
  position: relative;
  z-index: 1;
  display: block;
}

.tarot-sealed-kicker,
.tarot-sealed-credit {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.tarot-sealed-kicker {
  color: var(--gold);
}

.tarot-sealed-knot {
  margin-top: 1.5rem;
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 0.72;
}

.tarot-sealed-showcase strong {
  margin-top: 1.8rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.07em;
}

.tarot-sealed-subtitle {
  margin-top: 0.3rem;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.32em;
}

.tarot-sealed-credit {
  margin-top: 2.4rem;
  color: #9f9283;
}

.tarot-visual {
  position: relative;
  margin: 0;
  border: 1px solid rgba(191, 154, 100, 0.42);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
}

.tarot-visual::after {
  position: absolute;
  inset: 1rem -1rem -1rem 1rem;
  z-index: -1;
  border: 1px solid rgba(208, 24, 34, 0.38);
  content: "";
}

.tarot-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tarot-visual figcaption,
.tarot-detail figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(transparent, rgba(5, 5, 5, 0.94));
  color: #f3e8d7;
  font-family: var(--serif);
}

.tarot-visual figcaption {
  padding: 3.5rem 1.15rem 1rem;
  font-size: 1.05rem;
}

.tarot-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.tarot-detail {
  position: relative;
  height: clamp(150px, 15vw, 200px);
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(191, 154, 100, 0.28);
  background: #090807;
}

.tarot-detail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.tarot-detail-cards img {
  object-position: 45% 92%;
  transform: scale(1.34);
}

.tarot-detail-book img {
  object-position: 100% 78%;
  transform: scale(1.44);
}

.tarot-detail figcaption {
  display: flex;
  min-height: 5.2rem;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.4rem 0.9rem 0.8rem;
}

.tarot-detail figcaption strong {
  font-size: 1.05rem;
  font-weight: 500;
}

.tarot-detail figcaption span {
  margin-top: 0.15rem;
  color: var(--paper-muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}

.tarot-copy {
  padding-top: clamp(0rem, 2vw, 1.5rem);
}

.tarot-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
}

.tarot-copy > .tarot-lead {
  max-width: 53ch;
  margin: 1.5rem 0 0;
  color: var(--paper-muted);
}

.tarot-copy blockquote {
  margin: 1.65rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--red);
  color: #f1dfc7;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  font-style: italic;
  line-height: 1.25;
}

.tarot-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.tarot-facts div {
  display: flex;
  min-height: 106px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  border: 1px solid rgba(191, 154, 100, 0.24);
  background: linear-gradient(145deg, rgba(191, 154, 100, 0.08), rgba(7, 7, 7, 0.5));
}

.tarot-facts strong {
  color: #e2c59b;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 0.9;
}

.tarot-facts span {
  margin-top: 0.55rem;
  color: var(--paper-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tarot-copy > .tarot-note {
  max-width: 54ch;
  margin: 1.35rem 0 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tarot-actions {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  margin-top: 1.8rem;
  gap: 0.7rem;
}

.tarot-actions .button,
.tarot-actions .request-status {
  width: fit-content;
  margin-top: 0;
}

.request-status {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 1.8rem;
  padding: 0.72rem 1rem;
  border: 1px solid var(--gold);
  background: rgba(191, 154, 100, 0.08);
  color: #ead8bd;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.3;
}

.coming-section {
  min-height: 760px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #090909;
}

.coming-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.coming-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.52;
}

.coming-section::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 8, 8, 0.96) 0%, rgba(7, 8, 8, 0.88) 43%, rgba(7, 8, 8, 0.28) 75%, rgba(7, 8, 8, 0.72) 100%);
  content: "";
}

.coming-shell {
  display: flex;
  width: min(calc(100% - 2.5rem), var(--max));
  min-height: inherit;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 5rem 0;
  gap: 2.4rem;
}

.coming-copy {
  max-width: 46rem;
}

.coming-label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-bottom: 1.4rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--red);
  background: rgba(8, 9, 9, 0.76);
  color: #ffe7e3;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coming-copy h2 {
  max-width: 13ch;
}

.coming-copy p {
  max-width: 54ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.coming-copy .button {
  margin-top: 1.5rem;
}

.coming-books {
  display: grid;
  width: min(100%, 58rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.coming-book {
  min-height: 10rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(191, 154, 100, 0.48);
  background: rgba(8, 9, 9, 0.8);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.coming-book-status {
  color: #e4c99f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coming-book h3 {
  margin: 0.65rem 0 0;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
}

.coming-book p {
  margin: 0.75rem 0 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.about-section {
  padding: clamp(5.5rem, 10vw, 9.5rem) 0;
  overflow: hidden;
}

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 8rem);
}

.about-mark {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 20%, rgba(208, 24, 34, 0.18), transparent 11rem),
    linear-gradient(145deg, #151515, #090a0a 70%);
}

.about-mark::before {
  position: absolute;
  inset: 11% 9%;
  border: 1px solid rgba(208, 24, 34, 0.35);
  content: "";
}

.about-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(5rem, 12vw, 10rem);
  letter-spacing: -0.08em;
  line-height: 1;
}

.about-copy h2 {
  max-width: 11ch;
}

.about-copy > p {
  max-width: 62ch;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}

.themes {
  display: flex;
  flex-wrap: wrap;
  margin: 2rem 0 0;
  padding: 0;
  gap: 0.65rem;
  list-style: none;
}

.themes li {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-strong);
  color: var(--paper-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 138px;
  gap: 2rem;
}

.footer-note {
  margin: 0;
  color: #8f8781;
  font-family: var(--serif);
  font-style: italic;
}

.footer-meta {
  margin: 0;
  color: #817a75;
  font-size: 0.82rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .book-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-shell {
    grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  }

  .hero-books {
    transform: translateX(-4%);
  }
}

@media (max-width: 860px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    min-height: auto;
    padding: 0.9rem 0;
    gap: 0.45rem 1rem;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .language-nav {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    padding-top: 5.5rem;
  }

  .hero-copy {
    max-width: 47rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(4.6rem, 17vw, 8rem);
  }

  .hero-books {
    width: min(100%, 42rem);
    min-height: 460px;
    margin: 0 auto;
    transform: none;
  }

  .hero-book {
    width: clamp(11rem, 31vw, 15rem);
  }

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

  .section-heading,
  .tarot-shell,
  .about-shell {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    max-width: 58ch;
  }

  .about-mark {
    min-height: 320px;
  }
}

@media (max-width: 620px) {
  .nav-shell,
  .books-shell,
  .tarot-shell,
  .about-shell,
  .footer-shell,
  .hero-shell,
  .coming-shell {
    width: min(calc(100% - 1.5rem), var(--max));
  }

  .main-nav {
    gap: 1.2rem;
  }

  .hero-shell {
    padding-top: 4.25rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.2rem);
  }

  .hero-tagline {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
  }

  .hero-books {
    min-height: 390px;
  }

  .hero-book {
    width: clamp(9rem, 40vw, 12rem);
  }

  .hero-book:nth-child(1) {
    left: 1%;
  }

  .hero-book:nth-child(2) {
    left: 29%;
  }

  .hero-book:nth-child(3) {
    left: 57%;
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem 0.7rem;
  }

  .book-card h3 {
    font-size: 1.24rem;
  }

  .book-card p {
    font-size: 0.9rem;
  }

  .button {
    font-size: 0.94rem;
  }

  .coming-section {
    min-height: 900px;
  }

  .coming-section::after {
    background: linear-gradient(180deg, rgba(7, 8, 8, 0.45), rgba(7, 8, 8, 0.95) 55%, #080909 100%);
  }

  .coming-shell {
    align-items: flex-start;
  }

  .coming-books {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    align-content: center;
    padding: 2rem 0;
    gap: 0.5rem;
  }
}

@media (max-width: 420px) {
  .wordmark {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }

  .language-nav {
    gap: 0.55rem;
  }

  .language-nav a {
    font-size: 0.84rem;
  }

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

  .book-cover {
    width: min(100%, 19rem);
  }

  .book-card p {
    max-width: 38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Catalogue and detail pages extend the original Penny Vela design. */
:target { scroll-margin-top: 9rem; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.content-shell { width:min(calc(100% - 2.5rem), var(--max)); margin-inline:auto; }
.page-intro { padding:clamp(3rem,7vw,6rem) 0 2rem; }
.page-intro h1, .detail-copy h1, .physical-copy h1 { margin:0; font-family:var(--serif); font-weight:400; font-size:clamp(2.5rem,5.5vw,5.1rem); line-height:1.08; letter-spacing:-.035em; overflow-wrap:break-word; text-wrap:balance; }
.page-lead { max-width:62ch; color:var(--paper-muted); font-size:1.125rem; line-height:1.7; }
.category-nav { display:flex; flex-wrap:wrap; gap:.7rem; margin:1.5rem 0 2.5rem; }
.category-nav a { display:flex; align-items:center; justify-content:center; min-height:48px; padding:.6rem 1.2rem; border:1px solid var(--line-strong); color:var(--paper); text-decoration:none; background:rgba(244,238,232,.025); font-size:1rem; }
.category-nav a:hover { border-color:var(--red); background:var(--red-soft); }
.catalog-sections { padding-bottom:5rem; }
.category-section { padding:2.5rem 0 4rem; border-top:1px solid var(--line); }
.category-heading { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:2rem; margin-bottom:2rem; }
.category-heading h2 { margin:0; font:400 clamp(2.2rem,4vw,3.6rem)/1.12 var(--serif); }
.category-heading p { margin:0; color:var(--paper-muted); max-width:49ch; }
.category-heading .eyebrow { margin-bottom:.7rem; }
.book-grid.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:3.2rem 2.3rem; max-width:68rem; }
.book-grid.home-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:2rem; }
.book-cover { display:flex; align-items:center; justify-content:flex-start; height:22rem; width:100%; border:0; box-shadow:none; overflow:visible; }
.book-cover img { width:auto; max-width:100%; height:100%; object-fit:contain; object-position:bottom left; box-shadow:0 16px 30px #0006; }
.book-cover::after { display:none; }
.book-card h3 { font-size:1.7rem; line-height:1.17; text-wrap:initial; }
.book-card h3 a { text-decoration:none; }
.book-card h3 a:hover { text-decoration:underline; text-underline-offset:.2em; }
.book-card p { font-size:1rem; }
.book-card .book-audience { margin-top:0; font-size:.9rem; color:var(--gold); }
.book-author { margin-top:.5rem; font-size:.875rem; color:var(--paper-muted); }
.book-meta { font-size:.875rem; letter-spacing:.05em; line-height:1.5; }
.book-card .button-ghost { margin-top:auto; }
.book-card .button { min-height:48px; }
.section-action { margin:2rem 0 0; }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:.7rem; padding:1.75rem 0; font-size:.9rem; color:var(--paper-muted); }
.breadcrumbs a { padding:.4rem 0; }
.breadcrumbs span { align-self:center; }
.book-detail { display:grid; grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr); align-items:start; gap:clamp(2rem,6vw,6rem); padding:1rem 0 4rem; }
.detail-cover { width:100%; max-width:25rem; margin:0 auto; }
.detail-cover img { width:100%; height:auto; box-shadow:0 20px 60px #0009; }
.detail-copy { min-width:0; }
.detail-byline { color:var(--gold); }
.detail-copy h2 { margin:2rem 0 .6rem; font:400 1.8rem/1.2 var(--serif); }
.detail-copy > p, .detail-copy section p { max-width:65ch; color:var(--paper-muted); }
.detail-copy .button { margin:.4rem 0 1.2rem; min-width:12rem; }
.book-facts { display:grid; grid-template-columns:1fr 1fr; gap:1rem 1.75rem; padding:1.5rem 0; margin:0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.book-facts dt { font-size:.875rem; color:var(--paper-muted); }
.book-facts dd { margin:.2rem 0 0; }
.edition-links a { display:block; padding:.5rem 0; }
.related-books { border-top:1px solid var(--line); padding:2rem 0; }
.related-books h2 { font:400 2rem/1.2 var(--serif); }
.related-links { display:flex; flex-wrap:wrap; gap:1.25rem; }
.related-links a, .back-link a { display:inline-block; padding:.7rem 0; }
.back-link { margin-bottom:4rem; }
.upcoming-notes { margin-top:3.5rem; padding-top:1.5rem; border-top:1px solid var(--line); }
.upcoming-notes > h3 { font:400 1.6rem/1.2 var(--serif); margin:.5rem 0; }
.upcoming-notes > p { color:var(--paper-muted); }
.upcoming-notes h4 { margin:0; font:400 1.4rem/1.3 var(--serif); }
.upcoming-notes .coming-book { min-height:0; box-shadow:none; }
.about-page { padding-bottom:6rem; }
.about-page-copy { max-width:52rem; }
.about-page-copy > p { margin:1.7rem 0; font-size:1.125rem; }
.about-categories { display:flex; flex-wrap:wrap; gap:1rem 2rem; margin-top:3rem; padding-top:2rem; border-top:1px solid var(--line); }
.about-categories a { padding:.5rem 0; }
.footer-links { display:flex; flex-wrap:wrap; gap:1.5rem; margin-top:1.2rem; }
.footer-links a { font-size:.9rem; padding:.45rem 0; color:var(--paper-muted); }
.main-nav a[aria-current="page"]::after { transform:scaleX(1); }
.eyebrow { font-size:.875rem; letter-spacing:.15em; }
.eyebrow::before { flex-shrink:0; }
.tarot-facts span { font-size:.875rem; letter-spacing:.04em; }
.request-details { width:100%; margin:1.4rem 0; border:1px solid var(--red); background:var(--red-soft); }
.request-details summary { padding:.9rem 1rem; min-height:48px; cursor:pointer; font-size:1rem; }
.request-details p { padding:0 1rem 1rem; margin:0; color:var(--paper-muted); }
.physical-copy h1 { margin-bottom:1.5rem; }
.physical-copy .tarot-facts { margin:1.5rem 0; }
.hero h1 { line-height:1; }
.hero .hero-books { transform:none; }
.hero .hero-book { margin:0; }
.hero .hero-book:nth-child(1) { left:0; }
.hero .hero-book:nth-child(2) { left:28%; }
.hero .hero-book:nth-child(3) { left:54%; }
.hero .hero-book img { width:100%; height:auto; }
@media (max-width:1120px) {
  .book-grid.home-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:3rem 2rem; }
  .book-cover { height:23rem; }
  .book-grid.catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .book-detail { grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr); gap:2rem; }
  .detail-copy h1 { font-size:clamp(2rem,4vw,3rem); }
  .nav-shell { grid-template-columns:minmax(0,1fr) auto; }
  .main-nav { flex-wrap:wrap; gap:.5rem 1.5rem; }
  .language-nav a { min-width:30px; text-align:center; }
  .hero-shell { padding-top:3.5rem; padding-bottom:2rem; }
  .hero-books { max-width:36rem; }
}
@media (max-width:620px) {
  .content-shell { width:calc(100% - 2rem); }
  .category-heading { grid-template-columns:1fr; gap:1rem; }
  .book-grid.home-grid, .book-grid.catalog-grid { grid-template-columns:minmax(0,1fr); gap:3rem; }
  .book-card { display:grid; grid-template-columns:1fr; justify-items:start; }
  .book-card .button { width:100%; max-width:26rem; }
  .book-card h3 { font-size:1.9rem; }
  .book-card p { max-width:45ch; }
  .book-cover { height:23rem; width:auto; max-width:100%; }
  .book-detail { grid-template-columns:1fr; gap:2rem; }
  .detail-cover { width:min(72%,18rem); }
  .detail-copy h1 { font-size:clamp(2.1rem,9vw,3.3rem); }
  .book-facts { grid-template-columns:1fr 1fr; }
  .book-facts dd { overflow-wrap:break-word; }
  .category-nav { display:grid; grid-template-columns:1fr 1fr; gap:.6rem; }
  .category-nav a { padding:.7rem .6rem; }
  .hero-books { min-height:340px; }
  .hero .hero-book { width:38%; }
  .hero .hero-book:nth-child(3) { left:58%; }
  .hero h1 { font-size:clamp(3.5rem,19vw,6.2rem); }
  .main-nav a { font-size:1rem; }
  .physical-copy h1 { font-size:clamp(2.5rem,12vw,4rem); }
  .page-lead { font-size:1.0625rem; }
}
@media (prefers-reduced-motion:reduce) { .hero .thread-art path:not(.thread-shadow) { stroke-dashoffset:0; } }

/* Nutrition guides extend the original red-thread author identity. */
.endo-feature { padding:3.5rem 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.endo-feature h2 { font:400 clamp(2rem,4vw,3.3rem)/1.15 var(--serif); max-width:24ch; margin:.7rem 0; }
.endo-feature p:not(.eyebrow) { max-width:64ch; color:var(--paper-muted); }
.guide { padding-bottom:2rem; }
.guide-intro { max-width:58rem; padding:1rem 0 2.5rem; }
.guide-intro h1 { font:400 clamp(2.2rem,5.5vw,4.5rem)/1.1 var(--serif); margin:.7rem 0 1.5rem; overflow-wrap:break-word; }
.guide-meta { color:var(--paper-muted); font-size:.9rem; }
.guide-layout { display:grid; grid-template-columns:minmax(13rem,1fr) minmax(0,3fr); gap:3.5rem; align-items:start; }
.guide-toc { border-top:2px solid var(--red); padding:1rem 0; }
.guide-toc h2 { font:400 1.3rem/1.4 var(--serif); margin:0 0 .8rem; }
.guide-toc ol { padding-left:1.4rem; }
.guide-toc a { display:inline-block; padding:.45rem 0; text-underline-offset:.2em; }
.guide-body { max-width:72ch; font-size:1.0625rem; }
.guide-body section { margin-bottom:2.6rem; scroll-margin-top:12rem; }
.guide-body h2,.guide-related>h2 { font:400 clamp(1.8rem,3vw,2.5rem)/1.2 var(--serif); margin:.2rem 0 1rem; }
.guide-body h3 { font:400 1.5rem/1.3 var(--serif); margin:1.6rem 0 .6rem; }
.guide-body p,.guide-body li,.guide-definitions dd { color:var(--paper-muted); }
.guide-body li { margin:.65rem 0; }
.guide-body a { color:var(--paper); text-underline-offset:.2em; }
.guide-body a:hover,.guide-toc a:hover { color:var(--gold); }
.guide-body strong { color:var(--paper); }
.guide-definitions dt { font-weight:600; margin-top:1.2rem; }
.guide-definitions dd { margin:.3rem 0 1rem; }
.guide-sources { border-top:1px solid var(--line); padding-top:1.5rem; font-size:.9375rem; }
.guide-sources h2 { font-size:1.7rem; }
.guide-book { margin:3rem 0; padding:2rem; background:var(--ink-soft); border:1px solid var(--line); border-left:3px solid var(--red); display:grid; grid-template-columns:9rem minmax(0,1fr); gap:2rem; align-items:center; }
.guide-book-cover img { width:100%; height:auto; }
.guide-book h2 { font:400 clamp(1.6rem,3vw,2.2rem)/1.2 var(--serif); margin:.5rem 0; }
.guide-book p { max-width:60ch; }
.guide-actions { display:flex; flex-wrap:wrap; gap:.8rem; }
.guide-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; padding:1.5rem 0 4rem; }
.guide-grid>a { border-top:1px solid var(--line-strong); padding:1.2rem 0; text-decoration:none; }
.guide-grid h3 { font:400 1.5rem/1.3 var(--serif); margin:.5rem 0; }
.guide-grid>a:hover h3 { text-decoration:underline; text-underline-offset:.2em; }
.guide-translated { margin:auto; }
.table-scroll { overflow-x:auto; border:1px solid var(--line); margin:1.5rem 0; }
.table-scroll table { border-collapse:collapse; width:100%; min-width:620px; font-size:1rem; }
.table-scroll caption { padding:.8rem; text-align:left; color:var(--paper-muted); }
.table-scroll th,.table-scroll td { padding:.8rem; text-align:left; vertical-align:top; border:1px solid var(--line); }
.table-scroll th { background:var(--ink-soft); }
@media(max-width:960px) { .guide-layout { grid-template-columns:1fr; gap:1rem; } .guide-body { max-width:100%; } .guide-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) { .guide-book { padding:1.2rem; grid-template-columns:1fr; gap:1.2rem; } .guide-book-cover { width:8rem; } .guide-grid { grid-template-columns:1fr; gap:.3rem; } .guide-toc ol { padding-left:1.25rem; } .guide-body section { scroll-margin-top:14rem; } .guide-actions .button { width:100%; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media print { .site-header,.site-footer,.guide-toc,.guide-book,.guide-related { display:none; } body { background:white; color:black; } .guide-body p,.guide-body li,.guide-body a,.guide-body strong { color:black; } .guide-layout { display:block; } .table-scroll { overflow:visible; } .table-scroll table { min-width:0; } }
/* Allow long translated navigation labels and enlarged text to wrap. */
.main-nav { flex-wrap:wrap; }
@media (max-width:1100px) {
 .nav-shell { grid-template-columns:minmax(0,1fr) auto; min-height:auto; padding:.9rem 0; gap:.45rem 1rem; }
 .main-nav { grid-column:1 / -1; grid-row:2; justify-content:flex-start; gap:.5rem 1.5rem; }
 .language-nav { grid-column:2; grid-row:1; }
}
