/*
Theme Name: MangJaya Personal
Theme URI: https://mangjaya.net
Author: Mang Jaya
Description: Tema personal untuk profil, usaha, pendidikan, dan karya digital Mang Jaya.
Version: 1.0.0
Text Domain: mangjaya
*/

:root {
  --ink: #14211d;
  --muted: #65716c;
  --paper: #f6f3eb;
  --surface: #fffdf8;
  --line: rgba(20, 33, 29, 0.12);
  --green: #225c4d;
  --green-deep: #153f35;
  --orange: #e66b3b;
  --amber: #f3b94f;
  --shadow: 0 22px 70px rgba(31, 49, 43, 0.10);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--green);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--orange); }
.section-title {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}
.section-lead { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(246, 243, 235, .88);
  backdrop-filter: blur(18px);
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 30px; color: #3d4d47; font-size: .9rem; font-weight: 700; }
.nav-links a:hover { color: var(--orange); }
.nav-cta { padding: 11px 18px; border-radius: 999px; color: white !important; background: var(--ink); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--ink); }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: currentColor; }

.hero { position: relative; overflow: hidden; padding: 84px 0 90px; }
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -160px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243,185,79,.34), rgba(243,185,79,0) 68%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); align-items: center; gap: 74px; }
.hero h1 {
  max-width: 840px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .86;
}
.hero h1 em { color: var(--orange); font-weight: inherit; }
.hero-copy { max-width: 670px; margin: 28px 0 0; color: #50605a; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(31,49,43,.12); }
.button-primary { border-color: var(--green); color: #fff; background: var(--green); }
.button-secondary { background: rgba(255,255,255,.55); }
.hero-visual { position: relative; min-height: 470px; }
.portrait-card {
  position: absolute;
  inset: 20px 8px 20px 52px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 180px 180px 34px 34px;
  background:
    radial-gradient(circle at 38% 24%, rgba(255,255,255,.38), transparent 22%),
    linear-gradient(145deg, #2d725f 0%, #173d34 58%, #102c26 100%);
  box-shadow: var(--shadow);
}
.portrait-card::before,
.portrait-card::after { content: ""; position: absolute; border-radius: 50%; }
.portrait-card::before { width: 260px; height: 260px; right: -80px; bottom: -60px; background: var(--orange); opacity: .9; }
.portrait-card::after { width: 150px; height: 150px; left: -50px; top: 100px; border: 22px solid rgba(243,185,79,.72); }
.monogram {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff7e7;
  font-family: Georgia, serif;
  font-size: clamp(6rem, 12vw, 10rem);
  letter-spacing: -.12em;
  text-shadow: 0 14px 40px rgba(0,0,0,.18);
  transform: translateX(-.06em);
}
.floating-label {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.76);
  border-radius: 999px;
  background: rgba(255,253,248,.92);
  box-shadow: 0 14px 40px rgba(20,33,29,.13);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 800;
}
.floating-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.label-one { top: 56px; left: 0; }
.label-two { right: -4px; bottom: 78px; }

.marquee { border-block: 1px solid var(--line); background: rgba(255,255,255,.35); }
.marquee-track { display: flex; justify-content: space-between; gap: 22px; padding: 20px 0; color: #4c5b56; font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.marquee-track span { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--orange); }

.about { padding: 125px 0; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.about-sticky { position: sticky; top: 120px; }
.about-copy { font-family: Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.7rem); letter-spacing: -.035em; line-height: 1.18; }
.about-copy strong { color: var(--green); font-weight: 500; }
.pillars { display: grid; gap: 14px; margin-top: 45px; }
.pillar { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.pillar-number { color: var(--orange); font-size: .8rem; font-weight: 850; letter-spacing: .12em; }
.pillar h3 { margin: 0 0 6px; font-size: 1rem; }
.pillar p { margin: 0; color: var(--muted); }

.work { padding: 120px 0; color: #f7f2e8; background: var(--ink); }
.work .eyebrow { color: #d2dfd9; }
.work .section-lead { color: #aebcb6; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 62px; }
.project-card {
  position: relative;
  grid-column: span 4;
  min-height: 340px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  background: #1b2b26;
  transition: transform .25s ease, border-color .25s ease;
}
.project-card:hover { transform: translateY(-5px); border-color: rgba(243,185,79,.62); }
.project-card.large { grid-column: span 8; }
.project-card.orange { color: #241b17; background: var(--orange); }
.project-card.cream { color: var(--ink); background: #eee7d8; }
.project-card.green { background: var(--green-deep); }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-type { font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.status { padding: 7px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: .66rem; font-weight: 800; opacity: .7; }
.project-card h3 { max-width: 430px; margin: 88px 0 12px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 500; letter-spacing: -.045em; line-height: .96; }
.project-card:not(.large) h3 { margin-top: 74px; font-size: 2.1rem; }
.project-card p { max-width: 520px; margin: 0; opacity: .74; }
.project-link { position: absolute; right: 28px; bottom: 25px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.15rem; transition: transform .2s ease; }
.project-card:hover .project-link { transform: rotate(-38deg); }

.story { padding: 125px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.timeline { margin-top: 15px; }
.timeline-item { position: relative; padding: 0 0 38px 36px; border-left: 1px solid var(--line); }
.timeline-item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--paper); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item span { color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.timeline-item h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.timeline-item p { margin: 0; color: var(--muted); }
.quote-card { padding: 48px; border-radius: var(--radius-lg); color: white; background: var(--green); box-shadow: var(--shadow); }
.quote-mark { color: var(--amber); font-family: Georgia, serif; font-size: 5rem; line-height: .8; }
.quote-card blockquote { margin: 18px 0 28px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.5vw, 3rem); letter-spacing: -.035em; line-height: 1.12; }
.quote-card p { margin: 0; color: #c9ddd5; }

.notes { padding: 120px 0; background: var(--surface); }
.notes-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.topic-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 54px; }
.topic { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.topic-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.topic h3 { margin: 42px 0 8px; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 500; }
.topic p { margin: 0; color: var(--muted); font-size: .92rem; }

.closing { padding: 120px 0; }
.closing-box { position: relative; overflow: hidden; padding: 70px; border-radius: var(--radius-lg); color: white; background: var(--orange); }
.closing-box::after { content: "MJ"; position: absolute; right: -20px; bottom: -90px; color: rgba(255,255,255,.12); font-family: Georgia, serif; font-size: 14rem; letter-spacing: -.1em; }
.closing-box h2 { position: relative; z-index: 2; max-width: 820px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -.055em; line-height: .94; }
.closing-box p { position: relative; z-index: 2; max-width: 590px; margin: 24px 0 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }

.site-footer { padding: 36px 0 46px; border-top: 1px solid var(--line); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 22px; font-weight: 700; }
.footer-links a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 78px 20px auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { margin-top: 6px; text-align: center; }
  .menu-toggle { display: block; }
  .hero { padding-top: 55px; }
  .hero-grid, .about-grid, .story-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-visual { min-height: 420px; max-width: 520px; width: 100%; margin-inline: auto; }
  .about-sticky { position: static; }
  .project-card, .project-card.large { grid-column: span 6; }
  .topic-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .hero { padding-bottom: 66px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 5.2rem); }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 350px; }
  .portrait-card { inset: 12px 16px 12px 34px; }
  .label-one { top: 30px; }
  .label-two { right: 0; bottom: 46px; }
  .marquee-track { overflow: hidden; justify-content: flex-start; }
  .about, .work, .story, .notes, .closing { padding-block: 82px; }
  .pillar { grid-template-columns: 42px 1fr; }
  .project-grid { display: block; }
  .project-card { min-height: 330px; margin-top: 14px; }
  .project-card h3, .project-card:not(.large) h3 { margin-top: 62px; }
  .quote-card { padding: 34px 28px; }
  .notes-head { align-items: flex-start; flex-direction: column; }
  .closing-box { padding: 48px 28px 130px; }
  .footer-wrap { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

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