/*
Theme Name: Tempel
Theme URI: https://wordpress.org/themes/
Author: Nurwahyu Ridho
Description: Tema jurnal harian bergaya kertas tempel (post-it) warna-warni. Tata letak satu kolom yang tenang dengan sapaan di beranda, deretan catatan tersemat yang bergulir, pengelompokan catatan per bulan, suasana hati per tulisan, dan mode gelap.
Version: 1.11.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tempel
Tags: blog, one-column, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, post-formats, sticky-post, threaded-comments, block-styles, wide-blocks, translation-ready
*/

/* ==========================================================================
   1. Token
   ========================================================================== */

:root {
	--bg: #f6f3ec;
	--ink: #22201c;
	--paper: #fffdf8;
	--ink-soft: color-mix(in srgb, var(--ink) 70%, var(--bg));
	--ink-faint: color-mix(in srgb, var(--ink) 48%, var(--bg));
	--line: color-mix(in srgb, var(--ink) 12%, transparent);
	--dot: color-mix(in srgb, var(--ink) 13%, transparent);
	--accent: #ff6b4a;
	--highlight: #ffec6e;
	--tape: rgba(255, 255, 255, 0.6);
	--note-ink: #26231d;
	--note-ink-soft: rgba(38, 35, 29, 0.72);
	--chip: rgba(255, 255, 255, 0.55);
	--shadow-note: 0 1px 1px rgba(60, 45, 15, 0.08), 0 12px 22px -12px rgba(60, 45, 15, 0.4);
	--shadow-lift: 0 2px 3px rgba(60, 45, 15, 0.08), 0 26px 38px -16px rgba(60, 45, 15, 0.45);
	--shadow-soft: 0 1px 2px rgba(60, 45, 15, 0.06), 0 6px 18px -8px rgba(60, 45, 15, 0.2);
	--note-filter: none;

	/* Warna kertas tempel */
	--n-kuning: #fff3a3;
	--n-pink: #ffd0e0;
	--n-biru: #c4e2ff;
	--n-hijau: #c9f2c0;
	--n-ungu: #e0d0ff;
	--n-oranye: #ffd9b0;
	--n-tosca: #b9f0e6;
	--n-salem: #ffbcb3;

	--font-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Space Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
	--font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

	--w-content: 680px;
	--text-size: 17px;
	--logo-size: 48px;
	--head-weight: 700;
	--hand-weight: 700;
	--hand-weight-light: 500;
	--tilt-scale: 1;
	--w-wide: 1120px;
	--gutter: 20px;
}

:root[data-theme="dark"] {
	--bg: #1b1a18;
	--ink: #efebe3;
	--paper: #25231f;
	--accent: #ff8a6e;
	--highlight: rgba(255, 226, 80, 0.42);
	--tape: rgba(255, 255, 255, 0.32);
	--shadow-note: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 24px -12px rgba(0, 0, 0, 0.7);
	--shadow-lift: 0 2px 3px rgba(0, 0, 0, 0.3), 0 26px 40px -16px rgba(0, 0, 0, 0.8);
	--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
	--note-filter: saturate(0.88) brightness(0.92);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #1b1a18;
		--ink: #efebe3;
		--paper: #25231f;
		--accent: #ff8a6e;
		--highlight: rgba(255, 226, 80, 0.42);
		--tape: rgba(255, 255, 255, 0.32);
		--shadow-note: 0 1px 1px rgba(0, 0, 0, 0.3), 0 14px 24px -12px rgba(0, 0, 0, 0.7);
		--shadow-lift: 0 2px 3px rgba(0, 0, 0, 0.3), 0 26px 40px -16px rgba(0, 0, 0, 0.8);
		--shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -8px rgba(0, 0, 0, 0.6);
		--note-filter: saturate(0.88) brightness(0.92);
		color-scheme: dark;
	}
}

/* ==========================================================================
   2. Dasar
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: clip;
	font-family: var(--font-body);
	font-size: var(--text-size);
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--bg);
	background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
	background-size: 22px 22px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	line-height: 1.15;
	letter-spacing: calc(var(--head-track, 1) * -0.01em);
}

/* Penyesuaian huruf judul tertentu (mis. Schoolbell: diperbesar ke tinggi huruf normal & ditebalkan sedikit) */
.hero-title,
.label-title,
.site-brand {
	font-size-adjust: var(--site-adjust, none);
	-webkit-text-stroke: var(--site-stroke, 0px) currentColor;
}

.note-title,
.entry-title,
.photo-card-title,
.note--nav .nav-title,
.stats-big,
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-size-adjust: var(--head-adjust, none);
	-webkit-text-stroke: var(--head-stroke, 0px) currentColor;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
}

:focus-visible {
	outline: 2.5px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--highlight);
	color: var(--ink);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 12px;
	top: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--paper);
	border-radius: 10px;
	box-shadow: var(--shadow-soft);
	font-weight: 700;
	text-decoration: none;
}

.read-progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	z-index: 200;
	background: var(--accent);
	transform-origin: 0 50%;
	transform: scaleX(var(--progress, 0));
}

/* ==========================================================================
   3. Header & panel
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: calc(var(--w-content) + 120px);
	margin: 0 auto;
	padding: 26px var(--gutter);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: none;
	text-decoration: none;
	font-family: var(--font-site);
	font-weight: var(--site-weight);
	font-size: 1.05rem;
}

.site-avatar {
	width: var(--logo-size);
	height: var(--logo-size);
	flex: none;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--paper);
	box-shadow: var(--shadow-soft);
	transform: rotate(-4deg);
	transition: transform 0.3s ease;
}

.site-brand:hover .site-avatar {
	transform: rotate(6deg) scale(1.05);
}

.site-avatar--asli {
	width: auto;
	max-width: 220px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: none;
	object-fit: contain;
	transform: none;
}

.site-brand:hover .site-avatar--asli {
	transform: rotate(-2deg);
}

/* Latar kuning hanya untuk avatar inisial — logo gambar berlatar transparan tetap bersih */
.site-avatar--initial {
	display: grid;
	place-items: center;
	background: var(--n-kuning);
	font-family: var(--font-hand);
	font-size: 1.7rem;
	color: var(--note-ink);
}

.primary-nav {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.primary-nav .menu {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 4px;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.primary-nav .menu::-webkit-scrollbar {
	display: none;
}

.primary-nav a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.93rem;
	white-space: nowrap;
	text-decoration: none;
	color: var(--ink-soft);
	transition: background-color 0.2s, color 0.2s;
}

.primary-nav a:hover {
	color: var(--ink);
	background: var(--line);
}

.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-parent > a {
	color: var(--ink);
	background: var(--paper);
	box-shadow: var(--shadow-soft);
}

.nav-count {
	padding: 1px 6px;
	border-radius: 6px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.5;
	background: var(--line);
	color: var(--ink-soft);
}

.panel-wrap {
	position: relative;
	flex: none;
}

.panel-toggle {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--paper);
	box-shadow: var(--shadow-soft);
	cursor: pointer;
	transition: transform 0.2s;
}

.panel-toggle:hover {
	transform: rotate(-6deg);
}

.panel-toggle svg {
	width: 20px;
	height: 20px;
}

.site-panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: min(320px, calc(100vw - 2 * var(--gutter)));
	padding: 18px;
	border-radius: 4px;
	background: var(--n-kuning);
	color: var(--note-ink);
	box-shadow: var(--shadow-lift);
	filter: var(--note-filter);
	transform: rotate(1deg);
	transform-origin: top right;
	animation: panel-in 0.22s ease-out;
}

.site-panel[hidden] {
	display: none;
}

.site-panel::before {
	content: "";
	position: absolute;
	top: -11px;
	left: 50%;
	width: 84px;
	height: 24px;
	transform: translateX(-50%) rotate(-2deg);
	background: var(--tape);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

@keyframes panel-in {
	from {
		opacity: 0;
		transform: rotate(4deg) translateY(-8px);
	}
}

.panel-label {
	margin: 16px 0 8px;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	line-height: 1;
}

.theme-switch {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 4px;
	padding: 4px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.5);
}

.theme-switch button {
	padding: 7px 4px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--note-ink);
	cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
	background: var(--note-ink);
	color: #fff;
}

.panel-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.panel-menu a {
	display: block;
	padding: 6px 0;
	border-bottom: 1px dashed rgba(38, 35, 29, 0.2);
	font-weight: 600;
	text-decoration: none;
}

.panel-menu a:hover {
	text-decoration: underline wavy;
}

/* ==========================================================================
   4. Form pencarian & tombol
   ========================================================================== */

.search-form {
	display: flex;
	gap: 6px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	outline: none;
	transition: border-color 0.2s;
}

.site-panel .search-field {
	border-color: rgba(38, 35, 29, 0.18);
	background: rgba(255, 255, 255, 0.7);
	color: var(--note-ink);
}

.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--accent);
}

.search-submit,
.button,
.comment-form .submit,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s;
}

.site-panel .search-submit {
	background: var(--note-ink);
	color: #fff;
}

.search-submit:hover,
.button:hover,
.comment-form .submit:hover {
	transform: translateY(-2px) rotate(-1deg);
}

/* ==========================================================================
   5. Sapaan beranda
   ========================================================================== */

.hero {
	max-width: 640px;
	margin: 22px auto 34px;
	padding: 0 var(--gutter);
	text-align: center;
}

.hero-title {
	margin: 0 0 16px;
	font-family: var(--font-site);
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: var(--site-weight);
	line-height: 1.15;
	letter-spacing: calc(var(--site-track, 1) * -0.04em);
	text-wrap: balance;
}

/* kursor terminal berkedip */
.hero-title::after {
	content: "_";
	margin-left: 0.05em;
	color: var(--accent);
	animation: caret 1.1s steps(1) infinite;
}

@keyframes caret {
	50% {
		opacity: 0;
	}
}

.hero-title mark {
	padding: 0 0.12em;
	margin: 0 -0.04em;
	color: inherit;
	background: linear-gradient(transparent 12%, var(--highlight) 12%, var(--highlight) 92%, transparent 92%);
	border-radius: 0.12em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.hero-text {
	margin: 0 auto;
	max-width: 520px;
	font-size: 1.08rem;
	color: var(--ink-soft);
	text-wrap: pretty;
}

.hero-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 22px 0 0;
	padding: 0;
	list-style: none;
}

.hero-links a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	box-shadow: var(--shadow-soft);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.2s, background-color 0.2s;
}

.hero-links li:nth-child(odd) a:hover {
	transform: rotate(-3deg);
	background: var(--n-kuning);
	color: var(--note-ink);
}

.hero-links li:nth-child(even) a:hover {
	transform: rotate(3deg);
	background: var(--n-pink);
	color: var(--note-ink);
}

/* ==========================================================================
   6. Deretan catatan tersemat (marquee)
   ========================================================================== */

.featured {
	margin: 0 0 40px;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.section-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 4px;
	font-family: var(--font-hand);
	font-size: 1.55rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	color: var(--ink-soft);
}

.marquee {
	display: flex;
	width: max-content;
	padding: 22px 0 26px;
	animation: marquee var(--duration, 60s) linear infinite;
}

.marquee--reverse {
	animation-direction: reverse;
	padding-top: 6px;
}

.featured:hover .marquee,
.featured:focus-within .marquee {
	animation-play-state: paused;
}

.marquee-half,
.marquee-group {
	display: flex;
}

.marquee .note {
	flex: none;
	width: 290px;
	margin-right: 24px;
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.featured {
		overflow-x: auto;
		-webkit-mask-image: none;
		mask-image: none;
	}

	.marquee {
		animation: none;
		padding-left: var(--gutter);
	}

	.marquee [aria-hidden="true"],
	.marquee--reverse {
		display: none;
	}
}

/* ==========================================================================
   7. Kertas tempel (kartu catatan)
   ========================================================================== */

.journal {
	display: flex;
	flex-direction: column;
	gap: 34px;
	max-width: var(--w-content);
	margin: 0 auto;
	padding: 10px var(--gutter) 40px;
}

.journal--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	align-items: start;
	gap: 40px 28px;
	max-width: var(--w-wide);
}

.journal--grid > .note:nth-of-type(3n + 2) {
	margin-top: 34px;
}

.journal--grid > .note:nth-of-type(3n + 3) {
	margin-top: 12px;
}

.month-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 14px 0 -8px;
	font-family: var(--font-hand);
	font-size: 2rem;
	font-weight: var(--hand-weight);
	letter-spacing: 0;
	line-height: 1;
	color: var(--ink-soft);
}

.month-divider::after {
	content: "";
	flex: 1;
	border-top: 2px dashed var(--line);
}

.journal--grid > .month-divider {
	grid-column: 1 / -1;
	margin-bottom: 0;
}

.note {
	--note: var(--n-kuning);
	--tilt: -0.8deg;
	position: relative;
	padding: 26px 28px 22px;
	border-radius: 2px 2px 4px 4px;
	color: var(--note-ink);
	background:
		linear-gradient(180deg, var(--note) 45%, rgba(255, 255, 255, 0) 100%),
		repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.035) 0 1.5px, transparent 1.5px 11px),
		repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.035) 0 1.5px, transparent 1.5px 11px),
		var(--note);
	box-shadow: var(--shadow-note);
	filter: var(--note-filter);
	transform: rotate(calc(var(--tilt) * var(--tilt-scale)));
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.28s ease;
}

/* selotip */
.note::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -12px;
	left: 50%;
	width: 96px;
	height: 26px;
	transform: translateX(-50%) rotate(-2.5deg);
	background: var(--tape);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
	pointer-events: none;
}

/* sudut terlipat */
.note::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 24px;
	height: 24px;
	background: linear-gradient(to top left, var(--bg) 50%, rgba(0, 0, 0, 0.13) 50%, rgba(0, 0, 0, 0.04));
	border-top-left-radius: 4px;
	pointer-events: none;
}

.note:nth-of-type(4n + 2) {
	--tilt: 0.9deg;
}

.note:nth-of-type(4n + 3) {
	--tilt: -0.4deg;
}

.note:nth-of-type(4n + 4) {
	--tilt: 1.3deg;
}

.note:nth-of-type(3n + 2)::before {
	left: 26px;
	width: 70px;
	transform: rotate(-32deg);
	top: -6px;
}

.note:nth-of-type(3n + 3)::before {
	left: auto;
	right: 22%;
	width: 78px;
	transform: rotate(4deg);
}

.note--kuning { --note: var(--n-kuning); }
.note--pink { --note: var(--n-pink); }
.note--biru { --note: var(--n-biru); }
.note--hijau { --note: var(--n-hijau); }
.note--ungu { --note: var(--n-ungu); }
.note--oranye { --note: var(--n-oranye); }
.note--tosca { --note: var(--n-tosca); }
.note--salem { --note: var(--n-salem); }

a.note:hover,
.note--list:hover,
.note--featured:hover,
.note--nav:hover {
	z-index: 3;
	transform: rotate(0deg) translateY(-4px) scale(1.012);
	box-shadow: var(--shadow-lift);
}

.note-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 4px;
}

.note-date {
	font-family: var(--font-hand);
	font-size: 1.4rem;
	font-weight: var(--hand-weight);
	line-height: 1.05;
	color: var(--note-ink-soft);
}

.note--list.sticky .note-date::before {
	content: "📌 ";
	font-size: 0.85em;
}

.note-mood {
	flex: none;
	font-size: 1.5rem;
	line-height: 1;
	transform: rotate(8deg);
}

.note-title {
	margin: 6px 0 10px;
	font-size: 1.25rem;
	font-weight: var(--head-weight);
	line-height: 1.25;
	letter-spacing: calc(var(--head-track, 1) * -0.03em);
	text-wrap: balance;
}

.note--featured .note-title {
	font-size: 1.05rem;
}

.note-title a,
.note-short a {
	text-decoration: none;
}

.note-title a::before,
.note-short a::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.note:hover .note-title a {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.note-excerpt {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.62;
	color: var(--note-ink-soft);
}

.note--featured .note-excerpt {
	font-size: 0.9rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.note-short {
	margin: 8px 0 4px;
	font-family: var(--font-hand);
	font-size: 1.75rem;
	font-weight: var(--hand-weight-light);
	line-height: 1.2;
}

.note--featured .note-short {
	font-size: 1.45rem;
}

.note-photo {
	float: right;
	width: 112px;
	margin: 4px -6px 10px 16px;
	padding: 5px 5px 16px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	transform: rotate(3.5deg);
}

.note-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* Label di kiri (boleh turun baris), tombol Baca selalu di pojok kanan bawah */
.note-foot {
	clear: both;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 12px;
	margin-top: 18px;
}

.note-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.chip {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--chip);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.6;
	text-decoration: none;
	white-space: nowrap;
}

a.chip:hover {
	background: rgba(255, 255, 255, 0.9);
}

.chip--author {
	padding-left: 3px;
	gap: 5px;
}

.author-dot {
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--dot-color);
	box-shadow: inset 0 0 0 1.5px rgba(38, 35, 29, 0.25);
	font-family: var(--font-hand);
	font-size: 0.85rem;
	font-weight: var(--hand-weight);
	line-height: 1;
}

.note-more {
	white-space: nowrap;
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--note-ink);
	color: var(--note);
	font-size: 0.8rem;
	font-weight: 700;
	transition: transform 0.2s;
}

.note:hover .note-more {
	transform: translateX(3px) rotate(-2deg);
}

/* ==========================================================================
   8. Pagination & label halaman
   ========================================================================== */

.pagination,
.comments-pagination {
	max-width: var(--w-content);
	margin: 10px auto 40px;
	padding: 0 var(--gutter);
}

.pagination .nav-links,
.comments-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--paper);
	box-shadow: var(--shadow-soft);
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--ink);
	color: var(--bg);
}

.page-numbers.dots {
	background: none;
	box-shadow: none;
}

a.page-numbers:hover {
	background: var(--n-kuning);
	color: var(--note-ink);
	transform: rotate(-3deg);
}

.page-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	max-width: var(--w-content);
	margin: 14px auto 36px;
	padding: 0 var(--gutter);
	text-align: center;
}

.label-note {
	--tilt: -1.5deg;
	display: inline-block;
	max-width: 100%;
	padding: 22px 34px 20px;
}

.label-kicker {
	display: block;
	font-family: var(--font-hand);
	font-size: 1.4rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	color: var(--note-ink-soft);
}

.label-title {
	margin: 6px 0 0;
	font-family: var(--font-site);
	font-size: clamp(1.6rem, 4.6vw, 2.3rem);
	font-weight: var(--site-weight);
	letter-spacing: calc(var(--site-track, 1) * -0.03em);
}

.label-desc {
	max-width: 480px;
	margin: 0;
	color: var(--ink-soft);
}

.label-desc p {
	margin: 0;
}

.page-head .search-form {
	width: min(420px, 100%);
}

.empty-state {
	max-width: 440px;
	margin: 0 auto 60px;
	padding: 0 var(--gutter);
	text-align: center;
	color: var(--ink-soft);
}

.empty-state .note {
	--tilt: 2deg;
	margin-bottom: 26px;
	text-align: left;
}

/* ==========================================================================
   9. Tulisan tunggal
   ========================================================================== */

.entry {
	max-width: calc(var(--w-content) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 0 var(--gutter) 30px;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 28px;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	color: var(--ink-soft);
	text-decoration: none;
	transition: transform 0.2s, color 0.2s;
}

.back-link:hover {
	color: var(--ink);
	transform: translateX(-4px);
}

.entry-note {
	--tilt: -1deg;
	padding: 34px 38px 28px;
}

.entry-note::after {
	width: 34px;
	height: 34px;
}

.entry-day {
	margin: 0;
	font-family: var(--font-hand);
	font-size: 2.3rem;
	font-weight: var(--hand-weight);
	line-height: 1;
}

.entry-date {
	display: block;
	margin-top: 2px;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--note-ink-soft);
}

.entry-title {
	margin: 16px 0 18px;
	font-size: clamp(1.55rem, 4.2vw, 2.25rem);
	font-weight: var(--head-weight);
	line-height: 1.18;
	letter-spacing: calc(var(--head-track, 1) * -0.03em);
	text-wrap: balance;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.entry-mood {
	position: absolute;
	top: 22px;
	right: 26px;
	font-size: 2.6rem;
	line-height: 1;
	transform: rotate(10deg);
}

/* Foto utama yang ditempel di kertas judul, seperti foto di pintu kulkas */

.entry-note--photo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
	align-items: center;
	column-gap: 30px;
}

.entry-note--photo::before {
	left: 28%;
}

.entry-note--photo .entry-mood {
	position: static;
	display: inline-block;
	margin-left: 6px;
	font-size: 1.9rem;
	vertical-align: -0.05em;
}

.entry-note--photo .entry-title {
	font-size: clamp(1.45rem, 3.4vw, 1.95rem);
}

.stuck-photo {
	position: relative;
	z-index: 3;
	margin: -6px -58px -6px 0;
	padding: 10px 10px 14px;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 18px 28px -14px rgba(40, 30, 10, 0.5);
	transform: rotate(4deg);
	transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.stuck-photo:not(:has(figcaption)) {
	padding-bottom: 30px;
}

.stuck-photo:hover {
	transform: rotate(1.5deg) scale(1.02);
}

.stuck-photo-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.stuck-photo figcaption {
	margin-top: 8px;
	font-family: var(--font-hand);
	font-size: 1.2rem;
	font-weight: var(--hand-weight-light);
	line-height: 1.15;
	text-align: center;
	color: #3d3a33;
}

.stuck-photo::before,
.stuck-photo::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

/* Penjepit: magnet kulkas */
.fastener-magnet .stuck-photo::before {
	top: -17px;
	left: 50%;
	width: 40px;
	height: 40px;
	margin-left: -20px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 11%, transparent 13%),
		radial-gradient(circle, var(--accent) 0 58%, color-mix(in srgb, var(--accent) 65%, #000) 100%);
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25), 0 9px 12px -4px rgba(0, 0, 0, 0.35), inset 0 -3px 4px rgba(0, 0, 0, 0.18);
}

/* Penjepit: selotip di dua sudut */
.fastener-selotip .stuck-photo::before,
.fastener-selotip .stuck-photo::after {
	width: 96px;
	height: 26px;
	background: rgba(255, 248, 210, 0.78);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.fastener-selotip .stuck-photo::before {
	top: -10px;
	left: -26px;
	transform: rotate(-38deg);
}

.fastener-selotip .stuck-photo::after {
	right: -26px;
	bottom: -8px;
	transform: rotate(-38deg);
}

/* Penjepit: paku pines */
.fastener-pin .stuck-photo::before {
	top: -8px;
	left: 50%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 13%, transparent 15%),
		var(--accent);
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 4px 7px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Gaya "besar": foto selebar kertas di antara tanggal dan judul */
.entry-note--photo-big .entry-mood {
	position: static;
	display: inline-block;
	margin-left: 6px;
	font-size: 1.9rem;
	vertical-align: -0.05em;
}

/*
 * Lebih lebar dari kertasnya: menyembul di kedua sisi, sedikit tidak simetris seperti ditempel tangan.
 * Seberapa jauh menyembul mengikuti ruang kosong di samping kertas, jadi tak pernah keluar layar.
 */
.entry-note--photo-big {
	--note-pad-x: 38px;
}

.entry-note--photo-big .stuck-photo {
	margin: 28px 0 18px;
	margin-left: calc(-1 * var(--note-pad-x) - clamp(6px, (100vw - 760px) / 2, var(--photo-out-left, 36px)));
	margin-right: calc(-1 * var(--note-pad-x) - clamp(6px, (100vw - 740px) / 2, var(--photo-out-right, 58px)));
	padding: 12px 12px 14px;
	transform: rotate(-1.8deg);
}

.entry-note--photo-big .stuck-photo:not(:has(figcaption)) {
	padding-bottom: 22px;
}

.entry-note--photo-big .stuck-photo:hover {
	transform: rotate(-0.8deg) scale(1.01);
}

.entry-note--photo-big .stuck-photo-img {
	aspect-ratio: 16 / 9;
}

.entry-note--photo-big .stuck-photo figcaption {
	font-size: 1.35rem;
}

.fastener-magnet.entry-note--photo-big .stuck-photo::before {
	width: 46px;
	height: 46px;
	margin-left: -23px;
	top: -20px;
}

@media (max-width: 900px) {
	.stuck-photo {
		margin-right: -16px;
	}
}

@media (max-width: 700px) {
	.entry-note--photo {
		grid-template-columns: minmax(0, 1fr);
	}

	.stuck-photo {
		margin: 28px 4px 4px;
		transform: rotate(2.5deg);
	}

	.entry-note--photo-big .stuck-photo {
		margin-top: 24px;
		margin-bottom: 10px;
		padding: 7px 7px 10px;
		transform: rotate(-1.5deg);
	}

	.entry-note--photo-big .stuck-photo:not(:has(figcaption)) {
		padding-bottom: 16px;
	}
}

.polaroid {
	position: relative;
	width: fit-content;
	max-width: 92%;
	margin: 40px auto 6px;
	padding: 12px 12px 14px;
	background: #fff;
	box-shadow: var(--shadow-note);
	transform: rotate(1.4deg);
}

.polaroid::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 50%;
	width: 110px;
	height: 26px;
	transform: translateX(-50%) rotate(2deg);
	background: var(--tape);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.polaroid img {
	display: block;
}

.polaroid figcaption {
	margin-top: 10px;
	font-family: var(--font-hand);
	font-size: 1.35rem;
	line-height: 1.15;
	text-align: center;
	color: #3d3a33;
}

.sheet {
	position: relative;
	margin-top: 34px;
	padding: 46px 46px 40px 78px;
	border-radius: 3px;
	background-color: var(--paper);
	background-image: linear-gradient(90deg, transparent 54px, rgba(255, 99, 99, 0.38) 54px, rgba(255, 99, 99, 0.38) 56px, transparent 56px);
	box-shadow: var(--shadow-soft);
}

.sheet::before {
	content: "";
	position: absolute;
	top: 30px;
	bottom: 30px;
	left: 20px;
	width: 14px;
	background: radial-gradient(circle, var(--bg) 6px, rgba(0, 0, 0, 0.12) 6.5px, transparent 7.5px) center top / 14px 64px repeat-y;
	pointer-events: none;
}

.page-sheet {
	margin-top: 0;
}

/* Isi tulisan */

.entry-content {
	font-size: 1.08rem;
	line-height: 1.8;
	overflow-wrap: break-word;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.25em;
}

.entry-content h2 {
	margin: 1.8em 0 0.6em;
	font-size: 1.65rem;
}

.entry-content h3 {
	margin: 1.6em 0 0.5em;
	font-size: 1.3rem;
}

.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 1.5em 0 0.5em;
	font-size: 1.08rem;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.entry-content a:hover {
	background: var(--highlight);
}

.entry-content mark {
	padding: 0 0.15em;
	color: inherit;
	background: var(--highlight);
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content li::marker {
	color: var(--accent);
}

.entry-content blockquote:not(.is-style-plain) {
	position: relative;
	margin: 1.8em 0;
	padding: 20px 24px;
	border: 0;
	border-radius: 2px;
	background: var(--n-kuning);
	color: var(--note-ink);
	box-shadow: var(--shadow-note);
	filter: var(--note-filter);
	transform: rotate(-0.7deg);
	font-family: var(--font-hand);
	font-size: 1.55rem;
	line-height: 1.35;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-style: normal;
	font-weight: 600;
	opacity: 0.75;
}

.entry-content hr,
.entry-content .wp-block-separator {
	height: auto;
	margin: 2.4em 0;
	border: 0;
	background: none;
	text-align: center;
	opacity: 1;
}

.entry-content hr::before,
.entry-content .wp-block-separator::before {
	content: "✿  ✿  ✿";
	font-size: 1rem;
	letter-spacing: 0.5em;
	color: var(--ink-faint);
}

.entry-content figure {
	margin: 1.8em 0;
}

.entry-content img {
	border-radius: 3px;
}

.entry-content figcaption,
.wp-caption-text {
	margin-top: 8px;
	font-family: var(--font-hand);
	font-size: 1.25rem;
	line-height: 1.2;
	text-align: center;
	color: var(--ink-soft);
}

.entry-content code {
	padding: 0.15em 0.4em;
	border-radius: 5px;
	background: var(--line);
	font-size: 0.88em;
}

.entry-content pre {
	overflow-x: auto;
	padding: 18px 20px;
	border-radius: 8px;
	background: var(--ink);
	color: var(--bg);
	font-size: 0.88rem;
	line-height: 1.6;
}

.entry-content pre code {
	padding: 0;
	background: none;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.entry-content .alignwide {
	margin-left: -32px;
	margin-right: -32px;
	max-width: none;
}

.entry-content .alignfull {
	margin-left: -46px;
	margin-right: -46px;
	max-width: none;
}

.alignleft {
	float: left;
	margin: 0.3em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.page-links {
	clear: both;
	margin-top: 2em;
	font-weight: 700;
}

.entry-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	clear: both;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 2px dashed var(--line);
}

.entry-tags a {
	padding: 3px 12px;
	border-radius: 2px;
	background: var(--n-tosca);
	color: var(--note-ink);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	filter: var(--note-filter);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transform: rotate(-1.5deg);
	transition: transform 0.2s;
}

.entry-tags a:nth-child(3n + 2) {
	background: var(--n-pink);
	transform: rotate(1.5deg);
}

.entry-tags a:nth-child(3n + 3) {
	background: var(--n-oranye);
	transform: rotate(-0.5deg);
}

.entry-tags a::before {
	content: "#";
	opacity: 0.5;
}

.entry-tags a:hover {
	transform: rotate(0) translateY(-2px);
}

.entry-sign {
	margin: 28px 0 0;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 1.2;
	text-align: right;
	color: var(--ink-soft);
}

/* Navigasi tulisan */

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	margin-top: 46px;
}

.note--nav {
	display: block;
	padding: 20px 22px 18px;
	text-decoration: none;
}

.note--nav.is-next {
	--tilt: 1deg;
	text-align: right;
}

.note--nav .nav-kicker {
	display: block;
	font-family: var(--font-hand);
	font-size: 1.25rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	color: var(--note-ink-soft);
}

.note--nav .nav-title {
	display: block;
	margin-top: 8px;
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	font-size: 1.08rem;
	line-height: 1.2;
}

.post-nav .is-next:only-child {
	grid-column: 2;
}

/* ==========================================================================
   10. Komentar
   ========================================================================== */

.comments {
	margin-top: 54px;
}

.comments-title,
.comment-reply-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 22px;
	font-family: var(--font-hand);
	font-size: 2rem;
	font-weight: var(--hand-weight);
	letter-spacing: 0;
	line-height: 1;
}

.comments-title::after {
	content: "";
	flex: 1;
	border-top: 2px dashed var(--line);
}

.comment-reply-title small {
	margin-left: auto;
	font-family: var(--font-body);
	font-size: 0.85rem;
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 28px;
}

.comment-body {
	position: relative;
	margin-bottom: 18px;
	padding: 18px 22px;
	border-radius: 3px;
	background: var(--paper);
	box-shadow: var(--shadow-soft);
}

.bypostauthor > .comment-body {
	background: var(--n-kuning);
	color: var(--note-ink);
	filter: var(--note-filter);
}

.comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin-bottom: 8px;
	font-size: 0.85rem;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .says {
	display: none;
}

.comment-metadata a {
	color: var(--ink-faint);
	text-decoration: none;
}

.bypostauthor > .comment-body .comment-metadata a {
	color: var(--note-ink-soft);
}

.comment-content p {
	margin: 0 0 0.8em;
}

.reply a {
	font-size: 0.85rem;
	font-weight: 700;
}

.comment-respond {
	margin-top: 34px;
	padding: 28px;
	border-radius: 3px;
	background: var(--paper);
	box-shadow: var(--shadow-soft);
}

.comment-list .comment-respond {
	margin: 0 0 20px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.88rem;
	font-weight: 700;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.88rem;
}

.comment-form-cookies-consent label {
	font-weight: 400;
}

.comment-notes,
.logged-in-as,
.no-comments {
	font-size: 0.9rem;
	color: var(--ink-soft);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.site-footer {
	max-width: var(--w-wide);
	margin: 40px auto 0;
	padding: 30px var(--gutter) 46px;
	text-align: center;
	color: var(--ink-soft);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 30px;
	margin-bottom: 46px;
	text-align: left;
}

.footer-widgets .widget {
	--tilt: 0.6deg;
	padding: 22px 22px 18px;
}

.footer-widgets .widget:nth-child(even) {
	--tilt: -0.9deg;
}

.footer-widgets .widget:nth-child(4n + 2) { --note: var(--n-pink); }
.footer-widgets .widget:nth-child(4n + 3) { --note: var(--n-biru); }
.footer-widgets .widget:nth-child(4n + 4) { --note: var(--n-hijau); }

.widget-title,
.footer-widgets .wp-block-heading {
	margin: 0 0 10px;
	font-family: var(--font-hand);
	font-size: 1.5rem;
	font-weight: var(--hand-weight);
	letter-spacing: 0;
}

.footer-widgets ul {
	margin: 0;
	padding-left: 1.1em;
}

.footer-sign {
	margin: 0 0 14px;
	font-family: var(--font-hand);
	font-size: 1.6rem;
	font-weight: var(--hand-weight);
	line-height: 1.1;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.footer-menu a {
	text-decoration: none;
}

.footer-menu a:hover {
	text-decoration: underline wavy;
}

.footer-copy {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ink-faint);
}

/* ==========================================================================
   12. Kolom samping beranda (layar lebar)
   ========================================================================== */

.rail {
	display: none;
}

.month-divider {
	scroll-margin-top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
}

@media (min-width: 1200px) {
	.journal-layout.has-rails {
		display: grid;
		grid-template-columns: minmax(150px, 1fr) minmax(0, calc(var(--w-content) + 2 * var(--gutter))) minmax(230px, 1fr);
		column-gap: 28px;
		align-items: start;
		max-width: 1400px;
		margin: 0 auto;
		padding: 0 var(--gutter);
	}

	.has-rails > .journal {
		width: 100%;
		margin: 0;
	}

	.rail {
		display: block;
		position: sticky;
		top: calc(20px + var(--wp-admin--admin-bar--height, 0px));
	}

	.rail--left {
		justify-self: end;
		width: 150px;
		padding-top: 24px;
	}

	.rail--right {
		justify-self: start;
		width: min(270px, 100%);
		max-height: calc(100vh - 40px - var(--wp-admin--admin-bar--height, 0px));
		margin: 0 -14px;
		padding: 26px 14px 30px;
		overflow-y: auto;
		scrollbar-width: none;
	}

	.rail--right::-webkit-scrollbar {
		display: none;
	}
}

.rail-label {
	margin: 0 6px 10px 0;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	text-align: right;
	color: var(--ink-soft);
}

.month-tabs {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.month-tab {
	--note: var(--n-kuning);
	display: flex;
	align-items: baseline;
	gap: 6px;
	min-width: 124px;
	padding: 8px 14px 8px 16px;
	border-radius: 6px 0 0 6px;
	background: var(--note);
	color: var(--note-ink);
	box-shadow: var(--shadow-soft);
	filter: var(--note-filter);
	text-decoration: none;
	transform: translateX(12px);
	transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.25s;
}

.month-tab:hover,
.month-tab:focus-visible {
	transform: translateX(2px);
}

.month-tab.is-active {
	transform: translateX(-10px);
	box-shadow: var(--shadow-lift);
}

.month-tab-name {
	font-family: var(--font-hand);
	font-size: 1.35rem;
	font-weight: var(--hand-weight);
	line-height: 1;
}

.month-tab-year {
	font-size: 0.74rem;
	font-weight: 600;
	color: var(--note-ink-soft);
}

.month-tab-count {
	margin-left: auto;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--chip);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.6;
}

.rail-card {
	--tilt: 0.8deg;
	margin-bottom: 30px;
	padding: 22px 20px 16px;
}

.rail-card:nth-of-type(even) {
	--tilt: -1deg;
}

.rail-title {
	margin: 0 0 10px;
	font-family: var(--font-hand);
	font-size: 1.5rem;
	font-weight: var(--hand-weight);
	letter-spacing: 0;
	line-height: 1;
}

.cat-list,
.memory-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cat-list a,
.memory-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px dashed rgba(38, 35, 29, 0.2);
	text-decoration: none;
}

.cat-list li:last-child a,
.memory-list li:last-child a {
	border-bottom: 0;
}

.cat-dot {
	flex: none;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background: var(--dot-color);
	box-shadow: inset 0 0 0 1.5px rgba(38, 35, 29, 0.28);
	transform: rotate(-8deg);
}

.cat-text {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.cat-name {
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.25;
}

.cat-desc {
	font-size: 0.78rem;
	line-height: 1.3;
	color: var(--note-ink-soft);
}

.cat-count {
	flex: none;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--chip);
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.7;
}

.cat-list a:hover .cat-name,
.memory-list a:hover .memory-title {
	text-decoration: underline wavy;
	text-underline-offset: 3px;
}

.memory-list a {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.memory-year {
	font-family: var(--font-hand);
	font-size: 1.2rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	color: var(--note-ink-soft);
}

.memory-title {
	font-weight: 600;
	font-size: 0.92rem;
	line-height: 1.3;
}

.stats-big {
	margin: 0;
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	font-size: 1.02rem;
	line-height: 1.3;
}

.stats-small {
	margin: 8px 0 0;
	font-size: 0.82rem;
	color: var(--note-ink-soft);
}

/* Penempatan kolom: kiri, tengah, kanan — kolom yang dimatikan tidak menggeser yang lain */
.has-rails > .rail--left {
	grid-column: 1;
	grid-row: 1;
}

.has-rails > .journal,
.has-rails > .entry {
	grid-column: 2;
	grid-row: 1;
}

.has-rails > .rail--right {
	grid-column: 3;
	grid-row: 1;
}

/* Halaman tulisan: kolom samping mulai 1200 px; di layar sedang foto besar menyembul lebih sedikit */
.entry-layout .rail {
	display: none;
}

.entry-content h2,
.entry-content h3 {
	scroll-margin-top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
}

@media (min-width: 1200px) {
	.entry-layout.has-rails {
		display: grid;
		grid-template-columns: minmax(150px, 1fr) minmax(0, calc(var(--w-content) + 2 * var(--gutter))) minmax(210px, 1fr);
		column-gap: 48px;
		align-items: start;
		max-width: 1560px;
		margin: 0 auto;
		padding: 0 var(--gutter);
	}

	.entry-layout.has-rails > .entry {
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.entry-layout .rail {
		display: block;
	}

	.entry-layout .rail--left {
		padding-top: 56px;
	}

	.entry-layout .rail--right {
		padding-top: 70px;
	}

	.entry-layout.has-rails .entry-note--photo-big {
		--photo-out-left: 14px;
		--photo-out-right: 20px;
	}
}

@media (min-width: 1440px) {
	.entry-layout.has-rails {
		grid-template-columns: minmax(170px, 1fr) minmax(0, calc(var(--w-content) + 2 * var(--gutter))) minmax(230px, 1fr);
		column-gap: 88px;
	}

	.entry-layout.has-rails .entry-note--photo-big {
		--photo-out-left: 36px;
		--photo-out-right: 58px;
	}
}

.rail--toc {
	justify-self: end;
	width: min(240px, 100%);
}

.toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc-link {
	display: block;
	padding: 6px 0 6px 10px;
	border-left: 3px solid transparent;
	font-size: 0.9rem;
	line-height: 1.3;
	color: var(--note-ink-soft);
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

.toc-level-3 .toc-link {
	padding-left: 22px;
	font-size: 0.84rem;
}

.toc-link:hover {
	color: var(--note-ink);
}

.toc-link.is-active {
	border-left-color: var(--note-ink);
	color: var(--note-ink);
	font-weight: 700;
}

/* Tombol bagikan: di kartu samping satu/dua kolom sesuai lebar, di bawah tulisan satu baris (boleh turun) */
.share-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
	gap: 6px;
}

.share--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	max-width: var(--w-content);
	margin: 30px auto 0;
}

.share--inline .share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.share-heading {
	font-family: var(--font-hand);
	font-size: 1.35rem;
	font-weight: var(--hand-weight);
	line-height: 1;
	color: var(--ink-soft);
}

.share-btn {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 7px 11px;
	border: 0;
	border-radius: 999px;
	background: var(--chip);
	color: var(--note-ink);
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}

.share-btn[hidden] {
	display: none;
}

.share-btn:hover {
	background: rgba(255, 255, 255, 0.9);
	transform: translateY(-1px);
}

.share--rail .share-btn:first-child {
	grid-column: 1 / -1;
}

.share--inline .share-btn {
	background: var(--paper);
	color: var(--ink);
	box-shadow: var(--shadow-soft);
}

.share--inline .share-btn:hover {
	background: var(--n-kuning);
	color: var(--note-ink);
}

.share-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.share-dot {
	font-size: 0.85rem;
	line-height: 1;
}

.share-brand {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--brand, var(--ink));
	transform: rotate(-8deg);
}

/* Bila kolom samping tampil, baris bagikan di bawah tulisan tak perlu dobel */
@media (min-width: 1200px) {
	.entry-layout.has-rails .share--inline {
		display: none;
	}
}

/* ==========================================================================
   12b. Album foto (format Galeri)
   ========================================================================== */

/* Kartu di daftar catatan: foto cetak + label post-it berisi judul */
.note-photo-card {
	--tilt: 1.6deg;
	position: relative;
	align-self: center;
	width: min(100%, 500px);
	margin-bottom: 18px;
	transform: rotate(calc(var(--tilt) * var(--tilt-scale)));
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2);
}

.note-photo-card:nth-of-type(even) {
	--tilt: -2deg;
}

.note-photo-card:hover {
	z-index: 3;
	transform: rotate(0deg) translateY(-4px) scale(1.012);
}

.journal--grid > .note-photo-card {
	width: 100%;
}

.marquee .note-photo-card {
	flex: none;
	align-self: flex-start;
	width: 290px;
	margin-right: 24px;
}

.photo-card {
	display: block;
	color: var(--note-ink);
	text-decoration: none;
}

.photo-card-print {
	position: relative;
	display: block;
	padding: 10px 10px 40px;
	background: #fff;
	box-shadow: var(--shadow-note);
	transition: box-shadow 0.28s ease;
}

.note-photo-card:hover .photo-card-print {
	box-shadow: var(--shadow-lift);
}

/* magnet kulkas */
.photo-card-print::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -15px;
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 11%, transparent 13%),
		radial-gradient(circle, var(--accent) 0 58%, color-mix(in srgb, var(--accent) 65%, #000) 100%);
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25), 0 9px 12px -4px rgba(0, 0, 0, 0.35);
}

.photo-card-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.photo-card-print.is-empty {
	min-height: 200px;
	background: repeating-linear-gradient(45deg, #fff 0 12px, #f4f1ea 12px 24px);
}

.photo-card-label {
	position: absolute;
	left: 20px;
	bottom: -14px;
	max-width: calc(100% - 40px);
	padding: 10px 14px 8px;
	border-radius: 2px;
	background: var(--note);
	color: var(--note-ink);
	box-shadow: 0 1px 1px rgba(60, 45, 15, 0.1), 0 8px 14px -8px rgba(60, 45, 15, 0.45);
	filter: var(--note-filter);
	transform: rotate(-3deg);
}

.note-photo-card:nth-of-type(even) .photo-card-label {
	left: auto;
	right: 20px;
	transform: rotate(2.5deg);
}

.photo-card-title {
	display: block;
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	font-size: 1.05rem;
	line-height: 1.2;
	letter-spacing: calc(var(--head-track, 1) * -0.02em);
}

.marquee .photo-card-title {
	font-size: 0.95rem;
}

.photo-card-meta {
	display: block;
	margin-top: 4px;
	font-family: var(--font-hand);
	font-size: 1.05rem;
	font-weight: var(--hand-weight-light);
	line-height: 1;
	color: var(--note-ink-soft);
}

/* Halaman album: kertas judul berisi penjelasan singkat */
.entry-intro {
	margin: 4px 0 18px;
	font-size: 1rem;
	line-height: 1.7;
}

.entry-intro p {
	margin: 0 0 0.8em;
}

.entry-intro > :last-child {
	margin-bottom: 0;
}

/* Papan "pintu kulkas": lebih lebar dari kolom tulisan, foto tersusun acak dalam beberapa kolom */
.photo-board {
	width: min(1100px, calc(100vw - 2 * var(--gutter)));
	margin: 48px 0 20px calc(50% - min(550px, 50vw - var(--gutter)));
	columns: 3 280px;
	column-gap: 36px;
}

.board-photo {
	position: relative;
	display: inline-block;
	width: 100%;
	margin: var(--dy, 0px) 0 48px;
	padding: 10px 10px 14px;
	break-inside: avoid;
	background: #fff;
	box-shadow: var(--shadow-note);
	transform: translateX(var(--dx, 0px)) rotate(var(--r, 0deg));
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.3, 1.2), box-shadow 0.28s ease;
}

.board-photo:not(:has(figcaption)) {
	padding-bottom: 26px;
}

.board-photo:hover {
	z-index: 3;
	transform: translateX(var(--dx, 0px)) rotate(0deg) scale(1.03);
	box-shadow: var(--shadow-lift);
}

.board-link {
	display: block;
	cursor: zoom-in;
}

.board-img {
	display: block;
	width: 100%;
	height: auto;
}

.board-photo::before,
.board-photo::after {
	content: "";
	position: absolute;
	z-index: 2;
	pointer-events: none;
}

.board-photo--magnet::before {
	top: -15px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 11%, transparent 13%),
		radial-gradient(circle, var(--fastener) 0 58%, color-mix(in srgb, var(--fastener) 65%, #000) 100%);
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.25), 0 9px 12px -4px rgba(0, 0, 0, 0.35);
}

.board-photo--selotip::before {
	top: -12px;
	left: 50%;
	width: 92px;
	height: 26px;
	margin-left: -46px;
	background: rgba(255, 248, 210, 0.78);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
	transform: rotate(calc(var(--r, 0deg) * -1.5));
}

.board-photo--pin::before {
	top: -7px;
	left: 50%;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.9) 0 13%, transparent 15%),
		var(--fastener);
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 4px 7px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Label post-it kecil untuk keterangan foto */
.board-label {
	position: relative;
	z-index: 2;
	width: fit-content;
	max-width: 88%;
	margin: -22px -18px -26px auto;
	padding: 7px 12px 6px;
	border-radius: 2px;
	background: var(--note);
	color: var(--note-ink);
	box-shadow: 0 1px 1px rgba(60, 45, 15, 0.1), 0 8px 14px -8px rgba(60, 45, 15, 0.45);
	filter: var(--note-filter);
	font-family: var(--font-hand);
	font-size: 1.2rem;
	font-weight: var(--hand-weight-light);
	line-height: 1.2;
	transform: rotate(var(--label-r, -2deg));
}

.board-foot {
	max-width: var(--w-content);
	margin: 0 auto;
}

.board-foot .entry-tags {
	margin-top: 0;
}

/* Jendela perbesar foto */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: grid;
	place-items: center;
	padding: 24px 64px;
	background: rgba(22, 20, 17, 0.88);
	animation: lightbox-in 0.2s ease-out;
}

.lightbox[hidden] {
	display: none;
}

@keyframes lightbox-in {
	from {
		opacity: 0;
	}
}

.lightbox-figure {
	max-width: min(1100px, 100%);
	margin: 0;
	padding: 12px 12px 16px;
	background: #fff;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
	transform: rotate(-0.8deg);
}

.lightbox-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	margin: 0 auto;
}

.lightbox-caption {
	margin-top: 10px;
	font-family: var(--font-hand);
	font-size: 1.4rem;
	line-height: 1.2;
	text-align: center;
	color: #3d3a33;
}

.lightbox-caption:empty {
	display: none;
}

.lightbox-btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--n-kuning);
	color: var(--note-ink);
	box-shadow: var(--shadow-soft);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: transform 0.2s;
}

.lightbox-btn:hover {
	transform: scale(1.08) rotate(-6deg);
}

.lightbox-close {
	top: 16px;
	right: 16px;
}

.lightbox-prev {
	left: 12px;
	top: 50%;
	margin-top: -23px;
}

.lightbox-next {
	right: 12px;
	top: 50%;
	margin-top: -23px;
}

.lightbox-count {
	position: absolute;
	bottom: 14px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-hand);
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.75);
}

/* Layar sempit: tanpa geseran kiri-kanan dan miring lebih sedikit, agar foto tak terpotong tepi layar */
@media (max-width: 800px) {
	.board-photo {
		transform: rotate(calc(var(--r, 0deg) * 0.5));
	}

	.board-photo:hover {
		transform: rotate(0deg) scale(1.02);
	}
}

@media (max-width: 600px) {
	.note-photo-card {
		transform: rotate(calc(var(--tilt) * var(--tilt-scale) * 0.6));
	}

	.photo-board {
		column-gap: 0;
	}

	.board-photo {
		margin-bottom: 40px;
	}

	.board-label {
		margin-right: -8px;
	}

	.lightbox {
		padding: 64px 12px;
	}

	.lightbox-prev,
	.lightbox-next {
		top: auto;
		bottom: 14px;
		margin-top: 0;
	}
}

/* ==========================================================================
   13. Gaya kertas yang dimatikan di Customizer
   ========================================================================== */

.no-tape .note::before,
.no-tape .site-panel::before,
.no-tape .polaroid::before,
.no-tape .is-style-tempel-note::before {
	display: none;
}

.no-pattern .note {
	background: var(--note);
}

.no-fold .note::after {
	display: none;
}

body.no-dots {
	background-image: none;
}

/* ==========================================================================
   14. Layar kecil
   ========================================================================== */

@media (max-width: 720px) {
	.site-name {
		display: none;
	}

	.primary-nav {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	body {
		font-size: calc(var(--text-size) - 1px);
	}

	.site-header {
		padding-top: 18px;
		padding-bottom: 18px;
		gap: 8px;
	}

	.site-avatar {
		width: calc(var(--logo-size) * 0.875);
		height: calc(var(--logo-size) * 0.875);
	}

	.site-avatar--asli {
		width: auto;
		max-width: 140px;
	}

	.primary-nav a {
		padding: 6px 9px;
		font-size: 0.88rem;
	}

	.note {
		transform: rotate(calc(var(--tilt) * var(--tilt-scale) * 0.6));
		padding: 24px 22px 20px;
	}

	.note-title {
		font-size: 1.18rem;
	}

	.marquee .note {
		width: 250px;
	}

	.journal--grid > .note:nth-of-type(n) {
		margin-top: 0;
	}

	.entry-note {
		padding: 28px 24px 24px;
	}

	.entry-note--photo-big {
		--note-pad-x: 24px;
	}

	.entry-mood {
		top: 18px;
		right: 18px;
		font-size: 2.1rem;
	}

	.sheet {
		padding: 30px 22px 28px 44px;
		background-image: linear-gradient(90deg, transparent 30px, rgba(255, 99, 99, 0.38) 30px, rgba(255, 99, 99, 0.38) 32px, transparent 32px);
	}

	.sheet::before {
		left: 8px;
		width: 12px;
		background-size: 12px 56px;
	}

	.entry-content .alignwide,
	.entry-content .alignfull {
		margin-left: 0;
		margin-right: 0;
	}

	.post-nav {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.post-nav .is-next:only-child {
		grid-column: auto;
	}

	.comment-list .children {
		margin-left: 14px;
	}

	.comment-respond {
		padding: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}

	html {
		scroll-behavior: auto;
	}

	.hero-title::after {
		animation: none;
	}
}
