/* ==========================================================================
   Luthfan Akbar — Professional / Research Website
   Shared stylesheet
   ========================================================================== */

:root {
  --bg: #faf9f6;
  --bg-alt: #f1efe8;
  --text: #1b1b1a;
  --text-muted: #5d5b54;
  --accent: #a8632a;
  --accent-dark: #814c1f;
  --border: #e3ddd0;
  --card-bg: #ffffff;
  --max-width: 880px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* ---------- Layout shell ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.site-title:hover {
  text-decoration: none;
}

.site-title .subtitle-inline {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-wrap a {
  color: var(--text-muted);
}

/* ---------- Typography ---------- */

h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 8px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 10px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.lede {
  font-size: 1.08rem;
  color: var(--text-muted);
}

section {
  margin-bottom: 56px;
}

section:last-child {
  margin-bottom: 0;
}

/* ---------- Hero (home page) ---------- */

.hero {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-text {
  flex: 1 1 380px;
}

.hero-photo {
  flex: 0 0 auto;
}

.avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  overflow: hidden;
  border: 4px solid var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Buttons ---------- */

.btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

/* ---------- Cards ---------- */

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero .btn-row {
    justify-content: center;
  }
}

.status-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.meta-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: -6px 0 14px;
}

/* ---------- CV / definition lists ---------- */

dl.cv-list dt {
  font-weight: 600;
  margin-top: 18px;
}

dl.cv-list dt:first-child {
  margin-top: 0;
}

dl.cv-list dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 600;
  min-width: 90px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Experience blocks ---------- */

.exp-block {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.exp-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.exp-title {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
}

.exp-org {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 2px 0 10px;
}

.exp-dates {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.detail-list {
  margin: 4px 0 0;
  padding-left: 20px;
}

.detail-list li {
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.detail-list li::marker {
  color: var(--accent);
}

h3.section-sub {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

h3.section-sub:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
