/* יאק (yak-play.com): גיליון סגנונות יחיד לכל האתר. בלי מסגרת עבודה, בלי גופנים או סקריפטים של צד שלישי. */

@font-face {
  font-family: "Assistant";
  src: url("fonts/Assistant-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --fg: #1d1b16;
  --muted: #5d584c;
  --line: #d9d1bd;
  --accent: #1f5f8b;
  --accent-fg: #ffffff;
  --focus: #b3470a;
  --flag-bg: #fff3d6;
  --flag-fg: #4a3500;
  --measure: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --surface: #201d16;
    --fg: #f2eee3;
    --muted: #b4ad9b;
    --line: #4a4536;
    --accent: #7cb8e0;
    --accent-fg: #10202c;
    --focus: #ffb36b;
    --flag-bg: #3a2f10;
    --flag-fg: #ffe9b0;
  }
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* ---- קישור דילוג ומיקוד גלוי ---- */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 0 0 0.5rem 0.5rem;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

/* ---- מבנה ---- */
.site-header {
  border-block-end: 1px solid var(--line);
  background: var(--surface);
}
.site-header .inner,
main,
.site-footer .inner {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 1rem;
}
.site-header .inner { padding-block: 0.75rem; }
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--fg);
}
.brand:hover { text-decoration: underline; }

main { flex: 1 0 auto; padding-block: 1.75rem 3rem; }

.site-footer {
  border-block-start: 1px solid var(--line);
  background: var(--surface);
  padding-block: 1.25rem;
  color: var(--muted);
}
.site-footer ul {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.site-footer a { display: inline-block; padding-block: 0.4rem; }
.site-footer a[aria-current="page"] { color: var(--fg); font-weight: 700; }
.site-footer p { margin: 0; }

/* ---- טיפוגרפיה ---- */
h1, h2, h3 { line-height: 1.3; margin: 2rem 0 0.75rem; }
h1 { font-size: 1.9rem; margin-top: 0; font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-inline-start: 1.6rem; }
li { margin-bottom: 0.4rem; }
hr { border: 0; border-block-start: 1px solid var(--line); margin: 2rem 0; }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1rem;
  direction: ltr;
  unicode-bidi: isolate;
}
bdi { unicode-bidi: isolate; }
.muted { color: var(--muted); }
em { font-style: italic; }

/* ---- הערת תבנית בראש דפים משפטיים ---- */
.template-flag {
  background: var(--flag-bg);
  color: var(--flag-fg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1.5rem;
}

/* ---- כפתורים ---- */
.actions { display: flex; flex-direction: column; gap: 0.75rem; margin: 1.5rem 0; max-width: 24rem; }
.btn {
  display: block;
  padding: 0.85rem 1rem;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  text-align: center;
}
.btn:hover { text-decoration: underline; }
.btn.secondary { background: transparent; color: var(--accent); }
/* כפתור חנות שעוד אין לו כתובת (פריסת טרום-השקה): טקסט "בקרוב", לא קישור */
.btn.soon { background: transparent; color: var(--muted); border: 2px dashed var(--line); font-weight: 400; }
.btn.soon:hover { text-decoration: none; }

/* ---- כרטיס (דפי ההזמנה ו-404) ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  max-width: 28rem;
  margin-inline: auto;
}
.card h1 { font-size: 1.6rem; }

/* ---- טבלאות ---- */
table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; background: var(--surface); }
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: start;
  vertical-align: top;
}
thead th { background: var(--bg); font-weight: 700; white-space: nowrap; }

/* בטלפון: כל שורה היא כרטיס, והכותרת של העמודה מופיעה לפני התא */
@media (max-width: 40em) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { border: 1px solid var(--line); border-radius: 0.5rem; margin-bottom: 0.75rem; background: var(--surface); }
  td { border: 0; border-block-end: 1px solid var(--line); }
  td:last-child { border-block-end: 0; }
  td::before {
    content: attr(data-label);
    display: block;
    font-weight: 700;
    color: var(--muted);
    font-size: 1rem;
  }
}

/* ---- הפחתת תנועה ---- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }
