/* ============================================================
   Iqbal Adriansyah Adrial — personal site
   Clean editorial resume · monochrome · typography-first
   ============================================================ */

:root {
  --bg: #000000;
  --text: #f4f4f4;
  --dim: #c4c4c4;      /* body / bullets */
  --muted: #8a8a8a;    /* labels, meta */
  --faint: #6a6a6a;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --maxw: 1040px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: #ffffff; color: #000000; }

.skip-link {
  position: absolute;
  left: -999px; top: 8px;
  background: #fff; color: #000;
  padding: 8px 14px; border-radius: 4px; z-index: 10;
}
.skip-link:focus { left: 16px; }

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 40px 96px;
}

.rule { border: 0; border-top: 1px solid var(--line-strong); margin: 22px 0 0; }

/* ---------- Header ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.name { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.role { margin: 3px 0 0; font-size: 16px; font-weight: 500; color: var(--muted); }

.masthead__nav { display: flex; gap: 24px; padding-top: 3px; }
.masthead__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.masthead__nav a:hover { color: var(--text); }

/* ---------- Layout: sticky about (left) + scrolling work (right) ---------- */
.layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.about {
  position: sticky;
  top: 32px;
  align-self: start;
}
.about__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.about__links { list-style: none; margin: 30px 0 0; padding: 0; }
.about__links li { border-top: 1px solid var(--line); }
.about__links a,
.about__muted {
  display: block;
  padding: 14px 2px;
  font-size: 13px;
  color: var(--dim);
}
.about__links a { transition: color 0.15s ease; }
.about__links a:hover { color: #fff; }
.about__muted { color: var(--muted); }

.work > .block:first-child { margin-top: 0; }

.arr { font-size: 11px; color: var(--muted); }
.about__links a:hover .arr,
.links a:hover .arr { color: #fff; }

/* ---------- Section block ---------- */
.block { margin-top: 68px; }
.block__label {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.prose { max-width: 68ch; }
.prose p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--dim); }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--text); font-style: italic; }

/* ---------- Experience entries ---------- */
.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 20px 56px;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.block__label + .entry { border-top: 0; padding-top: 0; margin-top: 0; }

.entry__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.entry__org { margin: 6px 0 10px; font-size: 13px; color: var(--dim); }
.entry__meta { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

.entry__points { margin: 0; padding: 0; list-style: none; }
.entry__points li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--dim);
}
.entry__points li:last-child { margin-bottom: 0; }
.entry__points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--faint);
}
.entry__points--plain p { margin: 0; font-size: 13px; color: var(--dim); }
.entry--tight { padding-top: 0; margin-top: 0; border-top: 0; }

/* ---------- Skills ---------- */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 34px 56px;
}
.skills__title { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text); }
.skills__group ul { margin: 0; padding: 0; list-style: none; }
.skills__group li {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: 6px;
}

/* ---------- Certifications / generic columns ---------- */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px 56px;
}
.cert__name { margin: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.cert__meta { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Contact / footer ---------- */
.contact { margin-top: 84px; }
.contact .rule { margin-bottom: 30px; }
.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px 56px;
  flex-wrap: wrap;
}
.contact__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.contact__note { margin: 8px 0 0; font-size: 13px; color: var(--muted); max-width: 44ch; }
.links { list-style: none; margin: 0; padding: 0; }
.links--footer { display: flex; flex-direction: column; gap: 12px; }
.links a { font-size: 14px; color: var(--dim); transition: color 0.15s ease; }
.links a:hover { color: #fff; }

.colophon { margin: 48px 0 0; font-size: 12px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .about { position: static; top: auto; margin-bottom: 46px; }
  .work > .block:first-child { margin-top: 0; }
}

@media (max-width: 720px) {
  .page { padding: 44px 22px 64px; }
  .masthead { flex-direction: column; gap: 16px; }
  .masthead__nav { flex-wrap: wrap; gap: 16px; margin-left: -2px; }
  .entry { grid-template-columns: 1fr; gap: 12px; }
  .entry__org { margin-bottom: 4px; }
  .block { margin-top: 52px; }
  .contact__row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
