/* St Barth Charter — Blog stylesheet */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
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;
}
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 */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav-in { max-width: 1140px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.25rem; 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: 34px; height: auto; flex-shrink: 0; }
.nav-r { display: flex; align-items: center; gap: 28px; }
.nav-r a.nl { font-size: .88rem; font-weight: 400; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-r a.nl:hover { color: var(--ocean); }
.nav-wa { display: inline-flex; align-items: center; gap: 7px; background: var(--wa); color: #fff; padding: 9px 20px; border-radius: 8px; font-size: .85rem; font-weight: 400; text-decoration: none; transition: opacity .2s; }
.nav-wa:hover { opacity: .88; }

/* 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); }

/* 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 */
.blog-hero { max-width: 1140px; margin: 0 auto; padding: 120px 24px 32px; }
.blog-hero h1 { font-size: 2.6rem; color: var(--deep); margin-bottom: 16px; letter-spacing: -0.5px; }
.blog-hero p { color: var(--muted); font-size: 1.05rem; max-width: 600px; }

.blog-list { max-width: 1140px; margin: 0 auto; padding: 24px 24px 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.blog-card { background: #fff; border-radius: var(--r); padding: 28px; border: 1px solid rgba(0,0,0,.05); transition: transform .3s, box-shadow .3s; text-decoration: none; color: inherit; display: block; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.08); }
.blog-card .meta { font-size: .76rem; font-weight: 400; color: var(--ocean); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.blog-card h2 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--deep); margin-bottom: 10px; line-height: 1.25; }
.blog-card p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.blog-card .read { display: inline-block; margin-top: 14px; font-size: .85rem; color: var(--coral); font-weight: 500; }

/* 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; }
}
