/* Index page of bioinfo.cs.tau.ac.il. A cut-down copy of the lab website's assets/css/site.css
   (Tubiana-lab.github.io): same tokens, header, tool cards and footer. No web fonts, no JavaScript;
   dark mode follows the system setting only. */

:root {
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-2: #f1f3f4;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --accent: #0066cc;
  --accent-hover: #0052a3;
  --accent-soft: rgba(0, 102, 204, 0.08);
  --on-accent: #ffffff;
  --note-bg: #fff7e0;
  --note-border: #f2d48a;
  --note-text: #6b4b00;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1117;
    --surface: #161a22;
    --surface-2: #262730;
    --text: #fafafa;
    --muted: #a0a3ad;
    --border: #31333f;
    --accent: #5aa9ff;
    --accent-hover: #8cc3ff;
    --accent-soft: rgba(90, 169, 255, 0.12);
    --on-accent: #0e1117;
    --note-bg: rgba(255, 183, 77, 0.1);
    --note-border: rgba(255, 183, 77, 0.35);
    --note-text: #ffd59a;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
html, body { overflow-x: clip; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
h1, h2 { line-height: 1.25; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 500; }
h2 { font-size: 1.5rem; font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 500; font-size: 1.1rem; }
.brand-sub { font-size: 0.75rem; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { color: var(--muted); padding: 6px 12px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 24px; }
.footer-title { color: var(--text); font-weight: 500; margin-bottom: 6px; }
.footer-bottom { padding-top: 12px; padding-bottom: 28px; font-size: 0.82rem; }

/* ---------- Page ---------- */
.page { padding-top: 40px; }
.page-head { margin-bottom: 32px; max-width: 780px; }
.lead { font-size: 1.15rem; color: var(--muted); font-weight: 300; max-width: 760px; }

/* ---------- Buttons and notes ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font: 500 0.95rem var(--font); text-decoration: none; white-space: nowrap;
}
.button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.button-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.note {
  font-size: 0.9rem; padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--note-bg); color: var(--note-text); border: 1px solid var(--note-border); display: inline-block;
}

/* ---------- Tools ---------- */
.tool-list { display: flex; flex-direction: column; gap: 28px; }
.tool-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.tool-image { display: flex; align-items: center; justify-content: center; background: #ffffff; padding: 20px; border-right: 1px solid var(--border); }
.tool-image img { max-height: 300px; width: auto; object-fit: contain; }
.tool-body { padding: 24px 28px; }
.tool-name { font-size: 1.5rem; margin-bottom: 4px; }
.tool-name a { color: var(--text); }
.tool-summary { color: var(--muted); font-size: 1.05rem; }
.tool-body .actions { margin: 16px 0 12px; }
.cite { font-size: 0.88rem; color: var(--muted); margin: 0 0 4px; }
@media (max-width: 760px) {
  .tool-card { grid-template-columns: 1fr; }
  .tool-image { border-right: 0; border-bottom: 1px solid var(--border); }
  .tool-image img { max-height: 200px; }
  .tool-body { padding: 20px; }
}
