/* ShukorFahmi portfolio: shared styles for the home page and the "Semua kerja" page */
:root {
  --ink: #0E1A2E;
  --muted: #5B6477;
  --accent: #1E3FAE;
  --accent-hover: #17338F;
  --tint: #EEF2FB;
  --line: #E6E8EE;
  --bg: #FFFFFF;
  --soft: #F6F7FA;
  --shadow: 0 1px 2px rgba(14,26,46,.04), 0 8px 24px rgba(14,26,46,.06);
  --shadow-lift: 0 2px 4px rgba(14,26,46,.05), 0 16px 40px rgba(14,26,46,.10);
}
* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Brand ---------- */
.mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--accent); color: #fff; font: italic 400 17px/1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; padding-right: 1px; flex: none; }

/* ---------- Nav ---------- */
nav.site { display: flex; align-items: center; gap: 28px; padding: 22px 0; }
nav.site .name { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; text-decoration: none; margin-right: auto; }
nav.site a.nav-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--muted); }
nav.site a.nav-link:hover, nav.site a.nav-link[aria-current="page"] { color: var(--ink); }
nav.site a.cta { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 14px; color: #fff; background: var(--ink); padding: 0 16px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
nav.site a.cta:hover { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 16px "Plus Jakarta Sans", sans-serif; padding: 14px 22px; border-radius: 10px; text-decoration: none; text-align: center; border: 0; cursor: pointer; transition: background-color .15s ease, box-shadow .15s ease; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-wa { background: var(--accent); color: #fff; }
.btn-wa:hover { background: var(--accent-hover); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.text-link { font-weight: 500; color: var(--accent); text-decoration: none; padding: 10px 0; } /* inline padding widens the tap area without moving text */
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Section basics ---------- */
section { padding: 112px 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 0 0 24px; max-width: 16ch; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 600; margin: 0 0 14px; }
h3 { font-weight: 600; letter-spacing: -.01em; }
.lede { color: var(--muted); max-width: 56ch; margin: 0 0 48px; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.head-row .lede { margin: 0; }

/* ---------- Work card (grid + slider) ---------- */
.tile { text-decoration: none; display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px 18px; transition: box-shadow .2s ease, transform .2s ease; }
.tile:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.thumb { aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--soft); margin-bottom: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile h3 { margin: 0; font-size: 18px; padding: 0 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; padding: 0 4px; }
.tile .kind { font-size: 13px; font-weight: 500; color: var(--muted); padding: 0 4px; }
.tile .live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 500; margin-left: 10px; }
.tile .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Footer ---------- */
footer.site { padding: 32px 0; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
footer.site .brand { display: inline-flex; align-items: center; gap: 10px; }
footer.site .mark { width: 22px; height: 22px; font-size: 14px; border-radius: 6px; }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  nav.site { gap: 16px; }
  nav.site a.nav-link.hide-sm { display: none; }
  section { padding: 72px 0; }
  .lede { margin-bottom: 36px; }
}
