/* ============================================
   Personal Branding Site — Editorial Theme
   Navy / Cream / Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;600;700&display=swap');

:root {
  --navy: #1a2744;
  --navy-deep: #111b33;
  --navy-soft: #2c3e63;
  --cream: #f7f4ee;
  --cream-dark: #efe9df;
  --gold: #c9a84c;
  --gold-soft: #e0cd9a;
  --ink: #232a38;
  --ink-soft: #5a6275;
  --white: #ffffff;
  --line: rgba(26, 39, 68, 0.12);

  --font-main: 'Anuphan', 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', 'Anuphan', serif;
  --font-read: 'IBM Plex Sans Thai Looped', 'Anuphan', sans-serif;
  --font-script: 'Dancing Script', cursive;

  --maxw: 1120px;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(26, 39, 68, 0.10);
  --shadow-lg: 0 24px 70px rgba(26, 39, 68, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-script);
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--navy);
}

.brand .brand-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream) url('../img/logo.svg') center / 78% no-repeat;
  border: 1px solid rgba(26, 39, 68, 0.12);
  color: transparent;
  font-size: 0;
  align-self: center;
  flex-shrink: 0;
}

.brand .brand-sub {
  font-family: var(--font-script);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--gold);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
  padding: 6px 0;
}

.main-nav a:hover, .main-nav a.active { color: var(--navy); }

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--navy);
  color: var(--cream) !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  font-size: 0.85rem !important;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--navy-soft); transform: translateY(-1px); }
.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  color: var(--navy);
  font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--navy);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.25);
}
.hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 480px; height: 480px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
}

.hero-inner {
  padding: 96px 0 110px;
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 .accent {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
}

.hero p {
  font-size: 1.08rem;
  color: rgba(247, 244, 238, 0.78);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201, 168, 76, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(247, 244, 238, 0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--gold);
  font-weight: 600;
}
.hero-stat .label {
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.6);
  letter-spacing: 0.06em;
}

/* ---------- Section scaffolding ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--cream-dark); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  line-height: 1.3;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.section-link:hover { color: var(--gold); }

/* ---------- Featured post ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--cream);
  box-shadow: var(--shadow-lg);
  margin-bottom: 56px;
  transition: transform 0.25s;
}
.featured-card:hover { transform: translateY(-4px); }

.featured-cover {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.featured-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 60%, var(--navy) 100%);
}

.featured-body {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.post-tag {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.post-meta .dot { opacity: 0.4; }
.post-meta .date, .post-meta .read { color: rgba(247,244,238,0.6); }

.featured-body h3 {
  font-size: 1.55rem;
  line-height: 1.4;
  margin-bottom: 14px;
  font-weight: 700;
}
.featured-body h3 a:hover { color: var(--gold); }

.featured-body p {
  color: rgba(247, 244, 238, 0.72);
  font-size: 0.98rem;
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.read-more::after { content: '→'; transition: transform 0.2s; }
.read-more:hover::after { transform: translateX(4px); }

/* ---------- Post grid ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-cover {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-soft);
}

.post-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card .post-meta { margin-bottom: 12px; }
.post-card .post-tag {
  background: rgba(26, 39, 68, 0.07);
  color: var(--navy);
}
.post-card .post-meta .date,
.post-card .post-meta .read { color: var(--ink-soft); }

.post-card h3 {
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--navy);
  margin-bottom: 10px;
  font-weight: 700;
}
.post-card h3 a:hover { color: var(--gold); }

.post-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card .read-more { color: var(--navy); margin-top: auto; }
.post-card .read-more:hover { color: var(--gold); }

/* ---------- Filter bar (articles page) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--gold); color: var(--navy); }
.filter-chip.active {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}

.search-box {
  margin-left: auto;
  position: relative;
}
.search-box input {
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 9px 18px 9px 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  width: 240px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}
.search-box::before {
  content: '⌕';
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
  display: none;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-top: 8px;
}
.page-hero p {
  color: rgba(247, 244, 238, 0.7);
  max-width: 560px;
  margin-top: 12px;
}

/* ---------- Article page ---------- */
.article-hero {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  top: -160px; right: -120px;
  width: 440px; height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.article-hero-inner { max-width: 760px; position: relative; z-index: 1; }

.article-hero .post-meta { margin-bottom: 20px; }
.article-hero .post-meta .date,
.article-hero .post-meta .read { color: rgba(247,244,238,0.65); }

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.35;
  margin-bottom: 18px;
}

.article-hero .lede {
  font-size: 1.08rem;
  color: rgba(247, 244, 238, 0.75);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.article-author .avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.article-author .name { font-weight: 600; font-size: 0.95rem; }
.article-author .role { font-size: 0.8rem; color: rgba(247,244,238,0.6); }

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}

.article-content {
  font-family: var(--font-read);
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink);
}

.article-content h2 {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--navy);
  margin: 48px 0 18px;
  line-height: 1.4;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.article-content h3 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--navy);
  margin: 36px 0 14px;
}

.article-content p { margin-bottom: 22px; }

.article-content strong { color: var(--navy); }

.article-content ul, .article-content ol {
  margin: 0 0 24px 26px;
}
.article-content li { margin-bottom: 10px; }
.article-content li::marker { color: var(--gold); font-weight: 700; }

.article-content blockquote {
  margin: 36px 0;
  padding: 28px 34px;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--navy);
  font-style: italic;
}
.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--ink-soft);
}

.article-content .callout {
  margin: 32px 0;
  padding: 24px 28px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.article-content .callout .callout-title {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-content figure { margin: 36px 0; }
.article-content figure img { border-radius: var(--radius); }
.article-content figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.92rem;
  font-family: var(--font-main);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-content th {
  background: var(--navy);
  color: var(--cream);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.article-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.article-content tr:last-child td { border-bottom: none; }

.article-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.article-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 32px;
  color: var(--gold);
}
.article-divider::before, .article-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.article-share {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.article-share .label { font-size: 0.9rem; color: var(--ink-soft); font-weight: 500; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s;
}
.share-btn:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.post-nav a {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.post-nav a:hover { transform: translateY(-3px); }
.post-nav .nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.post-nav .nav-title { font-weight: 600; color: var(--navy); font-size: 0.95rem; line-height: 1.5; }
.post-nav .next { text-align: right; }

/* Reading progress */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gold);
  width: 0;
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- About page ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}

.about-portrait {
  background: var(--navy);
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 4rem;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 100px;
  background-size: cover;
  background-position: center;
}

.about-body h2 {
  color: var(--navy);
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.about-body p {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--font-read);
}

.timeline { margin-top: 40px; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 600;
}
.timeline-item h4 { color: var(--navy); margin-bottom: 4px; }
.timeline-item p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Topics ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.topic-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: all 0.25s;
}
.topic-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.topic-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(26, 39, 68, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.topic-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.topic-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 60px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute;
  bottom: -160px; left: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.25);
}
.newsletter h2 { font-size: 1.7rem; margin-bottom: 12px; }
.newsletter p { color: rgba(247,244,238,0.7); font-size: 0.98rem; }

.newsletter-form { display: flex; gap: 12px; position: relative; z-index: 1; }
.newsletter-form input {
  flex: 1;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(247,244,238,0.25);
  background: rgba(247,244,238,0.08);
  color: var(--cream);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(247,244,238,0.45); }
.newsletter-form input:focus { border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(247, 244, 238, 0.65);
  padding: 56px 0 32px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-brand .brand { color: var(--cream); margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }

.footer-col h4 {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 320px; }
  .newsletter { grid-template-columns: 1fr; padding: 44px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 0 72px; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ============================================
   Article rich components (stat grid, bars,
   catalyst timeline) — light editorial theme
   ============================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 36px 0;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .s-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.stat-card .s-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.stat-card .s-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 4px; }
.stat-card .s-sub { font-size: 0.82rem; color: var(--gold); font-weight: 700; margin-top: 8px; }

.bars { margin: 32px 0; }
.bar-item { margin-bottom: 20px; }
.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.92rem;
  margin-bottom: 7px;
}
.bar-label .l { color: var(--navy); font-weight: 500; }
.bar-label .v { color: var(--gold); font-weight: 700; font-family: var(--font-display); }
.bar-track { height: 8px; background: var(--cream-dark); border-radius: 999px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--navy-soft), var(--gold));
}

.catalysts { margin: 32px 0; }
.catalyst {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.catalyst:last-child { border-bottom: none; }
.catalyst .c-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.catalyst h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 5px; }
.catalyst p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.article-note {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .catalyst { grid-template-columns: 1fr; gap: 6px; }
}

/* ============================================
   Membership / Exclusive content
   ============================================ */
.member-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--navy);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.article-hero .member-badge { background: rgba(201, 168, 76, 0.18); }

.post-card.locked .post-cover { position: relative; }
.post-card.locked .post-cover::after {
  content: '🔒';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  background: rgba(26, 39, 68, 0.42);
}
.read-more.locked-cta { color: var(--gold); font-weight: 700; }

.main-nav [data-members-link] { color: var(--navy); font-weight: 600; }

/* paywall on gated article */
.article-content.gated {
  max-height: 360px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.paywall {
  max-width: 760px;
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 44px 36px 40px;
  text-align: center;
}
.paywall .lock {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 18px;
}
.paywall h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 10px; }
.paywall p { color: var(--ink-soft); margin-bottom: 24px; }
.paywall .pw-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.paywall .demo-unlock { display: block; margin-top: 20px; font-size: 0.82rem; color: var(--ink-soft); }
.paywall .demo-unlock a { color: var(--gold); text-decoration: underline; cursor: pointer; }

/* members page — tiers */
.tier-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.tier-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.tier-card.highlight { border-color: var(--gold); box-shadow: var(--shadow-lg); }
.tier-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.tier-card h3 { color: var(--navy); font-size: 1.4rem; margin-bottom: 8px; }
.tier-price { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); margin-bottom: 20px; }
.tier-price small { font-size: 0.9rem; color: var(--ink-soft); font-weight: 400; font-family: var(--font-main); }
.tier-card ul { list-style: none; margin: 0 0 28px; padding: 0; }
.tier-card li { padding: 10px 0 10px 28px; position: relative; font-size: 0.95rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.tier-card li:last-child { border-bottom: none; }
.tier-card li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.tier-card .btn { margin-top: auto; justify-content: center; width: 100%; }

.member-status {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 18px 22px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.member-status .pill {
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(26,39,68,0.07);
  color: var(--ink-soft);
}
body.is-member .member-status .pill { background: rgba(201,168,76,0.18); color: var(--navy); }

@media (max-width: 760px) { .tier-grid { grid-template-columns: 1fr; } }

/* ============================================
   Media — Video Sessions & Podcast
   ============================================ */
.media-thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-soft);
  position: relative;
  cursor: pointer;
  display: block;
  border: none;
  width: 100%;
  padding: 0;
}
.media-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.32);
  transition: background 0.25s;
}
.media-thumb:hover::after { background: rgba(26, 39, 68, 0.18); }
.media-thumb .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  z-index: 1;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.35);
  transition: transform 0.2s;
  padding-left: 4px;
}
.media-thumb:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.media-type {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
}
.media-type.podcast { background: var(--gold); color: var(--navy-deep); }

/* responsive players */
.ratio-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}
.ratio-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.spotify-embed { width: 100%; height: 232px; border: 0; display: block; }

/* media detail page — player ใหญ่ */
.media-player { margin-bottom: 34px; }
.media-player .media-thumb {
  height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-player .media-thumb .play { width: 72px; height: 72px; font-size: 1.7rem; }
.media-player .ratio-16x9,
.media-player .spotify-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) { .media-player .media-thumb { height: 240px; } }
