/* ============================================================
   Fluiréa — style.css
   Design: dark intro · editorial river · overlay nav
   Fonts: Cormorant Garamond (brand) · Noto Serif Thai (display)
          Sarabun (body/UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Noto+Serif+Thai:wght@200;300;400;500;600&family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --ink:        #0D0B09;
  --ink-soft:   #1A1714;
  --ivory:      #FAF8F3;
  --cream:      #F2EDE4;
  --sand:       #E0D5C5;
  --sand-deep:  #C8B99A;
  --accent:     #8C6E50;
  --accent-lt:  #A88260;
  --warm-gray:  #9A9189;
  --dust:       rgba(220, 205, 185, 0.18);

  --font-brand:   'Cormorant Garamond', Georgia, serif;
  --font-display: 'Noto Serif Thai', 'Cormorant Garamond', serif;
  --font-body:    'Sarabun', sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ═══════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 3rem;
  transition: background 0.5s var(--ease-out), backdrop-filter 0.5s, border-color 0.5s;
  pointer-events: all;
}

/* On dark section: transparent, white text */
.navbar.on-dark {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
.navbar.on-dark .navbar-brand,
.navbar.on-dark .explore-btn {
  color: rgba(255,255,255,0.82);
}
.navbar.on-dark .explore-btn::after {
  background: rgba(255,255,255,0.4);
}

/* On light section (default): faint cream glass */
.navbar.on-light {
  background: rgba(242, 237, 228, 0.88);
  backdrop-filter: blur(10px) saturate(1.4);
  border-bottom: 1px solid rgba(200, 185, 154, 0.25);
}
.navbar.on-light .navbar-brand,
.navbar.on-light .explore-btn {
  color: var(--ink);
}

.navbar-brand {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.4s;
}
.navbar-brand .accent { font-style: italic; }

/* Explore button */
.explore-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.4s, opacity 0.3s;
}
.explore-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out), background 0.4s;
}
.explore-btn:hover::after { transform: scaleX(1); }


/* ═══════════════════════════════════════════════════════════
   EXPLORE OVERLAY
   ═══════════════════════════════════════════════════════════ */
.explore-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out);
}
.explore-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 1.6rem; right: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s;
}
.overlay-close:hover { color: rgba(255,255,255,0.9); }

.overlay-inner {
  width: 100%;
  max-width: 820px;
  padding: 2rem 3rem;
}

.overlay-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 3rem;
}

.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.overlay-item {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  text-decoration: none;
  transition: background 0.2s;
}
.overlay-item:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.overlay-item:hover .overlay-item-name { color: #fff; }
.overlay-item:hover .overlay-item-def { color: rgba(255,255,255,0.55); }

.overlay-item-num {
  font-family: var(--font-brand);
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  min-width: 2rem;
  letter-spacing: 0.06em;
}

.overlay-item-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  min-width: 160px;
  transition: color 0.25s;
  line-height: 1.2;
}

.overlay-item-def {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  transition: color 0.25s;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 1 — DARK INTRO
   ═══════════════════════════════════════════════════════════ */
.dark-intro {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Canvas for particles */
#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Breathing radial glow */
.dark-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 52%,
    rgba(140, 110, 80, 0.12) 0%,
    rgba(100, 75, 55, 0.06) 45%,
    transparent 72%
  );
  animation: glow-breathe 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}

/* Brand name */
.dark-brand-wrap {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.dark-brand {
  font-family: var(--font-brand);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  line-height: 1;
}

.dark-reading {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(220, 205, 185, 0.38);
}

/* Scroll hint */
.dark-scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: hint-pulse 3s ease-in-out infinite;
}
.dark-scroll-hint span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(220,205,185,0.45);
}
.dark-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(220,205,185,0.5), transparent);
  animation: line-grow 3s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.65; }
}
@keyframes line-grow {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ═══════════════════════════════════════════════════════════
   SECTION 2 — STATEMENT
   ═══════════════════════════════════════════════════════════ */
.statement-section {
  background: var(--ivory);
  padding: 9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.statement-inner {
  max-width: 680px;
  text-align: center;
}

.statement-rule {
  width: 2px;
  height: 48px;
  background: var(--sand-deep);
  margin: 0 auto 2.8rem;
  opacity: 0.5;
}

.statement-main {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 2.4rem;
}

.statement-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--warm-gray);
  max-width: 560px;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 3 — EDITORIAL RIVER
   ═══════════════════════════════════════════════════════════ */
.river-section {
  background: var(--cream);
  padding: 6rem 0 8rem;
}

.river-header {
  max-width: 760px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
  text-align: center;
}

.river-header-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 1.2rem;
}

.river-header-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.55;
}

/* River container */
.river {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── River item base ── */
.river-item {
  position: relative;
}

/* Divider between items */
.river-item + .river-item {
  border-top: 1px solid var(--sand);
}

/* ── Hero item: full-width photo + overlay text ── */
.river-item--hero {
  padding: 3rem 0;
}

.river-item--hero a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.river-item--hero .river-img-wrap {
  position: relative;
  width: 100%;
  height: clamp(300px, 52vw, 580px);
  overflow: hidden;
}

.river-item--hero .river-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease-out);
}
.river-item--hero:hover .river-img { transform: scale(1.025); }

.river-item--hero .river-img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3.5rem 2.5rem 2rem;
  background: linear-gradient(to top, rgba(13,11,9,0.72) 0%, transparent 100%);
}

.river-item--hero .river-cat {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(220,205,185,0.65);
  margin-bottom: 0.6rem;
}

.river-item--hero .river-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  max-width: 660px;
}

.river-item--hero .river-excerpt {
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(220,205,185,0.6);
  line-height: 1.85;
  max-width: 540px;
}

/* ── Note item: text only, centered, no image ── */
.river-item--note {
  padding: 4.5rem 0;
}

.river-item--note a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.river-item--note .river-note-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.river-item--note .river-cat {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.river-item--note .river-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.river-item--note .river-excerpt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 2.05;
}

.river-item--note .river-readmore {
  display: inline-block;
  margin-top: 1.4rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--sand-deep);
  padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s;
}
.river-item--note:hover .river-readmore {
  color: var(--ink);
  border-color: var(--ink);
}

/* ── Split item: photo left, text right (or vice versa) ── */
.river-item--split {
  padding: 3.5rem 0;
}

.river-item--split a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.river-item--split .river-split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.river-item--split.reverse .river-split-inner {
  direction: rtl;
}
.river-item--split.reverse .river-split-inner > * {
  direction: ltr;
}

.river-item--split .river-img-half {
  position: relative;
  overflow: hidden;
  height: clamp(260px, 38vw, 460px);
  background-size: cover;
  background-position: center;
}

.river-item--split .river-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s var(--ease-out);
}
.river-item--split:hover .river-img { transform: scale(1.03); }

.river-item--split .river-text-half {
  background: var(--ivory);
  padding: 3.5rem 3rem 3.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.river-item--split.reverse .river-text-half {
  padding: 3.5rem 3.5rem 3.5rem 3rem;
}

.river-item--split .river-cat {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.9rem;
}

.river-item--split .river-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.river-item--split .river-excerpt {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 2;
}

.river-item--split .river-meta {
  margin-top: 1.6rem;
  display: flex;
  gap: 1.2rem;
}

.river-item--split .river-meta span {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--sand-deep);
}


/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE — HERO
   ═══════════════════════════════════════════════════════════ */
.page-top { height: 0; }

.cat-hero {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.cat-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,11,9,0.78) 0%,
    rgba(13,11,9,0.22) 50%,
    rgba(13,11,9,0.08) 100%
  );
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 4rem 3.5rem;
  max-width: 900px;
}

.cat-hero-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(220,205,185,0.55);
  margin-bottom: 0.7rem;
}

.cat-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.cat-hero-def {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(220,205,185,0.65);
  line-height: 2.1;
  max-width: 560px;
}


/* ═══════════════════════════════════════════════════════════
   CATEGORY PAGE — ARTICLES SECTION
   ═══════════════════════════════════════════════════════════ */
.articles-section {
  background: var(--cream);
  padding: 5rem 2rem 7rem;
}

.articles-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.articles-header {
  max-width: 680px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.articles-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.articles-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 2.1;
}

.articles-rule {
  width: 36px;
  height: 1px;
  background: var(--sand-deep);
  margin: 2rem auto 0;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   EDITORIAL LIST — replaces card grid on category pages
   Clean horizontal entries, space to breathe
   ═══════════════════════════════════════════════════════════ */
.articles-list {
  display: flex;
  flex-direction: column;
}

/* Each entry */
.article-entry {
  display: grid;
  grid-template-columns: 3rem 1fr 320px;
  gap: 0 2.5rem;
  align-items: start;
  padding: 2.8rem 0;
  border-top: 1px solid var(--sand);
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}
.article-entry:last-child { border-bottom: 1px solid var(--sand); }
.article-entry:hover { opacity: 0.82; }
.article-entry:hover .article-entry-title { color: var(--accent); }

/* Entry number */
.article-entry-num {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--sand-deep);
  letter-spacing: 0.06em;
  padding-top: 0.35rem;
}

/* Text block */
.article-entry-body {}

.article-entry-meta {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.75rem;
}

.article-entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.9rem;
  transition: color 0.3s;
}

.article-entry-excerpt {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 2.05;
  max-width: 540px;
}

.article-entry-footer {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 1.2rem;
}
.article-entry-footer span {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-deep);
}
.article-entry-footer span + span::before {
  content: '·';
  margin-right: 1.2rem;
  opacity: 0.5;
}

/* Image block — portrait crop, right side */
.article-entry-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}

/* Featured entry: first item gets larger treatment */
.article-entry--featured {
  grid-template-columns: 3rem 1fr;
  padding-bottom: 3.5rem;
}
.article-entry--featured .article-entry-img {
  display: none;  /* hide small image */
}
.article-entry--featured .article-entry-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 1.1rem;
}
.article-entry--featured-img {
  grid-column: 1 / -1;
  width: 100%;
  height: clamp(240px, 38vw, 440px);
  background-size: cover;
  background-position: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

/* No-image entries (text-only) */
.article-entry--noimg {
  grid-template-columns: 3rem 1fr;
}
.article-entry--noimg .article-entry-img { display: none; }


/* ═══════════════════════════════════════════════════════════
   BOOKS PAGE — special layout
   ═══════════════════════════════════════════════════════════ */
.books-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-item {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--sand);
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.book-item:first-child { border-top: 1px solid var(--sand); }

.book-cover {
  aspect-ratio: 2 / 3;
  background-size: cover;
  background-position: center;
  max-width: 180px;
}

.book-num {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.6rem;
}

.book-title {
  font-family: var(--font-brand);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.book-author {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--warm-gray);
  margin-bottom: 1.2rem;
}

.book-desc {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 2.1;
  color: var(--ink);
  opacity: 0.78;
}

.book-tags {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.book-tag {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--sand-deep);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}


/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  padding: 4.5rem 2rem 3rem;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(220,205,185,0.35);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.8rem;
  justify-content: center;
  margin-top: 1rem;
}
.footer-nav a {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(220,205,185,0.45);
  transition: color 0.25s;
}
.footer-nav a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  gap: 0.5rem;
}
.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(220,205,185,0.3);
}
.footer-copy a { transition: color 0.25s; }
.footer-copy a:hover { color: rgba(220,205,185,0.65); }


/* ═══════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════ */
.hidden { display: none !important; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 900px) {
  .navbar { padding: 1.2rem 1.8rem; }
  .overlay-inner { padding: 2rem 2rem; }
  .overlay-item-name { font-size: 1.3rem; min-width: 130px; }
  .overlay-item-def { display: none; }

  .river-item--split .river-split-inner {
    grid-template-columns: 1fr;
  }
  .river-item--split .river-img-half {
    height: clamp(220px, 55vw, 360px);
  }
  .river-item--split.reverse .river-split-inner { direction: ltr; }
  .river-item--split .river-text-half,
  .river-item--split.reverse .river-text-half {
    padding: 2.2rem 1.5rem;
  }

  .article-entry { grid-template-columns: 3rem 1fr 220px; gap: 0 1.5rem; }
  .cat-hero-content { padding: 0 2rem 2.5rem; }

  .book-item { grid-template-columns: 1fr 1.8fr; gap: 1.5rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .navbar { padding: 1rem 1.2rem; }
  .overlay-close { right: 1.5rem; }

  .dark-brand { font-size: clamp(3rem, 13vw, 5rem); }
  .statement-section { padding: 6rem 1.5rem; }

  .river-section { padding: 4rem 0 6rem; }
  .river { padding: 0 1.2rem; }
  .river-item--hero .river-img-caption { padding: 2.5rem 1.5rem 1.5rem; }

  .articles-section { padding: 3.5rem 1.2rem 5rem; }
  .article-entry {
    grid-template-columns: 2.2rem 1fr;
    gap: 0 1rem;
    padding: 2rem 0;
  }
  .article-entry-img { display: none; }
  .article-entry--featured { grid-template-columns: 2.2rem 1fr; }

  .cat-hero { height: 55vh; }
  .cat-hero-content { padding: 0 1.5rem 2rem; }

  .book-item {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .book-cover { max-width: 120px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════
   JOURNAL ARTICLE — BREAK IMAGE
   ภาพในบทความ: พอดีกับหน้าจอ ไม่ต้องเลื่อน ไม่ใหญ่กว่าความละเอียดจริง
═══════════════════════════════════════════════════════════════ */
.journal-break-image {
  max-width: 820px !important;
  width: 100% !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  height: auto !important;
  display: block !important;
  background: transparent !important;
}

.journal-break-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
}
 

/* ═══════════════════════════════════════════════════════════════
   JOURNAL DATELINE — ชดเชย navbar fixed (~90px)
   ให้แถบ location / ชื่อภาพ ปรากฏใต้ navbar ไม่ถูกบัง
   ═══════════════════════════════════════════════════════════════ */
.journal-dateline {
  padding-top: 7rem !important;
}