:root {
	--accent: #0b5c7a;
	--ink: #16202a;
	--muted: #5b6875;
	--line: #e3e8ee;
	--bg: #ffffff;
	--soft: #f4f7fa;
	--radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: Inter, "Kantumruy Pro", system-ui, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.65;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
/* Khmer script needs more line height and reads better slightly larger. */
:lang(km) { font-family: "Kantumruy Pro", Inter, system-ui, sans-serif; line-height: 1.9; }
main { flex: 1; padding-bottom: 56px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 0.5em; text-wrap: balance; }
:lang(km) :is(h1, h2, h3) { line-height: 1.6; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
main > section { margin-top: 40px; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { height: 44px; width: auto; }
.brand strong { display: block; font-size: 1.2rem; line-height: 1.3; }
.brand small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.site-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 400; }
.site-nav .lang:hover { border-color: var(--accent); }

.hero { margin-top: 0 !important; background: var(--accent); color: #fff; padding: clamp(48px, 9vw, 110px) 0; background-size: cover; background-position: center; position: relative; }
.hero-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.25)); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); max-width: 18em; }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 40em; margin: 0 0 1.4em; opacity: 0.95; white-space: pre-line; }
.hero .btn { background: #fff; color: var(--accent); }

.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 26px; border-radius: 999px; }
.btn:hover { filter: brightness(1.1); }

.page-head { margin-top: 48px; }
.page-head time, .card time { color: var(--muted); font-size: 0.85rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section-title { font-size: 1.5rem; margin: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head a { text-decoration: none; font-weight: 600; white-space: nowrap; }
section > .section-title { margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; white-space: pre-line; }

figure { margin: 0; }
figure img { border-radius: var(--radius); width: 100%; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; text-align: center; }

.prose { font-size: 1.05rem; overflow-wrap: break-word; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); }

.pager { display: flex; justify-content: space-between; margin-top: 32px; }
.pager a { text-decoration: none; font-weight: 600; }
.draft-banner { background: #fff4cc; color: #6b5200; text-align: center; padding: 8px; font-size: 0.9rem; }

.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.95rem; }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 6px 0 0; white-space: pre-line; }

@media (max-width: 640px) {
	.site-header { position: static; }
	.site-nav { width: 100%; gap: 0 16px; }
}

/* Membership */
.btn.small { padding: 7px 16px; font-size: 0.9rem; color: #fff !important; border-bottom: 0 !important; }
.join-band { background: var(--soft); border-block: 1px solid var(--line); padding: 48px 0; }
.join-band h2 { font-size: 1.6rem; }
.join-band p { color: var(--muted); max-width: 40em; margin: 0 auto 1.2em; white-space: pre-line; }
.pre { white-space: pre-line; }
.join-form { display: grid; gap: 18px; margin-top: 24px; }
.join-form label { font-weight: 600; display: block; margin-bottom: 6px; }
.join-form :is(input:not([type="checkbox"]), textarea, select) { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #b9c3ce; border-radius: 8px; background: #fff; color: var(--ink); }
.join-form :is(input, textarea, select):focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.join-form .tick { display: flex; gap: 10px; align-items: baseline; font-weight: 400; }
.join-form .tick input { width: 18px; height: 18px; flex: none; translate: 0 3px; }
.join-form .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; justify-self: start; padding: 13px 34px; }
.req { color: #b3261e; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.invalid :is(input, textarea, select) { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 0.9rem; margin: 6px 0 0; }
.form-error { background: #fdecea; color: #8c1d18; padding: 12px 14px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.tick-mark { width: 64px; height: 64px; border-radius: 50%; background: #e6f4ea; color: #1a7f37; font-size: 2rem; line-height: 64px; margin: 0 auto 16px; }

/* Top bar, search, footer, contact */
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }
.topbar { background: var(--accent); color: #fff; font-size: 0.85rem; }
.topbar a { color: #fff; }
.topbar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 6px 0; align-items: center; }
.topbar-info { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.socials { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.socials a { text-decoration: none; font-weight: 600; }
.site-nav .search input { font: inherit; font-size: 0.9rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; width: 130px; background: var(--bg); color: var(--ink); }
.site-nav .search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-big { display: flex; gap: 10px; margin: 18px 0; }
.search-big input { flex: 1; font: inherit; padding: 10px 12px; border: 1px solid #b9c3ce; border-radius: 8px; }
.search-big .btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.results { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 18px; }
.results a { font-weight: 700; font-size: 1.1rem; }
.results p { margin: 4px 0 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.contact-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer .socials { display: flex; margin: 6px 0 18px; }
.subscribe { display: grid; gap: 8px; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input { flex: 1; min-width: 0; font: inherit; padding: 7px 12px; border: 1px solid #b9c3ce; border-radius: 999px; background: #fff; color: var(--ink); }
.subscribe-row button { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.visitors { font-size: 0.85rem; }
.notice-ok { background: #e6f4ea; color: #1a5c2c; padding: 12px 14px; border-radius: 8px; margin-top: 18px; }

/* Blocks: stats, people, videos, quick links */
.stats-band { background: var(--soft); border-block: 1px solid var(--line); padding: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 5vw, 3rem); color: var(--accent); line-height: 1.2; }
.stat span { color: var(--muted); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px; }
.person img, .person-ph { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.person figcaption { text-align: left; margin-top: 10px; display: grid; }
.person figcaption strong { color: var(--ink); }
.videos { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); }
a.tile:hover { border-color: var(--accent); }
.tile strong { color: var(--accent); }
.tile span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 640px) { .site-nav .search { width: 100%; } .site-nav .search input { width: 100%; } }
