/* Yummis Systems website. One stylesheet for every page.
   Colours are set once here; dark mode follows the visitor's Mac or phone. */
:root {
  --ink: #1d1d1f;
  --muted: #5f6368;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: #e4e1da;
  --accent: #0a66d8;          /* Yiddish Writer blue */
  --accent-ink: #ffffff;
  --wood: #6b4226;            /* Seforim Library bookcase brown */
  --gold: #f2c96b;
  --todo-bg: #fff3b0;
  --todo-ink: #6b5200;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 30px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f2; --muted: #a8adb4; --paper: #141518; --card: #1c1d21; --line: #2c2e33;
    --accent: #3b8cff; --wood: #c58a5c; --gold: #f2c96b; --todo-bg: #4a3d00; --todo-ink: #ffe486;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
[lang="yi"], [lang="he"] { direction: rtl; unicode-bidi: isolate; }

/* Things Yummi still has to fill in: impossible to miss, easy to search for ("TO FILL"). */
.todo {
  background: var(--todo-bg); color: var(--todo-ink); border-radius: 6px; padding: 1px 6px;
  font-weight: 600; font-size: .9em;
}

/* ---- header and footer ---- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* ---- sections ---- */
.hero { padding-top: 56px; padding-bottom: 32px; }   /* top/bottom only: the sides come from .wrap */
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; }
.button {
  display: inline-block; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink); background: var(--card);
}
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.badge { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #3b2a00; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.product { display: flex; flex-direction: column; gap: 10px; }
.product .icon { width: 64px; height: 64px; border-radius: 14px; }
.product .icon.placeholder { background: linear-gradient(135deg, var(--wood), #3a2414); display: grid; place-items: center; color: var(--gold); font-size: 30px; }

.screenshot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 8px 0 6px; }
.caption { font-size: .9rem; color: var(--muted); text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 28px; }
.features h3 { margin-bottom: .3em; }
.features p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding-block: 16px; padding-inline: 58px 18px; position: relative; }
.steps li::before { content: counter(step); position: absolute; inset-inline-start: 18px; top: 15px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 38%; font-weight: 600; }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: .7em 0 0; color: var(--muted); }

.placeholder-shot {
  aspect-ratio: 16 / 10; border-radius: 12px; border: 2px dashed var(--line); display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 16px; background: var(--card);
}

/* ---- languages ---- */
.languages { display: flex; gap: 6px; font-size: .9rem; color: var(--muted); }
.languages a { color: var(--muted); text-decoration: none; }
.languages a[aria-current="true"] { color: var(--ink); font-weight: 600; }
/* Yiddish and Hebrew pages: a font made for Hebrew letters where the Mac or phone has one. */
html[dir="rtl"] body { font-family: -apple-system, BlinkMacSystemFont, "Arial Hebrew", "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif; }
html[dir="rtl"] h1, html[dir="rtl"] h2 { letter-spacing: 0; }
/* Product names in English stay readable inside right-to-left text. */
[dir="rtl"] .latin { direction: ltr; unicode-bidi: isolate; }

/* A store button that is not live yet: looks like a button, does nothing. */
.button.soon { opacity: .65; cursor: default; border-style: dashed; }
.button.soon small { font-weight: 500; color: var(--muted); }
