/*
Theme Name: Abdullatief Personal
Theme URI: https://abdullatief.com
Author: Abdullatief
Description: Tema personal untuk profil, karya tulis, buku, aktivitas, video, dan media sosial.
Version: 2.0.0
Text Domain: abdullatief-personal
*/

:root {
  --ink: #28251f;
  --muted: #6d6559;
  --paper: #faf6ed;
  --sand: #efe5d5;
  --line: #d7cbb9;
  --forest: #29332d;
  --clay: #a96f4d;
  --cream: #fffaf1;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .24em; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(250,246,237,.96); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-brand { font-size: 1.45rem; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.main-nav ul { display: flex; gap: 1.3rem; align-items: center; margin: 0; padding: 0; list-style: none; font-family: system-ui, sans-serif; font-size: .9rem; }
.main-nav a { text-decoration: none; }
.main-nav .has-submenu { position: relative; }
.main-nav .submenu { display: none; position: absolute; z-index: 20; top: 100%; left: -.8rem; min-width: 220px; padding: .75rem; gap: .3rem; align-items: stretch; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 16px 35px rgba(37,34,29,.12); }
.main-nav .submenu a { display: block; padding: .45rem .55rem; white-space: nowrap; }
.main-nav .has-submenu:hover .submenu, .main-nav .has-submenu:focus-within .submenu { display: flex; flex-direction: column; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; padding: .55rem .75rem; font: inherit; }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 620px; }
.hero-copy { padding: clamp(4rem,8vw,7.5rem) max(1rem,calc((100vw - var(--max))/2)); padding-right: clamp(2rem,6vw,6rem); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 1rem; color: #806d55; font-family: system-ui,sans-serif; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0 0 1.4rem; font-size: clamp(3rem,7vw,6.6rem); font-weight: 400; line-height: .96; letter-spacing: -.045em; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.08rem; }
.hero-art { position: relative; min-height: 420px; overflow: hidden; background: #d7c3a5; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-note { position: absolute; right: clamp(1rem,4vw,3rem); bottom: clamp(1rem,4vw,3rem); width: 136px; aspect-ratio: 1; padding: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--cream); background: var(--forest); border-radius: 50%; text-align: center; box-shadow: 0 18px 40px rgba(28,36,31,.22); }
.hero-note strong { font-size: 2.3rem; line-height: 1; }
.hero-note span { margin-top: .35rem; font: .72rem/1.2 system-ui,sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .75rem 1.05rem; border: 1px solid var(--ink); font: 650 .86rem/1 system-ui,sans-serif; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: var(--cream); }
.button-quiet { border-color: transparent; }
.cta { display: inline-flex; align-items: center; gap: .45rem; width: fit-content; margin-top: 1rem; font-family: system-ui,sans-serif; font-weight: 650; }

.section { padding: clamp(4rem,7vw,7rem) 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--forest); color: var(--cream); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; font-size: clamp(2rem,4vw,3.8rem); font-weight: 400; letter-spacing: -.03em; }
.section-head a { font-family: system-ui,sans-serif; font-size: .9rem; }

.topic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.topic { position: relative; min-height: 190px; overflow: hidden; display: flex; align-items: end; text-decoration: none; background: var(--forest); }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .45s ease, opacity .3s ease; }
.topic:hover img { transform: scale(1.035); opacity: .58; }
.topic > span { position: relative; z-index: 2; width: 100%; padding: 1rem; display: flex; justify-content: space-between; align-items: end; gap: .75rem; color: #fff; background: rgba(20,26,23,.7); }
.topic strong { font-size: 1.2rem; font-weight: 500; }
.topic small { color: rgba(255,255,255,.74); font-family: system-ui,sans-serif; white-space: nowrap; }

.content-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.content-card { min-width: 0; }
.visual { aspect-ratio: 4/3; overflow: hidden; display: block; background: #ded3c1; }
.visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-motivasi { background: linear-gradient(135deg,rgba(27,58,47,.12),rgba(27,58,47,.03)),url('assets/images/motivasi.jpg') center/cover; }
.visual-komunikasi { background: linear-gradient(135deg,rgba(27,58,47,.12),rgba(27,58,47,.03)),url('assets/images/komunikasi.jpg') center/cover; }
.visual-parenting { background: linear-gradient(135deg,rgba(27,58,47,.12),rgba(27,58,47,.03)),url('assets/images/parenting.jpg') center/cover; }
.visual-leadership { background: linear-gradient(135deg,rgba(27,58,47,.12),rgba(27,58,47,.03)),url('assets/images/leadership.jpg') center/cover; }
.visual-manajemen { background: linear-gradient(135deg,rgba(27,58,47,.12),rgba(27,58,47,.03)),url('assets/images/manajemen.jpg') center/cover; }
.visual-customer-experience { background: linear-gradient(135deg,rgba(27,58,47,.12),rgba(27,58,47,.03)),url('assets/images/customer-experience.jpg') center/cover; }
.archive-intro { max-width: 680px; color: var(--muted); margin: -1.25rem 0 1.25rem; }
.topic-links { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 2.5rem; }
.topic-links a { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--paper); }
.topic-links small { margin-left: .35rem; color: var(--muted); }
.meta { margin-top: .85rem; color: #847765; font: .74rem/1.4 system-ui,sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.content-card h3 { margin: .45rem 0 .35rem; font-size: 1.45rem; font-weight: 400; line-height: 1.25; }
.content-card h3 a { text-decoration: none; }
.excerpt { margin: 0; color: var(--muted); font-family: system-ui,sans-serif; font-size: .92rem; }

.book-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,6vw,6rem); align-items: center; }
.book-cover { max-width: 300px; aspect-ratio: 2/3; margin-inline: auto; padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; background: var(--clay); color: white; border-radius: 3px 14px 14px 3px; box-shadow: 20px 24px 45px rgba(65,47,32,.25); transform: rotate(-3deg); }
.book-cover.has-image { padding: 0; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover small { font-family: system-ui,sans-serif; letter-spacing: .12em; }
.book-cover strong { font-size: 2rem; line-height: 1.1; }
.book-copy h2 { margin: .4rem 0 1rem; font-size: clamp(2.2rem,5vw,4.5rem); font-weight: 400; line-height: 1; }
.book-copy p { color: var(--muted); font-family: system-ui,sans-serif; }

.activity-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.activity-card { padding-top: 1.25rem; border-top: 2px solid rgba(255,255,255,.35); }
.activity-card h3 { margin: .6rem 0 .35rem; font-size: 1.45rem; font-weight: 400; }
.activity-card p { margin: 0; opacity: .76; font-family: system-ui,sans-serif; font-size: .9rem; }

.section-caption { max-width: 360px; color: var(--muted); font: .9rem/1.5 system-ui,sans-serif; }
.social-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.social-panel { min-height: 330px; padding: clamp(1.5rem,4vw,3rem); display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-decoration: none; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1000px rgba(25,31,28,.56); transition: transform .25s ease, box-shadow .25s ease; }
.social-panel:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1000px rgba(25,31,28,.68), 0 20px 44px rgba(42,39,33,.15); }
.social-youtube { background-image: url('assets/images/komunikasi.jpg'); }
.social-instagram { background-image: url('assets/images/customer-experience.jpg'); }
.social-label,.social-arrow { font: .76rem/1.3 system-ui,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.social-panel strong { max-width: 520px; font-size: clamp(1.7rem,3vw,2.7rem); font-weight: 400; line-height: 1.08; }

.page-main { min-height: 65vh; padding: 5rem 0; }
.page-title { max-width: 900px; margin: 0 0 2rem; font-size: clamp(2.6rem,6vw,5.8rem); font-weight: 400; line-height: 1; }
.article-shell { max-width: 820px; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { max-width: 100%; }
.entry-content h2,.entry-content h3 { line-height: 1.2; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem 1.5rem; }
.pagination { margin-top: 3rem; }

.site-footer { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-family: system-ui,sans-serif; font-size: .85rem; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 800px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; inset: 76px 0 auto; padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: block; }
  .main-nav ul { align-items: flex-start; flex-direction: column; }
  .main-nav .submenu { display: flex; position: static; padding: .5rem 0 .25rem 1rem; border: 0; box-shadow: none; background: transparent; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 300px; }
  .hero-copy { padding: 4rem 1rem; }
  .topic-grid { grid-template-columns: repeat(2,1fr); }
  .content-grid,.activity-grid,.archive-grid { grid-template-columns: 1fr; }
  .book-feature,.social-panels { grid-template-columns: 1fr; }
  .social-panel { min-height: 270px; }
}

@media (max-width: 480px) {
  .topic-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
