/* =========================================================
   Rahma Yuniarsih — Situs Penulis
   Editorial monokrom. Ditulis ulang: rapi, tanpa overflow,
   pas di layar mobile & desktop.
   ========================================================= */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f3f3f1;
  --ink:       #101010;
  --ink-2:     #161616;
  --muted:     #767674;
  --line:      #e5e5e2;
  --line-dark: #2c2c2c;
  --accent:    #9a7b4f;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
  --pad: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* cegah auto-zoom teks di mobile */
  text-size-adjust: 100%;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* kunci: tidak ada geser samping / "zoom out" */
  width: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -.01em; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 16px;
}
.nav-left { display: flex; gap: 24px; align-items: center; }
.nav-left a { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 500; transition: opacity .2s; }
.nav-left a:hover { opacity: .5; }
.nav-left a.active { text-decoration: underline; text-underline-offset: 5px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.nav-right { display: flex; gap: 22px; align-items: center; }
.nav-right a { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.nav-right a:hover { opacity: .5; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 760px;
  max-height: 92vh;
  display: grid;
  background: var(--ink-2); color: #fff; overflow: hidden;
}
.hero-photo { position: absolute; inset: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.03); opacity: .72; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.72) 100%); }
.hero-fallback { position: absolute; inset: 0; background: radial-gradient(120% 80% at 30% 20%, #2b2b2b, #101010); }

.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding: 96px var(--pad) 46px;
  align-self: end;
}
.hero-eyebrows {
  position: absolute; z-index: 2; top: 26px; left: 0; right: 0;
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  display: flex; justify-content: space-between; gap: 12px;
}
.hero-eyebrows .eyebrow { color: rgba(255,255,255,.7); }

.hero-name {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 12rem);
  line-height: .86; letter-spacing: -.02em;
  margin-bottom: 26px; word-break: break-word;
}
.hero-name span { display: block; }
.hero-name .thin {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255,255,255,.92);
  text-stroke: 1.4px rgba(255,255,255,.92);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-tagline { margin-top: 30px; max-width: 40ch; color: rgba(255,255,255,.82); font-size: .95rem; }

/* ============ TOMBOL ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: 13px 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  transition: background .2s, color .2s; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.textlink { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .2s; white-space: nowrap; }
.textlink:hover { gap: 12px; }
.textlink svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ============ SECTION ============ */
.section { padding: clamp(56px, 8vw, 92px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.section-head .eyebrow { display: block; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); text-transform: uppercase; }

/* ============ KATEGORI (lookbook) ============ */
.cat-band { background: var(--ink-2); color: #fff; }
.cat-grid { display: flex; flex-wrap: wrap; }
.cat-cell {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 240px;
  height: 480px;
  border-right: 1px solid var(--line-dark);
  display: flex; align-items: flex-end;
}
.cat-cell:last-child { border-right: 0; }
.cat-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .6; transition: transform .6s, opacity .4s; }
.cat-cell:hover img { transform: scale(1.05); opacity: .8; }
.cat-cell .cat-fallback { position: absolute; inset: 0; background: linear-gradient(160deg,#2f2f2f,#161616); }
.cat-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.6)); }
.cat-body { position: relative; z-index: 2; padding: 28px; }
.cat-body .eyebrow { color: rgba(255,255,255,.65); display: block; margin-bottom: 12px; }
.cat-body h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); text-transform: uppercase; margin-bottom: 14px; }
.cat-body .textlink { color: #fff; }

/* ============ SPLIT BANNER ============ */
.split { display: flex; flex-wrap: wrap; }
.split-text { flex: 1 1 380px; background: var(--bg-soft); display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 5vw, 80px) clamp(28px, 6vw, 84px); }
.split-text .eyebrow { margin-bottom: 18px; }
.split-text h2 { font-size: clamp(2.2rem, 5.5vw, 4.6rem); text-transform: uppercase; margin-bottom: 20px; word-break: break-word; }
.split-text p { color: var(--muted); max-width: 42ch; margin-bottom: 30px; }
.split-photo { flex: 1 1 380px; position: relative; overflow: hidden; background: var(--ink-2); height: 520px; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.split-photo .cat-fallback { position: absolute; inset: 0; background: linear-gradient(160deg,#2f2f2f,#141414); }

/* ============ FITUR ============ */
.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features-grid { display: flex; flex-wrap: wrap; }
.feature { flex: 1 1 260px; display: flex; gap: 16px; align-items: flex-start; padding: clamp(28px,4vw,40px) var(--pad); border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; flex-shrink: 0; }
.feature h4 { font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.feature p { font-size: .82rem; color: var(--muted); }

/* ============ GRID KARYA ============ */
.works-grid {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.work-card {
  position: relative; background: #fff;
  flex: 1 1 25%; max-width: 25%;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .25s; min-width: 0;
}
.work-card:hover { background: var(--bg-soft); }
.work-cover { position: relative; overflow: hidden; height: 300px; background: var(--bg-soft); }
.work-cover img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform .6s, filter .4s; }
.work-card:hover .work-cover img { transform: scale(1.04); filter: grayscale(0); }
.cover-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(160deg,#ededea,#ddd9d1); color: var(--ink); font-family: var(--display); font-size: 2.6rem; font-weight: 800; text-transform: uppercase; }
.work-music-badge { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.94); display: grid; place-items: center; z-index: 2; }
.work-music-badge svg { width: 14px; height: 14px; }
.work-body { padding: 18px 18px 22px; }
.work-body .meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.work-body .cat { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.work-body .date { font-size: .66rem; color: var(--muted); letter-spacing: .03em; }
.work-body h3 { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; line-height: 1.08; margin-bottom: 12px; word-break: break-word; }
.work-body .textlink { font-size: .62rem; }

/* ============ DETAIL KARYA ============ */
.work-detail-hero { background: var(--ink-2); color: #fff; }
.wd-grid { display: grid; grid-template-columns: 1fr 1fr; }
.wd-photo { position: relative; overflow: hidden; min-height: 340px; }
.wd-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.wd-photo .cover-fallback { background: linear-gradient(160deg,#2f2f2f,#141414); color: #fff; }
.wd-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px,7vw,96px) clamp(28px,6vw,80px); }
.wd-text .back { color: rgba(255,255,255,.6); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 34px; display: inline-block; }
.wd-text .meta { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.wd-text .cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #cbb693; font-weight: 700; }
.wd-text .date { font-size: .72rem; color: rgba(255,255,255,.6); }
.wd-text h1 { font-size: clamp(2rem, 5.5vw, 4.2rem); text-transform: uppercase; margin-bottom: 22px; word-break: break-word; }
.wd-text .lead { color: rgba(255,255,255,.82); font-size: 1.02rem; max-width: 44ch; margin-bottom: 30px; }

.article { max-width: 680px; margin-inline: auto; padding: clamp(56px,8vw,88px) var(--pad); }
.article p { font-size: 1.06rem; line-height: 1.85; color: #262626; margin-bottom: 24px; }
.article p:first-of-type::first-letter { font-family: var(--display); font-weight: 800; font-size: 3.2rem; float: left; line-height: .8; padding: 6px 12px 0 0; color: var(--ink); }

/* ============ SPOTIFY ============ */
.music-block { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.music-inner { max-width: 760px; margin-inline: auto; padding: clamp(44px,6vw,64px) var(--pad); }
.music-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.music-head .dot { width: 8px; height: 8px; border-radius: 50%; background: #1db954; }
.spotify-embed { border-radius: 12px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.12); }
.spotify-embed iframe { display: block; width: 100%; border: 0; }
.more-works { border-top: 1px solid var(--line); }

/* ============ ABOUT ============ */
.about-hero { background: var(--ink-2); color: #fff; padding: clamp(72px,10vw,120px) 0 clamp(60px,8vw,100px); }
.about-hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(32px,5vw,60px); align-items: center; }
.about-hero .eyebrow { color: rgba(255,255,255,.6); display: block; margin-bottom: 18px; }
.about-hero h1 { font-size: clamp(2.6rem, 8vw, 6rem); text-transform: uppercase; line-height: .92; word-break: break-word; }
.about-hero .tagline { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-top: 22px; max-width: 42ch; }
.about-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(1); }
.about-portrait .portrait-ph { width: 100%; aspect-ratio: 3/4; background: linear-gradient(160deg,#333,#161616); display: grid; place-items: center; color: #fff; font-family: var(--display); font-size: 3.4rem; font-weight: 800; }
.about-body { max-width: 680px; margin-inline: auto; padding: clamp(56px,8vw,88px) var(--pad); }
.about-body p { font-size: 1.06rem; line-height: 1.85; color: #262626; margin-bottom: 24px; }
.about-contact { border-top: 1px solid var(--line); padding: clamp(44px,6vw,60px) var(--pad); text-align: center; }
.about-contact .eyebrow { display: block; margin-bottom: 20px; }
.about-contact .links { display: flex; gap: 12px 32px; justify-content: center; flex-wrap: wrap; }
.about-contact a { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; letter-spacing: .05em; }
.about-contact a:hover { color: var(--accent); }

/* ============ PAGE HERO ============ */
.page-hero { background: var(--ink-2); color: #fff; padding: clamp(80px,10vw,120px) 0 clamp(60px,7vw,88px); }
.page-hero .eyebrow { color: rgba(255,255,255,.55); display: block; margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(2.8rem, 10vw, 7rem); text-transform: uppercase; word-break: break-word; }
.page-hero p { color: rgba(255,255,255,.75); margin-top: 18px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--ink); color: #fff; padding: clamp(56px,8vw,80px) 0 36px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: clamp(2rem,6vw,4.4rem); text-transform: uppercase; line-height: .9; word-break: break-word; }
.footer-col .eyebrow { color: rgba(255,255,255,.5); display: block; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .82rem; color: rgba(255,255,255,.8); margin-bottom: 11px; letter-spacing: .03em; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: .7rem; color: rgba(255,255,255,.5); letter-spacing: .05em; flex-wrap: wrap; gap: 10px; text-transform: uppercase; }

/* ============ EMPTY & 404 ============ */
.empty { grid-column: 1 / -1; text-align: center; padding: 80px 24px; border: 1px dashed var(--line); }
.empty .big { font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 10px; }
.empty p { color: var(--muted); }
.notfound { min-height: 68vh; display: grid; place-items: center; text-align: center; background: var(--ink-2); color: #fff; padding: 40px var(--pad); }
.notfound .code { font-family: var(--display); font-weight: 800; font-size: clamp(5rem,20vw,14rem); line-height: 1; }
.notfound h1 { font-size: 1.5rem; text-transform: uppercase; margin: 10px 0 16px; }
.notfound p { color: rgba(255,255,255,.6); margin-bottom: 28px; }

/* ============ RESPONSIF ============ */
@media (max-width: 960px) {
  .cat-cell { flex: 1 1 100%; min-width: 0; height: 360px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .split-text { flex: 1 1 100%; }
  .split-photo { flex: 1 1 100%; height: 300px; order: -1; }
  .feature { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature:last-child { border-bottom: 0; }
  .work-card { flex: 1 1 50%; max-width: 50%; }
  .wd-grid { grid-template-columns: 1fr; }
  .wd-photo { height: 320px; order: -1; }
  .about-hero .wrap { grid-template-columns: 1fr; }
  .about-portrait { max-width: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --pad: 20px; }
  .nav { height: 56px; }
  .nav-left {
    position: fixed; inset: 56px 0 auto 0; z-index: 55;
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s;
  }
  .nav-left.open { transform: translateY(0); }
  .nav-left a { padding: 15px 20px; border-bottom: 1px solid var(--line); }
  .nav-right .hide-sm { display: none; }
  .nav-toggle { display: block; }

  .hero { height: 560px; max-height: 84vh; }
  .hero-inner { padding-top: 80px; padding-bottom: 40px; }
  .hero-name { font-size: clamp(2.6rem, 19vw, 5rem); margin-bottom: 22px; }
  .hero-actions { gap: 10px; }
  .btn { padding: 12px 20px; }

  .works-grid .work-card { flex: 1 1 50%; max-width: 50%; }
  .work-cover { height: 220px; }
  .work-body { padding: 14px 14px 18px; }
  .work-body h3 { font-size: 1rem; }

  .footer-top { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 380px) {
  .works-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(2.4rem, 18vw, 4rem); }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; } }
