/*
Theme Name: Lumina Press
Theme URI: https://www.luminapedia.com
Author: Lemos Susetio
Description: Theme editorial untuk Luminapedia, media tentang cahaya dan lighting design. Homepage bercerita lewat scroll (Sorotan, video latar parallax, Pilihan redaksi), mode terang dan gelap, viewer gambar dengan zoom, Event Calendar, slot iklan, dan pengaturan penempatan lewat tag.
Version: 0.2.0
Requires at least: 6.4
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumina-press
Tags: news, blog, two-columns, custom-menu, featured-images
*/

:root {
	color-scheme: light;
	--paper: #ffffff;
	--ink: #17181c;
	--graphite: #5b5e66;
	--rule: #d9dadd;
	--gold: #bfa667;
	--brand: #163d9b;
	--focus: #163d9b;
	--surface-2: #f1f2f4;
	--surface-3: #e4e6ea;
	--scrim: rgba(23, 24, 28, .45);
	/* Bars (compact header, footer): the palette's light grey with the blue logo, same in light and dim.
	   Literal values on purpose so dim mode does not tint them. */
	--bar: #f1f2f4;
	--bar-fg: #17181c;
	--bar-muted: #5b5e66;
	--bar-soft: #5b5e66;
	--bar-faint: #5b5e66;
	--bar-rule: #d9dadd;
	--kelvin: linear-gradient(90deg, #ab8c53 0%, #d4c079 26%, #efe6c8 46%, #dce7ff 62%, #8fb3ff 78%, #163d9b 100%);

	--sans: "Schibsted Grotesk", system-ui, sans-serif;
	--serif: "Newsreader", Georgia, serif;

	--wrap: 1200px;
	--gutter: 16px;
	--gap: 32px;
}

/* ---------- Dim ("mode sore"): the reader's choice, never automatic. Built only from the palette:
   the warm kelvin stop (#efe6c8) dimmed with graphite, so it is the same light as the strip, just
   lower glare. Still a light page: ink, brand blue and the blue logo keep their contrast. ---------- */
:root[data-theme="dim"] {
	--paper: color-mix(in srgb, #efe6c8 90%, #5b5e66);
	--graphite: color-mix(in srgb, #5b5e66 85%, #17181c); /* one step darker so small grey text stays AA on the warmer paper */
	--rule: color-mix(in srgb, #efe6c8 72%, #5b5e66);
	--surface-2: color-mix(in srgb, #efe6c8 82%, #5b5e66);
	--surface-3: color-mix(in srgb, #efe6c8 74%, #5b5e66);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.5 var(--sans);
	-webkit-font-smoothing: antialiased;
	/* the content grows to fill the screen, so on a short page the footer still sits at the bottom
	   instead of leaving an empty white band below it */
	display: flex; flex-direction: column; min-height: 100vh;
}
body > main { flex: 1 0 auto; }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
:root[data-theme="dim"] img:not(.wordmark) { filter: brightness(.94); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); padding: 8px 12px; }

/* ---------- Type scale ---------- */
.h-xl { font: 800 clamp(28px, 4.2vw, 44px)/1.08 var(--sans); letter-spacing: -0.02em; }
.h-lg { font: 800 clamp(26px, 3vw, 34px)/1.12 var(--sans); letter-spacing: -0.015em; }
.h-md { font: 700 22px/1.2 var(--sans); letter-spacing: -0.01em; }
.h-sm { font: 700 17px/1.28 var(--sans); }
.dek { font: 400 18px/1.45 var(--serif); color: var(--ink); }
.dek-lg { font-size: 21px; }
.byline { font: 400 13px/1.4 var(--sans); color: var(--graphite); margin-top: 10px; }
.byline a { color: var(--ink); font-weight: 500; }
.byline time::before { content: "/ "; color: var(--rule); }

.kicker {
	display: inline-flex; align-items: center; gap: 7px;
	font: 700 13px/1 var(--sans);
	color: var(--ink);
	margin-bottom: 8px;
}
.swatch {
	display: inline-block; width: 10px; height: 10px; border-radius: 50%;
	background: var(--k, var(--gold));
	flex: none;
}

/* ---------- Category strip ---------- */
.topcats { border-bottom: 1px solid var(--rule); background: var(--paper); } /* own background so the page bokeh never shows between the menu items */
.topcats ul {
	display: flex; gap: 22px; justify-content: safe center; /* safe: when the strip overflows on phones it starts at Home, not mid-list */
	overflow-x: auto; scrollbar-width: none;
	font: 500 13px/1 var(--sans);
	padding-block: 12px;
}
.topcats ul::-webkit-scrollbar { display: none; }
.topcats a { white-space: nowrap; }
.topcats-pages { padding-left: 22px; border-left: 1px solid var(--rule); } /* rubrics on the left of the rule, info pages on the right */

/* ---------- Masthead ---------- */
.mast { background: var(--paper); }
.mast-row {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	min-height: 108px;
}
.mast-left, .mast-right { display: flex; align-items: center; gap: 14px; }
.mast-right { justify-content: flex-end; }
.mast-link, .mast-tagline { font: 500 13px/1 var(--sans); }
.mast-tagline { color: var(--graphite); }
.icon-btn {
	display: inline-grid; place-items: center; width: 36px; height: 36px;
	background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 4px;
}
.icon-btn:hover { background: var(--surface-2); }

.wordmark { display: block; width: auto; height: clamp(56px, 7vw, 84px); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dim"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dim"] .theme-toggle .i-dusk { display: none; }

.kelvin { position: relative; height: 4px; background: var(--kelvin); }
.kelvin span {
	position: absolute; top: 9px;
	font: 500 10px/1 var(--sans); color: var(--graphite);
	font-variant-numeric: tabular-nums;
}
.mast .kelvin span:first-child { left: var(--gutter); }
.mast .kelvin span:last-child { right: var(--gutter); }

.searchpanel { border-bottom: 1px solid var(--rule); padding-block: 16px; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin-inline: auto; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; font: 400 16px/1 var(--sans); padding: 12px 14px;
	border: 1px solid var(--ink); border-radius: 2px; background: var(--paper); color: var(--ink);
}
.search-submit {
	font: 700 14px/1 var(--sans); padding: 0 18px; border: 0; border-radius: 2px;
	background: var(--ink); color: var(--paper); cursor: pointer;
}

/* ---------- Compact sticky header ---------- */
.compact {
	position: fixed; inset: 0 0 auto; z-index: 40;
	background: var(--bar); color: var(--bar-fg); border-bottom: 1px solid var(--bar-rule);
	transform: translateY(-100%); transition: transform .25s ease;
}
.compact.is-on { transform: none; }
.compact-row { display: flex; align-items: center; gap: 24px; height: 52px; }
.compact .wordmark { height: 32px; }
.compact-next { font: 500 14px/1.3 var(--sans); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.compact-next span { color: var(--bar-muted); }
.compact-nav { flex: 1; min-width: 0; }
.compact-menu {
	display: flex; gap: 20px; justify-content: safe flex-end;
	overflow-x: auto; scrollbar-width: none; font: 500 13px/1 var(--sans); padding-block: 8px;
}
.compact-menu::-webkit-scrollbar { display: none; }
.compact-menu a { white-space: nowrap; }
.compact-menu .topcats-pages { padding-left: 20px; border-left: 1px solid var(--bar-rule); }
.compact-menu .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--scrim); }
.drawer-panel {
	width: min(340px, 86vw); height: 100%; background: var(--paper);
	padding: 16px 24px 32px; overflow-y: auto;
}
.drawer-close { margin-bottom: 12px; }

/* ---------- Main layout ---------- */
.layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px;
	gap: 0 var(--gap); padding-block: 32px 48px;
}
.col-main { padding-right: var(--gap); border-right: 1px solid var(--rule); min-width: 0; }

.thumb-empty { display: block; width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); }

/* ---------- Right rail ---------- */
.rail-title {
	font: 800 20px/1.1 var(--sans); padding-bottom: 10px; margin-bottom: 4px;
	border-bottom: 2px solid var(--ink);
}
.popular li { border-bottom: 1px solid var(--rule); }
.popular-item { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding-block: 14px; }
.popular-img img, .popular-img .thumb-empty { width: 112px; aspect-ratio: 3 / 2; object-fit: cover; }
.popular-title { font: 700 14px/1.3 var(--sans); }
.rail-sticky { position: sticky; top: 72px; }
/* "Ringkas": the reader shrinks the rail to a narrow list of titles (desktop only; on phones the rail sits under the article anyway) */
.rail-toggle {
	display: flex; align-items: center; gap: 6px; margin: 0 0 16px auto; min-height: 36px; padding: 0 10px;
	font: 500 13px/1 var(--sans); color: var(--graphite); background: none;
	border: 1px solid var(--rule); border-radius: 4px; cursor: pointer;
}
.rail-toggle:hover { color: var(--ink); border-color: var(--graphite); }
.rail-toggle[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); border-color: var(--graphite); }
@media (min-width: 861px) {
	:root[data-rail="compact"] .layout.single { grid-template-columns: minmax(0, 1fr) 220px; }
	:root[data-rail="compact"] .col-rail :is(.next-read-img, .popular-img) { display: none; }
	:root[data-rail="compact"] .col-rail .popular-item { grid-template-columns: 1fr; padding-block: 10px; }
	:root[data-rail="compact"] .col-rail .next-read { margin-bottom: 24px; }
	:root[data-rail="compact"] .col-rail .next-read-title { margin-top: 0; font-size: 15px; }
}
@media (max-width: 860px) { .rail-toggle { display: none; } }

/* ---------- Subscribe ("Ikuti tulisan terbaru") ----------
   A grey card under a Kelvin strip, centred: the masthead's light-scale signature. At the end of each
   article and the bottom of the homepage; the header's Berlangganan button jumps here. */
.subscribe {
	position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
	margin-block: 40px 8px; padding: 36px 24px 32px; text-align: center;
	background: var(--surface-2); scroll-margin-top: 96px; /* clear of the compact header when jumped to */
}
.subscribe::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--kelvin); }
.subscribe-title { font: 800 clamp(22px, 2.4vw, 28px)/1.2 var(--sans); letter-spacing: -0.01em; }
.subscribe-dek { max-width: 44ch; font: 400 17px/1.45 var(--serif); color: var(--graphite); }
.subscribe-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.subscribe-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
	font: 700 14px/1 var(--sans); color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 2px;
	cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.subscribe-btn:hover { color: #fff; background: var(--brand); border-color: var(--brand); text-decoration: none; }
/* the second way in: outline twin of the email button */
.subscribe-btn.is-ghost { color: var(--ink); background: transparent; border-color: var(--graphite); }
.subscribe-btn.is-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--ink); }
.subscribe-form { display: flex; gap: 8px; width: min(440px, 100%); margin-top: 6px; }
.subscribe-form[hidden] { display: none; } /* display: flex above would otherwise override the hidden attribute */
.subscribe-form input {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; font: 400 16px/1 var(--sans); color: var(--ink);
	background: var(--paper); border: 1px solid var(--graphite); border-radius: 2px;
}
.subscribe-form input:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: -1px; }
.subscribe-status { min-height: 1.4em; font: 400 14px/1.4 var(--sans); color: var(--graphite); }
.subscribe-status:empty { min-height: 0; }
.col-main .subscribe { max-width: 680px; } /* in an article: same measure as the text above it */

/* Header button: pill with text on wide screens, envelope icon only on phones */
.mast-sub {
	display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
	font: 500 13px/1 var(--sans); color: var(--ink); border: 1px solid var(--rule); border-radius: 18px;
	transition: border-color .15s ease;
}
.mast-sub:hover { border-color: var(--ink); text-decoration: none; }
@media (max-width: 860px) {
	.mast-sub { justify-content: center; width: 36px; padding: 0; border: 0; }
	.mast-sub span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- Recommended + category bands ---------- */
.band-title {
	display: flex; align-items: center; gap: 10px;
	font: 800 24px/1.1 var(--sans); letter-spacing: -0.01em;
}
.reco { padding-block: 40px 16px; }
.reco .band-title { border-top: 6px solid var(--ink); padding-top: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.reco-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.reco-grid li { position: relative; }
.reco-grid li + li::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; border-left: 1px solid var(--rule); }
.reco-img { display: block; margin-bottom: 10px; }
.reco-img img, .reco-img .thumb-empty { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.reco .h-sm { font-size: 15px; }

.more { font: 500 14px/1 var(--sans); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Article ---------- */
.article-head { padding-bottom: 24px; }
.article-head .h-xl { max-width: 24ch; margin-bottom: 14px; }
.article-head .dek { max-width: 60ch; }
.article-img { margin: 0 0 32px; }
.article-img img { width: 100%; }
.article-img figcaption { font: 400 13px/1.4 var(--sans); color: var(--graphite); margin-top: 8px; }
.prose { font: 400 19px/1.7 var(--serif); max-width: 680px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--sans); line-height: 1.25; margin-top: 1.6em; }
.prose h2 { font-size: 26px; font-weight: 800; }
.prose h3 { font-size: 21px; font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose img { margin-block: 8px; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text { font: 400 13px/1.4 var(--sans); color: var(--graphite); margin-top: 6px; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--gold); font-style: italic; }
/* Share links under the article */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; max-width: 680px; margin-top: 32px; padding-block: 20px; border-block: 1px solid var(--rule); }
.share-title { font: 500 13px/1 var(--sans); color: var(--graphite); }
.share-list { display: flex; flex-wrap: wrap; gap: 8px; }
.share-list a {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 12px;
	font: 500 13px/1 var(--sans); color: var(--ink); border: 1px solid var(--rule); border-radius: 18px;
	transition: border-color .15s ease;
}
.share-list a:hover { border-color: var(--ink); text-decoration: none; }
.tags { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { font: 500 13px/1 var(--sans); border: 1px solid var(--rule); padding: 7px 10px; border-radius: 2px; }

/* ---------- Archive ---------- */
.archive-head { padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.archive-head .h-lg { display: flex; align-items: center; gap: 12px; }
.archive-head .swatch { width: 14px; height: 14px; }
.archive-head .dek { margin-top: 8px; }
.row-item { display: grid; grid-template-columns: 240px 1fr; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.row-img img, .row-img .thumb-empty { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row-item .dek { margin-top: 8px; font-size: 17px; }
.nav-links { display: flex; gap: 12px; padding-top: 24px; font: 500 14px/1 var(--sans); }
.nav-links .current { font-weight: 800; }
.empty { font: 400 18px/1.5 var(--serif); padding-block: 24px; }

/* ---------- Footer ---------- */
.foot { background: var(--bar); color: var(--bar-fg); margin-top: 32px; }
.foot .kelvin { border: 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.5fr; gap: 40px; padding-block: 40px 24px; }
.foot .wordmark { height: 56px; }
.foot-about { margin-top: 12px; font: 400 16px/1.5 var(--serif); color: var(--bar-soft); max-width: 40ch; }
.foot-cats { columns: 3 160px; column-gap: 24px; }
.foot-cats li { break-inside: avoid; padding-block: 5px; font: 500 14px/1.3 var(--sans); }
.foot-legal { padding-block: 16px 28px; font: 400 13px/1 var(--sans); color: var(--bar-faint); border-top: 1px solid var(--bar-rule); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.reco-grid { grid-template-columns: repeat(3, 1fr); }
	.reco-grid li:nth-child(3n + 1)::before { display: none; }
}
@media (max-width: 860px) {
	.layout { grid-template-columns: 1fr; }
	.col-main { padding-right: 0; border-right: 0; }
	.col-rail { margin-top: 32px; }
	.mast-tagline, .mast-link { display: none; }
	.mast-row { min-height: 80px; }
	.foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.row-item { grid-template-columns: 1fr; gap: 12px; }
	.reco-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
	.reco-grid li::before { display: none; }
	.compact-next { display: none; }
	.mast .kelvin span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.compact { transition: none; }
}

/* ---------- Theme switch: circular reveal (animation driven from site.js, html gets .vt-theme) ---------- */
html.vt-theme::view-transition-old(root),
html.vt-theme::view-transition-new(root) {
	animation: none;
	mix-blend-mode: normal;
}

/* ---------- Ads (wp-admin > Iklan) ---------- */
.ad { text-align: center; }
.ad-label { display: block; margin-bottom: 6px; font: 500 11px/1 var(--sans); color: var(--graphite); }
.ad img { display: block; margin-inline: auto; max-width: 100%; height: auto; }
.ad-header { padding-block: 16px; border-bottom: 1px solid var(--rule); }
.ad-sidebar { margin-bottom: 28px; }
.ad-artikel { margin-block: 32px; padding-block: 16px; border-block: 1px solid var(--rule); }

/* ---------- Info pages: About, Contact Us, Event Calendar ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.drawer-info { margin-bottom: 28px; }
.drawer-info li { border-bottom: 1px solid var(--rule); }
.drawer-info a { display: flex; align-items: center; gap: 10px; padding: 12px 0; font: 500 21px/1.2 var(--serif); }
.drawer-label { font: 500 13px/1 var(--sans); color: var(--graphite); padding-bottom: 8px; border-bottom: 2px solid var(--ink); }

.page-shell { padding-block: 40px 64px; }
.page-body { max-width: 760px; min-width: 0; margin-inline: auto; }
.page-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.page-head .h-xl { margin-bottom: 12px; }
.page-head .dek { max-width: 56ch; color: var(--graphite); }

/* About: coverage along the colour-temperature scale */
.coverage { margin-top: 48px; padding-top: 16px; border-top: 2px solid var(--ink); }
.coverage-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.coverage-total { font: 400 14px/1.4 var(--sans); color: var(--graphite); font-variant-numeric: tabular-nums; }
.coverage-scale { margin-top: 24px; }
.coverage-scale .kelvin { display: block; height: 12px; }
.coverage-k { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px/1 var(--sans); color: var(--graphite); font-variant-numeric: tabular-nums; }
.coverage-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; margin-top: 16px; }
.coverage-list li { border-bottom: 1px solid var(--rule); }
.coverage-list a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-block: 16px; }
.coverage-list a:hover { text-decoration: none; }
.coverage-list a:hover .coverage-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.coverage-name { font: 700 16px/1.25 var(--sans); }
.coverage-count { font: 400 13px/1 var(--sans); color: var(--graphite); font-variant-numeric: tabular-nums; }

/* Event Calendar */
.ev-month { font: 800 20px/1.1 var(--sans); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-top: 48px; }
.events > .ev-month:first-child { margin-top: 0; }
.ev { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding-block: 24px; border-bottom: 1px solid var(--rule); }
.ev-date { display: flex; flex-direction: column; gap: 8px; }
.ev-day { font: 800 36px/.9 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-dow { font: 500 13px/1 var(--sans); color: var(--graphite); }
.ev-next { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 500 13px/1 var(--sans); }
.ev-desc { margin-top: 8px; font: 400 17px/1.45 var(--serif); max-width: 56ch; }
.ev-meta { margin-top: 8px; font: 400 13px/1.4 var(--sans); color: var(--graphite); }
.ev-link {
	align-self: center; white-space: nowrap; font: 500 14px/1 var(--sans);
	padding: 12px 16px; border: 1px solid var(--ink); border-radius: 2px;
	transition: background-color .15s ease, color .15s ease;
}
.ev-link:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.ev-past-title { margin-top: 64px; }
.ev-past .ev { padding-block: 16px; }
.ev-past .ev-day { font-size: 24px; color: var(--graphite); }
.ev-past .ev-desc { display: none; }

/* ---------- Contact Us (page-contact-us.php) ----------
   The title and intro on the blue-hour stage with the light from light.css (glow, rays, rising photons,
   as on the login screen); the form on paper beside it. A Kelvin strip draws along the stage's foot. */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; padding-block: 40px 64px; }
.contact-stage {
	--rise: 440px;
	position: sticky; top: 72px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
	min-height: 560px; padding: 48px; color: #fff; background: color-mix(in srgb, var(--brand) 62%, #08090b);
}
.contact-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--kelvin); transform-origin: left; }
.contact-light { position: absolute; inset: 0; }
.contact-words { position: relative; display: grid; gap: 16px; justify-items: start; }
.contact-dek { max-width: 34ch; font: 400 19px/1.5 var(--serif); color: rgba(255, 255, 255, .82); }
.contact-social { margin-top: 8px; }
.social.contact-social a { color: #fff; border-color: rgba(255, 255, 255, .4); } /* .social a comes later in this file */
.social.contact-social a:hover { color: #fff; border-color: #fff; }
.contact-body { max-width: none; padding: 8px 0 0 56px; } /* not "contact-form": Jetpack's form (used on prod) has that class itself */
.contact-body :is(input[type="submit"], button[type="submit"]):hover { background: var(--brand); }
@media (prefers-reduced-motion: no-preference) {
	.contact-stage::after { animation: lp-strip 1.2s cubic-bezier(.2, .7, .2, 1) .4s both; }
	.contact-words { animation: lp-rise .9s cubic-bezier(.2, .7, .2, 1) .6s both; }
	.contact-body { animation: lp-rise .8s cubic-bezier(.2, .7, .2, 1) .3s both; }
}
@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; padding-top: 0; }
	.contact-stage { --rise: 260px; position: relative; top: auto; min-height: 300px; margin-inline: calc(-1 * var(--gutter)); padding: 32px var(--gutter); }
	.contact-body { padding: 32px 0 0; }
}

/* Wide banner (ad slot "header"): above the footer on every page */
.foot-ad { margin-top: 48px; }

/* Contact forms: Contact Form 7 (dev) and Jetpack's contact form (prod's Contact Us page) look the same */
.wpcf7, form.contact-form { margin-top: 8px; }
.wpcf7 form > p { margin-top: 0; }
.wpcf7 form > p + p, form.contact-form > div + div, form.contact-form > div + p { margin-top: 20px; }
:is(.wpcf7, form.contact-form) label { display: block; font: 500 14px/1.4 var(--sans); }
:is(.wpcf7, form.contact-form) :is(input[type="text"], input[type="email"], input[type="url"], input[type="tel"], select, textarea) {
	display: block; width: 100%; max-width: none; margin-top: 8px; padding: 12px;
	font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper);
	border: 1px solid var(--rule); border-radius: 2px; box-shadow: none;
	transition: border-color .15s ease;
}
:is(.wpcf7, form.contact-form) :is(input, textarea):hover { border-color: var(--graphite); }
:is(.wpcf7, form.contact-form) textarea { min-height: 168px; resize: vertical; }
:is(.wpcf7, form.contact-form) :is(input[type="submit"], button[type="submit"]) {
	font: 700 15px/1 var(--sans); padding: 16px 24px; border: 0; border-radius: 2px;
	background: var(--ink); color: var(--paper); cursor: pointer; transition: background-color .15s ease;
}
:is(.wpcf7, form.contact-form) :is(input[type="submit"], button[type="submit"]):hover { background: var(--graphite); }
.wpcf7-not-valid-tip { margin-top: 4px; font: 400 13px/1.4 var(--sans); color: #b3261e; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px; font: 400 14px/1.4 var(--sans); border-radius: 2px; }

/* Footer: info links + social */
.foot-title { margin-bottom: 12px; font: 500 13px/1 var(--sans); color: var(--bar-muted); }
.foot-links li { padding-block: 5px; font: 500 14px/1.3 var(--sans); }
.foot-related { margin-top: 28px; }
.foot-links .related-host { display: block; margin-top: 3px; font: 400 12px/1.2 var(--sans); color: var(--bar-muted); }
.social { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-social { margin-top: 20px; }
.social a {
	display: grid; place-items: center; min-width: 36px; height: 36px; padding-inline: 8px;
	font: 500 13px/1 var(--sans); color: var(--bar-soft);
	border: 1px solid var(--bar-rule); border-radius: 18px;
	transition: color .15s ease, border-color .15s ease;
}
.social a:hover { color: var(--bar-fg); border-color: var(--bar-muted); text-decoration: none; }

@media (max-width: 860px) {
	.page-shell { padding-top: 24px; }
}
@media (max-width: 640px) {
	.ev { grid-template-columns: 72px minmax(0, 1fr); gap: 8px 16px; }
	.ev-day { font-size: 28px; }
	.ev-link { grid-column: 2; justify-self: start; }
}
/* Keep the drawer's close button below the WordPress admin bar for logged-in editors */
.admin-bar .drawer { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer { top: 46px; } }

/* ---------- Homepage: first screen, rubric circles, most read, rubric sections ---------- */
main.home { padding-bottom: 16px; } /* main only: WordPress also puts .home on <body>, which pushed the page colour out under the footer */
/* Powerkit's back-to-top button (plugin kept from the old theme): palette ink instead of its plain grey */
a.pk-scroll-to-top { background: var(--ink); color: #fff; border-radius: 4px; }
a.pk-scroll-to-top:hover { background: var(--brand); color: #fff; text-decoration: none; }
.hp-label { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--ink); font: 500 14px/1 var(--sans); }
.hp-label-center { justify-content: center; }

/* First screen, stories only. The large story's text sits on a full-width paper plate under its photo
   (on scroll it slides up over the photo's foot with a straight edge), marked by a short bar in its
   rubric colour; the medium pair stacks beside it at the same height; four small stories run underneath. */
.hp-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: 40px; padding-block: 16px 8px; }
.hp-top-lead { grid-row: 1 / span 2; }
.hp-top-lead-img { display: block; overflow: clip; }
.hp-top-lead-img img, .hp-top-lead-img .thumb-empty { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.hp-top-plate { position: relative; padding-top: 20px; background: var(--paper); }
.hp-top-plate::before { content: ""; position: absolute; top: 0; left: 0; width: 72px; height: 3px; background: var(--k, var(--gold)); }
.hp-top-plate .h-xl { max-width: 26ch; margin-bottom: 10px; font-size: clamp(28px, 2.8vw, 38px); }
.hp-top-plate .dek { max-width: 54ch; }
.hp-top-side { grid-column: 2; }
.hp-top-side + .hp-top-side { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule); }
.hp-top-side-img { display: block; margin-bottom: 14px; }
.hp-top-side-img img, .hp-top-side-img .thumb-empty { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.hp-top-more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ink); }
.hp-top-more li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: start; }
.hp-top-more li + li::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; border-left: 1px solid var(--rule); }
.hp-top-more-img img, .hp-top-more-img .thumb-empty { display: block; width: 72px; aspect-ratio: 1; object-fit: cover; }
.hp-top-more .kicker { margin-bottom: 6px; font-size: 12px; }
.hp-top-more .h-sm { font-size: 15px; }

/* Rubric circles, "lights on the horizon": a Kelvin horizon runs through the row and the four
   rubrics sit on it like lamps, each with a halo in its colour temperature, warm to cool. */
.hp-circles { position: relative; padding-block: 72px 64px; view-timeline: --hp-dawn; }
.hp-horizon { position: absolute; left: 0; right: 0; top: 136px; height: 2px; } /* through the circles' centres: 72px padding + half of 128px */
.hp-circles ul { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); justify-items: center; gap: 24px; max-width: 960px; }
.hp-circles a { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.hp-circles a:hover { text-decoration: none; }
.hp-circles a:hover .hp-circle-name { text-decoration: underline; text-underline-offset: 3px; }
.hp-circle {
	display: block; width: 128px; height: 128px; padding: 5px; border-radius: 50%; background: var(--paper);
	box-shadow: 0 0 0 1px var(--rule), 0 0 36px 4px color-mix(in srgb, var(--halo) 45%, transparent);
	transition: box-shadow .2s ease;
}
.hp-circles a:hover .hp-circle { box-shadow: 0 0 0 1px var(--ink), 0 0 48px 10px color-mix(in srgb, var(--halo) 60%, transparent); }
.hp-circle img, .hp-circle-glow { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
/* a rubric with no photo yet shows its light instead */
.hp-circle-glow { background: radial-gradient(circle at 38% 34%, #fff, color-mix(in srgb, var(--halo) 50%, #fff) 30%, var(--halo) 78%); }
.hp-circle-name { font: 500 15px/1.3 var(--sans); white-space: nowrap; } /* one line each, so every label sits on the same baseline */

.hp-popular { padding-block: 56px 8px; }
.hp-popular ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 24px; counter-reset: pop; }
.hp-popular li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-content: start; counter-increment: pop; }
.hp-popular-img { grid-row: 1; grid-column: 1 / -1; display: block; }
.hp-popular-img img, .hp-popular-img .thumb-empty { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hp-popular li::before { content: counter(pop); grid-row: 2; grid-column: 1; font: italic 400 44px/.85 var(--serif); color: var(--graphite); font-variant-numeric: tabular-nums; }
.hp-popular li .h-sm { grid-row: 2; grid-column: 2; }

/* Bokeh behind every page (markup from lp_orbs() in header.php): many small, soft, out-of-focus specks
   with the brighter rim a camera lens gives, in the Kelvin strip's colours (warm gold to daylight blue)
   scattered over the screen, kept faint. One fixed layer sits under all content, so the specks show
   only where the page is plain white; anything with its own background covers them. Each speck rises
   slowly and fades out, then starts again from below. Never clickable. While the page scrolls, the layer
   drifts up far slower than the content (parallax: light far behind the page), and specks near the
   pointer ease away from it (site.js sets --ox/--oy, applied with `translate` so it adds to the rise). */
.lp-orbs { position: fixed; inset: 0 0 auto; height: 150vh; z-index: -1; overflow: clip; pointer-events: none; }
.lp-orb {
	position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--c, #efe6c8) 70%, transparent) 0, color-mix(in srgb, var(--c, #efe6c8) 48%, transparent) 52%, color-mix(in srgb, var(--c, #efe6c8) 85%, transparent) 62%, transparent 72%);
	filter: blur(1px); opacity: .2;
	translate: var(--ox, 0) var(--oy, 0); transition: translate .7s cubic-bezier(.2, .7, .2, 1);
}
@keyframes lp-orb {
	0% { opacity: 0; transform: translate(0, 0) scale(.8); }
	20% { opacity: .35; }
	60% { opacity: .25; }
	100% { opacity: 0; transform: translate(var(--dx), calc(-1 * var(--rise, 180px))) scale(1.1); }
}
@keyframes lp-orbs-drift { to { transform: translateY(-50vh); } }
@media (prefers-reduced-motion: no-preference) {
	.lp-orb { opacity: 0; animation: lp-orb var(--d) ease-in-out var(--delay) infinite; }
}
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.lp-orbs { animation: lp-orbs-drift linear both; animation-timeline: scroll(root); }
	}
}

.hp-section { padding-block: 56px 8px; }
.hp-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 12px; border-top: 1px solid var(--ink); }
.hp-section-head .hp-label { padding-top: 0; border-top: 0; }
.hp-lead { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; padding-bottom: 32px; }
.hp-lead-img img, .hp-lead-img .thumb-empty { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hp-lead .h-lg { margin-bottom: 12px; }
.hp-row { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.hp-row li { position: relative; }
/* divider in the gap, so every column keeps the same width */
.hp-row li + li::before { content: ""; position: absolute; top: 0; bottom: 0; left: -16px; border-left: 1px solid var(--rule); }
.hp-row-img { display: block; margin-bottom: 12px; }
.hp-row-img img, .hp-row-img .thumb-empty { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Story from the first screen to the circles, on scroll. Chapter 0, daylight: as the large story leaves,
   its photo sinks slower than the page and its plate lifts faster (two depths); the medium photos sink
   the same way. As the circles come up, the four small stories drift up at staggered speeds and their
   photos lose colour, the day's light fading. Then dusk on the horizon: the Kelvin line draws out from
   the centre, each circle rises on it at its own pace (further right = later and from deeper), and its
   lamp switches on: the photo goes from grey to colour as the halo blooms. Decorative only; without
   scroll timelines or with reduced motion the page is simply static. */
@keyframes hp-top-sink { from { transform: scale(1.06); } to { transform: translateY(12%) scale(1.06); } }
@keyframes hp-top-lift { to { transform: translateY(-28px); } }
@keyframes hp-day-rise { to { transform: translateY(calc(10px + var(--i, 0) * 10px)); } } /* settles downward, away from the rule above, so nothing overlaps */
@keyframes hp-day-fade { to { filter: saturate(.3) brightness(.82); } }
.hp-top-side-img { overflow: clip; }
.hp-top-more li:nth-child(2) { --i: 1; }
.hp-top-more li:nth-child(3) { --i: 2; }
.hp-top-more li:nth-child(4) { --i: 3; }
@keyframes hp-horizon { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hp-rise { from { transform: translateY(calc(80px + var(--i) * 32px)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hp-lamp-on { from { filter: grayscale(1) brightness(.55); } to { filter: none; } }
@keyframes hp-halo { from { box-shadow: 0 0 0 1px var(--rule), 0 0 0 0 transparent; } }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
	@media (prefers-reduced-motion: no-preference) {
		.hp-top-lead-img img { animation: hp-top-sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		.hp-top-plate { animation: hp-top-lift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		.hp-top-side-img img { animation: hp-top-sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		/* the small row sits outside the circles block, so it reads their timeline via timeline-scope on main.home */
		.hp-top-more li { animation: hp-day-rise linear both; animation-timeline: --hp-dawn; animation-range: entry 0% cover 45%; }
		.hp-top-more-img img { animation: hp-day-fade linear both; animation-timeline: --hp-dawn; animation-range: entry 15% cover 45%; }
		.hp-horizon { animation: hp-horizon linear both; animation-timeline: --hp-dawn; animation-range: entry 10% cover 40%; }
		.hp-circles li { animation: hp-rise linear both; animation-timeline: --hp-dawn; animation-range: entry calc(5% + var(--i) * 10%) cover calc(38% + var(--i) * 5%); }
		.hp-circle { animation: hp-halo linear both; animation-timeline: --hp-dawn; animation-range: cover calc(25% + var(--i) * 5%) cover calc(48% + var(--i) * 5%); }
		.hp-circle img, .hp-circle-glow { animation: hp-lamp-on linear both; animation-timeline: --hp-dawn; animation-range: cover calc(25% + var(--i) * 5%) cover calc(48% + var(--i) * 5%); }
	}
}

@media (max-width: 1024px) {
	.hp-popular ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hp-row, .hp-top-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hp-row li:nth-child(2n + 1)::before, .hp-top-more li:nth-child(2n + 1)::before { display: none; }
}
@media (max-width: 860px) {
	.hp-top, .hp-lead { grid-template-columns: 1fr; }
	.hp-top-lead { grid-row: auto; }
	.hp-top-plate { padding-top: 16px; }
	.hp-top-side { grid-column: 1; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 0 16px; align-content: start; }
	.hp-top-side:first-of-type, .hp-top-lead + .hp-top-side { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule); }
	.hp-top-side-img { grid-row: 1 / span 2; margin: 0; }
	.hp-top-side-img img, .hp-top-side-img .thumb-empty { aspect-ratio: 4 / 3; }
	.hp-top-side .h-md { font-size: 18px; }
	.hp-circles { padding-block: 48px 40px; }
	.hp-horizon { top: 96px; } /* 48px padding + half of 96px */
	.hp-circles ul { gap: 8px; }
	.hp-circle { width: 96px; height: 96px; padding: 4px; }
	.hp-circle-name { white-space: normal; font-size: 14px; }
}
@media (max-width: 640px) {
	.hp-row, .hp-top-more { grid-template-columns: 1fr; gap: 20px; }
	.hp-row li::before, .hp-top-more li::before { display: none; }
	.hp-popular ol { grid-template-columns: 1fr; gap: 20px; }
	.hp-popular li { grid-template-columns: 96px auto minmax(0, 1fr); align-items: start; }
	.hp-popular-img { grid-column: 1; }
	.hp-popular li::before { grid-row: 1; grid-column: 2; font-size: 36px; }
	.hp-popular li .h-sm { grid-row: 1; grid-column: 3; }
	.hp-circles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
	.hp-horizon { display: none; } /* two rows: one line can't pass through both */
}

/* ---------- Homepage video block: muted YouTube loop behind the headline, with parallax ---------- */
.hp-video { margin-top: 56px; }
.hp-video-card { position: relative; display: block; height: min(80vh, 720px); min-height: 420px; overflow: clip; color: #fff; background: #08090b; view-timeline: --hp-video; }
.hp-video-card:hover { text-decoration: none; }
.hp-video-media { position: absolute; inset: -25% 0; container-type: size; } /* extra height = room for the parallax travel */
.hp-video-media img { width: 100%; height: 100%; object-fit: cover; }
.hp-video-media iframe {
	position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
	width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw); /* cover the box at 16:9 */
	transform: translate(-50%, -50%); opacity: 0; transition: opacity .6s ease;
}
.hp-video-media.is-playing iframe { opacity: 1; }
.hp-video-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .7), rgba(0, 0, 0, .1) 60%); }
.hp-video-text { position: absolute; z-index: 1; inset: auto 0 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 24px 56px; text-align: center; }
.hp-video-text .h-xl { display: block; max-width: 24ch; }
.hp-video-cta {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px;
	font: 700 14px/1 var(--sans); color: #17181c; background: #fff; border-radius: 2px;
	transition: background-color .15s ease;
}
.hp-video-card:hover .hp-video-cta { background: #e4e6ea; }
/* Three layers on one scroll timeline: the frame opens from a window to full bleed, the video
   drifts slower than the page while easing out of a zoom, and the headline rises in on top. */
@keyframes hp-video-open { from { clip-path: inset(12% 8% round 8px); } to { clip-path: inset(0 round 0); } }
@keyframes hp-parallax { from { transform: translateY(-16%) scale(1.15); } to { transform: translateY(16%) scale(1); } }
@keyframes hp-video-rise { from { transform: translateY(96px); opacity: 0; } to { transform: none; opacity: 1; } }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
	@media (prefers-reduced-motion: no-preference) {
		.hp-video-card { animation: hp-video-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
		.hp-video-media { animation: hp-parallax linear both; animation-timeline: --hp-video; }
		.hp-video-text { animation: hp-video-rise linear both; animation-timeline: --hp-video; animation-range: entry 25% cover 50%; }
	}
}

/* play badge on thumbnails of posts that have a video */
.has-video { position: relative; display: block; }
.video-badge {
	position: absolute; left: 8px; bottom: 8px; display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .6);
}
.hp-circle .has-video { height: 100%; }
.hp-circle .video-badge { display: none; }

/* ---------- Homepage: the video block "dims the room" ----------
   One timeline (the video block's) drives three linked effects, so the block reads as the
   page's lights going down rather than an isolated widget: a full-page scrim fades in while
   the video fills the screen, the brand Kelvin bar fills across the block as you scroll through it,
   and the Sorotan photo above (under Terpopuler) drifts with the same parallax language.
   Decorative only: no JS fallback. */
.hp-dim { position: fixed; inset: 0; z-index: 4; background: #08090b; opacity: 0; pointer-events: none; }
.hp-video { position: relative; z-index: 5; }
.hp-video-progress { position: absolute; z-index: 2; inset: auto 0 0; height: 4px; border: 0; transform: scaleX(0); transform-origin: left; }

.hp-feature { padding-block: 56px 8px; }
.hp-feature-card { position: relative; display: block; margin-top: 24px; overflow: clip; color: #fff; view-timeline: --hp-feature; }
.hp-feature-card:hover { text-decoration: none; }
.hp-feature-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
/* Whole photo dimmed a little (busy, bright photos still let the white title read), deeper under the text */
.hp-feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .2)); }
.hp-feature-card::before { content: ""; position: absolute; z-index: 1; inset: 0; background: #08090b; opacity: 0; pointer-events: none; }
.hp-feature-text { position: absolute; z-index: 2; inset: auto 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 32px 40px; text-align: center; }
.hp-feature-text .h-xl { display: block; max-width: 26ch; }
.hp-feature-card:hover .h-xl { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hp-feature-cat { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--sans); }
.hp-feature-dek { display: block; max-width: 56ch; font: 400 18px/1.45 var(--serif); color: rgba(255, 255, 255, .85); }
@media (max-width: 860px) {
	.hp-feature-card img { aspect-ratio: 4 / 5; }
	.hp-feature-text { padding: 0 20px 28px; }
}

@keyframes hp-dim { 0%, 85%, 100% { opacity: 0; } 30%, 55% { opacity: .92; } }
@keyframes hp-fill { to { transform: scaleX(1); } }
@keyframes hp-drift { from { transform: translateY(-8%) scale(1.32); } to { transform: translateY(8%) scale(1.2); } }
@keyframes hp-dusk { to { opacity: .7; } }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
	@media (prefers-reduced-motion: no-preference) {
		main.home { timeline-scope: --hp-video, --hp-dawn; }
		.hp-dim { animation: hp-dim linear both; animation-timeline: --hp-video; animation-range: cover 0% cover 100%; }
		.hp-video-progress { animation: hp-fill linear both; animation-timeline: --hp-video; animation-range: contain 0% exit 0%; }
		/* Sorotan (daylight by the window): opens like the video frame, its photo drifts, then dusk falls
		   as it leaves, handing over to the video block, where the page lights go down. */
		.hp-feature-card { animation: hp-video-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
		.hp-feature-card img { animation: hp-drift linear both; animation-timeline: --hp-feature; }
		.hp-feature-card::before { animation: hp-dusk linear both; animation-timeline: --hp-feature; animation-range: exit 0% exit 90%; }
		.hp-feature-text { animation: hp-video-rise linear both; animation-timeline: --hp-feature; animation-range: entry 25% cover 50%; }
	}
}

/* ---------- Drawer, redesigned ----------
   Same paper and Kelvin strip as the masthead, so the drawer reads as the masthead unfolded:
   logo + close, search, the three info pages in the serif voice, then rubrics as a quiet index
   ("Light" muted, the distinguishing word leads, article count on the right). */
.drawer-panel { display: flex; flex-direction: column; padding: 0 24px 32px; transition: translate .25s ease; }
@starting-style { .drawer:not([hidden]) .drawer-panel { translate: -100% 0; } }
.drawer-panel > .kelvin { flex: none; margin-inline: -24px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px 20px; }
.drawer-logo .wordmark { height: 44px; }
.drawer-close { margin: 0; }
.drawer-search { margin-bottom: 24px; }
.drawer-search .search-form { max-width: none; }
.drawer-info { margin-bottom: 32px; border-top: 2px solid var(--ink); }
.drawer-info a { min-height: 48px; padding-block: 10px; font-size: 22px; }
.drawer-label { margin: 0; }
.drawer-cats li { border-bottom: 1px solid var(--rule); }
.drawer-cats a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 44px; padding-block: 12px; }
.drawer-cats a:hover { text-decoration: none; }
.drawer-cats a:hover .drawer-cat, .drawer-cats a[aria-current] .drawer-cat { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.drawer-cat { font: 500 16px/1.25 var(--sans); }
.drawer-cat-pre { color: var(--graphite); }
.drawer-count { font: 400 13px/1 var(--sans); color: var(--graphite); font-variant-numeric: tabular-nums; }
.drawer-social { margin-top: auto; padding-top: 32px; }
.drawer-social a { color: var(--graphite); border-color: var(--rule); }
.drawer-social a:hover { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .drawer-panel { transition: none; } }

/* ---------- Homepage: Pilihan redaksi, chapter 3 ----------
   Right after the video, the room is past dark and into blue hour: a deep brand-blue stage (brand
   blue mixed with the video's black), not black. As it scrolls in, each pick's lamp switches on in
   turn (a stage-coloured layer over the photo fades out, left to right), then the Kelvin strip at its
   foot hands the page back to daylight. */
.hp-video { margin-bottom: 0; }
.hp-picks { --stage: color-mix(in srgb, var(--brand) 62%, #08090b); position: relative; z-index: 5; background: var(--stage); color: #eceef1; padding-top: 64px; view-timeline: --hp-picks; }
.hp-picks .hp-label { color: #fff; border-top-color: rgba(255, 255, 255, .5); font-size: 17px; }
.hp-picks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 36px; padding-bottom: 72px; }
.hp-pick-img { position: relative; display: block; overflow: clip; margin-bottom: 18px; }
.hp-pick-img img, .hp-pick-img .thumb-empty { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hp-pick-img::after { content: ""; position: absolute; inset: 0; background: var(--stage); opacity: 0; pointer-events: none; }
.hp-pick .kicker, .hp-pick .h-sm a, .hp-pick .byline a { color: #fff; }
.hp-pick .kicker { font-size: 14px; }
.hp-pick .byline { color: #c9d2ea; font-size: 14px; } /* on the blue stage, not a bar */
.hp-pick .h-sm { font-size: 22px; line-height: 1.22; }
.hp-picks > .kelvin { border-block: 0; }
.hp-pick:nth-child(2) { --i: 1; }
.hp-pick:nth-child(3) { --i: 2; }
.hp-pick:nth-child(4) { --i: 3; }
@keyframes hp-lamp { from { opacity: .92; } to { opacity: 0; } }
@keyframes hp-lamp-img { from { transform: scale(1.08); } to { transform: none; } }
@keyframes hp-lamp-text { from { opacity: .15; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
	@media (prefers-reduced-motion: no-preference) {
		.hp-pick-img::after, .hp-pick-img img, .hp-pick-body {
			animation-timing-function: linear; animation-fill-mode: both;
			animation-timeline: --hp-picks;
			animation-range: entry calc(45% + var(--i, 0) * 12%) cover calc(32% + var(--i, 0) * 7%);
		}
		.hp-pick-img::after { animation-name: hp-lamp; }
		.hp-pick-img img { animation-name: hp-lamp-img; }
		.hp-pick-body { animation-name: hp-lamp-text; }
	}
}
@media (max-width: 860px) {
	.hp-picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
}

/* Top strip: mark the page you are on */
.topcats .current-menu-item > a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Page-to-page transition ----------
   The masthead and top strip stay put while only the page body changes, and the mark under the
   current menu item glides to the new one, so moving between pages feels like one publication. */
.topcats li { position: relative; }
.topcats .current-menu-item > a { text-decoration: none; }
.nav-mark { position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--ink); pointer-events: none; }
.topcats-pages .nav-mark { left: 22px; } /* the first info page has the separator's padding on its left */
@keyframes vt-page-out { to { opacity: 0; } }
@keyframes vt-page-in { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }
	html:not(.vt-theme) .topcats { view-transition-name: topcats; }
	html:not(.vt-theme) .mast { view-transition-name: mast; }
	html:not(.vt-theme) .nav-mark { view-transition-name: nav-mark; }
	html:not(.vt-theme)::view-transition-old(root) { animation: .18s ease-in both vt-page-out; }
	html:not(.vt-theme)::view-transition-new(root) { animation: .32s cubic-bezier(.2, 0, 0, 1) .08s both vt-page-in; }
	html:not(.vt-theme)::view-transition-group(nav-mark) { animation-duration: .4s; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
}

/* ---------- Image skeleton ----------
   Photos (featured images, .wp-post-image, and images inside an article's text) show a shimmer in the
   box their width/height already reserves, a band of Kelvin gold then daylight blue over a mid grey,
   until the photo arrives. site.js marks each photo .is-loaded (shimmer stops) or .is-error (a plain
   box stays instead of a broken icon). */
/* Only while loading: an "animation: none" on loaded photos would also cancel the homepage's scroll animations on them. */
:is(.wp-post-image, .prose img):not(.is-loaded, .is-error) {
	background: linear-gradient(100deg, var(--surface-3) 30%, color-mix(in srgb, #bfa667 45%, var(--surface-3)) 45%, color-mix(in srgb, #8fb3ff 45%, var(--surface-3)) 55%, var(--surface-3) 70%) var(--surface-3);
	background-size: 300% 100%;
	animation: lp-shimmer 1.4s linear infinite;
}
/* Many imported article images carry no width/height, so they would load in a 0px box where no shimmer shows:
   give those a provisional 3:2 box until they arrive. */
.prose img:not([height]):not(.is-loaded, .is-error) { width: 100%; aspect-ratio: 3 / 2; }
:is(.wp-post-image, .prose img).is-error { background: var(--surface-3); color: transparent; }
@keyframes lp-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { :is(.wp-post-image, .prose img):not(.is-loaded, .is-error) { animation: none; } }

/* ---------- Author box (end of article) ----------
   Name and bio from the user's profile (Users > Profile > Biographical Info), photo from Gravatar. */
.author-box { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 680px; margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink); }
.author-avatar { display: block; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.author-label { font: 500 13px/1 var(--sans); color: var(--graphite); }
.author-name { margin-top: 8px; font: 800 22px/1.2 var(--sans); }
.author-bio { margin-top: 10px; font: 400 17px/1.55 var(--serif); color: var(--graphite); max-width: 56ch; }
@media (max-width: 640px) { .author-box { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; } .author-avatar { width: 56px; height: 56px; } }

/* ---------- Article rail: next story to read, above Terpopuler ---------- */
.next-read { margin-bottom: 32px; }
.next-read-card { display: block; padding-top: 14px; }
.next-read-card:hover { text-decoration: none; }
.next-read-card:hover .next-read-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.next-read-img img, .next-read-img .thumb-empty { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.next-read-title { display: block; margin-top: 12px; font: 700 17px/1.3 var(--sans); }

/* ---------- Image viewer (photos inside an article) ---------- */
.prose img.is-zoomable { cursor: zoom-in; }
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #08090b; color: #fff; overscroll-behavior: contain; }
.zoom::backdrop { background: #08090b; overflow: hidden; overscroll-behavior: contain; }
.zoom[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; }
.zoom-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.zoom-stage.is-zoomed { cursor: grab; }
.zoom-stage.is-zoomed:active { cursor: grabbing; }
.zoom-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; filter: none !important; }
.zoom-caption { max-width: 72ch; margin: 0 auto; padding: 12px 24px 0; font: 400 15px/1.45 var(--serif); color: #c9ccd3; text-align: center; }
.zoom-bar { display: flex; justify-content: center; gap: 8px; padding: 16px; }
.zoom-bar button {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding-inline: 12px;
	font: 500 14px/1 var(--sans); font-variant-numeric: tabular-nums; color: #fff; cursor: pointer;
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: 22px;
	transition: background-color .15s ease, border-color .15s ease;
}
.zoom-bar button:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .45); }
.zoom-bar button:focus-visible { outline: 2px solid #8fb3ff; outline-offset: 2px; }

/* ---------- Reading progress (articles) ----------
   The Kelvin strip under the compact header fills warm-to-cool as you read through the article body. */
.read-progress { display: none; }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
	body.single { timeline-scope: --read; }
	.single .prose { view-timeline: --read; }
	.read-progress { display: block; height: 3px; border: 0; transform: scaleX(0); transform-origin: left; animation: read-fill linear both; animation-timeline: --read; animation-range: contain 0% contain 100%; }
}
@keyframes read-fill { to { transform: scaleX(1); } }

/* ---------- Sponsored content ----------
   Sponsored cards and advertorials take the exact shape of the cards around them; only the label
   differs, in the rubric's place, set quieter (graphite, no colour dot) so it reads plainly. */
.kicker-sponsored { color: var(--graphite); font-weight: 500; }
.hp-picks .kicker-sponsored, .hp-feature-cat { color: inherit; }
.is-sponsored .byline { font-size: 14px; line-height: 1.45; }
.hp-row .is-sponsored > div { display: contents; }

/* Drawer rubrics: colour dot like the kickers elsewhere, and "Baru" where a story landed this week */
.drawer-cats a { align-items: center; }
.drawer-cats .swatch { margin-right: -4px; }
.drawer-cat { flex: 1; }
.drawer-new { font: 600 12px/1 var(--sans); color: var(--focus); }

/* ---------- About: "the light comes on" ----------
   Chapter 1, dark stage: the logo's rays fan down from a point above the page and a warm pool of
   light grows as you scroll. Chapter 2, dawn: the stage fades into paper. Chapter 3, reading: each
   paragraph comes out of shadow as it reaches you, and a Kelvin line runs down beside the text like a
   dimmer being turned up. Chapter 4: the rubrics switch on one by one. Decorative: no JS fallback. */
.about-hero { position: relative; display: grid; place-items: center; min-height: 86svh; overflow: clip; background: #08090b; color: #eceef1; view-timeline: --about-hero; }
.about-rays {
	position: absolute; inset: -30% -20% -10%;
	background: repeating-conic-gradient(from 180deg at 50% 0%, transparent 0deg 5deg, rgba(222, 200, 135, .36) 5deg 7deg, transparent 7deg 12deg);
	-webkit-mask: radial-gradient(ellipse 60% 80% at 50% 0%, #000 0%, transparent 75%);
	mask: radial-gradient(ellipse 60% 80% at 50% 0%, #000 0%, transparent 75%);
	transform-origin: 50% 0;
}
.about-glow { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 42% at 50% 0%, rgba(250, 238, 205, .7), rgba(222, 196, 120, .3) 38%, transparent 72%); opacity: .35; transform-origin: 50% 0; }
.about-hero-text { position: relative; text-align: center; padding-block: 96px; }
.about-title { font: 500 14px/1 var(--sans); color: #c9ccd3; }
.about-statement { max-width: 22ch; margin: 24px auto 0; font: 400 clamp(30px, 4.6vw, 58px)/1.12 var(--serif); letter-spacing: -0.01em; color: #fff; }
.about-cue { margin-top: 40px; font: 500 14px/1 var(--sans); color: #c9ccd3; }
/* Entrance: as the page opens the label comes up, the statement's words light one after another, like a lamp
   warming, and the scroll cue follows. Only on load; the scroll-driven drift below takes over afterwards. */
@keyframes about-word-on { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } 60% { filter: blur(0); } }
@media (prefers-reduced-motion: no-preference) {
	.about-word { display: inline-block; animation: about-word-on .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.35s + var(--w) * 60ms); }
	.about-title { animation: lp-rise .7s cubic-bezier(.2, .7, .2, 1) .1s both; }
	.about-glow { animation: lp-on 1.2s ease-out backwards; } /* the lamp switches on, then the rays fall into place; the scroll rules below add these to their own */
	.about-rays { animation: lp-rays-on 1.6s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
	.about-cue { animation: lp-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.6s + var(--n, 12) * 60ms); }
}
/* Dawn: overlaps the foot of the hero and starts transparent, so it always meets the room's current
   colour (dark at rest, warmed while scrolling) with no seam. Scrolling through it, the gold band rises
   toward the top: light coming up into the page. --dawn is registered so the stops can animate. */
@property --dawn { syntax: "<percentage>"; inherits: false; initial-value: 40%; }
.about-dawn {
	position: relative; z-index: 1; height: 320px; margin-top: -160px; pointer-events: none; /* overlap (160px) covers the transparent part at its longest (45% of 320px), so the page behind never shows through */
	background: linear-gradient(transparent, #6b5a38 var(--dawn), color-mix(in srgb, #efe6c8 45%, var(--paper)) calc(var(--dawn) + 30%), var(--paper) calc(var(--dawn) + 55%));
}
@keyframes about-dawn-rise { from { --dawn: 45%; } to { --dawn: 8%; } }
.about-body { position: relative; padding-block: 24px 72px; }
.about-story { position: relative; max-width: 748px; margin-inline: auto; }
.about-prose { max-width: none; font-size: 22px; line-height: 1.6; }
.about-prose > * + * { margin-top: 1.6em; }
.about-line {
	position: absolute; top: 0; bottom: 0; left: -40px; width: 3px;
	background: linear-gradient(180deg, #ab8c53, #d4c079 26%, #efe6c8 46%, #dce7ff 62%, #8fb3ff 78%, #163d9b); border-radius: 2px;
	transform-origin: top; view-timeline: --about-body;
}
.about .coverage { max-width: 960px; margin: 96px auto 0; }
/* Sister sites under the coverage map: same rule-topped section, one quiet card per site */
.related { max-width: 960px; margin: 72px auto 0; padding-top: 16px; border-top: 2px solid var(--ink); }
.related-intro { margin-top: 8px; font: 400 15px/1.5 var(--sans); color: var(--graphite); }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 24px; }
.related-list > li > * { display: flex; flex-direction: column; gap: 6px; min-height: 96px; justify-content: center; padding: 20px 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: 2px; }
.related-list a { position: relative; transition: border-color .15s ease; }
.related-list a::after { content: "\2197"; position: absolute; top: 18px; right: 20px; font: 400 16px/1 var(--sans); color: var(--graphite); } /* north-east arrow: opens the other site */
.related-list a:hover { border-color: var(--ink); text-decoration: none; }
.related-list .related-name { font: 700 20px/1.2 var(--sans); letter-spacing: -0.01em; }
.related-list .related-host { font: 400 13px/1.2 var(--sans); color: var(--graphite); }
.related-list > li > span { color: var(--graphite); }
@keyframes about-rays-on { from { transform: scale(.8) rotate(-4deg); opacity: .45; } to { transform: scale(1.5) rotate(3deg); opacity: 1; } } /* the beam opens up; the source stays put above the page, so no edge ever shows */
@keyframes about-glow-on { to { opacity: .9; transform: scale(2.2); } }
@keyframes about-room-warm { to { background-color: #17130c; } } /* the dark room warms up as the lamp comes on */
@keyframes about-text-drift { to { transform: translateY(-18%); opacity: .25; } }
/* Photons (light.css) keep rising in the dark room; as the page scrolls on they lift faster than the text and thin out. */
.about-photons { position: absolute; inset: 0; --rise: 78svh; }
@keyframes about-photons-out { to { transform: translateY(-30%); opacity: 0; } }
@keyframes about-lit { from { opacity: .18; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes about-dimmer { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes about-scale-open { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@supports ((animation-timeline: view()) and (animation-range: entry)) {
	@media (prefers-reduced-motion: no-preference) {
		.about { timeline-scope: --about-body; }
		.about-hero { animation: about-room-warm linear both; animation-timeline: --about-hero; animation-range: exit -25% exit 60%; }
		.about-rays { animation: about-rays-on linear both, lp-rays-on 1.6s cubic-bezier(.2, .7, .2, 1) .1s backwards; animation-timeline: --about-hero, auto; animation-range: exit -25% exit 60%, normal; }
		.about-glow { animation: about-glow-on linear both, lp-on 1.2s ease-out backwards; animation-timeline: --about-hero, auto; animation-range: exit -25% exit 60%, normal; }
		.about-hero-text { animation: about-text-drift linear both; animation-timeline: --about-hero; animation-range: exit 0% exit 100%; }
		.about-photons { animation: about-photons-out linear both; animation-timeline: --about-hero; animation-range: exit -10% exit 70%; }
		.about-dawn { animation: about-dawn-rise linear both; animation-timeline: view(); animation-range: entry 0% exit 30%; }
		.about-prose > * { animation: about-lit linear both; animation-timeline: view(); animation-range: entry 5% cover 35%; }
		.about-line { animation: about-dimmer linear both; animation-timeline: --about-body; animation-range: entry 10% exit 60%; }
		.about .coverage-scale .kelvin { transform-origin: center; animation: about-scale-open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
		.about .coverage-list li { animation: about-lit linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 4%) cover calc(25% + var(--i, 0) * 2%); }
	}
}
@media (max-width: 860px) {
	.about-prose { font-size: 19px; }
	.about-line { left: -12px; width: 2px; }
}
