:root {
  --bg: #FBF7F2;
  --bg-alt: #F3ECE2;
  --card: #FFFFFF;
  --ink: #1B2A6B;          /* navy — headings */
  --ink-soft: #2C3550;
  --body: #4A4A55;
  --muted: #8A8A95;
  --line: #ECE3D6;
  --accent: #00A99D;        /* teal */
  --accent-dk: #00867D;
  --magenta: #E6007E;       /* secondary */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(27, 42, 107, 0.08);
  --shadow-sm: 0 4px 16px rgba(27, 42, 107, 0.06);
  --display: 'Poppins', system-ui, sans-serif;
  --font: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* contain the off-canvas mobile nav */
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
a { color: var(--accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1rem; }
img { max-width: 100%; display: block; }
.container { width: min(1140px, 92%); margin: 0 auto; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 58px; width: auto; display: block; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
.nav-toggle, .nav-burger { display: none; }
.brand-petals { display: inline-grid; grid-template-columns: repeat(4, 7px); gap: 3px; transform: rotate(-8deg); }
.brand-petals i { width: 7px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--c); display: block; }
.brand-petals i:nth-child(5),.brand-petals i:nth-child(6),.brand-petals i:nth-child(7){ height: 11px; }
.brand-word { font-family: var(--display); font-weight: 700; letter-spacing: .5px; line-height: 1; display: flex; flex-direction: column; }
.brand-word b { font-size: 1.05rem; color: var(--ink); display: inline; }
.brand-word b.brand-mag { color: var(--magenta); }
.brand-word > b { display: inline; }
.brand-word { flex-direction: row; align-items: baseline; gap: 1px; flex-wrap: wrap; }
.brand-word em { width: 100%; font-style: normal; font-size: .58rem; letter-spacing: 3px; color: var(--accent); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent-dk); text-decoration: none; }
.nav a.active { color: var(--accent-dk); }
.nav-cta { background: var(--accent); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--accent-dk); text-decoration: none; }

/* Journal cards */
.journal-grid { align-items: stretch; }
.article-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s; text-decoration: none; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.article-thumb { position: relative; aspect-ratio: 4 / 3; background: #f0e9df; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb .badge { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; }
.article-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.article-body h3 { font-size: 1.12rem; margin: .1rem 0; }
.article-body p { margin: 0; font-size: .92rem; }
.article-meta { color: var(--muted); font-size: .82rem; margin-top: auto; }
.chip { align-self: flex-start; background: rgba(0,169,157,.12); color: var(--accent-dk); border-radius: 999px; padding: .15rem .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }

/* Article page */
.article-wrap { max-width: 760px; }
.article-head { margin: .5rem 0 1.2rem; }
.article-head h1 { margin: .5rem 0; }
.article-media { margin-bottom: 1.6rem; }
.article-content { font-size: 1.06rem; line-height: 1.75; }
.article-content h2 { font-size: 1.4rem; margin: 1.6rem 0 .6rem; }
.article-content h3 { font-size: 1.15rem; margin: 1.3rem 0 .5rem; }
.article-content ul { padding-left: 1.2rem; }
.article-content li { margin: .3rem 0; }
.more-articles { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--display); font-weight: 600; padding: .8rem 1.6rem; border-radius: 999px; cursor: pointer; border: 0; transition: .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); text-decoration: none; }
.btn-ghost { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-mag { background: var(--magenta); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0; background:
  radial-gradient(120% 90% at 85% 0%, rgba(0,169,157,.10), transparent 55%),
  radial-gradient(90% 80% at 5% 100%, rgba(230,0,126,.07), transparent 50%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero .eyebrow { color: var(--accent-dk); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.15rem; max-width: 34ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; border: 1px solid var(--line); }
.hero-card h3 { color: var(--ink); }
.stat-row { display: flex; gap: 1.5rem; margin-top: 1rem; }
.stat b { font-family: var(--display); color: var(--accent-dk); font-size: 1.6rem; display: block; }

/* ---------- Sections ---------- */
section.block { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.block.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.2rem; }
.section-head p { color: var(--body); }
.eyebrow { color: var(--accent-dk); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .78rem; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: .18s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,169,157,.12); color: var(--accent-dk); margin-bottom: .9rem; font-size: 1.3rem; }
.card h3 { font-size: 1.2rem; }
.price-tag { display: inline-block; margin-top: .6rem; font-family: var(--display); font-weight: 600; color: var(--magenta); }

/* ---------- Founders ---------- */
.founder { display: flex; gap: 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.founder .avatar { flex: 0 0 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--ink)); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }

/* ---------- Testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.quote .stars { color: #F5B301; letter-spacing: 2px; margin-bottom: .5rem; }
.quote p { font-size: 1rem; }
.quote .by { font-family: var(--display); color: var(--ink); font-weight: 600; margin-top: .6rem; }

/* ---------- Feed ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.post-card { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; background: #ddd; aspect-ratio: 1; box-shadow: var(--shadow-sm); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.post-card:hover img { transform: scale(1.05); }
.post-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(27,42,107,.78)); opacity: 0; transition: .2s; display: flex; align-items: flex-end; padding: .9rem; color: #fff; font-size: .85rem; }
.post-card:hover .overlay { opacity: 1; }
.post-card .badge { position: absolute; top: .6rem; right: .6rem; background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; padding: .15rem .55rem; font-size: .72rem; }
.post-meta { display: flex; gap: 1rem; color: var(--muted); font-size: .85rem; }
.post-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.post-meta svg, .article-meta svg, .badge svg { vertical-align: middle; }
.badge { display: inline-flex; align-items: center; gap: .3rem; }
.ico svg { width: 24px; height: 24px; }

/* ---------- Post detail ---------- */
.post-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }

/* Gallery / carousel */
.gallery { position: sticky; top: 90px; }
.gallery-stage { position: relative; background: #f0e9df; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-slide { display: none; }
.gallery-slide.is-active { display: block; }
.gallery-slide img, .gallery-slide video { width: 100%; display: block; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.gallery-nav:hover { background: #fff; }
.gallery-nav.prev { left: .6rem; }
.gallery-nav.next { right: .6rem; }
.gallery-counter { position: absolute; top: .6rem; right: .6rem; background: rgba(27,42,107,.78); color: #fff; border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; }
.gallery-dots { display: flex; gap: .4rem; justify-content: center; margin-top: .8rem; flex-wrap: wrap; }
.gallery-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; }
.gallery-dot.is-active { background: var(--accent); }
.tag { display: inline-block; background: rgba(0,169,157,.1); color: var(--accent-dk); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; margin: 0 .3rem .3rem 0; }
.whitespace { white-space: pre-wrap; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); max-width: 560px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; color: var(--ink-soft); margin-bottom: .35rem; font-size: .92rem; }
.field input, .field textarea, .field select { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: none; }
.form-msg.ok { background: rgba(0,169,157,.12); color: var(--accent-dk); display: block; }
.form-msg.err { background: rgba(230,0,126,.1); color: var(--magenta); display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--body); margin-top: 3rem; padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand { max-width: 38ch; }
.footer-logo { height: 84px; width: auto; display: block; margin-bottom: .9rem; }
.footer-brand .muted { color: var(--muted); }
.footer-col h4 { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink); margin: 0 0 .9rem; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: var(--ink-soft); font-size: .95rem; }
.footer-col a:hover { color: var(--accent-dk); }
.footer-bottom { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: .82rem; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.lead { font-size: 1.1rem; }
.pill-row { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }

@media (max-width: 880px) {
  .hero-grid, .post-detail { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feed-grid { grid-template-columns: 1fr 1fr; }

  /* Mobile-first hamburger nav */
  /* IMPORTANT: drop backdrop-filter here — it makes the header a containing block for the
     position:fixed menu, trapping it inside the header bar. */
  .site-header { backdrop-filter: none; background: var(--bg); }
  .brand-logo { height: 42px; }
  .nav-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; cursor: pointer; padding: 10px; position: relative; z-index: 70; }
  .nav-burger span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

  /* dim backdrop behind the panel */
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(20,32,79,0); pointer-events: none; transition: background .22s ease; z-index: 58; }
  .nav-toggle:checked ~ .nav-overlay { background: rgba(20,32,79,.45); pointer-events: auto; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: min(82vw, 300px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: -14px 0 44px rgba(27,42,107,.20);
    padding: 4.75rem 0 2rem; transform: translateX(100%); transition: transform .24s ease; z-index: 60;
    overflow-y: auto;
  }
  .nav a { padding: 1rem 1.5rem; font-size: 1.05rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.active { background: var(--bg-alt); color: var(--accent-dk); text-decoration: none; }
  .nav a.nav-cta { margin: 1.25rem 1.5rem 0; padding: .85rem 1rem; text-align: center; border-bottom: 0; border-radius: 999px; background: var(--accent); color: #fff !important; }
  .nav a.nav-cta:hover { background: var(--accent-dk); }
  .nav-toggle:checked ~ .nav { transform: translateX(0); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
.nav-overlay { display: none; }
.footer-inner { /* tablet */ }
@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feed-grid, .journal-grid { grid-template-columns: 1fr 1fr; }
  .container { width: 92%; }
  h1 { font-size: 1.9rem; }
  .gallery { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
