/* sepehraraghi.com – one stylesheet for all pages.
   Colors and spacing live in :root so the look can be changed in one place. */

:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #15181e;
  --muted: #5a616d;
  --line: #e3dfd8;
  --accent: #1f4e8c;
  --accent-soft: #e6edf7;
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 244, 240, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--accent); }
.hero-photo { border-radius: 28px; overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(21, 24, 30, 0.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.88rem; color: var(--muted); }

/* Skills */
.skills { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--bg); border-radius: var(--radius); padding: 26px; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Projects */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.project:first-of-type { border-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.meta strong { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0; list-style: none; }
.chips li { background: var(--accent-soft); color: var(--accent); border-radius: 8px; padding: 4px 10px; font-size: 0.82rem; font-weight: 500; }
.results { padding: 0; margin: 0; list-style: none; }
.results li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.results li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 2px; background: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery .wide { grid-column: span 2; }
.gallery figcaption { font-size: 0.8rem; color: var(--muted); padding: 8px 12px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* About */
.about { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.about-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline { margin-top: 32px; display: grid; gap: 16px; }
.timeline .item { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 0.9rem; }
.timeline .what strong { display: block; }
.timeline .what span { color: var(--muted); font-size: 0.95rem; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; margin-top: 12px; }
.langs li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; }
.langs li span { display: block; font-size: 0.8rem; color: var(--muted); }

/* Contact */
.contact .box { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 64px); }
.contact .box .lead { color: #c9ced8; }
.contact .eyebrow { color: #9db8e6; }
.contact .btn { background: #fff; color: var(--ink); border-color: #fff; }
.contact .btn:hover { background: var(--accent-soft); }
.contact .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.contact .btn.ghost:hover { border-color: #fff; }

/* Footer */
.site-footer { padding: 36px 0 48px; 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); margin-left: 18px; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p, .legal li { color: #2b2f37; }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .about .wrap, .project { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: 420px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-photo { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .nav { gap: 14px; }
  .nav a.hide-sm { display: none; }
  .grid-4 { grid-template-columns: 1fr; }
  .timeline .item { grid-template-columns: 1fr; gap: 4px; }
  .site-footer a { margin: 0 18px 0 0; }
}
