:root{
  --font-sans: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  --max-width: 900px;
  --page-padding: 16px;
  --radius: 12px;
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --accent: #1f6feb;
  --card-shadow: rgba(15,23,42,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Images */
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: var(--max-width); margin: 0 auto; padding: var(--page-padding); }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.header-inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
}

/* Avatar */
.avatar {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid rgba(0,0,0,0.06);
  background: #f3f4f6;
}

/* Header text */
.name { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.title { color: var(--muted); font-size: 0.98rem; margin-bottom: 8px; }

/* Contact links */
.contact-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contact-links a { color: var(--accent); text-decoration: none; font-size: 0.95rem; padding: 6px 8px; border-radius: 8px; }
.contact-links a:hover { background: rgba(31,111,235,0.06); }

/* Main flow */
main.container { padding-top: 20px; }

/* Sections */
section {
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: 0 6px 12px var(--card-shadow);
  margin-bottom: 16px;
}
section h2 { margin-bottom: 8px; font-size: 1.05rem; color: var(--text); }
section p, section li { color: var(--text); font-size: 0.98rem; }

/* Skills grid */
.skills ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-left: 18px;
}
@media (max-width: 520px) {
  .skills ul { grid-template-columns: 1fr; }
}

/* Simple spacing for repeated articles */
.experience article, .projects article, .education article { margin-bottom: 10px; }

/* Quick facts */
.quick-facts ul { margin-left: 18px; }

/* Footer */
.site-footer { text-align: center; color: var(--muted); padding: 18px 0; margin-top: 12px; border-top: 1px solid rgba(0,0,0,0.04); }

/* Links & accessibility */
a { color: var(--accent); }
a:focus-visible { outline: 3px solid rgba(31,111,235,0.14); outline-offset: 2px; border-radius: 6px; }

/* Responsive design*/
@media (max-width: 720px) {
  .header-inner { grid-template-columns: 72px 1fr; gap: 12px; }
  .avatar { width: 72px; height: 72px; }
  .name { font-size: 1.25rem; }
  .container { padding: 12px; }
}

/* Print */
@media print {
  body { color: #000; background: #fff; }
  a::after { content: " (" attr(href) ")"; font-size: 0.9em; }
}
