/* Gaya editorial berfoto besar. Font Montserrat dilayani dari folder /fonts. Warna ada di :root. */

@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #1b1f24;
  --soft: #636b75;
  --rule: #e2e4e6;
  --accent: #c2501f;
  --shade: #eef0f1;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #111418; --ink: #e8eaec; --soft: #9aa2ab; --rule: #2a3037; --accent: #f08a5d; --shade: #1a1e24; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem; line-height: 1.75; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- kepala & kaki ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  padding: 1.25rem clamp(1.25rem, 5vw, 4rem); border-bottom: 1px solid var(--rule);
}
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.menu { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 0.25rem 0; font-size: 0.95rem; font-weight: 600; text-decoration: none; color: var(--soft); }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--accent); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem;
  margin-top: 6rem; padding: 2rem clamp(1.25rem, 5vw, 4rem) 3rem; border-top: 1px solid var(--rule);
  font-size: 0.85rem; color: var(--soft);
}
.foot p { margin: 0; }
.foot ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

main { padding: 0 clamp(1.25rem, 5vw, 4rem); }
.narrow { max-width: 40rem; margin: 0 auto; padding-top: 4rem; }
.wide { padding-top: 3.5rem; }

.label { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.meta { margin: 0 0 1rem; font-size: 0.85rem; font-weight: 500; color: var(--soft); }
.page-title { margin: 0 0 2.5rem; font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.section-head { margin: 0 0 1.75rem; font-weight: 800; font-size: 1.7rem; letter-spacing: -0.03em; }
.block { margin-top: 5.5rem; }
.more { font-size: 0.9rem; font-weight: 700; color: var(--accent); text-underline-offset: 0.35em; text-decoration-thickness: 2px; }

/* ---------- hero berfoto ---------- */
.hero { position: relative; margin: 0 calc(clamp(1.25rem, 5vw, 4rem) * -1) 7rem; }
.hero-img { width: 100%; height: clamp(22rem, 62vh, 36rem); object-fit: cover; background: var(--shade); }
.hero-panel {
  position: absolute; left: clamp(1.25rem, 5vw, 4rem); bottom: -4.5rem; width: min(30rem, calc(100% - 2.5rem));
  padding: 2rem 2.25rem 2.25rem; background: var(--paper);
  box-shadow: 0 1px 0 var(--rule);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-title { margin: 0 0 0.9rem; font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.12; letter-spacing: -0.03em; }
.hero-title a { text-decoration: none; }
.hero-title a:hover { color: var(--accent); }
.hero-sum { margin: 0 0 1.1rem; font-size: 0.98rem; line-height: 1.65; color: var(--soft); }
@keyframes rise { from { opacity: 0; transform: translateY(1.2rem); } to { opacity: 1; transform: none; } }

/* ---------- kartu tulisan ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 3rem 2rem; }
.card { flex: 1 1 15rem; min-width: 0; }
.card:first-child { flex: 1.7 1 22rem; }
.card-img { display: block; overflow: hidden; background: var(--shade); margin-bottom: 1.1rem; }
.card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card:first-child .card-img img { aspect-ratio: 16 / 9; }
.card-title { margin: 0 0 0.5rem; font-weight: 700; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; }
.card:first-child .card-title { font-size: 1.7rem; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-sum { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--soft); }
.cards.grid3 .card { flex: 1 1 18rem; max-width: calc(33.333% - 1.4rem); }
.cards.grid3 .card:first-child { flex: 1 1 18rem; }
.cards.grid3 .card:first-child .card-title { font-size: 1.3rem; }
.cards.grid3 .card:first-child .card-img img { aspect-ratio: 16 / 10; }

/* ---------- jajaran & galeri foto ---------- */
.strip { display: flex; flex-wrap: wrap; gap: 1.5rem 1.25rem; align-items: flex-end; }
.strip figure { margin: 0; }
.strip figure:nth-child(1) { flex: 5 1 18rem; }
.strip figure:nth-child(2) { flex: 3 1 12rem; }
.strip figure:nth-child(3) { flex: 4 1 15rem; }
figcaption { margin-top: 0.6rem; font-size: 0.82rem; line-height: 1.5; color: var(--soft); }

.gallery { column-count: 3; column-gap: 1.25rem; }
.gallery figure { margin: 0 0 1.9rem; break-inside: avoid; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: var(--shade); cursor: zoom-in; }
.shot img { width: 100%; }
.shot:hover img { filter: brightness(0.93); }

dialog.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 70rem); max-height: 94vh; overflow: visible; color: #f1f2f3; }
dialog.viewer::backdrop { background: rgba(10, 13, 18, 0.88); }
dialog.viewer[open] { animation: open-viewer 0.22s ease-out; }
@keyframes open-viewer { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: none; } }
.viewer img { max-width: 100%; max-height: 80vh; margin: 0 auto; width: auto; }
.viewer-bar { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; margin-top: 0.9rem; }
.viewer-bar p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.viewer-bar button { flex: none; padding: 0.35rem 0.9rem; font: inherit; font-size: 0.85rem; font-weight: 600; color: #f1f2f3; background: transparent; border: 2px solid #f1f2f3; cursor: pointer; }
.viewer-bar button:hover { background: #f1f2f3; color: #111418; }

/* ---------- halaman baca ---------- */
.post-head { max-width: 48rem; margin: 0 auto; padding-top: 4rem; text-align: left; }
.post-title { margin: 0 0 2rem; font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.038em; }
.post-cover { margin: 0 calc(clamp(1.25rem, 5vw, 4rem) * -1) 3rem; }
.post-cover img { width: 100%; height: clamp(16rem, 48vh, 28rem); object-fit: cover; }
.prose { max-width: 40rem; margin: 0 auto; }
.prose p { margin: 0 0 1.5rem; }
.prose h2 { margin: 3.2rem 0 1rem; font-weight: 700; font-size: 1.55rem; line-height: 1.25; letter-spacing: -0.025em; }
.prose h3 { margin: 2.4rem 0 0.8rem; font-weight: 700; font-size: 1.2rem; }
.prose a { color: var(--accent); text-underline-offset: 0.2em; }
.prose blockquote { margin: 2.4rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--accent); font-size: 1.2rem; line-height: 1.6; font-weight: 500; }
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { margin: 0 0 1.5rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.prose figure { margin: 2.6rem 0; }
.prose code { padding: 0.1em 0.35em; font-size: 0.92em; background: var(--shade); }
.post-end { max-width: 40rem; margin: 4rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.post-end a { font-weight: 700; color: var(--accent); }
.note { margin: 0; padding-top: 4rem; color: var(--soft); }

/* ---------- layar kecil ---------- */
@media (max-width: 960px) {
  .gallery { column-count: 2; }
  .cards.grid3 .card { max-width: none; }
}
@media (max-width: 720px) {
  .menu { gap: 1.25rem; }
  .hero { margin-bottom: 3rem; }
  .hero-img { height: 17rem; }
  .hero-panel { position: static; width: auto; margin: 0 1.25rem; padding: 1.5rem 0 0; box-shadow: none; }
  .block { margin-top: 4rem; }
  .gallery { column-gap: 0.8rem; }
  .foot { margin-top: 4rem; }
}
@media (prefers-reduced-motion: reduce) { .hero-panel, dialog.viewer[open] { animation: none; } }
