/* jew.tech design system — extracted from the launch placeholder.
   Dark scholarly base, gold accent, serif voice. No build step; this file
   is the single source of truth for tokens and shared components. */

:root {
  --bg: #0b0e14;
  --bg-raised: #11151f;
  --bg-card: #141927;
  --fg: #e8e6e1;
  --muted: #8b93a7;
  --accent: #d4a94e;
  --accent-dim: #a8873e;
  --line: rgba(212, 169, 78, 0.35);
  --line-faint: rgba(212, 169, 78, 0.15);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
  --max: 46rem;
  --max-wide: 64rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.page {
  background:
    radial-gradient(ellipse at 50% -20%, #1a2032 0%, var(--bg) 60%);
  background-attachment: fixed;
}

/* ---------- header / nav ---------- */

.site-header {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1.4rem 1.5rem 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-faint);
}

.site-header .wordmark {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--fg);
  white-space: nowrap;
}
.site-header .wordmark .tld { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--line);
}

/* ---------- layout ---------- */

main.prose {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
main.wide { max-width: var(--max-wide); }

h1 {
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
h1 .tld { color: var(--accent); }

h2 {
  font-size: 1.35rem;
  font-weight: normal;
  color: var(--accent);
  margin: 2.4rem 0 0.8rem;
}

h3 {
  font-size: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 1.8rem 0 0.5rem;
}

p { margin-bottom: 1rem; }
p.lede { font-size: 1.12rem; color: var(--fg); }
p.muted, .muted { color: var(--muted); }

a { color: var(--accent); }
a:hover { color: #e6c06a; }

em.he, span.he { font-style: normal; }
[lang="he"] { direction: rtl; unicode-bidi: isolate; }

.rule {
  width: 6rem;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
  margin: 1.6rem 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

blockquote {
  border-left: 2px solid var(--line);
  padding: 0.2rem 0 0.2rem 1.1rem;
  margin: 1.4rem 0;
  color: var(--muted);
  font-style: italic;
}
blockquote cite { display: block; margin-top: 0.4rem; font-style: normal; font-family: var(--sans); font-size: 0.8rem; }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.4rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.86rem;
  line-height: 1.5;
}
th {
  text-align: left;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 0.9rem 0.5rem 0;
  white-space: nowrap;
}
td {
  border-bottom: 1px solid var(--line-faint);
  padding: 0.55rem 0.9rem 0.55rem 0;
  vertical-align: top;
}

/* ---------- stat grid ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
  margin: 1.6rem 0;
}
.stats .stat {
  background: var(--bg-raised);
  padding: 1.1rem 1.2rem;
}
.stat .n {
  display: block;
  font-size: 1.55rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.8rem 0;
}
.card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line-faint);
  padding: 1.2rem 1.3rem 1.1rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--line); color: var(--fg); }
.card h3 { margin: 0 0 0.35rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card p { margin: 0; font-family: var(--sans); font-size: 0.84rem; color: var(--muted); }

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 1.8rem 0; position: relative; padding-left: 1.4rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.28rem; top: 0.4rem; bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.timeline li { position: relative; margin-bottom: 1.15rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.4rem; top: 0.52rem;
  width: 0.55rem; height: 0.55rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
}
.timeline .when {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}
.timeline .what { color: var(--fg); }
.timeline .why { display: block; font-family: var(--sans); font-size: 0.84rem; color: var(--muted); }

/* ---------- code / formulas ---------- */

code, pre {
  font-family: var(--mono);
  font-size: 0.85em;
  background: var(--bg-raised);
}
code { padding: 0.1em 0.35em; border: 1px solid var(--line-faint); }
pre {
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 1px solid var(--line-faint);
  margin: 1.3rem 0;
  line-height: 1.55;
}
pre code { padding: 0; border: 0; background: none; }

.formula {
  text-align: center;
  margin: 1.4rem 0;
  overflow-x: auto;
  padding: 0.4rem 0;
}

/* ---------- footer ---------- */

.site-footer {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.4rem;
  border-top: 1px solid var(--line-faint);
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-faint); }
.site-footer a:hover { color: var(--accent); }
.site-footer .cols { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- hero (home) ---------- */

.hero {
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
  max-width: 44rem;
  margin: 0 auto;
}
.hero .star {
  font-size: 2rem;
  color: var(--accent);
  letter-spacing: 0.5rem;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.hero .tagline {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* ---------- misc ---------- */

.note {
  background: var(--bg-raised);
  border: 1px solid var(--line-faint);
  border-left: 2px solid var(--accent-dim);
  padding: 0.9rem 1.1rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  margin: 1.4rem 0;
}

.crumbs {
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

@media (max-width: 480px) {
  .site-header { padding: 1.1rem 1rem 0.9rem; }
  main.prose { padding: 1.8rem 1rem 3rem; }
  .site-nav { gap: 0.8rem; }
}

h2.h3-style { margin: 0 0 0.35rem; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
