/* Chez DuBois Travels — static site styles
   Palette mirrors the former Wix site: muted green, brick, sand/rose. */

:root {
  --green: #4a6560;
  --green-dark: #253330;
  --green-header: #5c7a72;
  --brick: #5b2f2c;
  --rose: #d6bcba;
  --sand: #e6d1be;
  --paper: #ffffff;
  --bg: #faf8f5;
  --ink: #2b2b2b;
  --muted: #6f6f6f;
  --rule: #e5e0da;
  --shadow: 0 2px 10px rgba(37, 51, 48, .08), 0 8px 30px rgba(37, 51, 48, .06);
  --wrap: 1100px;
  --sans: "Questrial", "Century Gothic", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--brick); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--paper); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  background: var(--green-header);
  color: var(--sand);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-1 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.brand-2 { font-family: var(--sans); font-size: 1.32rem; letter-spacing: .04em; }
.site-nav { display: flex; gap: 22px; font-family: var(--sans); font-size: 1.05rem; }
.site-nav a { color: var(--sand); text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--sand); color: #fff; }

/* ---------- hero + welcome card ---------- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: flex-start;
  background: var(--green-dark);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero); background-size: cover; background-position: center 60%;
  filter: saturate(.9) brightness(.82);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(37,51,48,.15), rgba(37,51,48,.55));
}
.welcome-card {
  position: relative; z-index: 2;
  margin: 46px 20px;
  background: var(--paper);
  border: 6px solid var(--brick);
  padding: 22px 26px 26px;
  width: min(330px, calc(100% - 40px));
  box-shadow: var(--shadow);
  text-align: center;
}
.welcome-photo { width: 100%; border: 3px solid var(--sand); margin-bottom: 16px; }
.welcome-card h1 { font-family: var(--sans); color: var(--green); font-weight: 400;
  font-size: 2rem; margin: 0 0 4px; letter-spacing: .02em; }
.welcome-tag { margin: 0 0 14px; color: var(--muted); font-family: var(--sans); }
.welcome-link { font-family: var(--sans); color: var(--brick); text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.welcome-link:hover { color: var(--green); }

/* ---------- home body ---------- */
.home-body { padding-block: 40px 56px; }
.home-body > p:first-child { font-size: 1.18rem; }

.recent { margin-top: 44px; }
.recent h2, .blog-index h1, .home-body h2 {
  font-family: var(--sans); font-weight: 400; color: var(--green-dark);
  letter-spacing: .02em;
}
.recent h2 { font-size: 1.7rem; margin: 0 0 22px; padding-bottom: 8px; border-bottom: 2px solid var(--rule); }
.more-link { margin-top: 26px; font-family: var(--sans); }

/* ---------- card grid ---------- */
.card-grid {
  display: grid; gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.card-media { display: block; aspect-ratio: 4 / 3; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.card-title { font-family: var(--sans); font-size: 1.2rem; color: var(--green-dark); line-height: 1.3; }
.card-date { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-excerpt { font-size: .96rem; color: #4a4a4a; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- blog index ---------- */
.blog-index { padding-block: 44px 60px; }
.blog-index h1 { font-size: 2.3rem; margin: 0 0 4px; }
.blog-count { color: var(--muted); margin: 0 0 30px; font-family: var(--sans); }

/* ---------- post ---------- */
.post { padding-block: 34px 60px; max-width: 760px; }
.post-back { font-family: var(--sans); font-size: .95rem; margin: 0 0 14px; }
.post-back a { text-decoration: none; }
.post-head h1 {
  font-family: var(--sans); font-weight: 400; color: var(--green-dark);
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: .01em;
}
.post-meta { color: var(--muted); font-family: var(--sans); font-size: .92rem;
  letter-spacing: .05em; text-transform: uppercase; margin: 0 0 26px; }
.post-cover { margin: 0 0 30px; }
.post-cover img { width: 100%; border-radius: 6px; }

.post-body { font-size: 1.09rem; }
.post-body > p { margin: 0 0 1.3em; }
.post-body h2 {
  font-family: var(--sans); font-weight: 400; color: var(--green);
  font-size: 1.5rem; margin: 1.8em 0 .7em; letter-spacing: .01em;
}
.post-body h3 { font-family: var(--sans); font-weight: 400; color: var(--green); font-size: 1.22rem; margin: 1.6em 0 .6em; }
.post-body a { color: var(--brick); }
.post-body ul, .post-body ol { margin: 0 0 1.3em; padding-left: 1.4em; }
.post-body li { margin: .3em 0; }
.post-body blockquote {
  margin: 1.5em 0; padding: .4em 0 .4em 1.1em;
  border-left: 4px solid var(--sand); color: #444; font-style: italic;
}

.post-body figure { margin: 1.8em 0; }
.post-body figure.post-image img { width: 100%; border-radius: 6px; }
.post-body figcaption {
  margin-top: 8px; font-size: .88rem; color: var(--muted);
  font-family: var(--sans); text-align: center;
}
.post-video { width: 100%; border-radius: 6px; margin: 1.8em 0; background: #000; }

/* galleries */
.gallery { display: grid; gap: 10px; margin: 1.8em 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; aspect-ratio: 1 / 1; }
.gallery figcaption { display: none; }
.gallery-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-4 { grid-template-columns: repeat(2, 1fr); }
.gallery-5, .gallery-6, .gallery-7, .gallery-8, .gallery-9,
.gallery-10, .gallery-11, .gallery-12, .gallery-13, .gallery-14, .gallery-15,
.gallery-16, .gallery-17, .gallery-18, .gallery-19, .gallery-20 {
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 700px) {
  .gallery-4 { grid-template-columns: repeat(4, 1fr); }
}

.post-foot { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-family: var(--sans); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: .95rem; }
.post-nav a { text-decoration: none; max-width: 46%; }
.pn-next { text-align: right; margin-left: auto; }

/* lightbox (progressive; JS adds .has-lightbox) */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(20,26,24,.92);
  display: flex; align-items: center; justify-content: center; z-index: 200;
  padding: 20px; cursor: zoom-out;
}
.lb-overlay img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 10px 60px rgba(0,0,0,.5); }
.lb-overlay[hidden] { display: none; }
.has-lightbox .gallery img, .has-lightbox .post-image img { cursor: zoom-in; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--green-dark); color: #cfd8d4;
  padding-block: 30px; margin-top: 40px; text-align: center;
  font-family: var(--sans); font-size: .95rem;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--sand); }
.footer-sub { opacity: .8; font-size: .88rem; }

.error-page { padding-block: 80px; text-align: center; }
.error-page h1 { font-family: var(--sans); font-weight: 400; color: var(--green-dark); font-size: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 62px; gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-2 { font-size: 1.1rem; }
  .site-nav { gap: 14px; font-size: 1rem; }
  .hero { min-height: 380px; }
  .welcome-card { margin: 28px auto; }
  .post-nav { flex-direction: column; }
  .post-nav a { max-width: 100%; }
  .pn-next { text-align: left; }
}
