/* ===== Ariel Tabak — portfolio styles =====
   Change the look of the whole site from the variables below. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1c1e;
  --muted: #5f6368;
  --line: #e6e4e0;
  --accent: #1f4fd1;        /* links, buttons, tags */
  --accent-soft: #eaf0ff;
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 250, 249, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px;
}
.hero .role { font-size: 1.15rem; color: var(--muted); margin: 0 0 18px; max-width: 46rem; }
.hero p { max-width: 46rem; margin: 0 0 26px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-weight: 600; font-size: 0.95rem;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn.primary:hover { opacity: 0.88; }

/* ---------- Sections ---------- */
section { padding: 36px 0; }
.section-title {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 20px; font-weight: 700;
}
.skills { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Project grid ---------- */
.grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.card .thumb { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: #eceae6; }
.card .body { padding: 16px 18px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.08rem; letter-spacing: -0.01em; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.93rem; }

.tag {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 2px 11px; font-size: 0.78rem; font-weight: 600;
  margin: 0 4px 4px 0;
}

/* ---------- Project page ---------- */
.project-head { padding: 48px 0 18px; }
.back { font-size: 0.92rem; color: var(--muted); }
.project-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 10px; }
.project-head .summary { color: var(--muted); font-size: 1.1rem; max-width: 46rem; margin: 0 0 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted); font-size: 0.92rem; margin-bottom: 12px; }
.meta strong { color: var(--text); font-weight: 600; }
.hero-img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #eceae6; }
.prose { max-width: 46rem; padding: 18px 0 40px; }
.prose h2 { font-size: 1.3rem; letter-spacing: -0.01em; margin: 34px 0 8px; }
.prose ul { padding-left: 1.2rem; }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 16px 0; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--line); }
.gallery figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.todo { background: #fff7e0; border: 1px dashed #e0b84a; border-radius: 8px; padding: 2px 8px; color: #7a5a00; font-size: 0.9em; }
.next-prev { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 22px 0 8px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); }
.site-footer .links { display: flex; gap: 18px; }

@media (max-width: 560px) {
  .nav { gap: 16px; }
  .hero { padding: 48px 0 32px; }
}
