/* หน้าบทความ www.ozariam.com/blog — พื้นขาว · layout ตามภาพอ้างอิงที่เจ้าของส่ง 30 พ.ย. 69
   (ภาพใหญ่ซ้าย + บทความล่าสุดขวา · แถวการ์ดมีลูกศร + เลขหน้า) · HTML สร้างจาก tools/build-blog.py */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #16171b;
  --ink-2: #3b3d44;
  --muted: #74777f;
  --line: #ebe9e5;
  --soft: #f7f5f2;
  --chip: #f3efe9;
  --blue: #2C47A6;
  --blue-hover: #3756C6;
  --en: 'Julius Sans One', 'Noto Sans Thai', sans-serif;
  --th: 'Noto Sans Thai', 'Sukhumvit Set', Tahoma, sans-serif;
  --w: 1160px;
  --gut: clamp(16px, 4vw, 40px);
  --r: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.7 var(--th); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.b-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 50; padding: 8px 16px; border-radius: 99px; background: var(--ink); color: #fff; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.bw { width: min(var(--w), calc(100% - 2 * var(--gut))); margin-inline: auto; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------------------------------------------------------------- header */
.bh { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.bh-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; height: 84px; }
.bh-logo img { width: 132px; height: auto; }
.bh-nav { display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 34px); }
.bh-nav a { font: 400 12.5px/1 var(--en); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 8px 0; border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.bh-nav a:hover { color: var(--ink); }
.bh-nav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.bh-act { display: flex; align-items: center; gap: 18px; }
.bh-tel { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.bh-tel:hover { color: var(--ink); }
.bh-tel svg { font-size: 13px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 99px; background: var(--blue); color: #fff; font: 500 14px/1.2 var(--th); white-space: nowrap; transition: background .2s, transform .2s; }
.bh .pill { font: 400 12.5px/1 var(--en); letter-spacing: .14em; text-transform: uppercase; }
.pill:hover { background: var(--blue-hover); }
.pill svg { font-size: 16px; }
@media (max-width: 900px) {
  .bh-in { grid-template-columns: auto 1fr auto; height: auto; padding: 12px 0 0; row-gap: 6px; }
  .bh-logo img { width: 112px; }
  .bh-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 22px; padding-bottom: 6px; }
  .bh-nav::-webkit-scrollbar { display: none; }
  .bh-act { grid-column: 3; gap: 12px; }
  .bh-tel { display: none; }
  .bh .pill { min-height: 38px; padding: 0 16px; }
}

/* ---------------------------------------------------------------- covers (กราฟิกตามหมวด: ฟ้ายามค่ำ + ขอบดาวเคราะห์) */
.cover { position: relative; display: block; overflow: hidden; background: var(--soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.art { --s0: #0b1230; --s1: #2C47A6; --p: #060a1a; --g: #9fd8ff;
  background:
    radial-gradient(1.2px 1.2px at 18% 22%, rgba(255,255,255,.85), transparent 60%),
    radial-gradient(1px 1px at 38% 12%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 72% 18%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1px 1px at 86% 34%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 9% 46%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 56% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(120% 70% at 50% 100%, color-mix(in srgb, var(--g) 55%, transparent), transparent 62%),
    linear-gradient(180deg, var(--s0) 0%, var(--s1) 100%);
}
.art::before { /* ดาวเคราะห์ */
  content: ""; position: absolute; left: -30%; right: -30%; top: 74%; height: 150%; border-radius: 50%;
  background: radial-gradient(80% 40% at 50% 0%, color-mix(in srgb, var(--s1) 70%, var(--p)), var(--p) 70%);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--g) 90%, #fff), 0 -10px 40px color-mix(in srgb, var(--g) 70%, transparent), 0 -2px 10px var(--g);
}
.art::after { /* แสงขอบฟ้า */
  content: ""; position: absolute; left: 50%; top: 74%; width: 46%; height: 2px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #fff, transparent); filter: blur(1px); opacity: .9;
}
.art-i { position: absolute; left: 50%; top: 40%; width: 26%; height: auto; aspect-ratio: 1; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .9); stroke-width: 1.1; filter: drop-shadow(0 0 18px color-mix(in srgb, var(--g) 80%, transparent)); }
[data-tone="sand"]   { --s0: #2a1710; --s1: #a65a2f; --p: #140b07; --g: #ffbd7a; }
[data-tone="blue"]   { --s0: #0a1130; --s1: #2C47A6; --p: #060a1a; --g: #9fd8ff; }
[data-tone="steel"]  { --s0: #0d191e; --s1: #2f6a78; --p: #071013; --g: #a8f2e8; }
[data-tone="violet"] { --s0: #160e2c; --s1: #5b3fa6; --p: #0b0718; --g: #d6b9ff; }
[data-tone="terra"]  { --s0: #26100b; --s1: #b4502c; --p: #130805; --g: #ffc690; }
[data-tone="green"]  { --s0: #0b1b15; --s1: #2e7d5b; --p: #06100b; --g: #b5f6cc; }

/* ---------------------------------------------------------------- chips + meta */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.4; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--s1); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--s1) 70%, #fff); }
.chip-l { background: var(--chip); }
.meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ---------------------------------------------------------------- index: top */
main.bw { padding: 28px 0 40px; }
.top { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.feat { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; isolation: isolate; }
.feat-c { position: absolute; inset: 0; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.feat:hover .feat-c { transform: scale(1.03); }
.feat-c .art-i { top: 34%; width: 20%; }
.feat-b { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 90px clamp(18px, 2.4vw, 30px) clamp(18px, 2.4vw, 26px);
  background: linear-gradient(180deg, transparent, rgba(10, 8, 6, .35) 30%, rgba(10, 8, 6, .72)); color: #fff; }
.feat-t { font-size: clamp(21px, 2.3vw, 30px); line-height: 1.38; font-weight: 500; max-width: 30em; text-wrap: balance; }
.feat .meta { color: rgba(255, 255, 255, .82); }
.latest h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.latest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.mini { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; }
.mini-c { width: 84px; aspect-ratio: 1; border-radius: 12px; }
.mini-c .art-i { width: 40%; top: 38%; }
.mini-c.art::before { top: 70%; }
.mini-b { display: grid; gap: 6px; }
.mini-t { font-size: 15px; line-height: 1.45; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.mini:hover .mini-t { color: var(--blue); }
@media (max-width: 860px) {
  .top { grid-template-columns: 1fr; }
  .feat { aspect-ratio: 4 / 3.4; }
}

/* ---------------------------------------------------------------- index: all posts */
.all { margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.all-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.all-h h2 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 600; }
.arrows { display: flex; gap: 10px; }
.rnd { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d9d6d1; background: #fff; cursor: pointer; font-size: 17px; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.rnd:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.rnd:disabled { opacity: .4; cursor: default; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.grid li[hidden] { display: none; }
.card { display: flex; flex-direction: column; height: 100%; padding: 7px; border-radius: var(--r); background: var(--soft); transition: background .2s, box-shadow .2s; }
.card:hover { background: #f2efea; box-shadow: 0 10px 30px rgba(20, 18, 14, .06); }
.card-c { aspect-ratio: 2.25 / 1; border-radius: 12px; }
.card-c .art-i { width: 18%; top: 38%; }
.card-b { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 10px 12px; flex: 1; }
.card .chip { background: #fff; }
.card-t { font-size: 18px; line-height: 1.45; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-x { font-size: 14px; line-height: 1.65; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { margin-top: auto; padding-top: 4px; }
.card:hover .card-t { color: var(--blue); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.pg-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 19px; cursor: pointer; color: var(--ink-2); }
.pg-next { background: var(--soft); }
.pg-arrow:hover:not(:disabled) { background: #eeebe6; color: var(--ink); }
.pg-arrow:disabled { opacity: .35; cursor: default; }
.pg-nums { display: flex; gap: 8px; }
.pg-nums button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.pg-nums button:hover { background: var(--soft); }
.pg-nums button[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- post page */
.post { padding: 18px 0 40px; }
.post-w { max-width: 780px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-m { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0 0 14px; }
.post-h h1 { margin: 0; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.32; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.lead { margin: 16px 0 0; font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.post-c { margin: 30px 0 34px; aspect-ratio: 2.2 / 1; border-radius: var(--r); }
.post-c .art-i { width: 14%; top: 38%; }
.prose { font-size: 17.5px; line-height: 1.9; color: #24252a; }
.prose h2 { margin: 44px 0 12px; font-size: 25px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.prose h3 { margin: 30px 0 8px; font-size: 20px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 1.3em; }
.prose li { margin: 6px 0; padding-left: .2em; }
.prose li::marker { color: var(--blue); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.cta { margin: 46px 0 0; padding: clamp(22px, 3vw, 34px); border-radius: var(--r); background: var(--soft); }
.cta h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.4; font-weight: 600; }
.cta p { margin: 0 0 20px; color: var(--ink-2); }
.cta-a { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-a .pill:nth-child(2) { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px #d9d6d1; }
.cta-a .pill:nth-child(2):hover { box-shadow: inset 0 0 0 1px var(--ink); }
.ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 500; color: var(--ink-2); }
.ghost:hover { color: var(--ink); }
.more { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.more-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.more-all:hover { color: var(--blue); }

/* ---------------------------------------------------------------- footer */
.bf { margin-top: 30px; border-top: 1px solid var(--line); }
.bf-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding: 30px 0 36px; }
.bf-logo img { width: 112px; height: auto; }
.bf-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); }
.bf-nav a:hover { color: var(--ink); }
.bf-copy { width: 100%; margin: 0; font-size: 13px; color: var(--muted); }
.bf-copy a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
