/* ============================================================
   MYRA SENJA — "quiet thoughts, loud world"
   Tema: dark editorial, senja, serif klasik
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
    --bg:          #1a1614;
    --bg-2:        #211c19;
    --bg-3:        #2a2421;
    --panel:       #25201d;
    --line:        #3a322d;
    --text:        #e8e0d6;
    --text-soft:   #b8aea2;
    --text-mute:   #8a8076;
    --accent:      #d99873;   /* amber senja */
    --accent-soft: #c98a6a;
    --serif:  'Cormorant Garamond', Georgia, serif;
    --sans:   'Jost', system-ui, sans-serif;
    --maxw: 1480px;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

/* grain/noise overlay tipis — tekstur filmis di seluruh halaman */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    opacity: .035; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* scrollbar bertema senja */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-soft); }
::selection { background: rgba(217,152,115,.3); color: var(--text); }

a { color: inherit; text-decoration: none; transition: color .3s ease, opacity .3s ease; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 48px; }

/* ---------- NAVBAR ---------- */
.nav {
    position: absolute; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 32px 56px; gap: 32px;
}
.brand {
    font-family: var(--serif); font-size: 30px; font-weight: 500;
    line-height: .85; color: var(--text); flex-shrink: 0;
}
.brand .m { display: block; }
.brand .s { display: block; margin-left: 12px; margin-top: -10px; }

.brand-logo {
    height: 60px;          /* atur tinggi logo sesuai selera */
    width: auto;
    display: block;
}

.nav-links {
    display: flex; gap: clamp(22px, 2.6vw, 50px); list-style: none;
    flex: 1; justify-content: center; min-width: 0;
    padding-left: 80px; /* geser menu sedikit ke kanan */
}
.nav-links a {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-soft); position: relative; padding-bottom: 8px; white-space: nowrap;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); width: 24px; background: var(--text); }

.nav-right { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.nav-icon { width: 18px; height: 18px; color: var(--text-soft); }
.nav-icon:hover { color: var(--accent); }
.btn-subscribe {
    border: 1px solid var(--line); padding: 14px 30px; white-space: nowrap;
    font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-soft);
}
.btn-subscribe:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- HERO ---------- */
/* tinggi pakai min() supaya tidak meledak di layar tinggi/lebar */
.hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex; align-items: center;
    padding-top: 90px; /* ruang aman di bawah navbar */
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center right;
    will-change: transform;
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg,
        var(--bg) 16%,
        rgba(26,22,20,.92) 27%,
        rgba(26,22,20,.45) 45%,
        rgba(26,22,20,.10) 66%,
        rgba(26,22,20,.30) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; justify-content: center;
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 56px;
}
.eyebrow {
    font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
    color: var(--text-soft); margin-bottom: 26px; white-space: nowrap;
}
.hero h1 {
    font-family: var(--serif); font-weight: 500;
    /* dibatasi rem, bukan vw murni, agar stabil saat resolusi/zoom berubah */
    font-size: clamp(64px, 6vw + 1rem, 132px);
    line-height: .9; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 span { display: block; }
.rule { width: 46px; height: 1px; background: var(--text-mute); margin: 34px 0 26px; }
.hero p {
    font-size: 17px; color: var(--text-soft); max-width: 380px; line-height: 1.8;
}
.btn-primary {
    margin-top: 44px; align-self: flex-start;
    display: inline-flex; align-items: center; gap: 28px;
    border: 1px solid var(--line); padding: 18px 36px;
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text);
    transition: background .4s ease, color .4s ease, border-color .4s ease, gap .4s ease;
}
.btn-primary:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); gap: 38px; }
.btn-primary svg { width: 28px; transition: transform .4s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

/* ---------- CARD ROW ---------- */
.cards {
    display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr;
    border-top: 1px solid var(--line);
}
.card {
    padding: 44px 38px; border-right: 1px solid var(--line);
    position: relative; transition: background .4s ease;
}
.card:last-child { border-right: none; }
/* glow tipis amber saat hover */
.card:hover { background: rgba(217,152,115,.05); }
.card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.card:hover::after { transform: scaleX(1); }

/* Featured: foto jadi background penuh, teks overlay di atasnya */
.card-feat {
    padding: 0; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 340px;
}
/* foto di pseudo-element agar bisa di-zoom saat hover */
.card-feat::before {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background-image: inherit;
    background-size: cover; background-position: center;
    transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.card-feat:hover::before { transform: scale(1.06); }
/* lapisan gelap agar teks tetap terbaca di atas foto */
.card-feat::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, rgba(26,22,20,.25) 0%, rgba(26,22,20,.55) 45%, rgba(26,22,20,.92) 100%);
}
.card-feat-body { position: relative; z-index: 1; padding: 30px 38px 38px; }

.tag {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); display: flex; justify-content: space-between;
    align-items: baseline; gap: 16px; margin-bottom: 22px;
}
.tag > span:first-child { min-width: 0; }
.tag .date { color: var(--text-mute); white-space: nowrap; flex-shrink: 0; letter-spacing: 1px; }
.card h3, .card-feat-body h3 {
    font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.15; margin-bottom: 16px;
}
.card p, .card-feat-body p { font-size: 14px; color: var(--text-mute); line-height: 1.7; }
.read-more {
    display: inline-flex; align-items: center; gap: 14px; margin-top: 26px;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft);
    transition: color .35s ease, gap .35s ease;
}
.read-more:hover { color: var(--accent); gap: 22px; }
.read-more svg { width: 22px; transition: transform .35s ease; }
.read-more:hover svg { transform: translateX(3px); }

.card-quote { display: flex; flex-direction: column; justify-content: center; }
.card-quote .qmark { font-family: var(--serif); font-size: 60px; color: var(--accent); line-height: .4; height: 30px; }
.card-quote blockquote {
    font-family: var(--serif); font-style: italic; font-size: 25px; line-height: 1.45; color: var(--text);
}
.card-quote cite { font-style: normal; font-size: 14px; color: var(--text-mute); margin-top: 22px; }


/* ============================================================
   HALAMAN DETAIL TULISAN (post-show) — tambahkan di akhir app.css
   ============================================================ */

.post-hero {
    position: relative;
    min-height: 56vh;
    display: flex; align-items: flex-end;
    padding: 160px 0 60px;
    background-size: cover; background-position: center;
    border-bottom: 1px solid var(--line);
}
/* overlay gelap supaya teks terbaca di atas cover */
.post-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,22,20,.55) 0%, rgba(26,22,20,.35) 40%, rgba(26,22,20,.92) 100%);
}
/* kalau tidak ada cover, pakai gradient senja */
.post-hero:not([style]) {
    background: radial-gradient(90% 70% at 75% 30%, rgba(217,152,115,.30), transparent 55%),
                linear-gradient(120deg, #1a1614, #2a211c 55%, #150f0d);
}
.post-hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 880px; margin: 0 auto; padding: 0 32px;
}
.post-cat {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 22px;
}
.post-cat .dot { margin: 0 10px; color: var(--text-mute); }
.post-hero h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(40px, 5vw, 72px); line-height: 1.05; letter-spacing: 1px;
}
.post-lead {
    font-size: 19px; color: var(--text-soft); line-height: 1.7;
    margin-top: 24px; max-width: 620px; font-style: italic;
}

.post-body {
    max-width: 720px; margin: 0 auto; padding: 70px 32px 100px;
}
.post-content p {
    font-size: 18px; line-height: 1.95; color: var(--text-soft);
    margin-bottom: 28px;
}
.post-content p:first-child::first-letter {
    font-family: var(--serif); font-size: 64px; line-height: .8;
    float: left; padding: 6px 14px 0 0; color: var(--accent);
}

.post-foot {
    margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
}
.back-link {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft);
    transition: color .3s ease, gap .3s ease;
}
.back-link:hover { color: var(--accent); gap: 18px; }
.post-sign { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--text-mute); }


/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px;
    padding: 56px 48px;
}
.footer-brand { display: flex; gap: 22px; align-items: flex-start; }
.footer-brand-img { width: 78px; height: 78px; object-fit: cover; flex-shrink: 0; }
.footer-brand h4 { font-family: var(--serif); font-size: 25px; font-weight: 500; margin-bottom: 6px; }
.footer-brand em { color: var(--text-mute); font-size: 14px; font-style: italic; }

.footer h5 {
    font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
    color: var(--text-soft); margin-bottom: 22px; position: relative; padding-left: 18px;
}
.footer h5::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 10px; height: 1px; background: var(--accent);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a, .footer ul li { font-size: 14px; color: var(--text-mute); }
.footer ul a { transition: color .3s ease, padding-left .3s ease; }
.footer ul a:hover { color: var(--accent); padding-left: 6px; }
.footer .connect li { display: flex; align-items: center; gap: 12px; }
.footer .connect svg { width: 16px; color: var(--text-soft); }
.footer .about p { font-size: 14px; color: var(--text-mute); line-height: 1.8; }
.copyright {
    border-top: 1px solid var(--line); padding: 22px 48px;
    font-size: 12px; color: var(--text-mute); letter-spacing: 1px;
}

/* ---------- INNER PAGE HEADER ---------- */
.page-head {
    padding: 170px 0 70px; border-bottom: 1px solid var(--line); position: relative;
}
.page-head .eyebrow { margin-bottom: 18px; }
.page-head h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(48px, 7vw, 92px); line-height: .98; letter-spacing: 1px;
}
.page-head .lead {
    font-size: 18px; color: var(--text-soft); max-width: 560px; margin-top: 26px; line-height: 1.8;
}

/* ---------- ARTICLE LIST (writings / notes) ---------- */
.list { padding: 30px 0 80px; }
.entry {
    display: grid; grid-template-columns: 160px 1fr auto;
    gap: 48px; align-items: baseline;
    padding: 44px 0; border-bottom: 1px solid var(--line);
}
.entry:hover h2 { color: var(--accent); }
.entry .meta { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-mute); }
.entry .meta .cat { color: var(--accent); display: block; margin-bottom: 8px; }
.entry-body h2 {
    font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; margin-bottom: 14px;
    transition: color .3s ease;
}
.entry-body p { font-size: 15px; color: var(--text-mute); max-width: 620px; }
.entry .arrow svg { width: 28px; color: var(--text-soft); }
.entry:hover .arrow svg { color: var(--accent); }

/* ---------- ARCHIVE (group by year) ---------- */
.year-group { padding: 50px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.year-group .yr { font-family: var(--serif); font-size: 56px; color: var(--text-mute); line-height: 1; }
.year-group ul { list-style: none; }
.year-group li {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 16px 0; border-bottom: 1px dashed var(--line);
}
.year-group li:last-child { border-bottom: none; }
.year-group li a { font-family: var(--serif); font-size: 22px; }
.year-group li a:hover { color: var(--accent); }
.year-group li .d { font-size: 12px; color: var(--text-mute); letter-spacing: 2px; }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 80px 0; align-items: center; }
.about-img { aspect-ratio: 4/5; background-size: cover; background-position: center; }
.about-text h2 { font-family: var(--serif); font-weight: 500; font-size: 40px; line-height: 1.2; margin-bottom: 28px; }
.about-text p { color: var(--text-soft); font-size: 16px; margin-bottom: 22px; line-height: 1.9; }
.about-text p .drop { font-family: var(--serif); font-size: 60px; float: left; line-height: .8; padding: 8px 14px 0 0; color: var(--accent); }
.about-stats { display: flex; gap: 50px; margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--line); }
.about-stats div span { font-family: var(--serif); font-size: 40px; color: var(--accent); display: block; }
.about-stats div small { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-mute); }

/* ---------- ANIMATIONS ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.2,.7,.3,1) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; }

/* scroll reveal (dipicu JS via IntersectionObserver) */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger antar kartu */
.reveal.s1 { transition-delay: 0s; }
.reveal.s2 { transition-delay: .12s; }
.reveal.s3 { transition-delay: .24s; }
.reveal.s4 { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .rise { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1280px) {
    .nav { padding: 28px 36px; }
    .hero-inner { padding: 0 36px; }
    .nav-links { gap: clamp(18px, 2vw, 40px); }
}

@media (max-width: 820px) {
    .post-hero { min-height: 46vh; padding: 120px 0 40px; }
    .post-body { padding: 46px 24px 70px; }
    .post-content p { font-size: 16px; }
    .post-foot { flex-direction: column; gap: 22px; align-items: flex-start; }
}


@media (max-width: 1100px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .card:nth-child(2) { border-right: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    /* layar sempit: sembunyikan menu tengah, fokus ke logo + subscribe */
    .nav-links { display: none; }
    .nav { justify-content: space-between; }
}
@media (max-width: 820px) {
    .wrap { padding: 0 26px; }
    .nav { padding: 22px 26px; }
    .hero { min-height: 78vh; padding-top: 80px; }
    .hero-bg { background-position: center; }
    .hero-bg::after { background: linear-gradient(180deg, rgba(26,22,20,.45) 0%, rgba(26,22,20,.85) 60%, var(--bg) 100%); }
    .hero-inner { padding: 40px 26px 60px; }
    .cards { grid-template-columns: 1fr; }
    .card { border-right: none; border-bottom: 1px solid var(--line); }
    .entry { grid-template-columns: 1fr; gap: 14px; }
    .entry .arrow { display: none; }
    .about-grid, .year-group { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   LANDING WRITINGS / NOTES — hero gambar + grid kartu
   Tambahkan di akhir app.css
   ============================================================ */

/* ---------- HERO LANDING ---------- */
.land-hero {
    position: relative;
    min-height: 60vh;
    display: flex; align-items: flex-end;
    padding: 180px 0 64px;
    background-size: cover; background-position: center;
    border-bottom: 1px solid var(--line);
}
.land-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,22,20,.45) 0%, rgba(26,22,20,.30) 45%, rgba(26,22,20,.92) 100%);
}
/* fallback gradient kalau tidak ada gambar */
.land-hero:not([style]) {
    background: radial-gradient(80% 70% at 70% 25%, rgba(217,152,115,.28), transparent 55%),
                linear-gradient(120deg, #1a1614, #2a211c 55%, #150f0d);
}
.land-hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 56px;
}
.land-hero .eyebrow { margin-bottom: 20px; }
.land-hero h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(54px, 8vw, 110px); line-height: .95; letter-spacing: 1px; text-transform: uppercase;
}
.land-hero .lead {
    font-size: 18px; color: var(--text-soft); max-width: 540px; margin-top: 24px; line-height: 1.8;
}

/* ---------- GRID KARTU TULISAN ---------- */
.grid-section { padding: 80px 0 100px; }
.grid-section .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }

/* filter kategori (opsional, baris kecil di atas grid) */
.cat-filter {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px;
    border-bottom: 1px solid var(--line); padding-bottom: 30px;
}
.cat-filter a {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-mute); padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px;
    transition: all .3s ease;
}
.cat-filter a:hover, .cat-filter a.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.post-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.post-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    background: var(--bg-2); transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--accent-soft); }
.post-card-img {
    height: 200px; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.post-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,22,20,.5));
}
/* fallback kalau tanpa cover */
.post-card-img:not([style]) {
    background: linear-gradient(135deg, #3a2a22, #1c1614);
}
.post-card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px;
}
.post-card .tag .date { color: var(--text-mute); white-space: nowrap; }
.post-card h3 {
    font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin-bottom: 14px;
    transition: color .3s ease;
}
.post-card:hover h3 { color: var(--accent); }
.post-card p { font-size: 14px; color: var(--text-mute); line-height: 1.7; flex: 1; }
.post-card .read-more { margin-top: 22px; }

.grid-empty { text-align: center; padding: 80px 0; color: var(--text-mute); font-size: 17px; }

@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
    .land-hero { min-height: 46vh; padding: 130px 0 44px; }
    .land-hero-inner, .grid-section .wrap { padding: 0 26px; }
    .grid-section { padding: 50px 0 70px; }
    .post-grid { grid-template-columns: 1fr; }
}

/* ---------- HAMBURGER (mobile) ---------- */
.nav-toggle {
    display: none;           /* sembunyi di desktop */
    background: none; border: none; cursor: pointer;
    width: 30px; height: 22px; position: relative; z-index: 60; padding: 0;
}
.nav-toggle span {
    display: block; width: 100%; height: 1.5px; background: var(--text);
    position: absolute; left: 0; transition: transform .35s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
/* jadi tanda X saat menu terbuka */
.nav-toggle.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    /* menu jadi panel turun dari atas */
    .nav-links {
        display: flex !important;          /* override 'display:none' lama */
        position: fixed; inset: 0 0 auto 0;
        flex-direction: column; justify-content: center; align-items: center;
        gap: 30px; padding: 100px 0 50px;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
        transform: translateY(-100%);
        transition: transform .45s cubic-bezier(.2,.7,.3,1);
        z-index: 55; min-height: 100vh;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { font-size: 15px; padding-bottom: 4px; }
    .nav-links a::after { display: none; }   /* matikan underline animasi di mobile */
    .nav-links a.active { color: var(--accent); }

    /* sembunyikan ikon & subscribe di mobile biar nggak bentrok dgn hamburger */
    .nav-right { display: none; }
}

/* ============================================================
   LANDING WRITINGS / NOTES — hero gambar + grid kartu
   Tambahkan di akhir app.css
   ============================================================ */

/* ---------- HERO LANDING ---------- */
.land-hero {
    position: relative;
    min-height: 60vh;
    display: flex; align-items: flex-end;
    padding: 180px 0 64px;
    background-size: cover; background-position: center;
    border-bottom: 1px solid var(--line);
}
.land-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,22,20,.45) 0%, rgba(26,22,20,.30) 45%, rgba(26,22,20,.92) 100%);
}
/* fallback gradient kalau tidak ada gambar */
.land-hero:not([style]) {
    background: radial-gradient(80% 70% at 70% 25%, rgba(217,152,115,.28), transparent 55%),
                linear-gradient(120deg, #1a1614, #2a211c 55%, #150f0d);
}
.land-hero-inner {
    position: relative; z-index: 2;
    width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 56px;
}
.land-hero .eyebrow { margin-bottom: 20px; }
.land-hero h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(54px, 8vw, 110px); line-height: .95; letter-spacing: 1px; text-transform: uppercase;
}
.land-hero .lead {
    font-size: 18px; color: var(--text-soft); max-width: 540px; margin-top: 24px; line-height: 1.8;
}

/* ---------- GRID KARTU TULISAN ---------- */
.grid-section { padding: 80px 0 100px; }
.grid-section .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 56px; }

/* filter kategori (opsional, baris kecil di atas grid) */
.cat-filter {
    display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 50px;
    border-bottom: 1px solid var(--line); padding-bottom: 30px;
}
.cat-filter a {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-mute); padding: 8px 18px; border: 1px solid var(--line); border-radius: 30px;
    transition: all .3s ease;
}
.cat-filter a:hover, .cat-filter a.active { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.post-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px;
}
.post-card {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
    background: var(--bg-2); transition: transform .4s cubic-bezier(.2,.7,.3,1), border-color .4s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--accent-soft); }
.post-card-img {
    height: 200px; background-size: cover; background-position: center;
    position: relative; overflow: hidden;
}
.post-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,22,20,.5));
}
/* fallback kalau tanpa cover */
.post-card-img:not([style]) {
    background: linear-gradient(135deg, #3a2a22, #1c1614);
}
.post-card-body { padding: 28px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.post-card .tag {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--accent); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px;
}
.post-card .tag .date { color: var(--text-mute); white-space: nowrap; }
.post-card h3 {
    font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; margin-bottom: 14px;
    transition: color .3s ease;
}
.post-card:hover h3 { color: var(--accent); }
.post-card p { font-size: 14px; color: var(--text-mute); line-height: 1.7; flex: 1; }
.post-card .read-more { margin-top: 22px; }

.grid-empty { text-align: center; padding: 80px 0; color: var(--text-mute); font-size: 17px; }

@media (max-width: 1100px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
    .land-hero { min-height: 46vh; padding: 130px 0 44px; }
    .land-hero-inner, .grid-section .wrap { padding: 0 26px; }
    .grid-section { padding: 50px 0 70px; }
    .post-grid { grid-template-columns: 1fr; }
}

/* ---------- PAGINATION (pager bertema) ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 60px; }
.pager-btn {
    min-width: 42px; height: 42px; padding: 0 12px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); border-radius: 6px;
    font-size: 13px; letter-spacing: 1px; color: var(--text-soft);
    transition: all .3s ease;
}
a.pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.pager-btn.active { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pager-btn.disabled { opacity: .3; cursor: default; }
.pager-dots { color: var(--text-mute); padding: 0 4px; }

/* ---------- MY STORY (seksi per kategori) ---------- */
.story-seg { margin-bottom: 80px; }
.story-seg:last-child { margin-bottom: 0; }
.seg-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.seg-head h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; }
.seg-all {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-soft);
    transition: color .3s ease, gap .3s ease; white-space: nowrap;
}
.seg-all:hover { color: var(--accent); gap: 18px; }
.seg-all svg { width: 24px; }
@media (max-width: 600px) {
    .seg-head { flex-direction: column; gap: 12px; align-items: flex-start; }
    .seg-head h2 { font-size: 28px; }
}
