/* =========================================================
   YUDA PRATAMA — PORTFOLIO
   Design language: soft neo-brutalism / network-schematic
   Signature: blueprint grid + status-panel framing, corner
   brackets like an equipment-rack label plate.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root{
  /* ---- color tokens ---- */
  --bg:        #ECE7DC;   /* warm paper */
  --bg-alt:    #E3DDCE;   /* slightly deeper paper, for stripes */
  --panel:     #FFFDF8;   /* card surface */
  --ink:       #1B1B18;   /* near-black warm */
  --ink-soft:  #55534B;   /* secondary text */
  --blue:      #2F5D8A;   /* schematic accent (primary) */
  --blue-soft: #DCE6EE;   /* pale blue fill */
  --amber:     #E2A63A;   /* callout / tag accent */
  --amber-soft:#FBEBC9;
  --green:     #4C7A56;   /* status-online */
  --line:      var(--ink);

  /* ---- shape / shadow ---- */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-hover: 6px 6px 0 var(--ink);
  --border: 2.5px solid var(--ink);

  /* ---- type ---- */
  --f-display: "Space Grotesk", "Inter", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-mono: "JetBrains Mono", monospace;
}

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

body{
  margin:0;
  background:
    radial-gradient(circle, rgba(27,27,24,0.07) 1px, transparent 1px) 0 0/22px 22px,
    var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: inherit; }
img{ max-width: 100%; display:block; }

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

h1,h2,h3,h4{
  font-family: var(--f-display);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3{ font-size: 1.15rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--ink); }
.muted{ color: var(--ink-soft); }

.mono{ font-family: var(--f-mono); }

/* ---------- eyebrow / kicker ---------- */
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: .9em;
}
.eyebrow::before{
  content:"";
  width: 8px; height: 8px;
  background: var(--blue);
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  display:inline-block;
}

/* ---------- nav ---------- */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: var(--bg);
  border-bottom: var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.brand{
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1rem;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:10px;
}
.brand .dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--green);
  border:1.5px solid var(--ink);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.nav-links{
  display:flex;
  gap:6px;
  list-style:none;
  margin:0; padding:0;
  font-family: var(--f-mono);
  font-size: .85rem;
}
.nav-links a{
  text-decoration:none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-weight:500;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.nav-toggle{
  display:none;
  font-family: var(--f-mono);
  background: var(--panel);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  cursor:pointer;
}

@media (max-width: 720px){
  .nav-toggle{ display:block; }
  .nav-links{
    position:absolute;
    top: 100%; left:0; right:0;
    background: var(--bg);
    border-bottom: var(--border);
    flex-direction:column;
    padding: 8px 24px 16px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ display:block; }
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: .88rem;
  text-decoration:none;
  padding: 12px 20px;
  border: var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor:pointer;
}
.btn:hover{ transform: translate(-2px,-2px); box-shadow: var(--shadow-hover); }
.btn:active{ transform: translate(0,0); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary{ background: var(--blue); color: #fff; }
.btn-amber{ background: var(--amber); color: var(--ink); }

/* ---------- panel / card ---------- */
.panel{
  background: var(--panel);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

/* profile photo frame */
.profile-frame{
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 300px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
}
.profile-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* corner-bracket framing (signature motif) */
.bracket{
  position:relative;
}
.bracket::before, .bracket::after{
  content:"";
  position:absolute;
  width: 22px; height: 22px;
  border: 3px solid var(--blue);
}
.bracket::before{ top:-3px; left:-3px; border-right:none; border-bottom:none; }
.bracket::after{ bottom:-3px; right:-3px; border-left:none; border-top:none; }

/* ---------- tags / chips ---------- */
.tag{
  display:inline-flex;
  align-items:center;
  font-family: var(--f-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing:.03em;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--blue-soft);
  margin: 0 6px 6px 0;
}
.tag.amber{ background: var(--amber-soft); }

/* ---------- status pill ---------- */
.status-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--f-mono);
  font-size: .78rem;
  font-weight:700;
  padding: 6px 14px;
  border: var(--border);
  border-radius: 999px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}
.status-pill .blip{
  width:9px;height:9px;border-radius:50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--amber-soft);
  animation: blip 1.8s ease-in-out infinite;
}
@keyframes blip{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

/* ---------- sections ---------- */
section{ padding: 72px 0; }
.section-head{ margin-bottom: 40px; max-width: 640px; }

.divider{
  border:none;
  border-top: var(--border);
  margin: 0;
}

/* ---------- footer ---------- */
.site-footer{
  border-top: var(--border);
  padding: 32px 0 40px;
  font-family: var(--f-mono);
  font-size: .82rem;
  color: var(--ink-soft);
}
.site-footer .wrap{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

/* ---------- utility grids ---------- */
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 800px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
}

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in{ opacity:1; transform:none; }
