/* ============ tokens ============ */
:root {
  --bg: #fff;
  --bg-alt: #fafafa;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #2563eb;
  --inverse: #18181b;
  --inverse-text: #fff;
  --radius: 6px;
  --container: 1088px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ============ fonts (self-hosted dari rilis resmi) ============ */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/Inter-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/Inter-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/Inter-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/InterDisplay-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Inter Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/InterDisplay-Bold.woff2') format('woff2'); }

/* ============ base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
h1, h2 { font-family: 'Inter Display', 'Inter', sans-serif; font-weight: 700; margin: 0; }
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 32px; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ tombol ============ */
.btn {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--inverse); color: var(--inverse-text); }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-alt); }

/* ============ header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { font-weight: 600; font-size: 15px; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.header-cta { padding: 7px 14px; }

/* ============ hero ============ */
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--border); }
.hero h1 { max-width: 720px; }
.hero-sub { margin-top: 16px; max-width: 640px; font-size: 16px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }


/* ============ section ============ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============ kartu ============ */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-title {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}
.card-desc { color: var(--muted); }
.card-list { margin: 12px 0 0; padding-left: 18px; }
.card-list li { margin-top: 6px; }

/* ============ karya ============ */
.work-group + .work-group { margin-top: 40px; }
.group-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-head .card-title { margin: 0; }
.repo-link { font-size: 13px; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #52525b;
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.4;
}


/* ============ kontak ============ */
.contact-lead { max-width: 560px; font-size: 15px; color: var(--muted); }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
.contact-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 12px 16px;
}
.contact-key {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  min-width: 72px;
}

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 24px 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ============ responsif ============ */
@media (max-width: 768px) {
  .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .hero { padding: 56px 0 48px; }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .section { padding: 56px 0; }
}
