/* St Barth Charter — Blog stylesheet */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; font-variant-emoji: text; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #2a2a28;
  background: #fafaf8;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:root {
  --sand: #f0ead8;
  --ocean: #0e4f6e;
  --deep: #092d40;
  --coral: #d4603a;
  --sky: #c8e8f4;
  --muted: #7a7a70;
  --wa: #25d366;
  --r: 10px;
  --w: 760px;
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.22,.61,.36,1);
}
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.2; }
a { color: var(--ocean); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img { max-width: 100%; display: block; height: auto; }
button { cursor: pointer; border: none; font-family: inherit; }

/* NAV — floating glass pill, matches the homepage's scrolled-state styling */
.nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  margin: 0 auto;
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 960px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(9,45,64,.08);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 10px 28px rgba(9,45,64,.10);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
  }
}
.nav-in {
  max-width: 100%; margin: 0;
  padding: 8px 8px 8px 22px;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700;
  color: var(--deep); letter-spacing: -0.3px;
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.nav-logo svg { width: 30px; height: auto; flex-shrink: 0; }
.nav-r { display: flex; align-items: center; gap: 24px; }
.nav-r a.nl {
  font-size: .85rem; font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color .3s;
  position: relative;
}
.nav-r a.nl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor; opacity: 0;
  transform: scaleX(.4); transform-origin: center;
  transition: opacity .3s, transform .35s cubic-bezier(.22,.61,.36,1);
}
.nav-r a.nl:hover { color: var(--ocean); }
.nav-r a.nl:hover::after { opacity: .8; transform: scaleX(1); }
.nav-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--wa); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: .82rem; font-weight: 400;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37,211,102,.28);
  transition: opacity .25s, transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
}
.nav-wa:hover {
  opacity: .94; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,.38);
}
@media (max-width: 768px) {
  .nav { top: 12px; width: calc(100% - 20px); }
  .nav-in { padding: 6px 16px 6px 20px; height: 52px; justify-content: center; }
  .nav-logo { font-size: 1rem; }
  .nav-logo svg { width: 26px; }
  .nav-r { display: none; }
}

/* BREADCRUMB */
.crumb { max-width: var(--w); margin: 0 auto; padding: 100px 24px 0; font-size: .82rem; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ocean); }
.crumb span { margin: 0 8px; opacity: .5; }

/* ARTICLE */
article { max-width: var(--w); margin: 0 auto; padding: 32px 24px 80px; }
article header { margin-bottom: 48px; }
article header .meta { font-size: .78rem; font-weight: 400; color: var(--ocean); letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 18px; }
article h1 { font-size: 2.6rem; color: var(--deep); margin-bottom: 18px; letter-spacing: -0.5px; }
article header .lede { font-size: 1.18rem; color: #4a4a48; line-height: 1.6; margin-bottom: 24px; }
article header .byline { font-size: .82rem; color: var(--muted); padding-top: 18px; border-top: 1px solid rgba(0,0,0,.07); }
article header .byline time { font-variant-numeric: tabular-nums; }

article h2 { font-size: 1.7rem; color: var(--deep); margin: 56px 0 18px; letter-spacing: -0.3px; }
article h3 { font-size: 1.2rem; color: var(--deep); margin: 36px 0 12px; font-weight: 600; }
article p { margin-bottom: 18px; color: #2a2a28; font-size: 1.02rem; }
article ul, article ol { margin: 0 0 22px 22px; }
article li { margin-bottom: 8px; font-size: 1.02rem; }

article .tldr {
  background: var(--sand); padding: 22px 26px;
  border-radius: var(--r); margin: 24px 0 36px;
  border-left: 3px solid var(--ocean);
}
article .tldr b { display: block; font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--deep); margin-bottom: 8px; font-weight: 600; }
article .tldr p { margin: 0; font-size: .96rem; color: #4a4a48; }

article table {
  width: 100%; border-collapse: collapse; margin: 24px 0 32px;
  font-size: .94rem;
}
article th, article td {
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
article th {
  background: var(--sand); color: var(--deep);
  font-family: 'Playfair Display', serif; font-weight: 600;
  font-size: .92rem;
}
article td { color: #2a2a28; }

article blockquote {
  margin: 28px 0; padding: 18px 24px;
  border-left: 3px solid var(--coral);
  background: rgba(212,96,58,.06);
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; color: #4a4a48;
}

/* CTA card inside article */
.cta-card {
  background: var(--deep); color: #fff; padding: 32px 28px;
  border-radius: var(--r); margin: 40px 0;
  text-align: center;
}
.cta-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; margin-bottom: 10px; }
.cta-card p { color: rgba(255,255,255,.75); font-size: .95rem; margin-bottom: 20px; }
.cta-card .btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; padding: 13px 28px;
  border-radius: 8px; font-size: .92rem; font-weight: 400;
  text-decoration: none; transition: opacity .2s, transform .2s;
}
.cta-card .btn-wa:hover { opacity: .9; transform: translateY(-1px); }

/* Related articles */
.related { max-width: var(--w); margin: 48px auto 0; padding: 0 24px; }
.related h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--deep); margin-bottom: 20px; }
.related ul { list-style: none; margin: 0; }
.related li { padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.related li:last-child { border-bottom: none; }
.related a { display: block; text-decoration: none; color: var(--deep); font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; transition: color .2s; }
.related a:hover { color: var(--coral); }
.related a span { display: block; font-family: 'DM Sans', sans-serif; font-weight: 300; font-size: .9rem; color: var(--muted); margin-top: 4px; }

/* FOOTER */
.foot { background: var(--deep); padding: 40px 0; margin-top: 80px; }
.foot-in { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.foot-logo { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.foot-logo svg { width: 28px; height: auto; flex-shrink: 0; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: .84rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: #fff; }
.foot-cp { font-size: .78rem; color: rgba(255,255,255,.25); }
.foot-cp .sig-sep { opacity: .5; margin: 0 6px; }
.foot-cp .sig-mark { color: inherit; text-decoration: none; letter-spacing: .3px; transition: color .2s; }
.foot-cp .sig-mark:hover { color: rgba(255,255,255,.6); }

/* FLOATING WA */
.wa-float { position: fixed; bottom: 24px; right: 24px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.35); transition: transform .2s, box-shadow .2s; text-decoration: none; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.45); }
.wa-float svg { width: 26px; height: 26px; }

/* BLOG INDEX — refined editorial layout */
.blog-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 140px 24px 40px;
}
.blog-hero-tag {
  display: inline-block;
  font-size: .76rem; color: var(--ocean);
  letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-size: 3rem; color: var(--deep);
  margin-bottom: 20px; letter-spacing: -0.6px;
  line-height: 1.12;
  max-width: 840px;
}
.blog-hero h1 i {
  font-weight: 400; color: var(--ocean);
}
.blog-hero p {
  color: #4a4a48; font-size: 1.08rem;
  max-width: 640px; line-height: 1.7;
}
.blog-hero-meta {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,.07);
  font-size: .82rem; color: var(--muted);
}
.blog-hero-meta span {
  display: inline-flex; align-items: baseline; gap: 7px;
}
.blog-hero-meta b {
  font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--deep);
}

.blog-list {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.blog-card {
  background: #fff;
  border-radius: var(--r);
  padding: 32px;
  border: 1px solid rgba(0,0,0,.06);
  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s cubic-bezier(.4,0,.2,1),
    border-color .35s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.blog-card::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--ocean), var(--coral));
  opacity: 0;
  transition: opacity .35s var(--ease-soft);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(9,45,64,.10);
  border-color: rgba(9,45,64,.10);
}
.blog-card:hover::after { opacity: 1; }
.blog-card .meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 400;
  color: var(--ocean);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 14px;
}
.blog-card .meta::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--coral); opacity: .9;
  flex-shrink: 0;
}
.blog-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--deep);
  margin-bottom: 12px;
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.blog-card p {
  font-size: .94rem;
  color: #4a4a48;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
}
.blog-card .read {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--coral);
  font-weight: 500;
  margin-top: auto;
  transition: gap .35s cubic-bezier(.22,.61,.36,1);
}
.blog-card .read svg {
  width: 14px; height: 14px;
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
}
.blog-card:hover .read { gap: 10px; }
.blog-card:hover .read svg { transform: translateX(3px); }

/* Featured card — first in the list, full-width, larger */
.blog-card.featured {
  grid-column: 1 / -1;
  padding: 44px 44px 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200,232,244,.35) 0%, transparent 55%),
    linear-gradient(135deg, #fff 0%, var(--sand) 100%);
}
.blog-card.featured .meta {
  color: var(--coral);
  font-weight: 500;
}
.blog-card.featured .meta::before {
  background: var(--coral);
  box-shadow: 0 0 8px rgba(212,96,58,.45);
  animation: featPulse 2.2s ease-in-out infinite;
}
@keyframes featPulse { 0%,100%{opacity:.55} 50%{opacity:1} }
.blog-card.featured h2 {
  font-size: 2.05rem;
  max-width: 720px;
  margin-bottom: 14px;
}
.blog-card.featured p {
  font-size: 1.02rem;
  max-width: 640px;
  margin-bottom: 22px;
}
.blog-card.featured .read {
  font-size: .9rem;
}

@media (max-width: 768px) {
  .blog-hero { padding: 110px 20px 32px; }
  .blog-hero h1 { font-size: 2rem; }
  .blog-hero p { font-size: 1rem; }
  .blog-hero-meta { gap: 20px; }
  .blog-list { grid-template-columns: 1fr; gap: 18px; padding: 0 20px 64px; }
  .blog-card { padding: 26px; }
  .blog-card.featured { padding: 28px; }
  .blog-card.featured h2 { font-size: 1.5rem; }
  .blog-card.featured p { font-size: .98rem; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  :root { --w: 100%; }
  .nav-r .nl { display: none; }
  article h1 { font-size: 2rem; }
  article header .lede { font-size: 1.05rem; }
  article h2 { font-size: 1.4rem; margin: 44px 0 14px; }
  .blog-list { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
