/*
Theme Name: Sinar
Description: Clean, photo-led one-page dating content theme. Colours, texts and photos are set per site in Appearance > Customize > Tampilan Sinar.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: sinar
*/

@font-face {
	font-family: "Inter";
	src: url("assets/fonts/Inter-latin.woff2") format("woff2");
	font-weight: 400 700;
	font-display: swap;
}

:root {
	--ink: #1f1d1e;
	--muted: #5d5a5c;
	--radius: 22px;
	--wrap: 1180px;
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.center { text-align: center; }
.hl { color: var(--hl); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: 1.5px solid var(--accent); border-radius: 8px; padding: 13px 26px; font-size: 14px; font-weight: 500; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px var(--accent); }
.btn-out { background: #fff; color: var(--accent); }
.btn-out:hover { background: var(--soft); }
.btn-sm { padding: 9px 20px; font-size: 13px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .25); }
.hdr { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.hdr-logo { flex: none; text-decoration: none; }
.logo-img { height: 38px; width: auto; }
.logo-text { font-weight: 700; font-size: 22px; color: var(--accent); }
.hdr-nav { flex: 1; display: flex; justify-content: center; gap: 26px; font-size: 13.5px; }
.hdr-nav a { text-decoration: none; color: var(--ink); padding: 6px 0; position: relative; white-space: nowrap; }
.hdr-nav a:hover, .hdr-nav a.is-active { color: var(--accent); }
.hdr-nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.hdr-btns { display: flex; gap: 12px; flex: none; }
.hdr-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; flex-direction: column; gap: 5px; }
.hdr-toggle span { width: 22px; height: 2px; background: var(--accent); transition: transform .2s, opacity .2s; }
.nav-open .hdr-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hdr-toggle span:nth-child(2) { opacity: 0; }
.nav-open .hdr-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { padding: 8px 24px 22px; background: #fff; border-top: 1px solid var(--line); }
.mnav a:not(.btn) { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.mnav a.is-active { color: var(--accent); }
.mnav .btn { margin-top: 16px; width: 100%; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--soft) 0%, #fff 100%); padding: 56px 0 96px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--accent); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 20px; }
.h1 { font-size: clamp(34px, 4.3vw, 52px); font-weight: 700; line-height: 1.22; }
.lead { font-size: 15px; color: var(--muted); max-width: 470px; margin: 20px 0 32px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.play { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; text-decoration: none; }
.play-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 15%, transparent); transition: transform .15s; }
.play-ico svg { width: 18px; }
.play:hover .play-ico { transform: scale(1.08); }
.hero-gallery { display: flex; gap: 14px; align-items: stretch; height: 420px; min-width: 0; }
.g { position: relative; border-radius: var(--radius); overflow: hidden; flex: none; box-shadow: var(--shadow); background: var(--soft); }
.g img, .g .ph, .a img, .a .ph { width: 100%; height: 100%; object-fit: cover; }
.g1 { flex: 1.6 1 0; min-width: 0; }
.g2, .g3 { flex: 1 1 0; min-width: 0; }
.g-heart { position: absolute; right: 0; bottom: 0; width: 132px; height: 132px; background: var(--accent); border-radius: 50% 50% var(--radius) 50%; display: grid; place-items: center; color: #fff; }
.g-heart svg { width: 48px; }
.curve { position: absolute; pointer-events: none; }
.curve path { stroke: color-mix(in srgb, var(--ink) 35%, transparent); stroke-width: 1.4; }
.curve circle { fill: var(--accent); }
.curve-hero { width: 200px; left: max(-40px, calc(50% - 720px)); bottom: -70px; }
.curve-steps { width: 170px; left: max(-20px, calc(50% - 700px)); top: -40px; }

/* Steps */
.steps-sec { position: relative; padding: 90px 0 70px; }
.h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
.h2-lg { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 34px 26px 32px; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.step:hover, .step-on { border-color: color-mix(in srgb, var(--accent) 55%, #fff); box-shadow: 0 24px 40px -26px color-mix(in srgb, var(--accent) 70%, transparent); }
.step:hover { transform: translateY(-3px); }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.step-on h3 { color: var(--accent); }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* About */
.about { position: relative; padding: 50px 0 110px; overflow: hidden; }
.about-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-pics { position: relative; display: flex; gap: 22px; align-items: flex-start; padding-left: 20px; }
.a { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--soft); }
.a1 { width: 48%; aspect-ratio: 3 / 5.2; }
.a2 { width: 48%; aspect-ratio: 3 / 5.2; margin-top: 70px; }
.a-dot { position: absolute; left: 51%; top: 26px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.a-dot svg, .a-badge svg { width: 14px; }
.a-badge { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%; background: #FFC83D; color: #fff; display: grid; place-items: center; }
.about-text > p { font-size: 14.5px; color: var(--muted); margin: 22px 0 18px; max-width: 520px; }
.about-text ul { margin: 0; padding-left: 20px; display: grid; gap: 14px; font-size: 14px; max-width: 520px; }
.about-text li::marker { color: var(--accent); }
.rings { position: absolute; right: -10px; bottom: -10px; width: 260px; }
.rings circle { fill: none; stroke: var(--line); stroke-width: 1.2; }

/* Articles */
.articles { padding: 90px 0 110px; background: linear-gradient(180deg, #fff 0%, var(--soft) 30%, var(--soft) 100%); }
.sec-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.sec-head p { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.cat-block { margin-top: 64px; scroll-margin-top: 90px; }
.cat-block:first-of-type { margin-top: 0; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.cat-title { font-size: clamp(20px, 2.2vw, 25px); font-weight: 600; position: relative; padding-left: 18px; }
.cat-title::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 4px; background: var(--accent); }
.cat-head p { font-size: 13.5px; color: var(--muted); max-width: 520px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.card-img img, .card-img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat { align-self: flex-start; display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); border-radius: 999px; padding: 4px 12px; margin-bottom: 12px; text-decoration: none; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.card-title a { text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-text { font-size: 13.5px; color: var(--muted); flex: 1; margin-bottom: 16px; }
.card-more { font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; }
.empty { background: #fff; border: 1px dashed color-mix(in srgb, var(--accent) 40%, #fff); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }
.btn-more { margin-top: 28px; }
.ph { background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--accent) 22%, #fff)); }

/* Footer */
.site-footer { background: color-mix(in srgb, var(--accent) 6%, #fff); border-top: 1px solid var(--line); padding: 46px 0 24px; }
.ftr { display: grid; grid-template-columns: 1.2fr auto 1fr; gap: 30px; align-items: center; }
.ftr-brand p { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ftr-nav { display: flex; gap: 30px; font-size: 13.5px; }
.ftr-nav a { text-decoration: none; }
.ftr-nav a:hover { color: var(--accent); }
.ftr-social { display: flex; justify-content: flex-end; gap: 10px; }
.ftr-social a { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.ftr-social svg { width: 16px; }
.ftr-copy { text-align: center; font-size: 12px; color: var(--muted); margin-top: 34px; }

/* Single */
.post { padding: 56px 0 30px; }
.post-head { max-width: 820px; text-align: center; }
.post-title { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.25; }
.post-meta { font-size: 13px; color: var(--muted); margin-top: 16px; }
.post-img { max-width: 1000px; margin-top: 36px; }
.post-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose { max-width: 760px; margin-top: 44px; font-size: 17px; line-height: 1.8; color: #2b2829; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; font-weight: 700; margin-top: 1.8em; }
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 1.5em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--accent); background: var(--soft); border-radius: 0 12px 12px 0; }
.related { padding: 50px 0 100px; }
.related .cards { margin-top: 34px; }
.listing { padding: 70px 0 100px; }
.search-form { display: flex; justify-content: center; margin-top: 22px; }
.search-form label { flex: 0 1 360px; }
.search-field { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px 0 0 8px; font: inherit; font-size: 14px; }
.search-submit { background: var(--accent); color: #fff; border: 0; border-radius: 0 8px 8px 0; padding: 0 18px; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pager .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.nf { text-align: center; padding: 120px 24px 140px; }
.nf .lead { margin-left: auto; margin-right: auto; }

/* Responsive */
@media (max-width: 1080px) {
	.hdr-nav, .hdr-btns { display: none; }
	.hdr-toggle { display: flex; }
	.hero-in { grid-template-columns: 1fr; }
	.hero-gallery { height: 380px; }
	.about-in { grid-template-columns: 1fr; }
	.about-pics { max-width: 520px; }
	.cards { grid-template-columns: 1fr 1fr; }
	.ftr { grid-template-columns: 1fr; text-align: center; }
	.ftr-nav, .ftr-social { justify-content: center; }
	.ftr-brand .logo-img { margin: 0 auto; }
}
@media (max-width: 680px) {
	.hero { padding: 36px 0 70px; }
	.hero-gallery { height: 280px; gap: 10px; }
	.g { border-radius: 16px; }
	.g-heart { width: 92px; height: 92px; } .g-heart svg { width: 34px; }
	.steps { grid-template-columns: 1fr; }
	.cards { grid-template-columns: 1fr; }
	.curve, .rings { display: none; }
	.logo-img { height: 32px; }
	.ftr-nav { flex-wrap: wrap; justify-content: center; gap: 18px; }
}

.cat-title a { text-decoration: none; }
.cat-title a:hover { color: var(--accent); }
.cat-all { font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap; }
.cat-all:hover { text-decoration: underline; }
