/* jayjspringpeace.online — aibeva design (v3.2, 22 Oct 2026). Dark navy, one site accent: silver-blue. System fonts only. */
:root {
  color-scheme: dark;
  --bg: #070c1a;
  --surface: #0f1830;
  --tint: #111d3a;
  --rule: #1f2c4d;
  --ink: #f3f6fc;
  --soft: #a9b5cc;
  --faint: #75829e;
  --primary: #4d8bff;
  --primary-hover: #2f6bff;
  --accent: #8fb6ff;
  --wrap: 1180px;
  --font: "Segoe UI Variable Text", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.min0 { min-width: 0; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(7,12,26,0.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--rule); }
.top .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--rule); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 0.95rem; }
.nav a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--accent); }
.dl { color: #fff; background: var(--primary); padding: 8px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 0.95rem; }
.dl:hover { background: var(--primary-hover); color: #fff; }
.top .right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.menu-btn { display: none; background: none; border: 0; color: var(--soft); padding: 8px; cursor: pointer; }
.mobile-nav { display: none; margin: 0 16px 14px; padding: 10px; border: 1px solid var(--rule); border-radius: 18px; background: var(--surface); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 14px; border-radius: 12px; color: var(--soft); text-decoration: none; }
.mobile-nav a:hover { background: var(--tint); color: var(--ink); }
.mobile-nav .dl { display: block; text-align: center; margin-top: 8px; padding: 12px; color: #fff; }
@media (max-width: 960px) { .nav { display: none; } .menu-btn { display: inline-flex; } }
@media (min-width: 961px) { .mobile-nav.open { display: none; } }
@media (max-width: 520px) { .top .right .dl { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.8rem, 7.4vw, 6rem); line-height: 0.98; letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 650; max-width: 18ch; }
h3 { font-size: 1.12rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--soft); max-width: 34em; line-height: 1.55; }
.lede + .lede { margin-top: 1em; }
.soft { color: var(--soft); }
.small { font-size: 0.88rem; color: var(--faint); }
.eyebrow { font-size: 0.92rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }

section { padding: clamp(72px, 10vw, 130px) 0 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.sec-head p { color: var(--soft); max-width: 34em; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 16px; } }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; text-align: center; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn.solid { background: var(--primary); color: #fff; box-shadow: 0 10px 28px rgba(77,139,255,0.35); }
.btn.solid:hover { background: var(--primary-hover); color: #fff; }
.btn.line { border: 1.5px solid #34466f; color: var(--ink); background: transparent; }
.btn.line:hover { border-color: var(--accent); color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(143,182,255,0.22), transparent 70%),
    radial-gradient(45% 55% at 70% 90%, rgba(77,139,255,0.16), transparent 70%),
    var(--bg); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero h1 span { display: block; }
.hero h1 span + span { color: var(--accent); }
.hero .pic img { border-radius: 26px; width: 100%; border: 1px solid var(--rule); box-shadow: 0 30px 70px -20px rgba(143,182,255,0.35); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; border-top: 1px solid var(--rule); }
.facts > div { padding: 18px 16px 0 0; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.facts dd { margin: 8px 0 0; font-size: 0.9rem; color: var(--soft); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 12px; } }

/* Claims strip */
.claims { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.claims .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.claims p { padding: 24px 0; font-family: var(--font-display); font-size: clamp(1.05rem, 1.9vw, 1.35rem); font-weight: 650; letter-spacing: -0.015em; color: var(--ink); }
.claims p + p { padding-left: 28px; border-left: 1px solid var(--rule); }
.claims p::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-right: 12px; vertical-align: middle; }
@media (max-width: 760px) { .claims .wrap { grid-template-columns: 1fr; } .claims p { padding: 18px 0; } .claims p + p { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* Two-column feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split h2 { margin-bottom: 24px; }
.split .body p { color: var(--soft); max-width: 36em; }
.split .body p + p { margin-top: 1em; }
.split .body strong { color: var(--ink); font-weight: 600; }
.figure img { border-radius: 22px; border: 1px solid var(--rule); width: 100%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards > li { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.cards h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.cards p { color: var(--soft); margin-bottom: 16px; }
.cards .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.cards .more:hover { text-decoration: underline; }
.cards .hl-card { background: linear-gradient(150deg, #2f6bff, #1d4fd8 60%, #142f8a); border: 0; }
.cards .hl-card h3, .cards .hl-card p, .cards .hl-card .more { color: #fff; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards, .cards.two { grid-template-columns: 1fr; } }
.tag { display: inline-block; align-self: flex-start; font-size: 0.78rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--accent); color: #0a1430; }
.tag.dev { background: transparent; color: var(--soft); border: 1px solid #34466f; }
.tag.date { background: var(--tint); color: var(--accent); border: 1px solid var(--rule); }
.hl-card .tag { background: #fff; color: #142f8a; }

/* Book */
.book { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; align-items: center; }
.cover { width: 100%; max-width: 280px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--rule); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.book h2 { margin-bottom: 14px; }
.book .sub { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink); margin-bottom: 20px; }
.book .body p { color: var(--soft); max-width: 36em; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; gap: 36px; } .cover { max-width: 220px; } }
.quote { margin-top: 24px; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; color: var(--ink); border-left: 3px solid var(--accent); padding-left: 20px; max-width: 40em; }
.quote cite { display: block; margin-top: 10px; font-family: var(--font); font-size: 0.9rem; font-style: normal; color: var(--faint); }

/* Citation */
.cite-box { background: var(--tint); border: 1px solid var(--rule); border-radius: 28px; padding: clamp(24px, 5vw, 56px); }

/* AIBEVA band */
.closing { margin-top: clamp(72px, 10vw, 130px); padding: clamp(72px, 10vw, 120px) 0; background: radial-gradient(70% 90% at 90% 10%, rgba(143,182,255,0.30), transparent 60%), linear-gradient(160deg, #1d4fd8, #0a1430 75%); color: #fff; }
.closing .split { align-items: center; }
.closing h2 { color: #fff; max-width: 14ch; }
.closing .body p { color: #dbe5ff; }
.closing .figure img { border-color: rgba(255,255,255,0.2); }
.closing .btn.solid { background: #fff; color: #0a1430; box-shadow: none; }
.closing .btn.solid:hover { background: #dbe5ff; }
.closing .btn.line { color: #fff; border-color: rgba(255,255,255,0.5); }
.closing .btn.line:hover { border-color: #fff; color: #fff; }
.closing .meta { margin-top: 22px; color: #c9d6fb; font-size: 0.92rem; }
.disclosure { margin-top: 40px; padding: 18px 20px; border-left: 3px solid var(--accent); background: rgba(255,255,255,0.08); color: #c9d6fb; font-size: 0.9rem; max-width: 52em; border-radius: 0 12px 12px 0; }

/* Contact */
.contact { padding-bottom: clamp(72px, 10vw, 130px); }
.contact .cards > li a { font-weight: 600; overflow-wrap: anywhere; }

/* Legal pages */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); background: radial-gradient(55% 80% at 90% 0%, rgba(143,182,255,0.18), transparent 70%), var(--bg); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); max-width: 18ch; margin-bottom: 14px; }
.legal-date { font-size: 0.92rem; color: var(--faint); margin: 0; }
.legal-wrap { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); }
.legal { max-width: 48em; color: var(--soft); }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; max-width: none; letter-spacing: -0.02em; }
.legal h2:first-child { margin-top: 0; }
.legal p + p, .legal ul { margin-top: 0.75rem; }
.legal ul { list-style: none; padding: 0; }
.legal li + li { margin-top: 0.75rem; }
.legal a { color: var(--accent); overflow-wrap: anywhere; }
.legal a:hover { color: var(--ink); }

/* HOPEA band keeps its own colors */
.hopea { background: #0f2e22; border-top: 1px solid #1f5a42; padding: 28px 0; }
.hopea-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.hopea p { margin: 0; color: #e8f3ee; font-size: 1.05rem; line-height: 1.6; flex: 1; }
.hopea .hopea-name { color: #7fdcae; font-weight: 700; text-decoration: none; }
.hopea-btn { flex: none; background: #3ea67e; color: #0a1a14; font-weight: 700; padding: 13px 24px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hopea-btn:hover { background: #4fbf93; color: #0a1a14; }
@media (max-width: 760px) { .hopea-in { flex-direction: column; align-items: flex-start; } }

/* Footer */
.foot { background: var(--surface); border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 0.92rem; color: var(--soft); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 32px; }
.foot h2 { margin: 0 0 12px; color: var(--ink); font-size: 0.95rem; font-weight: 650; letter-spacing: 0; max-width: none; }
.foot .name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: 8px; }
.foot li { margin: 0 0 8px; }
.foot a, .foot .linkbtn { color: var(--soft); text-decoration: none; }
.foot a:hover, .foot .linkbtn:hover { color: var(--accent); }
.foot .d { color: var(--faint); }
.foot .linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot .legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 0.84rem; color: var(--faint); }
.foot .legal-line p + p { margin-top: 6px; }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* Cookie banner (site.js) */
.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; }
.cookie[hidden] { display: none; }
.cookie-box { max-width: 46rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); font-size: 0.92rem; }
.cookie p { margin: 0 0 12px; color: var(--soft); }
.cookie-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cookie-btns { display: flex; gap: 10px; flex: 1 1 16rem; }
.cookie button { flex: 1 1 8rem; font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--primary); }
.cookie .acc { background: var(--primary); color: #fff; }
.cookie .rej { background: transparent; color: var(--accent); }
.cookie a { color: var(--accent); }
