/*
Theme Name: Sina Journal
Theme URI: https://sina-shafaei.com
Author: Claude for Sina Shafaei
Description: A calm, minimal, RTL-first essay theme in Persian blue, turquoise and ochre — colours of Iranian mosque tilework. Card-based archive, minimalist timeline, dark mode, and a separate English section at /en/. Comments are disabled.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sina-journal
*/

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */
@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/vazirmatn.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("assets/fonts/newsreader-italic.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}

/* ==========================================================================
   Design tokens
   Taken from the tilework of Isfahan: deep ultramarine, turquoise (firouzeh),
   ochre gold and mosque green, on the white of the glaze.
   ========================================================================== */
:root {
	--bg: #f6f3ea;
	--bg-glow: none;
	--bg-soft: #ece8da;
	--surface: #fffefa;
	--ink: #0e1650;
	--ink-2: #4b5588;
	--line: #d8d3c0;
	--blue: #1e2a9c;
	--blue-deep: #16227f;
	--turq: #0a83a6;
	--turq-b: #1ba3c6;
	--gold: #c3922e;
	--gold-ink: #8f6a12;
	--green: #2f8a6c;
	--link: #1e2fb0;
	--on-accent: #ffffff;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(14, 22, 80, .06), 0 10px 30px -12px rgba(14, 22, 80, .18);
	--shadow-hover: 0 2px 4px rgba(14, 22, 80, .08), 0 22px 44px -16px rgba(14, 22, 80, .30);
	--font-fa: "Vazirmatn", "Vazir", Tahoma, system-ui, sans-serif;
	--font-en: "Newsreader", Georgia, "Times New Roman", serif;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #070c3a;
	--bg-glow: radial-gradient(900px 520px at 85% -8%, rgba(60, 196, 222, .16), transparent 70%), radial-gradient(700px 480px at 0% 30%, rgba(227, 176, 75, .06), transparent 70%);
	--bg-soft: #0b1250;
	--surface: #0e1760;
	--ink: #f1eee2;
	--ink-2: #aebcf0;
	--line: #243399;
	--blue: #5cd0ee;
	--blue-deep: #f1eee2;
	--turq: #3cc4de;
	--turq-b: #3cc4de;
	--gold: #e3b04b;
	--gold-ink: #e3b04b;
	--green: #7cc38f;
	--link: #79d8f2;
	--on-accent: #070c3a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .55);
	--shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 44px -16px rgba(0, 0, 0, .7);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #070c3a;
		--bg-glow: radial-gradient(900px 520px at 85% -8%, rgba(60, 196, 222, .16), transparent 70%), radial-gradient(700px 480px at 0% 30%, rgba(227, 176, 75, .06), transparent 70%);
		--bg-soft: #0b1250;
		--surface: #0e1760;
		--ink: #f1eee2;
		--ink-2: #aebcf0;
		--line: #243399;
		--blue: #5cd0ee;
		--blue-deep: #f1eee2;
		--turq: #3cc4de;
		--turq-b: #3cc4de;
		--gold: #e3b04b;
		--gold-ink: #e3b04b;
		--green: #7cc38f;
		--link: #79d8f2;
		--on-accent: #070c3a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -12px rgba(0, 0, 0, .55);
		--shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 22px 44px -16px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background-color: var(--bg);
	background-image: var(--bg-glow);
	background-repeat: no-repeat;
	color: var(--ink);
	font-family: var(--font-fa);
	font-size: 17px;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s ease, color .3s ease;
}
body.lang-en { line-height: 1.7; }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--turq-b); color: #fff; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; border-radius: 4px; }

.skip-link {
	position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
	background: var(--blue); color: var(--on-accent); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.wrap-wide { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { width: 100%; max-width: 780px; margin-inline: auto; padding-inline: 24px; }
.wrap-read { width: 100%; max-width: 700px; margin-inline: auto; padding-inline: 24px; }

@view-transition { navigation: auto; }

/* ==========================================================================
   Motion
   ========================================================================== */
@keyframes sj-sway { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.8deg); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 84%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(14px);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); font-weight: 800; font-size: 1.08rem; white-space: nowrap; }
.brand-mark { color: var(--blue); width: 20px; height: 42px; flex: none; transform-origin: 50% 100%; animation: sj-sway 6s ease-in-out infinite; }
.brand:hover .brand-mark { animation-duration: 2.4s; }
.main-nav { flex: 1; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); font-size: .95rem; transition: background .2s, color .2s; }
.nav-list a:hover, .nav-list .current-menu-item a { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue-deep); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px;
	border: 0; background: transparent; color: var(--ink-2); border-radius: 50%; cursor: pointer;
	transition: background .2s, color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--blue-deep); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .i-sun { display: block; }
	:root:not([data-theme="light"]) .i-moon { display: none; }
}
.lang-switch {
	margin-inline-start: 6px; padding: 5px 14px; border: 1.5px solid var(--blue); color: var(--blue);
	border-radius: 999px; font-size: .85rem; font-weight: 700; line-height: 1.6; transition: background .2s, color .2s;
}
.lang-switch:hover { background: var(--blue); color: var(--on-accent); }

.search-pop { border-top: 1px solid var(--line); background: var(--bg); padding: 14px 0; }
.search-pop[hidden] { display: none; }
.search-pop form { display: flex; gap: 10px; }
.search-pop input {
	flex: 1; font: inherit; padding: 10px 18px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.search-pop button, .btn {
	font: inherit; font-weight: 700; padding: 10px 24px; border: 0; border-radius: 999px;
	background: var(--blue); color: var(--on-accent); cursor: pointer; display: inline-block;
}

.progress { display: none; position: absolute; inset-inline: 0; bottom: 0; height: 3px; }
body.single .progress { display: block; }
.progress span { display: block; height: 100%; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .progress span { transform-origin: right center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 76px 0 40px; min-height: 330px; overflow: hidden; }
.hero--small { padding: 56px 0 20px; }
.hero.hero--small { min-height: 0; }
.hero.hero--small::after { height: 90%; }
.hero.hero--small::before { display: none; }
.hero::before, .hero::after {
	content: ""; position: absolute; bottom: 0; pointer-events: none; aspect-ratio: 200 / 420; max-width: 38%;
	background: linear-gradient(180deg, var(--turq-b) 0%, var(--blue) 55%, var(--gold) 100%);
	-webkit-mask: url("assets/img/cypress.svg") no-repeat center bottom / contain;
	mask: url("assets/img/cypress.svg") no-repeat center bottom / contain;
	transform-origin: 50% 100%;
}
.hero::after { inset-inline-end: 4%; height: 82%; opacity: .2; animation: sj-sway 8s ease-in-out infinite; }
.hero::before { inset-inline-end: 22%; height: 52%; opacity: .12; animation: sj-sway 10s ease-in-out -3.5s infinite; }
.hero .wrap { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--turq); font-weight: 700; font-size: .9rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--turq-b)); border-radius: 2px; }
.hero-title { margin: 0; font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 800; line-height: 1.35; color: var(--blue-deep); letter-spacing: -.01em; }
.lang-en .hero-title { font-family: var(--font-en); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.hero-sub { max-width: 40rem; margin: 16px 0 0; color: var(--ink-2); font-size: 1.1rem; line-height: 2; }
.lang-en .hero-sub { font-family: var(--font-en); font-size: 1.25rem; line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 0; padding: 0; }
.chip {
	display: inline-block; padding: 1px 14px; border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line));
	border-radius: 999px; color: var(--blue); font-size: .8rem; font-weight: 600; line-height: 1.9;
	background: color-mix(in srgb, var(--blue) 6%, transparent); transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.chip--lg { font-size: .92rem; padding: 3px 18px; }

/* ==========================================================================
   Home layout + timeline
   ========================================================================== */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; padding-block: 26px 90px; align-items: start; }
.timeline { position: sticky; top: 96px; }
.timeline-box summary {
	list-style: none; cursor: pointer; font-weight: 800; color: var(--blue-deep); font-size: 1rem;
	display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.timeline-box summary::-webkit-details-marker { display: none; }
.timeline-box summary::before { content: ""; width: 10px; height: 20px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 420'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 420'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain; }
.tl-year { margin-bottom: 6px; }
.tl-year-label { display: inline-block; font-weight: 800; color: var(--blue); font-size: 1.05rem; margin-bottom: 4px; }
.tl-list { list-style: none; margin: 6px 0 18px; padding: 0; padding-inline-start: 20px; border-inline-start: 2px solid var(--line); }
.tl-item { position: relative; margin-block: 16px; line-height: 1.6; }
.tl-dot {
	position: absolute; inset-inline-start: -27px; top: .55em; width: 12px; height: 12px; border-radius: 50%;
	background: var(--bg); border: 2px solid var(--blue); transition: background .2s, transform .2s;
}
.tl-item:hover .tl-dot { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.tl-date { display: block; font-size: .78rem; color: var(--ink-2); }
.tl-item a { font-size: .93rem; font-weight: 600; color: var(--ink); transition: color .2s; }
.tl-item a:hover { color: var(--link); }

/* ==========================================================================
   Cards
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.card {
	display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, border-color .3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.card--featured { display: grid; grid-template-columns: 1.05fr 1fr; margin-bottom: 28px; }
.card--featured .card-cover { aspect-ratio: auto; min-height: 340px; }
.card--featured .card-title { font-size: 1.9rem; line-height: 1.55; }
.card--featured .card-body { padding: 34px; justify-content: center; }

.card-cover {
	--c1: #1e2a9c; --c2: #0a1150;
	display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 2;
	background: linear-gradient(135deg, var(--c1), var(--c2));
}
.cover-v2 { --c1: #1ba3c6; --c2: #0d4f84; }
.cover-v3 { --c1: #b58a2c; --c2: #7a5316; }
.cover-v4 { --c1: #2f8a6c; --c2: #123f46; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.88) contrast(1.02); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card-cover::after, .cover-frame::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(135deg, var(--c1, #1e2a9c), var(--c2, #0a1150)); mix-blend-mode: multiply; opacity: .26;
}
.card:hover .card-cover img { transform: scale(1.05); }
.cover-star {
	position: absolute; inset: 0; background: rgba(255, 255, 255, .3);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='108' viewBox='0 0 84 108'%3E%3Cg transform='translate(6 4) scale(0.115)' fill='none' stroke='black' stroke-width='11.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z'/%3E%3Cpath d='M138.0 276.0 C133.4 278.6 120.1 290.1 110.8 291.7 C101.4 293.4 89.5 290.5 82.0 285.9 C74.4 281.3 67.9 272.0 65.4 264.1 C63.0 256.2 64.3 245.7 67.4 238.8 C70.6 231.9 77.9 225.5 84.3 222.7 C90.6 219.8 99.6 220.0 105.6 221.9 C111.6 223.8 117.5 229.4 120.4 234.3 C123.3 239.2 123.9 246.4 122.8 251.4 C121.8 256.4 117.8 261.4 114.2 264.0 C110.6 266.6 105.0 267.5 101.2 267.0 C97.5 266.6 93.5 263.8 91.5 261.3 C89.4 258.9 88.7 254.9 88.9 252.3 C89.1 249.8 91.1 247.1 92.7 245.9 C94.2 244.6 97.2 245.0 98.1 244.8'/%3E%3C/g%3E%3Cg transform='translate(48 58) scale(0.115)' fill='none' stroke='black' stroke-width='11.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z'/%3E%3Cpath d='M138.0 276.0 C133.4 278.6 120.1 290.1 110.8 291.7 C101.4 293.4 89.5 290.5 82.0 285.9 C74.4 281.3 67.9 272.0 65.4 264.1 C63.0 256.2 64.3 245.7 67.4 238.8 C70.6 231.9 77.9 225.5 84.3 222.7 C90.6 219.8 99.6 220.0 105.6 221.9 C111.6 223.8 117.5 229.4 120.4 234.3 C123.3 239.2 123.9 246.4 122.8 251.4 C121.8 256.4 117.8 261.4 114.2 264.0 C110.6 266.6 105.0 267.5 101.2 267.0 C97.5 266.6 93.5 263.8 91.5 261.3 C89.4 258.9 88.7 254.9 88.9 252.3 C89.1 249.8 91.1 247.1 92.7 245.9 C94.2 244.6 97.2 245.0 98.1 244.8'/%3E%3C/g%3E%3C/svg%3E") center / 84px 108px repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='108' viewBox='0 0 84 108'%3E%3Cg transform='translate(6 4) scale(0.115)' fill='none' stroke='black' stroke-width='11.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z'/%3E%3Cpath d='M138.0 276.0 C133.4 278.6 120.1 290.1 110.8 291.7 C101.4 293.4 89.5 290.5 82.0 285.9 C74.4 281.3 67.9 272.0 65.4 264.1 C63.0 256.2 64.3 245.7 67.4 238.8 C70.6 231.9 77.9 225.5 84.3 222.7 C90.6 219.8 99.6 220.0 105.6 221.9 C111.6 223.8 117.5 229.4 120.4 234.3 C123.3 239.2 123.9 246.4 122.8 251.4 C121.8 256.4 117.8 261.4 114.2 264.0 C110.6 266.6 105.0 267.5 101.2 267.0 C97.5 266.6 93.5 263.8 91.5 261.3 C89.4 258.9 88.7 254.9 88.9 252.3 C89.1 249.8 91.1 247.1 92.7 245.9 C94.2 244.6 97.2 245.0 98.1 244.8'/%3E%3C/g%3E%3Cg transform='translate(48 58) scale(0.115)' fill='none' stroke='black' stroke-width='11.3' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z'/%3E%3Cpath d='M138.0 276.0 C133.4 278.6 120.1 290.1 110.8 291.7 C101.4 293.4 89.5 290.5 82.0 285.9 C74.4 281.3 67.9 272.0 65.4 264.1 C63.0 256.2 64.3 245.7 67.4 238.8 C70.6 231.9 77.9 225.5 84.3 222.7 C90.6 219.8 99.6 220.0 105.6 221.9 C111.6 223.8 117.5 229.4 120.4 234.3 C123.3 239.2 123.9 246.4 122.8 251.4 C121.8 256.4 117.8 261.4 114.2 264.0 C110.6 266.6 105.0 267.5 101.2 267.0 C97.5 266.6 93.5 263.8 91.5 261.3 C89.4 258.9 88.7 254.9 88.9 252.3 C89.1 249.8 91.1 247.1 92.7 245.9 C94.2 244.6 97.2 245.0 98.1 244.8'/%3E%3C/g%3E%3C/svg%3E") center / 84px 108px repeat;
	transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .cover-star { transform: scale(1.08); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; color: var(--ink-2); font-size: .8rem; }
.card-title { margin: 0 0 8px; font-size: 1.28rem; font-weight: 800; line-height: 1.65; }
.lang-en .card-title { font-family: var(--font-en); font-weight: 600; line-height: 1.3; font-size: 1.5rem; }
.lang-en .card--featured .card-title { font-size: 2.1rem; }
.card-title a { color: var(--ink); transition: color .2s; }
.card-title a:hover { color: var(--link); }
.card-excerpt { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; line-height: 2; flex: 1; }
.lang-en .card-excerpt { font-family: var(--font-en); font-size: 1.08rem; line-height: 1.55; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; }
.arrow { transition: transform .3s ease; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.card:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .card:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease, border-color .3s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal].is-in:hover { transform: translateY(-5px); }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination { margin-top: 44px; }
.pagination ul, .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination .page-numbers {
	display: inline-block; padding: 4px 16px; border: 1px solid var(--line); border-radius: 999px;
	color: var(--ink-2); font-size: .9rem; transition: background .2s, color .2s, border-color .2s;
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.pagination .current { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.empty { padding: 70px 0; text-align: center; color: var(--ink-2); }

/* ==========================================================================
   Essay (single)
   ========================================================================== */
.essay-head { display: flex; flex-direction: column; align-items: flex-start; padding-top: 52px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--ink-2); font-size: .88rem; transition: color .2s; }
.back-link:hover { color: var(--link); }
.arrow--back { transform: scaleX(-1); }
[dir="rtl"] .arrow.arrow--back { transform: none; }
.essay-title { margin: 14px 0 14px; font-size: clamp(1.9rem, 4.6vw, 3rem); font-weight: 800; line-height: 1.55; color: var(--blue-deep); }
.lang-en .essay-title { font-family: var(--font-en); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
.essay-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--ink-2); font-size: .88rem; }
.sep { color: var(--gold-ink); }
.cover-frame { position: relative; margin-block: 38px 8px; }
.cover-frame img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 18px; filter: saturate(.9); }
.cover-frame::after { inset: 0 24px; border-radius: 18px; opacity: .14; }

.entry { font-size: 1.12rem; line-height: 2.25; padding-top: 30px; }
.lang-en .entry { font-family: var(--font-en); font-size: 1.3rem; line-height: 1.75; }
.entry > p:first-of-type { font-size: 1.07em; color: var(--ink); }
.entry p { margin: 0 0 1.35em; }
.entry h2, .entry h3, .entry h4 { margin: 2.1em 0 .6em; line-height: 1.6; color: var(--blue-deep); font-weight: 800; }
.entry h2 { font-size: 1.55rem; }
.entry h3 { font-size: 1.28rem; }
.lang-en .entry h2, .lang-en .entry h3 { font-family: var(--font-en); font-weight: 600; line-height: 1.25; }
.entry a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em; }
.entry a:hover { color: var(--turq); }
.entry blockquote {
	margin: 2em 0; padding: 4px 24px; border-inline-start: 3px solid var(--gold);
	color: var(--ink-2); background: color-mix(in srgb, var(--gold) 9%, transparent); border-radius: 0 12px 12px 0;
}
[dir="rtl"] .entry blockquote { border-radius: 12px 0 0 12px; }
.entry ul, .entry ol { padding-inline-start: 1.5em; margin: 0 0 1.35em; }
.entry li { margin-bottom: .4em; }
.entry img, .entry figure { border-radius: 12px; }
.entry figcaption { color: var(--ink-2); font-size: .85rem; text-align: center; }
.entry hr { border: 0; height: 18px; margin: 2.6em auto; width: 168px; background: linear-gradient(90deg, var(--blue), var(--turq-b), var(--gold), var(--green)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='-30 0 260 430'%3E%3Cg fill='none' stroke='black' stroke-width='20' stroke-linejoin='round'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 100% / 14px 18px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='24' viewBox='-30 0 260 430'%3E%3Cg fill='none' stroke='black' stroke-width='20' stroke-linejoin='round'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 100% / 14px 18px; }
.entry em { font-style: normal; color: var(--blue-deep); font-weight: 600; }
.lang-en .entry em { font-style: italic; font-weight: inherit; color: inherit; }
.entry pre, .entry code { direction: ltr; text-align: left; font-size: .9em; }
.entry pre { overflow-x: auto; padding: 16px; background: var(--bg-soft); border-radius: 12px; }

.essay-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px dashed var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag-list a { font-size: .85rem; color: var(--ink-2); }
.tag-list a::before { content: "#"; color: var(--gold-ink); margin-inline-end: 2px; }
.tag-list a:hover { color: var(--link); }
.copy-link { font: inherit; font-size: .85rem; font-weight: 600; color: var(--blue); background: transparent; border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--line)); border-radius: 999px; padding: 3px 16px; cursor: pointer; transition: background .2s, color .2s; }
.copy-link:hover { background: var(--blue); color: var(--on-accent); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
.pn { display: block; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s ease, border-color .3s, box-shadow .3s; }
.pn:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); }
.pn-label { display: block; margin-bottom: 4px; color: var(--gold-ink); font-size: .78rem; font-weight: 700; }
.pn-title { display: block; font-weight: 800; line-height: 1.7; color: var(--ink); }
.lang-en .pn-title { font-family: var(--font-en); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.pn--older { text-align: end; }
.pn--older:only-child { grid-column: 2; }
.related { margin-top: 70px; }
.section-title { margin: 0 0 22px; font-size: 1.15rem; font-weight: 800; color: var(--blue-deep); display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 10px; height: 20px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 420'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 420'%3E%3Cpath d='M58.0 8.0 C61.3 13.1 71.7 28.2 77.9 38.3 C84.0 48.4 89.6 58.6 94.8 68.7 C100.1 78.8 105.0 88.9 109.5 99.0 C114.1 109.1 118.2 119.2 122.2 129.3 C126.1 139.4 129.7 149.6 133.1 159.7 C136.5 169.8 139.7 179.9 142.8 190.0 C145.9 200.1 148.8 210.2 151.6 220.3 C154.4 230.4 157.2 240.6 159.5 250.7 C161.9 260.8 164.3 270.9 165.9 281.0 C167.4 291.1 169.2 301.2 168.8 311.3 C168.5 321.4 173.4 331.6 163.7 341.7 C154.1 351.8 119.8 366.9 111.0 372.0 L111 420 L89 420 L89 372 L89.0 372.0 C79.5 366.9 43.1 351.8 31.8 341.7 C20.6 331.6 23.4 321.4 21.3 311.3 C19.2 301.2 19.1 291.1 19.1 281.0 C19.1 270.9 20.1 260.8 21.2 250.7 C22.4 240.6 24.2 230.4 26.0 220.3 C27.8 210.2 30.1 200.1 32.2 190.0 C34.3 179.9 36.6 169.8 38.8 159.7 C40.9 149.6 43.0 139.4 44.8 129.3 C46.7 119.2 48.4 109.1 49.8 99.0 C51.2 88.9 52.4 78.8 53.4 68.7 C54.3 58.6 54.9 48.4 55.6 38.3 C56.4 28.2 57.6 13.1 58.0 8.0 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain; }

/* Archive page */
.archive-list { padding: 20px 24px 40px; }
.al-year h2 { margin: 30px 0 6px; color: var(--blue); font-size: 1.4rem; font-weight: 800; }
.al-year ul { list-style: none; margin: 0; padding: 0; }
.al-year li { display: flex; gap: 20px; padding: 12px 0; border-bottom: 1px dashed var(--line); line-height: 1.7; }
.al-date { min-width: 96px; color: var(--ink-2); font-size: .88rem; }
.al-year a { font-weight: 700; transition: color .2s; }
.al-year a:hover { color: var(--link); }
.al-en { margin-top: 40px; font-family: var(--font-en); font-size: 1.15rem; }
.al-en a { color: var(--link); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 90px; padding-bottom: 34px; color: var(--ink-2); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.footer-brand svg { width: 12px; height: 26px; transform-origin: 50% 100%; animation: sj-sway 7s ease-in-out -2s infinite; }
.footer-brand span { color: var(--ink-2); }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--link); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
	.home-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.timeline { position: static; order: -1; padding: 6px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
	.timeline-box summary { margin: 10px 0; }
	.timeline-box:not([open]) summary { margin-bottom: 10px; }
	.card--featured { grid-template-columns: 1fr; }
	.card--featured .card-cover { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.grid { grid-template-columns: minmax(0, 1fr); }
	.header-inner { gap: 6px 10px; min-height: 60px; flex-wrap: wrap; padding-block: 6px; }
	.tools { margin-inline-start: auto; }
	.main-nav { order: 3; flex-basis: 100%; overflow-x: auto; margin-top: -4px; }
	.nav-list { white-space: nowrap; }
	.hero { padding: 50px 0 20px; }
	.hero { min-height: 0; }
	.hero::after { height: 62%; inset-inline-end: 2%; opacity: .14; }
	.hero::before { display: none; }
	.card--featured .card-body { padding: 22px; }
	.card--featured .card-title { font-size: 1.5rem; }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.pn--older:only-child { grid-column: auto; }
	.wrap, .wrap-wide, .wrap-narrow, .wrap-read { padding-inline: 18px; }
	.cover-frame::after { inset: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
	.site-header, .site-footer, .post-nav, .related, .timeline { display: none; }
	body { background: #fff; color: #000; }
}
