﻿:root {
  color-scheme: light;
  /* Palet mengikuti landing-editorial.css */
  --canvas: #ececec;
  --surface: #ffffff;
  --tile: #d9d9dc;
  --ink: #0b0c10;
  --muted: #3f3f46;
  --ghost: #66666f;
  --line: rgba(11, 12, 16, .12);
  --accent: #ff5a36;
  --bezel-edge: #4a4d57;
  --font-display: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -.035em; }
a { color: inherit; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { display: block; width: 100%; object-fit: cover; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 30; padding: 12px 20px; border-radius: 999px; color: var(--canvas); background: var(--ink); }
.skip-link:focus { top: 8px; }

@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes device-rise { from { opacity: 0; transform: translateY(140px); } to { opacity: 1; transform: none; } }
@keyframes tile-in { from { opacity: 0; transform: translateY(48px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes zoom-settle { from { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes breathe { 0%, 100% { scale: 1; } 50% { scale: 1.12; } }
@keyframes title-in { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(40px); } to { opacity: 1; clip-path: inset(0 0 -10% 0); transform: none; } }

/* Header */
.journal-shell { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.journal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 88px; }
.journal-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.journal-brand img { width: 104px; height: 44px; }
.journal-brand span { color: var(--ghost); font-family: var(--font-display); font-size: 20px; font-weight: 300; letter-spacing: -.02em; }
.journal-brand em { font-style: normal; color: var(--ink); }
.journal-nav { display: flex; gap: 4px; align-items: center; }
.journal-nav button, .journal-nav > a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 999px; color: var(--ghost); background: transparent; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; transition: color .2s ease; }
.journal-nav button[aria-pressed="true"] { color: var(--ink); }
.journal-nav button[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.journal-nav .journal-book { margin-left: 8px; padding-inline: 20px; color: var(--canvas); background: var(--ink); }
.journal-nav .nav-icon { display: none; }
.saved-count { font-variant-numeric: tabular-nums; }

/* Hero: perangkat di tengah, teks dua warna di samping */
.journal-grid { display: block; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); gap: 48px; padding-top: 16px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-side { display: flex; flex-direction: column; gap: 22px; padding-block: 32px 40px; }
.hero-side > * { animation: fade-up .9s var(--ease-out) both; animation-delay: calc(.55s + var(--i, 0) * .08s); }
.hero-side-left { justify-content: center; }
.hero-side-left .split-title { margin-top: auto; }
.hero-foot { margin-top: auto; color: var(--ghost); font-size: 15px; }
.hero-foot b { color: var(--ink); font-weight: 500; }
.split-title { color: var(--ghost); font-family: var(--font-display); font-size: clamp(34px, 3.3vw, 50px); font-weight: 400; line-height: 1.08; letter-spacing: -.02em; }
.split-title > span { display: block; }
.split-title .on { color: var(--ink); }
.micro { max-width: 230px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.micro-label { color: var(--ink); font-size: 14px; }
.micro-label span { color: var(--ghost); }
.micro-num { color: var(--ghost); font-size: 13px; font-variant-numeric: tabular-nums; }
.hero-side-right .split-title { margin-block: 24px; }

.device { position: relative; height: 760px; padding: 11px 11px 0; border-radius: 66px 66px 0 0; background: var(--ink); box-shadow: 0 0 0 1.5px var(--bezel-edge), inset 0 0 0 1.5px #2a2c34; animation: device-rise 1.2s var(--ease-out) both; }
.device-screen { position: relative; height: 100%; overflow: hidden; padding: 72px 22px 0; border-radius: 56px 56px 0 0; background: var(--canvas); }
.device-screen::before { content: ""; position: absolute; top: 14px; left: 50%; width: 118px; height: 34px; border-radius: 999px; background: var(--ink); transform: translateX(-50%); }
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-title { font-size: clamp(64px, 7vw, 100px); font-weight: 700; line-height: .98; letter-spacing: -.03em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; animation: line-up 1s var(--ease-out) both; animation-delay: calc(.35s + var(--i, 0) * .1s); }
.hero-chevron { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 8px; flex-shrink: 0; border-radius: 50%; font-size: 18px; text-decoration: none; transition: background-color .2s ease, transform .3s var(--ease-out); }
.hero-people { display: flex; align-items: center; gap: 14px; margin-block: 20px 18px; color: var(--ghost); font-size: 15px; animation: fade-up .9s var(--ease-out) .6s both; }
.hero-people b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.face-stack { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--tile); }
.face-stack img { width: 40px; height: 44px; border: 2px solid var(--tile); border-radius: 10px; }
.face-stack img + img { margin-left: -8px; }
.hero-bento { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 400px; }
.hero-bento > * { animation: tile-in 1s var(--ease-out) both; animation-delay: calc(.7s + var(--i, 0) * .1s); }

.bento-photo { position: relative; grid-row: span 2; overflow: hidden; border-radius: 18px; color: var(--surface); background: var(--ink); text-decoration: none; }
.bento-photo img { height: 100%; object-position: 50% 35%; animation: zoom-settle 1.8s var(--ease-out) .7s both; transition: transform .8s var(--ease-out); }
.bento-photo::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 45%; background: linear-gradient(rgba(11, 12, 16, .55), transparent); pointer-events: none; }
.bento-photo-copy { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 2; }
.bento-photo-copy small { display: block; font-size: 12px; opacity: .85; }
.bento-photo-copy strong { display: block; margin-top: 2px; line-height: 1.1; font-family: var(--font-display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.ring { position: absolute; left: 62%; top: 66%; z-index: 2; width: 64px; height: 64px; border: 4px solid var(--surface); border-radius: 50%; animation: breathe 2.8s ease-in-out infinite; transition: translate .6s var(--ease-out), border-color .3s ease; pointer-events: none; }

.bento-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 14px 16px 16px; overflow: hidden; border-radius: 18px; text-decoration: none; transition: transform .5s var(--ease-out); }
.tile-gray { color: var(--ink); background: var(--tile); }
.tile-ink { color: var(--surface); background: var(--ink); }
.tile-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; color: var(--surface); background: #5b5c64; font-size: 12px; transition: transform .5s var(--ease-spring); }
.tile-ink .tile-icon { color: var(--ink); background: var(--accent); }
.bento-tile strong { display: block; font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.bento-tile small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.tile-ink small { color: #a1a1aa; }

/* Library */
.library { padding-block: 96px 72px; scroll-margin-top: 16px; }
.library-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 340px); align-items: end; gap: 24px; margin-bottom: 28px; }
.library-kicker { margin-bottom: 12px; color: var(--ghost); font-size: 14px; }
.library-kicker b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.library-title { font-size: clamp(52px, 8vw, 120px); font-weight: 600; line-height: .98; letter-spacing: -.035em; }
.library-search { display: flex; align-items: center; gap: 12px; min-height: 52px; border-bottom: 1.5px solid var(--ink); }
.library-search i { color: var(--ghost); }
.library-search input { width: 100%; min-width: 0; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 16px; outline: none; }
.library-search input::placeholder { color: var(--ghost); }
.library-filters { display: flex; gap: 8px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.library-filters::-webkit-scrollbar { display: none; }
.library-filters button { flex-shrink: 0; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 500; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.library-filters button[aria-pressed="true"] { border-color: var(--ink); color: var(--canvas); background: var(--ink); }
#libraryRows { border-top: 1.5px solid var(--ink); }
.library-row { position: relative; border-bottom: 1px solid var(--line); }
.library-row > a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 180px 48px; align-items: center; gap: 24px; padding: 30px 72px 30px 0; text-decoration: none; }
.row-num { color: var(--ghost); font-size: 14px; font-variant-numeric: tabular-nums; }
.row-thumb { display: none; }
.row-main h3 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 500; line-height: 1.02; letter-spacing: -.04em; transition: transform .6s var(--ease-out); }
.row-excerpt { max-width: 560px; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.library-meta { display: grid; color: var(--ghost); font-size: 14px; line-height: 1.5; }
.library-meta span:first-child { color: var(--ink); }
.row-arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; font-size: 18px; transition: background-color .3s ease, color .3s ease, transform .5s var(--ease-out), border-color .3s ease; }
.save-button { position: absolute; top: 50%; right: 0; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: var(--ink); background: transparent; font-size: 18px; transform: translateY(-50%); transition: color .2s ease, background-color .2s ease; }
.save-button[aria-pressed="true"] { color: var(--accent); }
.library-empty { padding: 48px 0; color: var(--muted); font-size: 16px; }

.cursor-preview { position: fixed; top: 0; left: 0; z-index: 20; width: 220px; height: 280px; overflow: hidden; border-radius: 16px; opacity: 0; scale: .6; pointer-events: none; transition: opacity .3s ease, scale .5s var(--ease-out); }
.cursor-preview.is-on { opacity: 1; scale: 1; }
.cursor-preview img { height: 100%; }

/* Closing */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: end; gap: 48px; padding-block: 64px 40px; border-top: 1px solid var(--line); }
.split-title.big { font-size: clamp(52px, 8vw, 120px); line-height: 1; letter-spacing: -.035em; }
.closing-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.closing .bento-tile { min-height: 260px; }

/* Scroll reveal (diaktifkan JS) */
[data-reveal] { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.motion-ready [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }

/* Saved view */
.saved-view .library { padding-top: 24px; }

/* Footer + toast */
.journal-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.journal-footer a { text-underline-offset: 4px; }
.photo-credits { max-width: 420px; text-align: right; }
.photo-credits summary { min-height: 32px; cursor: pointer; }
.photo-credits p { margin-top: 12px; }
.journal-status { position: fixed; bottom: 20px; left: 50%; z-index: 25; width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; color: var(--canvas); background: var(--ink); font-size: 14px; text-align: center; pointer-events: none; transform: translateX(-50%); }
.journal-status:empty { display: none; }

/* Article reader */
.article-main, .article-footer { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.reader-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 88px; }
.reader-topbar > span { color: var(--ghost); font-family: var(--font-display); font-size: 20px; font-weight: 300; }
.reader-topbar > span em { font-style: normal; color: var(--ink); }
.mag-reader-close-btn { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.reader-topbar-book { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; color: var(--canvas); background: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.reader-hero { padding-top: 24px; }
.reader-kicker { color: var(--ghost); font-size: 14px; animation: fade-up .8s var(--ease-out) .1s both; }
.reader-kicker b { color: var(--ink); font-weight: 500; }
.mag-reader-title { margin-top: 14px; font-size: clamp(52px, 9.5vw, 124px); font-weight: 700; line-height: .98; letter-spacing: -.035em; text-wrap: balance; animation: title-in 1.1s var(--ease-out) .2s both; }
.reader-people { display: flex; align-items: center; gap: 14px; margin-top: 24px; color: var(--ghost); font-size: 15px; animation: fade-up .8s var(--ease-out) .45s both; }
.reader-people b { color: var(--ink); font-weight: 500; }
.reader-people .face-stack img { width: 44px; }
.reader-bento { display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 460px; margin-block: 32px 64px; }
.reader-bento > * { animation: tile-in 1s var(--ease-out) both; animation-delay: calc(.55s + var(--i, 0) * .1s); }
.mag-reader-img-wrap { position: relative; grid-row: span 2; overflow: hidden; border-radius: 18px; }
.mag-reader-img-wrap img { height: 100%; object-position: 50% 35%; animation: zoom-settle 1.8s var(--ease-out) .55s both; }
.mag-reader-body { max-width: 680px; margin-inline: auto; color: #26262e; font-size: 18px; line-height: 1.75; }
.mag-reader-body > p:first-child { color: var(--ink); font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 400; line-height: 1.3; letter-spacing: -.02em; }
.mag-reader-body > p, .mag-reader-body > ul, .mag-reader-body > ol { margin: 0 0 20px; }
.mag-reader-body h2 { margin-block: 48px 16px; font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.mag-reader-body ul { padding: 0; list-style: none; border-top: 1px solid var(--line); }
.mag-reader-body ul li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.mag-reader-body ul li::before { content: ""; position: absolute; top: 24px; left: 4px; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.mag-reader-cta-box { margin-top: 48px; padding: 32px 28px 28px; border-radius: 18px; color: var(--surface); background: var(--ink); }
.mag-reader-cta-box h3 { font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.mag-reader-cta-box p { max-width: 460px; margin-block: 12px 24px; color: #c4c4cc; font-size: 16px; line-height: 1.6; }
.mag-reader-cta-btn { display: inline-flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 8px 0 22px; border-radius: 999px; color: var(--ink); background: var(--canvas); font-size: 15px; font-weight: 500; text-decoration: none; }
.mag-reader-cta-btn i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: var(--accent); transition: transform .4s var(--ease-spring); }
.mag-reader-reaction-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; max-width: 680px; margin: 24px auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.mag-reader-reaction-bar > div { display: flex; gap: 8px; }
.mag-card-act-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 500; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.mag-card-act-btn[aria-pressed="true"] { border-color: var(--ink); color: var(--canvas); background: var(--ink); }
.article-footer { margin-top: 48px; }

@media (hover: hover) {
  .journal-nav button:hover { color: var(--ink); }
  .hero-chevron:hover { background: var(--tile); transform: translateY(3px); }
  .bento-photo:hover img { transform: scale(1.05); }
  .bento-photo:hover .ring { border-color: var(--accent); }
  .bento-tile:hover { transform: translateY(-4px); }
  .bento-tile:hover .tile-icon { transform: rotate(90deg) scale(1.1); }
  .library-row > a:hover h3 { transform: translateX(14px); }
  .library-row > a:hover .row-arrow { border-color: var(--ink); color: var(--canvas); background: var(--ink); transform: rotate(45deg); }
  .library-filters button:hover:not([aria-pressed="true"]) { border-color: var(--ink); color: var(--ink); }
  .save-button:hover { background: var(--tile); }
  .mag-reader-close-btn:hover { color: var(--canvas); background: var(--ink); }
  .mag-reader-cta-btn:hover i { transform: translateX(4px) rotate(-45deg); }
  .mag-card-act-btn:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); grid-template-areas: "device right"; gap: 40px; }
  .hero-side-left { display: none; }
  .device { grid-area: device; }
  .hero-side-right { grid-area: right; }
  .library-row > a { grid-template-columns: 72px minmax(0, 1fr) 140px 48px; gap: 20px; }
}
@media (max-width: 760px) {
  .journal-shell, .article-main, .article-footer { width: calc(100% - 32px); }
  .journal-header, .reader-topbar { min-height: 72px; }
  .journal-brand img { width: 84px; height: 40px; }
  .journal-brand span, .journal-nav .nav-label { display: none; }
  .journal-nav .nav-icon { display: inline; }
  .journal-nav button, .journal-nav > a { padding-inline: 12px; }
  .journal-nav .journal-book { margin-left: 4px; padding-inline: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "right" "device"; gap: 8px; padding-top: 4px; }
  .hero-side-right { flex-direction: row; flex-wrap: wrap; padding-block: 8px 20px; }
  .hide-sm { display: none; }
  .hero-side-right .split-title { margin: 0; font-size: 38px; }
  .device { height: 620px; padding: 8px 8px 0; border-radius: 52px 52px 0 0; }
  .device-screen { padding: 60px 14px 0; border-radius: 45px 45px 0 0; }
  .device-screen::before { top: 12px; width: 96px; height: 28px; }
  .hero-title { font-size: clamp(56px, 18vw, 84px); }
  .hero-bento { height: 330px; gap: 8px; }
  .bento-tile { padding: 12px; }
  .bento-tile strong { font-size: 19px; }
  .library { padding-block: 56px 48px; }
  .library-head { grid-template-columns: 1fr; gap: 20px; }
  .library-row > a { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; padding: 20px 44px 20px 0; }
  .row-num { grid-column: 2; grid-row: 1; font-size: 12px; }
  .row-thumb { display: block; grid-column: 1; grid-row: 1 / span 3; align-self: start; width: 64px; height: 80px; border-radius: 10px; }
  .row-main { grid-column: 2; }
  .row-main h3 { font-size: 26px; }
  .row-excerpt { margin-top: 6px; font-size: 14px; }
  .library-meta { grid-column: 2; display: flex; gap: 10px; font-size: 13px; }
  .row-arrow { display: none; }
  .save-button { top: 12px; transform: none; }
  .closing { grid-template-columns: 1fr; gap: 24px; padding-block: 48px 32px; }
  .closing .bento-tile { min-height: 200px; }
  .journal-footer { font-size: 13px; gap: 16px; }
  .photo-credits { text-align: left; }
  .reader-hero { padding-top: 8px; }
  .reader-bento { height: 340px; margin-block: 24px 40px; gap: 8px; }
  .mag-reader-body { font-size: 17px; }
  .mag-reader-cta-box { padding: 26px 20px 20px; }
  .mag-reader-cta-btn { width: 100%; justify-content: space-between; }
}
@media (max-width: 400px) {
  .journal-header { gap: 4px; }
  .journal-brand img { width: 64px; height: 34px; }
  .journal-nav { gap: 0; }
  .journal-nav button, .journal-nav > a { padding-inline: 10px; font-size: 14px; }
  .journal-nav .journal-book { margin-left: 2px; padding-inline: 14px; }
}
@media (max-width: 420px) {
  .reader-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; height: auto; }
  .mag-reader-img-wrap { grid-column: span 2; grid-row: auto; }
  .mag-reader-reaction-bar { display: grid; }
  .mag-reader-reaction-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
