/* ================================================================
   Yonitek Landing — yonite.com
   Design: calm investigative clarity
   Palette: slate + indigo. No red. No alert styling.
   ================================================================ */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f8fafc;     /* slate-50 */
  --surface:      #ffffff;
  --border:       #e2e8f0;     /* slate-200 */
  --border-soft:  #f1f5f9;     /* slate-100 */

  --text:         #1e293b;     /* slate-800 */
  --text-soft:    #475569;     /* slate-600 */
  --text-muted:   #94a3b8;     /* slate-400 */

  --accent:       #4f46e5;     /* indigo-600 */
  --accent-soft:  #eef2ff;     /* indigo-50 */
  --accent-text:  #4338ca;     /* indigo-700 */

  --serif:        "Charter", "Iowan Old Style", "Iowan", "Source Serif Pro",
                  "Georgia", "Cambria", serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
                  "Helvetica Neue", Arial, sans-serif;
  --mono:         "Cascadia Code", "JetBrains Mono", "Consolas",
                  "SF Mono", monospace;

  --container:    72rem;       /* 1152px */
  --narrow:       42rem;       /*  672px */

  --space-1:      0.25rem;
  --space-2:      0.5rem;
  --space-3:      0.75rem;
  --space-4:      1rem;
  --space-6:      1.5rem;
  --space-8:      2rem;
  --space-12:     3rem;
  --space-16:     4rem;
  --space-24:     6rem;
}

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

html {
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

/* ── Layout helpers ─────────────────────────────────────────────── */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container.narrow {
  max-width: var(--narrow);
}

/* ── Header ─────────────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.2rem;
  background: var(--accent);
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  background: var(--bg);
  border-radius: 0.05rem;
}
.brand-mark.small {
  width: 0.85rem;
  height: 0.85rem;
}

.site-nav {
  display: flex;
  gap: var(--space-6);
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--accent-text);
}

@media (max-width: 640px) {
  .site-nav { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  padding: var(--space-24) 0;
  background: linear-gradient(to bottom, var(--bg-soft) 0%, var(--bg) 100%);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.hero-lead {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 38rem;
  margin-bottom: var(--space-8);
}

.hero-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: var(--space-4);
  max-width: 36rem;
}

/* ── Sections ───────────────────────────────────────────────────── */

.section {
  padding: var(--space-16) 0;
}

.section-light {
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.section h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.section p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: var(--space-4);
}

.section p:last-child {
  margin-bottom: 0;
}

.section-lead {
  font-size: 1.1rem !important;
  color: var(--text-soft);
  margin-bottom: var(--space-8) !important;
}

.section em {
  font-style: italic;
  color: var(--text);
}

.section strong {
  font-weight: 600;
  color: var(--text);
}

.section code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--border-soft);
  padding: 0.1em 0.4em;
  border-radius: 0.2rem;
  color: var(--accent-text);
}

/* ── Reasoning flow ─────────────────────────────────────────────── */

.reasoning-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.reasoning-flow li {
  display: grid;
  grid-template-columns: 2.5rem 9rem 1fr;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border-soft);
}

.reasoning-flow li:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.step-name {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--text);
}

.step-desc {
  color: var(--text-soft);
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .reasoning-flow li {
    grid-template-columns: 2rem 1fr;
  }
  .step-desc {
    grid-column: 2;
    margin-top: var(--space-1);
  }
}

/* ── Principles grid ────────────────────────────────────────────── */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-8) var(--space-12);
  margin-top: var(--space-8);
}

.principle h3 {
  margin-bottom: var(--space-2);
}

.principle p {
  font-size: 0.98rem;
  color: var(--text-soft);
}

/* ── Status list ────────────────────────────────────────────────── */

.status-list {
  list-style: none;
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.status-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  color: var(--text-soft);
  font-size: 0.98rem;
  padding: var(--space-2) 0;
}

.status-list .check {
  color: var(--accent);
  font-weight: 700;
  width: 1rem;
}

.status-list .dot {
  color: var(--text-muted);
  font-weight: 700;
  width: 1rem;
}

.muted {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-style: italic;
}

/* ── Hebrew section ─────────────────────────────────────────────── */

[lang="he"] {
  font-family: "Frank Ruhl Libre", "David", "Times New Roman", serif;
}

[lang="he"] h2 {
  font-family: "Frank Ruhl Libre", "David", serif;
}

[lang="he"] p {
  font-size: 1.05rem;
  line-height: 1.85;
}

/* ── Footer ─────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-8) 0;
  background: var(--bg);
}

.footer-line {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.footer-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Print ──────────────────────────────────────────────────────── */

@media print {
  .site-nav,
  .hero { background: none; }
  .section-light { background: none; }
}
