/*
Theme Name: Reza Resume
Theme URI: https://soleymanifar.com
Author: Reza Soleymanifar
Description: Single-page technical resume for Reza Soleymanifar, Production ML Scientist.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: reza-resume
*/

:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --fg: #14171a;
  --fg-muted: #55606b;
  --fg-faint: #7a8691;
  --rule: #e3e8ed;
  --accent: #1f6feb;
  --accent-soft: #ddeaff;
  --chip: #eef2f6;
  --maxw: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #131a23;
    --fg: #e8edf3;
    --fg-muted: #a4b1bf;
    --fg-faint: #7d8b99;
    --rule: #232c37;
    --accent: #58a6ff;
    --accent-soft: #16283f;
    --chip: #1b232e;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header ---------- */

.masthead {
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--rule);
}

.name {
  margin: 0 0 6px;
  font-size: 2.45rem;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 700;
}

.role {
  margin: 0 0 20px;
  font-size: 1.06rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.005em;
}

.summary {
  margin: 0 0 26px;
  max-width: 66ch;
  color: var(--fg-muted);
  font-size: 1.02rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.93rem;
}

.links a { color: var(--fg-muted); }
.links a:hover { color: var(--accent); }

/* ---------- sections ---------- */

section { padding: 44px 0 8px; }
section + section { border-top: 1px solid var(--rule); }

h2 {
  margin: 0 0 28px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- entries ---------- */

.entry { margin-bottom: 34px; }
.entry:last-child { margin-bottom: 8px; }

.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 3px;
}

.entry-title { margin: 0; font-size: 1.06rem; font-weight: 660; }
.entry-org { color: var(--accent); font-weight: 600; }

.entry-date {
  color: var(--fg-faint);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.entry-note {
  margin: 0 0 10px;
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.entry ul { margin: 10px 0 0; padding-left: 0; list-style: none; }

.entry li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--fg-muted);
  font-size: 0.97rem;
}

.entry li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.66em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule);
}

/* ---------- skills ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }

.chips li {
  background: var(--chip);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ---------- publications ---------- */

.pubs { margin: 0; padding-left: 22px; }
.pubs li { margin-bottom: 13px; color: var(--fg-muted); font-size: 0.95rem; }
.pubs em { color: var(--fg); font-style: italic; }

/* ---------- footer ---------- */

.foot {
  margin-top: 40px;
  padding: 26px 0 60px;
  border-top: 1px solid var(--rule);
  color: var(--fg-faint);
  font-size: 0.86rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}

/* ---------- responsive ---------- */

@media (max-width: 620px) {
  .masthead { padding: 48px 0 34px; }
  .name { font-size: 1.95rem; }
  .entry-head { flex-direction: column; }
  .entry-date { font-size: 0.82rem; }
}

@media print {
  :root { --bg: #fff; --fg: #000; --fg-muted: #222; --rule: #ccc; --accent: #000; --chip: #fff; }
  body { font-size: 11pt; }
  .masthead { padding-top: 0; }
  section { padding-top: 22px; page-break-inside: avoid; }
  .entry { page-break-inside: avoid; }
}
