:root {
  --text: #1f2328;
  --muted: #57606a;
  --accent: #2f5d50;
  --bg: #ffffff;
  --rule: #e1e4e8;
  --max: 880px;
}

* { box-sizing: border-box; }

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

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}
header.site .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
header.site .brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  border: none;
}
header.site nav a {
  color: var(--muted);
  margin-left: 1.4rem;
  font-size: 0.97rem;
  border: none;
}
header.site nav a:hover,
header.site nav a.active { color: var(--text); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

h1, h2, h3 { font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: 2rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.35rem; margin: 2.4rem 0 0.75rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }

p { margin: 0.6rem 0; }
.muted { color: var(--muted); }
.tagline { color: var(--muted); font-size: 1.05rem; margin: 0.2rem 0 1.2rem; }

.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1rem;
}
.hero img {
  width: 200px;
  height: 240px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 4px;
  display: block;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.contact-list li { margin: 0.15rem 0; }
.contact-list a { color: var(--text); }

ul.clean { list-style: none; padding-left: 0; }
ul.clean > li { margin-bottom: 1.2rem; }

.paper-title { font-weight: 600; }
.paper-meta { color: var(--muted); font-size: 0.92rem; margin-left: 0.25rem; }
.paper-desc { margin-top: 0.3rem; color: var(--text); }
.tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.05rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.tag.indonesia { color: #b8541a; border-color: #b8541a; }

.cv-link {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 3px;
  font-size: 0.95rem;
}
.cv-link:hover { background: var(--accent); color: white; border-bottom-color: var(--accent); }

footer.site {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

.section-intro { color: var(--muted); margin-bottom: 1.5rem; }

@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; }
  .hero img { width: 160px; height: 192px; margin: 0 auto; }
  header.site .inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  header.site nav a { margin-left: 0; margin-right: 1.2rem; }
}
