/* ===========================================================
   TOKENS
=========================================================== */
:root{
  --bg: #F7F7F3;
  --ink: #1C1C18;
  --muted: #6B6B62;
  --accent: #4C6B52;
  --accent-tint: #E4EAE1;
  --line: #E2E0D8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-w: 1120px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 3px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--muted); max-width: 62ch; }

a{ color: inherit; }

a:focus-visible,
button:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

section{
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===========================================================
   SIGNATURE ELEMENT — ink mark that trails the cursor
=========================================================== */
.ink-mark{
  position: fixed;
  top: 0; left: 0;
  width: 26px; height: 26px;
  margin-top: -13px; margin-left: -13px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.16;
  pointer-events: none;
  z-index: 999;
  transform: translate(-100px, -100px);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform;
}

@media (hover: none){
  .ink-mark{ display: none; }
}

/* ===========================================================
   HEADER
=========================================================== */
.site-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}

.wordmark{
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-decoration: none;
}

.site-nav{
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a{
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--muted);
  position: relative;
}

.site-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after{
  transform: scaleX(1);
  transform-origin: left;
}

/* ===========================================================
   HERO
=========================================================== */
.hero{
  padding-top: clamp(3rem, 10vw, 6rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.hero-kicker{
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title{
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  max-width: 16ch;
}

.hero-title em{
  font-style: italic;
  color: var(--accent);
}

.reveal-line{
  display: block;
  overflow: hidden;
}

.reveal-line > span{
  display: block;
  transform: translateY(110%);
  animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-line:nth-child(1) > span{ animation-delay: 0.05s; }
.reveal-line:nth-child(2) > span{ animation-delay: 0.18s; }
.reveal-line:nth-child(3) > span{ animation-delay: 0.31s; }

@keyframes reveal-up{
  to{ transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce){
  .reveal-line > span{ animation: none; transform: none; }
}

.hero-desc{
  margin-top: 1.5rem;
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-cta{
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.75rem 1.5rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease;
}

.hero-cta:hover{ background: var(--accent); }

/* ===========================================================
   ABOUT
=========================================================== */
.about{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  border-top: 1px solid var(--line);
}

.about-frame{
  aspect-ratio: 4 / 5;
  background: linear-gradient(155deg, var(--accent-tint), var(--bg) 70%);
  border: 1px solid var(--line);
  max-width: 320px;
}

.about-body h2{
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 1.25rem;
}

.about-facts{
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.about-facts li{
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.about-facts li span{
  flex: 0 0 8rem;
  color: var(--muted);
}

@media (min-width: 780px){
  .about{
    grid-template-columns: 320px 1fr;
    align-items: start;
  }
}

/* ===========================================================
   WORK
=========================================================== */
.section-title{
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}

.work{ padding-top: 0; }
.work .section-title{ margin-top: 0; }

.work-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 700px){
  .work-grid{ grid-template-columns: 1fr 1fr; gap: 3rem 2.5rem; }
}

.work-card h3{
  font-size: 1.15rem;
  margin-top: 1rem;
}

.work-card p{ margin-top: 0.4rem; font-size: 0.92rem; }

.work-media{
  aspect-ratio: 4 / 3;
  background: color-mix(in srgb, var(--tone) 14%, var(--bg));
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.work-media-inner{
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--tone), transparent 75%);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-media-inner{
  clip-path: inset(0 0 0 0);
}

/* ===========================================================
   FEED — Instagram & Threads
=========================================================== */
.feed{ border-top: 0; }
.feed .section-title{ margin-bottom: 0.5rem; }

.feed-sub{
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.feed-columns{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 780px){
  .feed-columns{ grid-template-columns: 1fr 1fr; }
}

.feed-label{
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.feed-embed-wrap{
  min-height: 280px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.5rem;
  position: relative;
}

.feed-embed-wrap iframe{
  max-width: 100% !important;
}

.feed-skeleton{
  padding: 1.5rem;
}

.feed-skeleton-bar{
  height: 220px;
  background: linear-gradient(100deg, var(--line) 30%, #EDEBE3 50%, var(--line) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  margin-bottom: 0.75rem;
}

.feed-skeleton-bar.short{ height: 14px; width: 60%; }

@keyframes shimmer{
  0%{ background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

.feed-embed-wrap.is-loaded .feed-skeleton{ display: none; }

.feed-embed-wrap.is-error .feed-skeleton{ display: none; }

.feed-embed-wrap.is-error::after{
  content: "Belum bisa memuat unggahan. Coba lihat langsung di profil.";
  display: block;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feed-fallback-link{
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.feed-fallback-link:hover{ border-bottom-color: var(--accent); }

/* ===========================================================
   CONTACT
=========================================================== */
.contact{
  border-top: 1px solid var(--line);
  text-align: left;
}

.contact-desc{ font-size: 1.05rem; }

.contact-email{
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-decoration: none;
  margin: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.contact-links{
  display: flex;
  gap: 1.5rem;
}

.contact-links a{
  font-size: 0.92rem;
  text-decoration: none;
  color: var(--muted);
}

.contact-links a:hover{ color: var(--accent); }

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer{
  padding: 2rem var(--gutter) 3rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.site-footer p{
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}
