/* idotal.co.il — עיצוב נקי ומקצועי, בהשראת עיתונות */
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3a3a3a;
  --muted: #6e6c66;
  --rule: #e3e0d8;
  --accent: #1b3a7a;
  --accent-soft: #e9eef8;
  --radius: 10px;
  --max: 1120px;
  --serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --sans: "Heebo", "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 24px; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.kicker { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.hero h1 { font-family: var(--serif); font-size: clamp(44px, 6.4vw, 80px); line-height: 1.02; margin: 0 0 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero .lede { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 0 0 30px; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.roles li { border: 1px solid var(--rule); background: var(--surface); padding: 5px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #dfe5f1 0%, #c9d2e6 100%);
  display: grid; place-items: center; color: var(--accent);
  font-family: var(--serif); font-size: 120px; font-weight: 700;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; text-decoration: none; border: 0;
  padding: 12px 22px; border-radius: 999px; font: 500 15px var(--sans); cursor: pointer;
}
.btn:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Social ---------- */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  border: 1px solid var(--rule); background: var(--surface); border-radius: 999px;
  padding: 7px 15px; font-size: 14px; text-decoration: none; color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Sections ---------- */
section.block { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-size: 38px; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
.section-head a { font-size: 15px; color: var(--accent); text-decoration: none; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.about .facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.about .facts li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.about .facts b { display: block; font-family: var(--serif); font-size: 22px; }
.about .facts span { color: var(--muted); font-size: 15px; }
.about .text p { margin: 0 0 18px; font-size: 19px; color: var(--ink-2); }

/* Updates feed */
.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.update {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; text-decoration: none;
}
.update:hover { border-color: var(--ink); }
.update time { font-size: 13px; color: var(--muted); }
.update p { margin: 0; font-size: 16px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.update .thumb { border-radius: 6px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* Articles */
.articles { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.article-card { text-decoration: none; display: block; }
.article-card .cover { aspect-ratio: 16/9; border-radius: var(--radius); background: var(--accent-soft); overflow: hidden; margin-bottom: 16px; }
.article-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-card h3 { font-family: var(--serif); font-size: 30px; line-height: 1.2; margin: 0 0 10px; }
.article-card p { margin: 0; color: var(--ink-2); }
.article-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.article-card:hover h3 { color: var(--accent); }
.article-list { display: flex; flex-direction: column; }
.article-list .article-card { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.article-list .article-card:first-child { padding-top: 0; }
.article-list .article-card h3 { font-size: 22px; }
.empty { color: var(--muted); font-style: italic; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { font-family: var(--serif); font-size: 44px; margin: 0 0 12px; line-height: 1.1; }
.contact p { color: var(--ink-2); margin: 0 0 22px; }

footer.site-footer { padding: 32px 0; font-size: 14px; color: var(--muted); }
footer.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Article page ---------- */
.post { max-width: 720px; margin: 0 auto; padding: 56px 24px 80px; }
.post .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.post h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.1; margin: 0 0 24px; letter-spacing: -0.015em; }
.post .cover { border-radius: var(--radius); margin: 0 0 32px; width: 100%; }
.post video.cover { background: #000; }
.post .body p { font-size: 20px; line-height: 1.8; margin: 0 0 22px; color: var(--ink-2); }
.post .body h2 { font-family: var(--serif); font-size: 28px; margin: 36px 0 14px; }
.post .share { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 28px; color: var(--accent); text-decoration: none; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .about, .articles, .contact { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
  .portrait { max-width: 360px; font-size: 90px; }
  .updates { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  section.block { padding: 52px 0; }
}

[hidden] { display: none !important; }
