/* Siyar Naziri personal site — minimal, fast, accessible */
:root {
  --bg: #ffffff;
  --bg-soft: #fafaf9;
  --text: #18181b;
  --text-muted: #525252;
  --text-faint: #a1a1aa;
  --accent: #f97316;        /* orange (matches shirt в hero photo) */
  --accent-soft: #fff7ed;
  --border: #e7e5e4;
  --radius: 16px;
  --max-w: 720px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-soft: #18181b;
    --text: #fafafa;
    --text-muted: #a1a1aa;
    --text-faint: #525252;
    --accent: #fb923c;
    --accent-soft: rgba(251, 146, 60, 0.08);
    --border: #27272a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; tab-size: 4; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "kern", "liga", "tnum";
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.skip {
  position: absolute; left: -9999px;
  padding: 8px 16px; background: var(--accent); color: #fff; border-radius: 8px;
}
.skip:focus { left: 16px; top: 16px; z-index: 100; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .hero { grid-template-columns: auto 1fr; gap: 32px; }
}

.hero__photo img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 32px rgba(249, 115, 22, .12);
}
@media (min-width: 640px) {
  .hero__photo img { width: 200px; height: 200px; }
}

.hero__text h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__title {
  margin: 6px 0 4px;
  font-size: 17px;
  color: var(--text-muted);
}
.hero__title a { color: var(--text); border-bottom: 2px solid var(--accent); }
.hero__title a:hover { color: var(--accent); }

.hero__tagline {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero__lang {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__lang a, .hero__lang .lang {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.hero__lang .lang--current { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero__lang a { color: var(--text-muted); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

.stat {
  padding: 18px 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: var(--radius);
  text-align: center;
}
.stat__num {
  font-family: var(--font-num);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
  font-feature-settings: "tnum";
}
.stat__label {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Bio */
.bio { margin-bottom: 40px; }
.bio h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 8px;
  color: var(--text);
}
.bio h2:first-child { margin-top: 0; }
.bio p { margin: 0 0 12px; color: var(--text); }
.bio strong { font-weight: 600; }
.bio .num {
  font-family: var(--font-num);
  font-feature-settings: "tnum";
  font-weight: 600;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}

/* Contact */
.contact h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.contact__link {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all .15s;
}
.contact__link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.contact__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-num);
}
.contact__label { font-weight: 600; font-size: 15px; }
.contact__value { color: var(--text-muted); font-size: 13px; font-family: var(--font-num); }
@media (max-width: 480px) {
  .contact__link { grid-template-columns: 32px 1fr; }
  .contact__value { grid-column: 2; font-size: 12px; }
}

/* Footer */
.footer {
  max-width: var(--max-w);
  margin: 32px auto;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}
.footer p { margin: 4px 0; }
.footer a { color: var(--text-muted); }
.footer a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* Print */
@media print {
  .hero__lang, .footer__lang, .skip { display: none; }
  body { font-size: 12pt; }
  a { color: var(--text); text-decoration: underline; }
  .stat { break-inside: avoid; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
}
