:root {
  --ink: #0c0e12;
  --surface: #14171d;
  --surface-2: #191d24;
  --line: #262b33;
  --text: #ece9e2;
  --muted: #8d93a0;
  --marigold: #f0a202;
  --steel: #6f9fc7;
  --ok: #6bbf8a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 24px; }

a { color: var(--steel); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 2px;
}

.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--marigold);
  letter-spacing: 0.02em;
}
.eyebrow::before { content: "$ "; color: var(--muted); }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 14, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav .navwrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
}
.brand { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--text); }
.brand b { color: var(--marigold); font-weight: 500; }
.navlinks { display: flex; gap: 22px; font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.navlinks a { color: var(--muted); }
.navlinks a:hover { color: var(--text); text-decoration: none; }
.navlinks a.active { color: var(--marigold); }
.navlinks a.active::before { content: "> "; }

/* ---------- Page header (non-home pages) ---------- */
.pagehead { padding: 48px 0 8px; }
.pagehead h1 { font-size: 30px; color: var(--text); }

/* ---------- Sections ---------- */
section { padding: 44px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
section h2 { font-size: 22px; color: var(--text); margin: 8px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn:hover { border-color: var(--marigold); text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--marigold); color: #201400; border-color: var(--marigold); font-weight: 500; }
.btn.primary:hover { filter: brightness(1.06); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Cards / tags ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #3a4150; transform: translateY(-2px); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------- Project card ---------- */
.project-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.project-head h3 { font-size: 19px; color: var(--text); }
.project-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--ok);
  border: 1px solid #2c4636;
  background: rgba(107, 191, 138, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.project p.desc { color: #cfccc5; margin: 10px 0 14px; max-width: 62ch; }
.project-links { display: flex; gap: 16px; font-family: "IBM Plex Mono", monospace; font-size: 13px; flex-wrap: wrap; }

.project.placeholder {
  border-style: dashed;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

/* ---------- Timeline (Tentang) ---------- */
.timeline { border-left: 1px solid var(--line); padding-left: 20px; margin-left: 4px; }
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--marigold);
  border: 2px solid var(--ink);
}
.timeline-item .when {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--muted);
}
.timeline-item h3 { font-size: 16.5px; margin: 4px 0 6px; color: var(--text); }
.timeline-item p, .timeline-item ul { color: #cfccc5; margin: 0; font-size: 14.5px; }
.timeline-item ul { padding-left: 18px; margin-top: 6px; }
.timeline-item li { margin-bottom: 3px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  text-align: left;
}
.contact-card .eyebrow { display: block; margin-bottom: 8px; }
.contact-card a { color: var(--text); font-size: 15px; }
.contact-card p.note { color: var(--muted); font-size: 12.5px; margin: 6px 0 0; }

/* ---------- Facts list ---------- */
.facts { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--muted); }
.facts div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.facts span:last-child { color: var(--text); text-align: right; }

/* ---------- Skills ---------- */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.skill-group .eyebrow { margin-bottom: 10px; display: block; }
.skill-list { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-list .tag { color: var(--text); }

footer {
  padding: 26px 0 44px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.todo {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: #e8b34a;
  background: rgba(232, 179, 74, 0.09);
  border: 1px dashed #4a3c1c;
  padding: 2px 7px;
  border-radius: 5px;
}

@media (max-width: 640px) {
  .pagehead h1 { font-size: 24px; }
}
