/* Shared styles for jmrludan.com */
:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --subtle: #8a8a85;
  --accent: #337ab7;
  --accent-soft: #e8f1f9;
  --card: #ffffff;
  --border: #e5e5e0;
  --border-strong: #d0d0ca;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { text-decoration: underline; }
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

/* Site navigation */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.site-nav .brand img { width: 28px; height: 28px; }
.site-nav a.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a.nav-link:hover { color: var(--fg); }
.site-nav a.nav-link.active { color: var(--fg); border-bottom-color: var(--accent); }

h1 { font-size: 2.25rem; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; letter-spacing: -0.01em; }
h2.section {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--subtle);
  margin: 2.5rem 0 1rem;
  font-weight: 600;
}
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }

/* Home */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
@media (min-width: 680px) {
  .hero { grid-template-columns: 220px 1fr; gap: 2.5rem; }
}
.hero img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
}
.hero .lede { font-size: 1.15rem; color: var(--muted); margin: 0 0 0.75rem; }
.hero .contact { font-size: 0.95rem; color: var(--muted); }

.job { margin-bottom: 1.75rem; }
.job h3 { margin: 0; font-size: 1.1rem; }
.job .role { font-weight: 400; color: var(--muted); }
.job .meta { color: var(--subtle); font-size: 0.9rem; margin: 0.1rem 0 0.4rem; }
.job ul { margin: 0; padding-left: 1.15rem; color: var(--fg); }
.job li { margin-bottom: 0.3rem; }

/* Highlights */
.pub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 680px) {
  .pub { grid-template-columns: 240px 1fr; align-items: start; }
}
.pub .figure img, .pub .figure iframe {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.pub .figure iframe { aspect-ratio: 16 / 9; height: auto; }
.pub h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.pub .authors { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.4rem; }
.pub .venue { color: var(--subtle); font-size: 0.9rem; margin: 0 0 0.4rem; }
.pub .links a { margin-right: 0.9rem; text-decoration: none; font-size: 0.95rem; }
.pub .links a:hover { text-decoration: underline; }

.project {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 680px) {
  .project { grid-template-columns: 200px 1fr; align-items: start; }
}
.project .report {
  display: block;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: var(--accent);
  font-size: 0.9rem;
}
.project .report:hover { border-color: var(--border-strong); text-decoration: underline; }
.project .report .label { display: block; color: var(--subtle); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.project h3 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.project .course { color: var(--subtle); font-size: 0.9rem; margin: 0 0 0.5rem; }
.project p.desc { margin: 0 0 0.5rem; }
.project .links a { margin-right: 0.9rem; text-decoration: none; font-size: 0.95rem; }
.project .links a:hover { text-decoration: underline; }


footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.resume-link { display: block; }
.resume-img {
  display: block;
  width: 100%;
  max-width: 820px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
