/* Family Echo System — landing page
   Palette drawn from the cover art: parchment, forest, moss, antique gold, bark. */
:root {
  --paper: #f4eedf;
  --paper-2: #ebe3cf;
  --ink: #2b2d26;
  --ink-soft: #5b5a4e;
  --forest: #2f4a31;
  --forest-deep: #22381f;
  --moss: #6f8450;
  --gold: #b48a3c;
  --gold-soft: #d9c089;
  --bark: #6b4f36;
  --line: rgba(47, 74, 49, .22);

  --serif-he: 'Frank Ruhl Libre', 'David', 'Times New Roman', serif;
  --serif-en: 'Cormorant Garamond', 'Georgia', serif;
  --sans-he: 'Heebo', 'Arial', sans-serif;
  --title-he: 'Bona Nova', 'Frank Ruhl Libre', 'David', serif;   /* main page titles only (owner request 4.11.26) */
  --sub-gap: 32px;   /* space between the "השימוש בקלפים" subtitle and its slides (owner request 4.11.26: was too close) */

  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px;
  --space-5: 64px; --space-6: 96px; --space-7: 144px;
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 280ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans-he);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif-he); font-weight: 400; margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* paper grain over a soft radial wash */
.paper {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, #fbf7ec 0%, var(--paper) 55%, var(--paper-2) 100%);
}
.paper::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'220'%20height%3D'220'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.85'%20numOctaves%3D'3'%20seed%3D'7'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%200.45%200%200%200%200%200.38%200%200%200%200%200.25%200%200%200%200.16%200'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E");
  background-size: 220px 220px;
}

/* orders hidden (config.ordersOpen:false) */
.no-orders .order, .no-orders .nav-cta, .no-orders a[href="#order"] { display: none !important; }
.no-orders .hero-actions .btn-ghost { background: var(--forest); color: var(--paper); border-color: var(--forest); }
/* hero lede: 3 fixed lines, centred on each other. Since 8.11.26 the first line is longer ("בסגנון צבעי מים –"),
   so the size also follows the text column, keeping that line on one line (it is ~13.1 em wide) */
.lede.lede-main { font-size: min(1.35rem, calc((100vw - 48px) / 13.8)); }
@media (min-width: 901px) { .lede.lede-main { font-size: clamp(1.2rem, calc((100vw - 400px) / 28), 1.9rem); } }
.lede.lede-main { font-family: var(--serif-he); color: var(--ink); line-height: 1.5; width: fit-content; max-width: 100%; text-align: center; margin-top: 0; }

/* ---------- access gate ---------- */
.locked body > *:not(.gate) { display: none !important; }
/* owner-only pages and links: visible only where an admin signed in to /nihul */
html:not(.owner) [data-private] { display: none !important; }
.gate { display: none; }
.locked .gate {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(120% 80% at 50% -10%, #fbf7ec 0%, var(--paper) 55%, var(--paper-2) 100%);
}
.gate-card {
  text-align: center; padding: 48px clamp(28px, 8vw, 64px);
  background: rgba(251, 247, 236, .8); border: 1px solid rgba(107, 79, 54, .25); border-radius: 6px;
  box-shadow: 0 40px 80px -50px rgba(43, 45, 38, .45);
}
.gate-title { font-family: 'Bona Nova', var(--serif-en); font-size: 1.9rem; color: var(--forest); }
.gate-sub { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; letter-spacing: .06em; }
.gate form { margin-top: 24px; display: flex; gap: 10px; justify-content: center; }
#gateCode {
  width: 130px; text-align: center; font-size: 1.3rem; letter-spacing: .35em; min-height: 48px;
  border: 1px solid rgba(107, 79, 54, .35); border-radius: var(--radius); background: rgba(255,255,255,.6);
}
#gateCode:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 74, 49, .12); }
.gate-err { margin-top: 14px; color: #a8432f; font-size: .9rem; }
.gate-card.shake { animation: gate-shake 280ms var(--ease-out); }
@keyframes gate-shake { 25% { transform: translateX(-7px); } 60% { transform: translateX(6px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .gate-card.shake { animation: none; } }

/* ---------- header ---------- */
/* brand = the box logo's lettering (owner request 8.11.26): "Family ecHo system™" and "תיבת תהודה משפחתית"
   both in Bona Nova, forest, Hebrew at 0.788 of the English size and centred under it, ™ as in the logo */
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.brand-en { font-family: 'Bona Nova', var(--serif-en); font-size: 1.15rem; color: var(--forest); letter-spacing: 0; }
.brand-he { font-family: 'Bona Nova', var(--serif-he); font-size: calc(1.15rem * .788); color: var(--forest); letter-spacing: 0; margin-top: .3em; }
.tm { font-size: .311em; position: relative; bottom: .794em; vertical-align: baseline; margin-left: .12em; line-height: 0; letter-spacing: 0; }
.h { color: var(--gold); font-weight: 500; }
/* ---------- side menu + pages ---------- */
:root { --side-w: 236px; }
body { padding-right: var(--side-w); }
.side {
  position: fixed; top: 0; bottom: 0; right: 0; width: var(--side-w); z-index: 30;
  display: flex; flex-direction: column; gap: 40px; padding: 40px 30px 32px;
  background: color-mix(in srgb, var(--paper) 90%, #fff); border-left: 1px solid var(--line);
}
.side .brand { align-self: flex-start; align-items: center; }   /* block sits at the right; the two lines are centred on each other */
.side .brand > span { text-align: center; white-space: nowrap; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  position: relative; padding: 11px 16px 11px 0; border-inline-start: 2px solid transparent;
  font-family: var(--serif-he); font-size: 1.14rem; letter-spacing: .04em; color: var(--ink-soft);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.side-nav a:hover { color: var(--forest); }
.side-nav a.on { color: var(--forest); border-inline-start-color: var(--gold); padding-inline-start: 20px; }
/* desktop side menu: the selected tab is a forest "pill" like the site's buttons
   (owner choice 4.11.26 — the thin gold line was not visible enough). The phone tab bar has the same pill since 6.11.26 (end of file). */
@media (min-width: 901px) {
  .side-nav a { border-radius: 999px; transition: none; }   /* no fade: the pill shows in full at once */
  .side-nav a.on, .side-nav a.on:hover { color: var(--paper); background: var(--forest); border-inline-start-color: transparent; padding-inline: 20px 16px; box-shadow: 0 8px 18px -12px rgba(34, 56, 31, .8); }
}
.nav-cta { align-self: flex-start; color: var(--forest); border: 1px solid var(--forest); border-radius: 999px; padding: 8px 20px; font-size: .95rem; }
.nav-cta:hover { background: var(--forest); color: var(--paper); }
.js main [data-view]:not(.view-on) { display: none; }
main { min-height: 100svh; }
.theory { max-width: 1040px; margin: 0 auto; padding-block: var(--space-6); }
.theory-intro { max-width: 52ch; margin: calc(-1 * var(--space-4, 40px)) auto var(--space-5); text-align: center; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.85; }

/* theory: card constellations, each with its quote */
.th-list { display: grid; gap: clamp(88px, 11vw, 150px); }
.th-row { display: grid; align-items: center; }
.th-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); }
.th-center { justify-items: center; gap: 44px; text-align: center; }

.th-card {
  position: relative; margin: 0; padding: 6px; background: #fbf8ef; border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 22px 44px -24px rgba(43, 45, 38, .55), 0 0 0 1px rgba(107, 79, 54, .18);
  transition: transform 520ms var(--ease-out), box-shadow 260ms var(--ease-out);
}
.th-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; }

.th-triad { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; direction: ltr; }
.th-triad .th-card { position: absolute; width: 58%; }
.th-triad .th-card:nth-child(1) { left: 0; top: 0; transform: rotate(-3deg); }
.th-triad .th-card:nth-child(2) { left: 40%; top: 38%; transform: rotate(2deg); z-index: 1; }

.th-fan { display: flex; justify-content: center; direction: ltr; padding-top: 18px; }
.th-fan .th-card { width: clamp(160px, 22vw, 230px); margin-inline: -16px; }
.th-fan .th-card:nth-child(1) { transform: translateY(14px) rotate(-6deg); }
.th-fan .th-card:nth-child(2) { transform: rotate(4deg); z-index: 1; }

.th-pair { display: flex; justify-content: center; gap: clamp(20px, 3vw, 36px); direction: ltr; }
.th-pair .th-card { width: clamp(150px, 20vw, 210px); }
.th-pair .th-card:nth-child(1) { transform: rotate(-2.5deg); }
.th-pair .th-card:nth-child(2) { transform: rotate(2deg) translateY(10px); }

.th-duo { display: grid; gap: clamp(64px, 8vw, 104px); }
.th-single { grid-template-columns: clamp(150px, 19vw, 210px) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); max-width: 720px; }
.th-single:nth-child(1) .th-card { transform: rotate(2deg); }
.th-single:nth-child(2) { margin-inline-start: auto; }
.th-single:nth-child(2) .th-card { transform: rotate(-2deg); }

@media (hover: hover) {
  .th-art .th-card:hover { z-index: 5; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 34px 60px -28px rgba(43, 45, 38, .6), 0 0 0 1px rgba(107, 79, 54, .26); }
  .th-triad .th-card:hover, .th-pair .th-card:hover, .th-single .th-card:hover { transform: translateY(-6px) rotate(0deg); }
  .th-fan .th-card:hover { transform: translateY(-14px) rotate(0deg); }
}

.th-quote { position: relative; margin: 0; text-align: right; }
.th-center .th-quote { text-align: center; max-width: 50ch; }
.th-qt { font-family: var(--serif-he); font-size: clamp(1.22rem, 1.9vw, 1.55rem); line-height: 1.62; color: var(--ink); text-wrap: balance; }
.th-quote p { display: inline; margin: 0; }
.th-quote p::after { content: "."; }
.th-mark {
  display: inline-block; height: .5em; vertical-align: -.36em;
  font-family: var(--serif-en); font-size: 2.97em; line-height: 1; color: var(--gold); opacity: .7;
}
.th-open { margin-inline-end: .08em; }
.th-close { margin-inline-start: .08em; }
.th-quote cite {
  display: block; margin-top: 18px; text-align: inherit; font-style: normal;
  font-family: var(--serif-en); font-size: 1.08rem; letter-spacing: .06em; color: var(--forest);
}
.th-side .th-quote cite, .th-single .th-quote cite { text-align: right; }
.th-quote cite::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.th-side .th-quote cite::before, .th-single .th-quote cite::before { content: none; }
.th-side .th-quote cite::after, .th-single .th-quote cite::after { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--gold); vertical-align: middle; margin-left: 10px; }

.th-quote cite a { border-bottom: 1px solid var(--gold-soft); padding-bottom: 1px; transition: color 200ms var(--ease), border-color 200ms var(--ease); }
.th-quote cite a::after { content: "\2197"; display: inline-block; margin-left: 5px; font-size: .8em; color: var(--gold); transition: transform 200ms var(--ease-out); }
.th-quote cite a:hover { color: var(--forest-deep); border-bottom-color: var(--forest); }
.th-quote cite a:hover::after { transform: translate(1px, -1px); }

/* "short explanation about access" — button under the title, text under the last source */
.th-access-link { text-align: center; margin: calc(-1 * var(--space-4, 40px)) 0 var(--space-6); }
.th-access-link a {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 26px; border: 1px solid var(--forest); border-radius: 999px;
  font-family: var(--sans-he); font-size: 1.06rem; letter-spacing: .03em; color: var(--forest); background: color-mix(in srgb, var(--paper) 70%, #fff);
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.th-access-link a::before { content: "\2193"; color: var(--gold); font-family: var(--serif-en); font-size: 1.1em; transition: transform 220ms var(--ease-out); }
.th-access-link a:hover { background: var(--forest); color: var(--paper); }
.th-access-link a:hover::before { transform: translateY(2px); }
.th-access {
  max-width: 54ch; margin: 34px auto 0; padding: 20px 26px; text-align: center;
  border: 1px solid var(--gold-soft); border-radius: 4px; background: color-mix(in srgb, var(--paper) 65%, #fff);
  color: var(--ink-soft); font-size: 1.02rem; line-height: 1.8; scroll-margin-top: 30vh;
}
.th-access b { color: var(--forest); font-weight: 500; }
.th-access:focus { outline: none; }
.th-access.flash { animation: th-flash 1600ms var(--ease) 1; }
@keyframes th-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 138, 60, 0); } 30% { box-shadow: 0 0 0 6px rgba(180, 138, 60, .28); } }

.th-reading { max-width: 760px; margin: var(--space-7) auto 0; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.th-reading h3 { text-align: center; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: .1em; font-weight: 300; color: var(--forest); margin-bottom: var(--space-4, 40px); }
.th-reading h3::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin: 16px auto 0; }
.th-refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.th-refs li { padding-left: 2.2em; text-indent: -2.2em; font-family: var(--serif-en); font-size: 1.08rem; line-height: 1.6; color: var(--ink-soft); text-align: left; }
.th-refs li.he { padding-left: 0; padding-right: 2.2em; font-family: var(--serif-he); font-size: 1.02rem; text-align: right; }

@media (max-width: 900px) {
  .th-side { grid-template-columns: 1fr; text-align: center; }
  .th-side .th-quote, .th-single .th-quote { text-align: center; max-width: 40ch; justify-self: center; }
  .th-side .th-quote cite, .th-single .th-quote cite { text-align: center; }
  .th-side .th-quote cite::after, .th-single .th-quote cite::after { content: none; }
  .th-side .th-quote cite::before, .th-single .th-quote cite::before { content: ""; }
  .th-triad { width: min(84vw, 380px); }
  .th-fan .th-card { width: 32vw; margin-inline: -3vw; }
  .th-pair .th-card { width: 38vw; }
  .th-single { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .th-single .th-card { width: min(56vw, 230px); }
  .th-single:nth-child(2) { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) { .th-card { transition: none; } }
.show-link {
  display: inline-block; margin-top: 18px; color: var(--forest); font-size: .98rem;
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 2px; transition: border-color var(--dur) var(--ease);
}
.show-link::after { content: " ←"; color: var(--gold); }
.show-link:hover { border-bottom-color: var(--forest); }
@media (max-width: 900px) {
  body { padding-right: 0; }
  .side {
    position: sticky; top: 0; bottom: auto; width: auto; gap: 6px;
    padding: 10px 14px 0; border-left: 0; border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 94%, #fff);
  }
  .side .brand-en { font-size: 1.2rem; }
  .side .brand-he { font-size: calc(1.2rem * .788); }
  .side-nav { flex-direction: row; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .side-nav a {
    padding: 8px 12px 10px; border-inline-start: 0; border-bottom: 2px solid transparent;
    font-size: 1rem; white-space: nowrap;
  }
  .side-nav a.on { padding-inline-start: 12px; border-bottom-color: var(--gold); }
  .side .nav-cta { display: none; }
  .show-text .show-link { margin-inline: auto; }
}

/* ---------- hero ---------- */
main { padding-inline: clamp(16px, 5vw, 56px); }
.hero {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center;
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(40px, 8vh, 96px) clamp(48px, 9vh, 120px);
  min-height: 100svh;
}
.eyebrow {
  font-size: .85rem; letter-spacing: .22em; color: var(--moss); font-weight: 400;
  margin-bottom: var(--space-3);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--gold); vertical-align: middle; margin-inline-end: 12px; }
h1 { display: flex; flex-direction: column; gap: 10px; }
.title-en { font-family: var(--serif-en); font-size: clamp(2.6rem, 5.6vw, 4.6rem); color: var(--forest); line-height: 1; letter-spacing: -.005em; align-self: flex-start; }
.title-he { font-size: clamp(1.7rem, 3.2vw, 2.5rem); color: var(--ink); font-weight: 300; letter-spacing: .06em; }
.lede { margin-top: var(--space-3); max-width: 34ch; font-size: 1.12rem; color: var(--ink-soft); }
.hero-actions { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: 12px; }
/* "מאת עדי צביאלי": same lettering as the name in the contact postcard signature (owner request 4.11.26) */
.byline { margin-top: var(--space-4); font-family: var(--serif-he); font-weight: 400; color: var(--bark); letter-spacing: .12em; font-size: 1.05rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-weight: 400; font-size: 1rem; letter-spacing: .02em;
  border: 1px solid var(--forest);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary { background: var(--forest); color: var(--paper); box-shadow: 0 10px 24px -14px rgba(34, 56, 31, .7); }
.btn-primary:hover { background: var(--forest-deep); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(34, 56, 31, .8); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); }
.btn:active { transform: translateY(0); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }

/* framed artwork */
.frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -30px rgba(43, 45, 38, .45),
    0 0 0 1px rgba(107, 79, 54, .18);
}
.frame::before {
  content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(244, 238, 223, .55); border-radius: 2px;
}
.frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hero-art { margin: 0; justify-self: center; width: min(100%, 520px); }
.hero-art figcaption {
  margin-top: 14px; text-align: center; font-family: var(--sans-he);
  color: var(--ink-soft); letter-spacing: .14em; font-size: .9rem;
}

/* ---------- copyright shield ----------
   Images get no pointer events; a transparent layer sits on top so
   right-click / drag / long-press target the layer, never the image. */
.protected img { pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.shield { position: absolute; inset: 0; z-index: 3; background: transparent; -webkit-touch-callout: none; user-select: none; }
@media print { .protected img { display: none !important; } .frame::after { content: "© עדי צביאלי"; display: block; padding: 60px; text-align: center; } }

/* ---------- sections ---------- */
.section-head { text-align: center; margin-bottom: var(--space-5); }
.section-head h2 { font-family: var(--title-he); font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: .1em; font-weight: 400; }
.section-head p { margin-top: 8px; font-family: var(--serif-he); font-size: 1.12rem; line-height: 1.5; color: var(--bark); letter-spacing: .02em; }
.orn { display: block; color: var(--gold); font-size: 1.3rem; margin-bottom: 8px; line-height: 1; }

.cards { max-width: 1180px; margin: 0 auto; padding-block: var(--space-4) var(--space-6); }
.cards .section-head { margin-bottom: 0; }
/* slides start at the same height as in "השימוש בקלפים": its subtitle line (8px + 1.12rem × 1.5) + the gap under it */
.cards .showcase { margin-top: calc(8px + 1.68rem + var(--sub-gap)); }
/* prev / next arrows (fullscreen viewer) */
.arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; z-index: 4;
  display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 50%;
  border: 1px solid rgba(180, 138, 60, .55); background: rgba(251, 247, 236, .85); color: var(--forest);
  box-shadow: 0 6px 16px -8px rgba(43, 45, 38, .4); opacity: .9;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), background 200ms var(--ease-out);
}
.arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .arrow:hover { opacity: 1; background: #fff; }
}


/* ---------- card showcase (carousel) ---------- */
.showcase { position: relative; max-width: 960px; margin: var(--space-4) auto 0; padding-inline: 76px; }
.show-track { display: grid; }
.show-row {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 34ch) minmax(0, 380px);
  justify-content: center; align-items: start; gap: clamp(28px, 4vw, 52px);   /* top-aligned so the slide number sits at the same height on every slide */
  opacity: 0; visibility: hidden; transition: opacity 600ms var(--ease-out), visibility 0s linear 600ms;
}
.show-row.active { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease-out), visibility 0s; }
.show-row .show-text { transform: translateY(10px); transition: transform 700ms var(--ease-out); }
.show-row .show-card { transition: transform 700ms var(--ease-out), box-shadow 260ms var(--ease-out); }
.show-row.active .show-text { transform: none; transition-delay: 120ms; }
.show-text { max-width: 34ch; }
/* slide numbers: same font, color and place as before, only larger and bold (owner request 4.11.26) */
/* colour #a07a35: a touch darker than --gold so the numbers reach the 3:1 contrast standard on the darkest paper (owner request 4.11.26) */
.show-num { display: block; text-align: right; font-family: var(--serif-en); font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: .08em; color: #a07a35; }
.show-text h3 {
  margin-top: 10px; font-family: var(--serif-he); font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem); line-height: 1.3; color: var(--forest); text-wrap: balance;
}
.show-text .show-sub {
  margin-top: 10px; font-family: var(--serif-he); font-size: 1.12rem; line-height: 1.5;
  color: var(--bark); letter-spacing: .02em; text-wrap: balance;
}
.show-text .show-sub::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin-top: 18px; }
.show-text p { margin-top: 16px; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.85; text-wrap: pretty; }
.show-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -32px rgba(43, 45, 38, .5), 0 0 0 1px rgba(107, 79, 54, .2);
  transform: rotate(-1deg) scale(.97);
}
.show-row.active .show-card { transform: rotate(-1deg); }
.show-card::before { content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none; border: 1px solid rgba(244, 238, 223, .55); border-radius: 2px; }
.show-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .show-row.active .show-card:hover { transform: translateY(-4px) rotate(0deg); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 70px -32px rgba(43, 45, 38, .55), 0 0 0 1px rgba(107, 79, 54, .28); }
}
.show-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 50px; height: 50px; display: grid; place-items: center; padding: 0; cursor: pointer; border-radius: 50%;
  border: 1px solid rgba(180, 138, 60, .45); background: rgba(251, 247, 236, .7); color: var(--forest);
  opacity: .7; transition: opacity 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.show-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.show-prev { right: 0; }
.show-next { left: 0; }
@media (hover: hover) and (pointer: fine) {
  .show-arrow:hover { opacity: 1; background: #fff; }
  .show-prev:hover { transform: translateY(-50%) translateX(3px); }
  .show-next:hover { transform: translateY(-50%) translateX(-3px); }
}
.show-bar { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 36px; }
.show-dots { display: flex; justify-content: center; gap: 10px; }
/* pause / resume the automatic slide change (WCAG 2.2.2, added 8.11.26) */
.show-pause {
  width: 36px; height: 36px; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: 50%;
  border: 1.5px solid #a07a35; background: #fbf7ec; color: var(--forest);
  box-shadow: 0 2px 6px rgba(47, 74, 49, .12);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.show-pause svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.show-pause .ic-play { display: none; fill: currentColor; stroke-width: 1.2; }
.show-pause.is-stopped .ic-pause { display: none; }
.show-pause.is-stopped .ic-play { display: inline; }
@media (hover: hover) and (pointer: fine) { .show-pause:hover { background: var(--forest); border-color: var(--forest); color: #f4eedf; } }
.show-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.show-dot i {
  position: relative; display: block; width: 9px; height: 9px; border-radius: 5px; overflow: hidden;
  background: rgba(160, 122, 53, .45); transition: width 300ms var(--ease-out), background 300ms var(--ease-out);
}
/* more visible progress bar (14.11.26, owner request): longer, thicker, darker gold */
.show-dot.on { width: 52px; }
.show-dot.on i { width: 48px; height: 6px; border-radius: 3px; background: rgba(160, 122, 53, .28); }
.show-dot.on i::after { content: ""; position: absolute; inset: 0; background: #a07a35; transform-origin: right; transform: scaleX(1); }
.showcase.run .show-dot.on i::after { animation: show-progress 10s linear forwards; }  /* = SLIDE_MS in app.js */
.showcase.paused .show-dot.on i::after { animation-play-state: paused; }
@keyframes show-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.deck-note {
  margin-top: clamp(56px, 8vw, 88px); text-align: center; color: var(--ink-soft);
  font-family: var(--serif-he); letter-spacing: .06em; font-size: 1.02rem;
}
.remaining { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; }
.remaining i {
  display: block; width: 14px; height: 20px; border-radius: 2px;
  background: linear-gradient(160deg, var(--gold-soft), var(--paper-2));
  border: 1px solid rgba(107, 79, 54, .25); opacity: .75;
  transform: rotate(calc(var(--r, 0) * 1deg));
}
.remaining i:nth-child(odd) { --r: -4; } .remaining i:nth-child(3n) { --r: 5; } .remaining i:nth-child(5n) { --r: -2; }

.about { max-width: 980px; margin: 0 auto; padding-block: var(--space-6); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); text-align: center; }
.fact { padding: var(--space-3) var(--space-2); }
.num { display: flex; align-items: center; justify-content: center; height: 64px; font-family: var(--serif-en); font-size: 3rem; color: var(--forest); line-height: 1; }
.num svg { width: 36px; height: 36px; fill: none; stroke: var(--forest); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.lbl { display: block; margin-top: 8px; color: var(--ink-soft); letter-spacing: .04em; font-size: .98rem; }
.quote { margin: var(--space-5) auto 0; max-width: 34ch; text-align: center; font-family: var(--serif-he); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--forest); line-height: 1.55; font-weight: 300; }
.quote::before, .quote::after { content: ""; display: block; width: 40px; height: 1px; background: var(--gold); margin: 0 auto 22px; }
.quote::after { margin: 22px auto 0; }

/* ---------- order ---------- */
.order { max-width: 1180px; margin: 0 auto; padding-block: var(--space-4) var(--space-7); }
.order-card {
  max-width: 640px; margin: 0 auto; padding: clamp(28px, 5vw, 56px);
  background: rgba(251, 247, 236, .72); border: 1px solid rgba(107, 79, 54, .2); border-radius: 6px;
  box-shadow: 0 40px 80px -50px rgba(43, 45, 38, .45);
}
.order-card .section-head { margin-bottom: var(--space-4); }
.price { font-family: var(--serif-en); font-size: 1.2rem; color: var(--forest); }
form { display: flex; flex-direction: column; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; letter-spacing: .04em; color: var(--ink-soft); font-weight: 400; }
.opt { color: #696758; font-weight: 300; }
input, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid rgba(107, 79, 54, .3); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(47, 74, 49, .12); background: #fff; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a8432f; }
input::placeholder { color: #a09d8c; }
.qty { display: grid; grid-template-columns: 48px 1fr 48px; }
.qty input { text-align: center; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { min-height: 48px; border: 1px solid rgba(107, 79, 54, .3); background: rgba(255,255,255,.55); color: var(--forest); font-size: 1.3rem; line-height: 1; transition: background var(--dur) var(--ease); }
.qty-btn:first-child { border-radius: 0 var(--radius) var(--radius) 0; border-inline-end: 0; }
.qty-btn:last-child { border-radius: var(--radius) 0 0 var(--radius); border-inline-start: 0; }
.qty-btn:hover { background: #fff; }
.total { margin-top: 6px; text-align: center; font-family: var(--serif-he); font-size: 1.15rem; color: var(--forest); letter-spacing: .06em; }
.err { color: #a8432f; font-size: .92rem; text-align: center; }
.fine { text-align: center; color: #696758; font-size: .85rem; }
.thanks { text-align: center; padding: var(--space-4) 0; }
.thanks h3 { font-size: 2rem; font-weight: 300; letter-spacing: .1em; }
.thanks p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.foot { text-align: center; padding: var(--space-5) clamp(16px, 5vw, 56px) var(--space-5); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.copy { font-family: var(--sans-he); letter-spacing: .06em; color: var(--ink); }
.legal { margin-top: 8px; max-width: 60ch; margin-inline: auto; color: #696758; }
.contact { margin-top: 14px; }
.contact a { color: var(--forest); border-bottom: 1px solid var(--gold-soft); }

/* fullscreen card view */
.fsview {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: rgba(25, 29, 22, .96); cursor: zoom-out;
}
.fsview img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; }
.fs-close {
  position: absolute; top: 18px; inset-inline-start: 18px; z-index: 101; width: 48px; height: 48px;
  border: 1px solid rgba(244, 238, 223, .4); border-radius: 50%; background: transparent; color: var(--paper);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.fs-close:hover { background: rgba(244, 238, 223, .14); }
.fs-arrow { position: fixed; top: 50%; transform: translateY(-50%); z-index: 101; }
.fs-next { left: 18px; }
.fs-prev { right: 104px; }
.fsview img#fsImg { max-width: calc(100vw - 200px); max-height: 100vh; }
/* loading ring */
.fs-spin {
  position: absolute; z-index: 102; width: 46px; height: 46px; border-radius: 50%; display: none;
  border: 3px solid rgba(244, 238, 223, .22); border-top-color: var(--gold-soft);
  animation: fs-rot .8s linear infinite;
}
@keyframes fs-rot { to { transform: rotate(360deg); } }
.fsview.loading .fs-spin { display: block; }
.fsview.loading img#fsImg { opacity: .3; }
img#fsImg { transition: opacity 180ms var(--ease-out); }
/* thumbnail strip (right side) */
.fs-strip {
  position: fixed; top: 0; bottom: 0; right: 0; width: 86px; z-index: 101;
  overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(18, 22, 16, .72); scrollbar-width: thin; cursor: default;
}
.fs-thumb { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; opacity: .7; flex: none; transition: opacity 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.fs-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.fs-thumb.on { border-color: var(--gold); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .fs-thumb:hover { opacity: 1; } }
.fsview { touch-action: none; }
.fs-strip { touch-action: pan-x pan-y; }
@media (max-width: 900px) {
  /* strip becomes a bottom bar; the card gets the full width */
  .fs-strip {
    top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 86px;
    flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 9px 10px;
  }
  .fs-thumb { width: 64px; }
  .fsview img#fsImg { max-width: 100vw; max-height: calc(100vh - 96px); margin-bottom: 86px; }
  .fs-prev { right: 8px; }
  .fs-next { left: 8px; }
}


/* ---------- accessibility statement ---------- */
.a11y-line { margin-top: 10px; }
.a11y-link {
  border: 0; background: none; padding: 4px 6px; cursor: pointer;
  font: inherit; font-size: .78rem; color: #696758; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(180, 138, 60, .5);
}
.a11y-link:hover { color: var(--forest); }
.a11y-modal {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(43, 45, 38, .45); padding: 20px;
}
.a11y-card {
  position: relative; max-width: 560px; max-height: 86vh; overflow-y: auto;
  background: #fbf7ec; border: 1px solid rgba(107, 79, 54, .3); border-radius: 6px;
  padding: 36px clamp(24px, 5vw, 44px); box-shadow: 0 40px 80px -40px rgba(43, 45, 38, .5);
  font-size: .95rem; line-height: 1.7; color: var(--ink); text-align: right;
}
.a11y-card h2 { font-size: 1.4rem; font-weight: 400; letter-spacing: .08em; margin-bottom: 14px; }
.a11y-card p { margin-bottom: 12px; }
.a11y-card ul { margin: 0 18px 12px 0; padding: 0; list-style: disc; color: var(--ink-soft); }
.a11y-card li { margin-bottom: 4px; }
.a11y-date { color: #696758; font-size: .82rem; margin-bottom: 0 !important; }
.a11y-close {
  position: absolute; top: 10px; inset-inline-start: 10px; width: 40px; height: 40px;
  border: 0; background: none; color: var(--ink-soft); font-size: 1.4rem; cursor: pointer; border-radius: 50%;
}
.a11y-close:hover { background: rgba(107, 79, 54, .1); }

/* ---------- reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--d, 0) * 120ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .show-card, .show-card img, .show-row, .show-row .show-text { transition: none; }
  .showcase .show-dot.on i::after { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: center; }
  .hero-text { order: 2; }
  .hero-art { order: 1; width: min(78vw, 420px); }
  .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .title-en { align-self: center; }
  .showcase { padding-inline: 0; }
  .show-row { grid-template-columns: 1fr; gap: 22px; text-align: center; align-content: start; }
  .show-card { order: -1; width: min(80vw, 400px); justify-self: center; }
  .show-arrow { top: min(40vw, 200px); width: 42px; height: 42px; }
  .show-prev { right: 2px; } .show-next { left: 2px; }
  .show-bar { position: absolute; left: 0; right: 0; top: calc(min(80vw, 400px) + 11px); margin-top: 0; }
  .show-row .show-text { margin-top: 30px; }
  .show-text { max-width: 52ch; margin-inline: auto; }
  .show-text .show-sub::after { margin-inline: auto; }
  .show-num { text-align: center; }
  .arrow { width: 44px; height: 44px; }
  .arrow svg { width: 22px; height: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .brand-he { display: none; }
}
.cms-wait [data-edit] { visibility: hidden; }

/* ---------- shop ---------- */
.show-card { cursor: default; }
.shop, .legal { max-width: 1040px; margin: 0 auto; padding-block: var(--space-6); }
.shop-closed { text-align: center; font-family: var(--sans-he); color: var(--ink-soft); font-size: 1.15rem; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cart, .checkout, .paystep {
  background: rgba(251, 247, 236, .78); border: 1px solid rgba(107, 79, 54, .2); border-radius: 6px;
  padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 30px 60px -44px rgba(43, 45, 38, .45);
}
.cart h3, .checkout h3, .paystep h3 { font-family: var(--serif-he); font-weight: 400; font-size: 1.35rem; color: var(--forest); letter-spacing: .04em; margin-bottom: 18px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(107, 79, 54, .2); }
.ci-text { display: flex; flex-direction: column; gap: 2px; }
.ci-text b { font-weight: 500; color: var(--ink); }
.ci-text span { font-size: .88rem; color: var(--ink-soft); }
/* spec line + "?" bubble (14.11.26) */
.ci-text .ci-spec { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.ci-text .ci-spec > span:first-child { font-size: .8rem; }
.ci-q { width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: #8c5422; font: 600 .78rem/1 Heebo, sans-serif; cursor: pointer; display: inline-grid; place-items: center; }
.ci-q:hover, .ci-q[aria-expanded="true"] { background: var(--forest); border-color: var(--forest); color: #f4eedf; }
.ci-q:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.ci-text .ci-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; white-space: nowrap; background: #fbf8ef; border: 1px solid var(--gold); border-radius: 10px; box-shadow: 0 6px 18px rgba(47,74,49,.14); }
.ci-text .ci-pop[hidden] { display: none; }
.ci-text .ci-pop span { font-size: .88rem; color: var(--ink); }
.ci-unit { color: var(--forest) !important; align-self: flex-start; }
.cart .qty { display: grid; grid-template-columns: 38px 46px 38px; }
.cart .qty input { min-height: 38px; padding: 0; text-align: center; border-radius: 0; }
.cart .qty-btn { min-height: 38px; }
.cart-sum { margin: 16px 0 0; display: grid; gap: 8px; }
.cart-sum div { display: flex; justify-content: space-between; color: var(--ink-soft); }
.cart-sum dt, .cart-sum dd { margin: 0; }
.cart-sum .grand { padding-top: 10px; border-top: 1px solid var(--line); color: var(--forest); font-family: var(--serif-he); font-size: 1.2rem; }
.cart-note { margin-top: 14px; font-size: .84rem; color: #696758; }
/* single purchase card → Summit/UPAY purchase page */
.shop-grid.shop-simple { grid-template-columns: minmax(0, 560px); justify-content: center; }
.buy-card .cart-item { grid-template-columns: 108px 1fr auto; }
.buy-price { font-family: var(--sans-he, inherit); font-size: 1.25rem; }
/* sections: shipping options (pickup note under its row) · delivery line · hint box · button · fine print */
.buy-ship { margin-top: 22px; }
.bs-head { font-family: var(--serif-he); font-size: 1.08rem; color: var(--forest); letter-spacing: .03em; margin-bottom: 10px; }
.buy-ship ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .45); }
.bs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; font-size: .95rem; color: var(--ink); }
.bs-row + .bs-row, .bs-sub + .bs-row { border-top: 1px solid var(--line); }
.bs-price { font-family: var(--sans-he); color: var(--forest); font-weight: 500; white-space: nowrap; }
.bs-sub { padding: 0 16px 12px; margin-top: -4px; font-size: .84rem; line-height: 1.6; color: var(--ink-soft); }
.bs-sub a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
.buy-delivery { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .86rem; color: var(--ink-soft); }
.buy-delivery svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.buy-hint { margin-top: 22px; padding: 12px 16px; border-radius: 6px; background: rgba(180, 138, 60, .1); border-inline-start: 3px solid var(--gold); font-size: .92rem; line-height: 1.6; color: var(--ink); }
.buy-hint b { color: var(--forest); font-weight: 500; }
.buy-card #buyBtn { margin-top: 14px; }
.owner-note { margin: 0 0 18px; padding: 10px 14px; border: 1px dashed var(--gold); border-radius: 4px; font-size: .84rem; color: var(--ink-soft); background: rgba(180, 138, 60, .08); }
/* thank-you page after Summit payment */
.thanks-body { max-width: 560px; margin: 0 auto; text-align: center; font-size: 1.05rem; line-height: 1.75; color: var(--ink-soft); }
.thanks-body p + p { margin-top: 12px; }
#thanksPhone { white-space: nowrap; font-family: var(--sans-he); }
.thanks-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.thanks-body .thanks-contact { margin-top: 32px; }
.thanks-contact a { color: var(--forest); border-bottom: 1px solid var(--gold-soft); }
/* "coming soon" note under the buy button while the shop is closed (10.11.26) */
.shop-soon { margin-top: 14px; padding: 12px 16px; border-radius: 6px; border: 1px solid rgba(180, 138, 60, .5); background: rgba(251, 247, 236, .9); color: var(--forest); text-align: center; font-size: .95rem; line-height: 1.6; animation: soon-in 320ms var(--ease-out); }
.shop-soon:empty { display: none; }
@keyframes soon-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .shop-soon { animation: none; } }
.buy-note { margin-top: 14px; font-size: .84rem; color: #696758; text-align: center; display: grid; gap: 4px; }
.buy-note a { color: var(--forest); }
.checkout { display: flex; flex-direction: column; gap: 14px; }
.checkout .notice { font-size: .84rem; color: #7d7b6c; line-height: 1.6; }
.checkout .agree { flex-direction: row; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--ink); }
.checkout .agree input { width: 18px; height: 18px; min-height: 0; margin-top: 3px; accent-color: var(--forest); flex: none; }
.checkout .agree a, .legal-body a { color: var(--forest); border-bottom: 1px solid var(--gold-soft); }
.paystep { grid-column: 2; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.paystep:focus { outline: none; }
.paystep .orn { margin: 0; }
.pay-no b { font-family: var(--serif-en); font-size: 1.15rem; letter-spacing: .06em; color: var(--forest); }
.pay-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 6px 0; }
.pay {
  min-width: 170px; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font-weight: 500; font-size: 1.02rem; color: #fff; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5);
  transition: transform 200ms var(--ease-out), filter 200ms var(--ease-out);
}
.pay-card { background: var(--forest); }
.pay:hover { transform: translateY(-1px); filter: brightness(1.06); }
.paystep p { color: var(--ink-soft); font-size: .95rem; max-width: 46ch; }
.pay-privacy { font-size: .84rem !important; color: #696758 !important; }
.foot .a11y-line a { margin: 0 2px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal-body h3 { margin-top: 30px; font-family: var(--serif-he); font-weight: 500; font-size: 1.15rem; color: var(--forest); }
.legal-body p { margin-top: 10px; line-height: 1.85; color: var(--ink-soft); }
.legal-body .legal-date { margin-top: 36px; font-size: .85rem; color: #696758; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
  .paystep { grid-column: 1; }
}

/* ---------- shop: shipping choice ---------- */
.ship { border: 0; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.ship legend { padding: 0; margin-bottom: 8px; font-size: .9rem; letter-spacing: .04em; color: var(--ink-soft); }
.ship-opt { display: flex; align-items: center; gap: 8px; }
.ship-radio {
  flex: 1; flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer;
  border: 1px solid rgba(107, 79, 54, .3); border-radius: var(--radius); background: rgba(255,255,255,.55);
  color: var(--ink); font-size: .95rem; letter-spacing: 0; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.ship-radio:has(input:checked) { border-color: var(--forest); background: #fff; box-shadow: inset 0 0 0 1px var(--forest); }
.ship-radio input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: none; accent-color: var(--forest); }
.ship-name { flex: 1; line-height: 1.4; }
.ship-price { color: var(--forest); font-family: var(--serif-he); font-size: 1rem; white-space: nowrap; }
.ship-info {
  flex: none; width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--gold); background: transparent; color: var(--gold); font-family: var(--serif-en); font-size: 1.1rem; line-height: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.ship-info:hover, .ship-info[aria-expanded="true"] { background: var(--gold); color: #fff; }
.pickup-info { display: grid; gap: 10px; padding: 14px 16px; border: 1px dashed var(--gold-soft); border-radius: var(--radius); background: rgba(251, 247, 236, .85); font-size: .9rem; }
.pickup-info label { color: var(--ink); }
.pickup-info p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.pickup-info a { color: var(--forest); font-weight: 500; border-bottom: 1px solid var(--gold); }

/* ---------- shop: the cart thumbnail as a real 11×11×3 box ---------- */
.cart-item { grid-template-columns: 108px 1fr auto; }
.box3d { position: relative; width: 70px; height: 70px; margin: 10px auto 20px; transform-style: preserve-3d; transform: rotateX(54deg) rotateZ(-34deg); }
.box3d > span { position: absolute; display: block; }
.b-top { inset: 0; transform: translateZ(19px); border-radius: 1px; overflow: hidden; box-shadow: 0 0 0 1px rgba(43, 45, 38, .25); }
.b-top img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.b-front { left: 0; bottom: 0; width: 70px; height: 19px; transform-origin: bottom; transform: rotateX(-90deg); background: linear-gradient(#f3f0e0, #dcd6bd); }
.b-side { top: 0; left: 0; width: 19px; height: 70px; transform-origin: left; transform: rotateY(-90deg); background: linear-gradient(270deg, #f8f6ea, #e2dcc4); }  /* ivory box (logo on #faf7e9), owner request 8.11.26 */
.box3d::after { content: ""; position: absolute; inset: 4px; background: rgba(43, 45, 38, .35); filter: blur(6px); transform: translateZ(-1px); }

/* ---------- about: technical specification ---------- */
.about, .contact { max-width: 880px; margin: 0 auto; padding-block: var(--space-6); }
.spec {
  padding: clamp(28px, 5vw, 52px); text-align: center;
  background: rgba(251, 247, 236, .72); border: 1px solid rgba(107, 79, 54, .2); border-radius: 6px; box-shadow: 0 40px 80px -50px rgba(43, 45, 38, .45);
}
.spec h3 { font-size: 1.5rem; color: var(--forest); letter-spacing: .06em; font-weight: 400; }
.spec h3::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin: 14px auto 0; }
/* three tiles: kit contents (added 4.11.26, on the right), card size, box size. On phones the contents tile spans the top row. */
.spec-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 3vw, 26px); margin-top: 32px; }
@media (max-width: 700px) {
  .spec-tiles { grid-template-columns: 1fr 1fr; }
  .spec-tile:first-child { grid-column: 1 / -1; }
}
.spec > .spec-tiles:first-child { margin-top: 0; }  /* the page title is now "מפרט טכני", so the box has no heading of its own */
.spec-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 255, 255, .4); }
.spec-ill { width: 110px; height: 110px; }
.spec-ill rect, .spec-ill path { fill: color-mix(in srgb, var(--paper) 60%, #fff); stroke: var(--forest); stroke-width: 1.4; stroke-linejoin: round; }
.spec-ill .dim { fill: none; stroke: var(--gold); }
.spec-lbl { font-size: .92rem; letter-spacing: .08em; color: var(--ink-soft); }
.spec-val { font-family: var(--sans-he); font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--forest); white-space: nowrap; }  /* nowrap: "ס״מ" stays on the number's line */
.spec-val span { font-family: var(--sans-he); font-size: .62em; color: var(--ink-soft); }
.spec-note { margin-top: 28px; font-family: var(--sans-he); font-size: 1.15rem; line-height: 1.7; color: var(--ink); text-wrap: pretty; }  /* pretty: no lone word on the last line (owner request 4.11.26); "balance" split דו-צדדית at the hyphen */

/* ---------- contact ---------- */
/* "גלויה" (owner choice 4.11.26): one paper card with a double gold frame, no picture.
   WhatsApp = forest button, e-mail = soft gold button (owner: not the background colour). */
.ct-post {
  position: relative; max-width: 600px; margin: 0 auto; padding: clamp(40px, 6vw, 56px) clamp(24px, 5vw, 56px) 42px; text-align: center;
  background: rgba(251, 247, 236, .82); border: 1px solid rgba(107, 79, 54, .2); border-radius: 6px; box-shadow: 0 40px 80px -50px rgba(43, 45, 38, .45);
}
.ct-post::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-soft); border-radius: 3px; pointer-events: none; }
.ct-post-h { font-family: var(--serif-he); font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.3; color: var(--forest); }
.ct-post-h::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin: 16px auto 0; }
.ct-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact a.ct-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; font-family: var(--sans-he); font-size: 1.02rem; letter-spacing: .02em;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ct-btn svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.contact a.ct-btn-wa { background: var(--forest); color: var(--paper); border: 1px solid var(--forest); box-shadow: 0 10px 24px -14px rgba(34, 56, 31, .7); }
.contact a.ct-btn-wa:hover { background: var(--forest-deep); transform: translateY(-1px); }
/* e-mail button: forest pill like the selected side-menu tab (owner request 10.11.26; was soft gold) */
.contact a.ct-btn-mail { background: var(--forest); color: var(--paper); border: 1px solid var(--forest); box-shadow: 0 10px 24px -14px rgba(34, 56, 31, .7); }
.contact a.ct-btn-mail:hover { background: var(--forest-deep); transform: translateY(-1px); }
.ct-vals { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 26px; margin-top: 18px; font-family: var(--sans-he); font-size: .95rem; color: var(--ink-soft); }
/* signature: the Hebrew name (right) falls back from Cormorant to Frank Ruhl, the English name stays in Cormorant (owner request 4.11.26) */
.ct-sign { margin-top: 28px; font-family: 'Cormorant Garamond', 'Frank Ruhl Libre', serif; font-size: 1.05rem; letter-spacing: .12em; color: var(--bark); }
@media (max-width: 480px) { .contact a.ct-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .contact a.ct-btn { transition: none; } }
@media (max-width: 560px) {
  .cart-item { grid-template-columns: 96px 1fr; row-gap: 4px; }
  .cart-item .qty { grid-column: 2; justify-self: start; }
}
@media (max-width: 480px) {
  .side-nav a { padding: 8px 7px 10px; font-size: .92rem; }
  .side-nav a.on { padding-inline-start: 7px; }
}

/* ---------- cards title: the box wordmark ---------- */
.h2-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; letter-spacing: normal; }
.h2-logo .wordmark { width: min(86vw, 520px); height: auto; pointer-events: none; user-select: none; }
.h2-logo .h2-sub { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: .14em; color: var(--ink-soft); }
.b-front, .b-side { box-shadow: inset 0 0 0 1px rgba(107, 79, 54, .18); }
.th-refs .ref-link { margin-left: 6px; font-size: .86em; color: var(--forest); border-bottom: 1px solid var(--gold-soft); white-space: nowrap; }
.th-refs .ref-link::after { content: "\2197"; margin-left: 3px; color: var(--gold); font-size: .85em; }
.th-refs .ref-link:hover { border-bottom-color: var(--forest); }

/* ---------- שימוש בקלפים (carousel, same look as the cards page) ---------- */
.use { max-width: 1120px; margin: 0 auto; padding-block: var(--space-4) var(--space-6); }
/* same start height as the "על הערכה" tab: title at the same top, and the slides start where that tab's do.
   This tab has one subtitle line more, so the "על הערכה" slides start lower by that line (see .cards .showcase). */
.use .section-head { margin-bottom: 0; }
.use .use-show { margin-top: var(--sub-gap); }
.use-show { max-width: 1060px; }
.use-show .show-row { grid-template-columns: minmax(0, 50ch) minmax(0, 360px); align-items: start; }
.use-show .show-text { max-width: 50ch; }
.use-show .show-card { margin-top: 0; }  /* image starts with the number, as in the "על הערכה" tab */
.use-show .use-lead { margin-top: 12px; color: var(--ink); }
.use-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.use-list h4 { font-family: var(--serif-he); font-size: 1.12rem; font-weight: 500; color: var(--ink); margin: 0 0 2px; }
.use-show .use-list p { margin: 0; font-size: 1rem; line-height: 1.78; }
.use-show .use-read { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-soft); }
.use-read > span:first-child { color: var(--forest); font-weight: 500; margin-inline-end: 4px; }
.use-read bdi { font-family: var(--serif-en); font-size: 1.04rem; color: var(--ink); }
.use-read .read-link { color: var(--forest); border-bottom: 1px solid var(--gold-soft); }
.use-read .read-link::after { content: "\2197"; margin-left: 2px; color: var(--gold); font-size: .8em; }
.use-read .read-link:hover { border-bottom-color: var(--forest); }
.use-reading { max-width: 860px; margin-top: var(--space-6); }
.use-refs-note { text-align: center; margin: -18px auto 26px; max-width: 58ch; font-size: .92rem; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 900px) {
  .use-show .show-row { grid-template-columns: 1fr; }
  .use-show .show-card { margin-top: 0; }
  .use-show .show-text { max-width: none; text-align: right; }
  .use-show .show-num { text-align: center; }
  .use-show .show-text h3, .use-show .show-sub { text-align: center; }
  .use-show .show-sub::after { margin-inline: auto; }
}

@media (max-width: 480px) {
  .side-nav a { padding: 8px 4px 10px; font-size: .84rem; letter-spacing: 0; }
  .side-nav a.on { padding-inline-start: 4px; }
  /* owner view has a 7th tab (תאוריה): tighten so all 7 still fit at 375px */
  html.owner .side-nav a, html.owner .side-nav a.on { padding-inline: 2px; }
}

/* phone tab bar: the selected tab is the same forest pill as on desktop (owner request 6.11.26 —
   the gold underline was not clear enough). Replaces the underline. */
@media (max-width: 900px) {
  .side { padding-bottom: 8px; }
  .side-nav { gap: 2px; align-items: center; }
  .side-nav a { padding: 6px 12px; border-bottom: 0; border-radius: 999px; transition: none; }
  .side-nav a.on, .side-nav a.on:hover { padding-inline: 12px; color: var(--paper); background: var(--forest); box-shadow: 0 6px 14px -10px rgba(34, 56, 31, .8); }
}
/* ---------- אודות: about Adi and the kit (owner request 8.11.26) ----------
   Portrait in a circle inside the box logo's five fading rings (svg.bio-rings); photo on the right, text beside it.
   On phones the photo sits centred above the text. */
.bio { max-width: 980px; margin: 0 auto; padding-block: var(--space-6); }
.bio-card {
  display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(28px, 4.5vw, 56px); align-items: start;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(251, 247, 236, .72); border: 1px solid rgba(107, 79, 54, .2); border-radius: 6px; box-shadow: 0 40px 80px -50px rgba(43, 45, 38, .45);
}
.bio-photo { margin: 0; justify-self: center; }
.bio-ring { position: relative; display: block; width: 184px; aspect-ratio: 1; margin: 24px; }  /* 20% smaller than first version (owner request 8.11.26) */
.bio-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* photo = the logo medallion (r 409.2); the svg reaches the outer ring (486.1) → 9.4% beyond the photo on each side */
.bio-rings { position: absolute; inset: -9.4%; width: 118.8%; height: 118.8%; overflow: visible; pointer-events: none; }
.bio-ring .shield { border-radius: 50%; z-index: 3; }
.bio-text { font-size: 1.05rem; line-height: 1.85; color: var(--ink); text-wrap: pretty; }
.bio-text p { margin: 0; }
.bio-text p + p { margin-top: 14px; }
.bio-hello { margin: 0 0 18px; font-family: var(--serif-he); font-weight: 300; font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.3; color: var(--forest); }
.bio-hello::after { content: ""; display: block; width: 44px; height: 1px; background: var(--gold); margin-top: 14px; }
/* links (owner request 8.11.26: no underline): the logo's branch colour, a little darker so it reads (5.6:1 on the card),
   and medium weight so they stand out from the text by more than colour; underline only on hover/focus */
.bio-text a { color: #8c5422; font-weight: 500; }
.bio-text a:hover, .bio-text a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.bio-text .bio-q { margin-block: 22px; font-style: italic; }
.bio-text .bio-end { margin-top: 22px; }
/* below ~1150px the text column beside the photo gets too narrow: photo goes above the text */
@media (max-width: 1150px) {
  .bio { max-width: 760px; }
  .bio-card { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  .bio-ring { width: 152px; }
}

@media (max-width: 480px) {
  .side-nav { gap: 0; }
  .side-nav a { padding: 6px 4px; }
  .side-nav a.on, .side-nav a.on:hover { padding-inline: 8px; }   /* a little air inside the pill; still fits 6 tabs at 375px */
  html.owner .side-nav a { padding-inline: 2px; }
  html.owner .side-nav a.on, html.owner .side-nav a.on:hover { padding-inline: 5px; }
}
/* 8.11.26: the "אודות" tab makes 7 tabs for visitors (8 in owner view). Slightly smaller tabs so all of them
   still fit in one row: visitors from 360px, owner view at 375px. Re-measure .side-nav scrollWidth vs clientWidth if tabs change. */
@media (max-width: 480px) {
  .side { padding-inline: 8px; }
  .side-nav a { padding-inline: 3px; font-size: .8rem; }
  .side-nav a.on, .side-nav a.on:hover { padding-inline: 7px; }
  html.owner .side-nav a { padding-inline: 2px; font-size: .78rem; }
  html.owner .side-nav a.on, html.owner .side-nav a.on:hover { padding-inline: 5px; }
  .bio-card { padding: 24px 18px; }
  .bio-text { font-size: 1rem; }
}

/* ---------- same start in every tab except "ראשי" (owner request 10.11.26) ----------
   Like "על הערכה" and "השימוש בקלפים": the page title at the same height in every tab, and the content
   starting at the same place — right after the subtitle where there is one, otherwise after the same empty
   space a subtitle would take (8px + one 1.68rem line), plus --sub-gap. */
main > [data-view]:not([data-view="home"]) { margin-top: 0; padding-top: var(--space-4); }
main > [data-view]:not([data-view="home"]) > .section-head { margin-bottom: 0; }
main > [data-view]:not([data-view="home"]) > .section-head > p { margin-top: 8px; }
main > [data-view]:not([data-view="home"]) > .section-head + *,
main > [data-view]:not([data-view="home"]) > .section-head + [hidden] + * { margin-top: calc(8px + 1.68rem + var(--sub-gap)); }
main > [data-view]:not([data-view="home"]) > .section-head:has(> p:not([hidden])) + *,
main > [data-view]:not([data-view="home"]) > .section-head:has(> p:not([hidden])) + [hidden] + * { margin-top: var(--sub-gap); }

/* hero text column (owner request 11.11.26): lede lines, buttons and byline centred on one axis, still in the right-hand column */
.hero-text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text .hero-actions { justify-content: center; }

/* an empty line inside an admin-edited text = the same gap as between paragraphs (content.js, 29.11.26) */
.p-gap { display: block; height: 14px; }

/* free shipping (30.11.26): crossed-out regular price + "חינם", and the "המשלוח עליי" line under the heading */
.bs-price .bs-was { color: var(--muted, #696758); font-weight: 400; text-decoration-thickness: 1px; margin-inline-end: 4px; }
.bs-price .bs-free { color: var(--forest); font-weight: 700; }
.bs-gift { font-family: var(--serif-he); font-size: 1rem; color: var(--bark, #6b4f36); margin: -4px 0 10px; letter-spacing: .02em; }

/* launch price (1.12.26): regular kit price crossed out before the actual one (set.priceWas) */
.buy-price .up-was { color: var(--muted, #696758); font-size: 1rem; font-weight: 400; text-decoration-thickness: 1px; margin-inline-end: 6px; }
.buy-price .up-now { color: var(--forest); }
@media (max-width: 480px) { .buy-price .up-was { display: block; margin: 0; text-align: end; } }
