/* Miritbooks.com — styles. Hebrew-first (RTL), English pages use dir=ltr. */
:root {
  --ink: #34123f;
  --rose: #f2b8c6;
  --blush: #fff6f8;
  --mist: #efe6f3;
  --teal: #12636d;
  --berry: #b3264f;
  --berry-dark: #8e1b3d;
  --white: #fff;
  --f-display: "Suez One", "Frank Ruhl Libre", Georgia, serif;
  --f-body: "Assistant", "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --measure: 62ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font: 400 1.125rem/1.75 var(--f-body);
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem;
  background: var(--ink); color: var(--blush); padding: .6rem 1rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Headings */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1em; }
.lead { font-size: 1.28rem; line-height: 1.6; max-width: 52ch; }
.muted { opacity: .78; }

/* Header */
.site-header { background: var(--blush); }
.site-header__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.5rem; padding-block: 1rem;
}
.brand { font-family: var(--f-display); font-size: 1.6rem; color: var(--ink); text-decoration: none; line-height: 1; }
.brand:hover { color: var(--berry-dark); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; font-weight: 600; font-size: 1rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--berry); color: var(--ink); }
.nav__lang { font-weight: 400; opacity: .8; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .6em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--berry); color: var(--white); }
.btn-primary:hover { background: var(--berry-dark); color: var(--white); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--blush); }
.btn-wa { background: var(--teal); color: var(--white); }
.btn-wa:hover { background: #0c4c54; color: var(--white); }
.btn-light { background: var(--rose); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-ghost-light { border-color: var(--rose); color: var(--rose); background: transparent; }
.btn-ghost-light:hover { background: var(--rose); color: var(--ink); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* Hero */
.hero { background: var(--rose); padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6rem); }
.hero__grid { display: grid; gap: 3rem; align-items: center; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.quote {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.7rem, 8.6vw, 6.2rem); line-height: 1.02; letter-spacing: -0.012em;
  margin: 0 0 .35em; text-wrap: balance;
}
.quote__src { font-size: 1.05rem; margin: 0 0 1.5rem; opacity: .85; }
.hero .lead { margin-bottom: 0; }

/* Title cards (typographic stand-ins; real covers replace them when supplied) */
.titlecard {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  aspect-ratio: 3 / 4.3; width: 100%; max-width: 250px; padding: 1.4rem 1.3rem 1.2rem;
  color: var(--white); border-radius: 4px 12px 12px 4px; border-inline-end: 12px solid rgba(0,0,0,.22);
  box-shadow: -9px 9px 0 var(--ink);
}
.titlecard__title { font-family: var(--f-display); font-size: 3.4rem; line-height: .95; margin: 0; }
.titlecard__title--num { font-size: 4.4rem; }
.titlecard__sub { font-size: .95rem; line-height: 1.35; margin: 0; opacity: .95; }
.titlecard__by { font-weight: 700; font-size: .95rem; margin: 0; }
.titlecard--bat { background: var(--berry); }
.titlecard--likes { background: var(--teal); }
.coverimg { width: 100%; max-width: 250px; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: -9px 9px 0 var(--ink); }
.hero__cards { display: flex; justify-content: center; padding-block: 1rem; }
.hero__cards .titlecard, .hero__cards .coverimg { width: 46%; }
.hero__cards > :first-child { transform: rotate(-4deg) translateY(1.2rem); z-index: 1; }
.hero__cards > :last-child { transform: rotate(3.5deg); margin-inline-start: 3%; }

/* Bands */
.band { padding-block: clamp(3rem, 8vw, 5.5rem); }
.band--mist { background: var(--mist); }
.band--ink { background: var(--ink); color: var(--blush); }
.band--ink a { color: var(--rose); }
.band--ink .btn-light { color: var(--ink); }
.band__head { max-width: 46ch; margin-bottom: 2.5rem; }
.band__head p { margin: 0; }

/* Products */
.product { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: 2.5rem; border-top: 2px solid var(--ink); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product__info h3 { margin-bottom: .35em; }
.product__info h3 a { color: inherit; text-decoration: none; }
.product__info h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.product__meta { margin: 0 0 1.25rem; padding: 0; list-style: none; opacity: .85; font-size: 1rem; }
.price { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; margin: 0 0 .25rem; }
.price__note { font-size: .95rem; opacity: .82; margin: 0 0 1rem; }

/* Bundle */
.bundle { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
.bundle .price { font-size: 3.6rem; color: var(--rose); }

/* More to come */
.soon { border: 2px dashed var(--ink); border-radius: 16px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.soon h3 { margin-bottom: .2em; }
.soon p { margin: 0; }

/* Lists / prose */
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; }
.prose li { margin-bottom: .5em; }
.page-head { padding-block: clamp(2rem, 6vw, 4rem) 1rem; }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-bottom: 0; }
.crumbs { font-size: .95rem; padding-block: .5rem 0; opacity: .85; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .6rem; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: .6rem; opacity: .5; }

/* Facts */
.facts { display: grid; gap: .5rem 2rem; grid-template-columns: max-content 1fr; margin: 1.5rem 0; padding: 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }

/* Callout */
.note { background: var(--mist); border-inline-start: 6px solid var(--berry); padding: 1.1rem 1.4rem; border-radius: 4px 12px 12px 4px; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }

/* Blog list */
.posts { list-style: none; margin: 0; padding: 0; max-width: 780px; }
.posts li { padding-block: 1.4rem; border-top: 2px solid var(--ink); }
.posts li:last-child { border-bottom: 2px solid var(--ink); }
.posts h3 { margin-bottom: .25em; }
.posts h3 a { color: var(--ink); text-decoration: none; }
.posts h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.posts p { margin: 0; }
.posts time { font-size: .95rem; opacity: .75; display: block; margin-bottom: .2rem; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 2px solid var(--ink); padding-block: .9rem; }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-display); font-size: 1.6rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .7rem 0 0; }

/* 102 likes counter */
.likes { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 2.4rem; color: var(--berry); margin: 0 0 1rem; }
.likes svg { width: 1.1em; height: 1.1em; }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 2rem 0; }
.share .btn { min-height: 42px; padding: .35em 1.1em; font-size: .95rem; }
.share__status { font-size: .95rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--blush); padding-block: 3rem 2rem; font-size: 1rem; }
.site-footer a { color: var(--rose); }
.site-footer__grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h2 { font-size: 1.25rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4em; }
.site-footer__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,246,248,.25); font-size: .9rem; opacity: .85; }

/* LTR (English) tweaks */
html[dir="ltr"] .titlecard { border-radius: 12px 4px 4px 12px; }
html[dir="ltr"] .note { border-radius: 12px 4px 4px 12px; }
html[dir="ltr"] .titlecard, html[dir="ltr"] .coverimg { box-shadow: 9px 9px 0 var(--ink); }

/* Responsive */
@media (max-width: 860px) {
  .hero__grid, .bundle, .site-footer__grid { grid-template-columns: 1fr; }
  .hero__cards { order: -1; justify-content: flex-start; }
  .hero__cards .titlecard, .hero__cards .coverimg { width: 40%; }
  .product { grid-template-columns: 1fr; }
  .product .titlecard, .product .coverimg { max-width: 200px; }
  .soon { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .8rem; }
}
@media (max-width: 520px) {
  body { font-size: 1.0625rem; }
  .actions .btn { width: 100%; }
  .nav { gap: .2rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .share, .actions { display: none; }
  body { background: #fff; }
}

/* QR payment */
.qr { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0 0; padding: .75rem; background: var(--white); border: 2px solid var(--ink); border-radius: 12px; width: fit-content; max-width: 100%; }
.qr img { width: 132px; height: 132px; image-rendering: pixelated; flex: none; }
.qr figcaption { font-weight: 700; max-width: 16ch; }
@media (max-width: 860px) { .qr { display: none; } }
