*, *::before, *::after { box-sizing: border-box; }

:root {
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --bg: #f3f2ec;
  --bg-soft: #ecebe4;
  --card-cream: #fbfaf4;
  --card-dark: #111111;
  --green: #c5e866;
  --green-bright: #d4f378;
  --green-ink: #7a9c2f;
  --text: #111111;
  --text-muted: #5a5a55;
  --text-dim: #858580;
  --border: #e3e1d8;
  --border-strong: #d2d0c4;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--green-ink); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 760px; }

/* Header — see GLOBAL NAV section at bottom of file */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #111; }
.btn-primary:hover { background: var(--green-bright); transform: translateY(-1px); }
.btn-dark { background: #111; color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* Hero / page header */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(197, 232, 102, 0.28), transparent 50%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.breadcrumb {
  display: flex;
  gap: 6px;
  justify-content: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { color: var(--text-dim); }
.page-hero .eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green-ink);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 0 auto 16px;
  max-width: 800px;
}
.page-hero .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.page-hero .meta span + span::before { content: '·'; margin: 0 8px; color: var(--border-strong); }

/* Article content */
article.post {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
article.post > * + * { margin-top: 26px; }
article.post h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin-top: 48px;
  margin-bottom: 16px;
}
article.post h3 {
  font-size: 1.4rem;
  margin-top: 36px;
  margin-bottom: 12px;
}
article.post p {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.72;
}
article.post a {
  color: var(--green-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
article.post a:hover { color: #5e7a22; }
article.post ul, article.post ol {
  padding-left: 1.25em;
  font-size: 1.06rem;
}
article.post li { margin-bottom: 8px; line-height: 1.7; }
article.post strong { font-weight: 600; }

/* Post images */
figure.post-image {
  margin: 36px auto;
  max-width: 460px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.3), 0 4px 12px -4px rgba(0, 0, 0, 0.1);
}
figure.post-image img {
  width: 100%;
  height: auto;
  display: block;
}
figure.post-image figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-muted);
  padding: 14px 20px;
  background: var(--card-cream);
  border-top: 1px solid var(--border);
  text-align: center;
  line-height: 1.3;
}

/* Hero image for posts (landscape-crop of reel frames) */
figure.post-hero-img {
  margin: 8px auto 40px;
  max-width: 760px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.35);
}
figure.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

@media (max-width: 720px) {
  figure.post-image { max-width: 100%; }
  figure.post-hero-img { border-radius: var(--radius-md); aspect-ratio: 4 / 3; }
}

/* Highlight callout */
.callout {
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 32px 0;
}
.callout p { margin: 0; }
.callout strong { color: var(--text); }

/* Table */
.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-cream);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
table.compare th, table.compare td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
table.compare th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.08rem;
  background: var(--bg-soft);
}
table.compare tr:last-child td { border-bottom: none; }
table.compare td:first-child { font-weight: 500; }

/* CTA block at end of post */
.post-cta {
  margin: 48px auto 0;
  max-width: 760px;
  padding: 40px 32px;
  background: var(--card-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(197, 232, 102, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(197, 232, 102, 0.08), transparent 50%);
}
.post-cta > * { position: relative; }
.post-cta .eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--green);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.post-cta h3 {
  font-size: 1.8rem;
  margin: 0 0 12px;
}
.post-cta p { color: rgba(255,255,255,0.75); margin: 0 0 22px; }

/* Related posts */
.related {
  max-width: 1140px;
  margin: 60px auto 0;
  padding: 40px 24px 0;
  border-top: 1px solid var(--border);
}
.related h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-card {
  display: block;
  padding: 26px 24px;
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s var(--ease);
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}
.related-card .cat {
  font-size: 0.78rem;
  color: var(--green-ink);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  line-height: 1.2;
}

/* Blog index */
.blog-list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s var(--ease);
  min-height: 240px;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.blog-card:nth-child(3n+1) {
  background: var(--green);
  border-color: var(--green);
}
.blog-card:nth-child(3n+2) {
  background: var(--card-dark);
  color: #fff;
  border-color: var(--card-dark);
}
.blog-card .cat {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  opacity: 0.75;
}
.blog-card h2 {
  font-size: 1.7rem;
  margin: 0 0 12px;
  line-height: 1.15;
}
.blog-card p {
  margin: 0 0 20px;
  opacity: 0.85;
  flex: 1;
}
.blog-card .read {
  font-size: 0.88rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
footer {
  background: var(--bg-soft);
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.foot a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--text); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 720px) {
  .related-grid { grid-template-columns: 1fr; }
  article.post { padding: 24px 24px 60px; }
  .post-cta { padding: 32px 24px; }
}


/* ===== GLOBAL NAV ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(243, 242, 236, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border, #e3e1d8); }
.site-header .nav { display: flex; align-items: center; height: 76px; gap: 32px; }
.site-header .logo { font-family: var(--font-display, Georgia, serif); font-size: 1.7rem; letter-spacing: -0.02em; flex: none; text-decoration: none; color: inherit; }
.site-header .logo em { font-style: italic; color: inherit; }
.site-header .nav-links { display: flex; gap: 28px; align-items: center; flex: 1; justify-content: flex-start; margin: 0 0 0 12px; padding: 0; }
.site-header .nav-links a { font-size: 0.94rem; color: var(--text-muted, #5a5a55); text-decoration: none; transition: color 0.2s var(--ease, cubic-bezier(0.33,1,0.68,1)); }
.site-header .nav-links a:hover, .site-header .nav-links a.active { color: var(--text, #111); }
.site-header .nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.site-header .nav-login { padding: 10px 18px; font-size: 0.88rem; font-weight: 500; min-height: 40px; background: transparent; color: var(--text, #111); border: 1px solid var(--border-strong, #d2d0c4); }
.site-header .nav-login:hover { border-color: var(--text, #111); }
.site-header .nav-book { padding: 12px 22px; font-size: 0.94rem; }
.site-header .mobile-toggle { display: none; }
.site-header .mobile-toggle .close { display: none; }
.site-header.menu-open .mobile-toggle .open { display: none; }
.site-header.menu-open .mobile-toggle .close { display: block; }
.site-header .nav-drawer-access { display: none !important; }
body.menu-open-lock { overflow: hidden; }

@media (max-width: 960px) {
  .site-header { background: var(--bg, #f3f2ec); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header .nav { gap: 10px; }
  .site-header .nav-links { display: none; }
  .site-header .nav-login { display: none; }
  .site-header .nav-actions { margin-left: auto; }
  .site-header .mobile-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; border: 1px solid var(--border-strong, #d2d0c4);
    color: var(--text, #111); background: transparent; cursor: pointer;
  }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: var(--bg, #f3f2ec); padding: 32px 24px 40px;
    z-index: 40; overflow-y: auto;
    animation: navMenuSlide 0.22s var(--ease, cubic-bezier(0.33,1,0.68,1));
  }
  .site-header.menu-open .nav-links a {
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.7rem; color: var(--text, #111); padding: 18px 0;
    border-bottom: 1px solid var(--border, #e3e1d8); text-align: left;
  }
  .site-header.menu-open .nav-links a:last-child { border-bottom: none; }
  .site-header.menu-open .nav-drawer-access {
    display: inline-flex !important; justify-content: center;
    margin-top: 20px !important; padding: 18px !important;
    border: 1px solid var(--border-strong, #d2d0c4); border-radius: 999px !important;
    font-family: var(--font-body, sans-serif) !important; font-size: 1rem !important;
    font-weight: 500; background: transparent; color: var(--text, #111); text-align: center;
  }
}
@keyframes navMenuSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ===== /GLOBAL NAV ===== */
