/* Martech Hacks — one stylesheet for the whole site */

/* Poppins, served from this site (no requests to Google) */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-400-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/poppins-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/poppins-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/poppins-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/poppins-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/poppins-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --green: #538c61;
  --green-dark: #3d6b49;
  --green-soft: #eef4ef;
  --red: #dd001d;
  --navy: #001d3a;
  --slate: #36434d;
  --ink: #16191c;
  --text: #33383d;
  --muted: #6b7178;
  --line: #e4e6e4;
  --code-bg: #1e2a33;
  --max: 1080px;
  --prose: 740px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.75 "Poppins", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { font-size: 18px; } }
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.3; margin: 1.6em 0 .6em; }
h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 0; }
h2 { font-size: clamp(22px, 2.8vw, 28px); }
h3 { font-size: clamp(19px, 2.2vw, 22px); }
h4 { font-size: 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo { display: block; flex: 0 1 300px; line-height: 0; }
.logo img { width: 100%; max-width: 300px; }
.nav { display: flex; align-items: center; gap: 4px 22px; font-size: 19px; text-transform: lowercase; letter-spacing: .03em; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { color: var(--green); border-bottom-color: var(--green); }
.nav .search-link svg { width: 20px; height: 20px; vertical-align: -3px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; display: block; }
@media (max-width: 820px) {
  .site-header .wrap { min-height: 64px; flex-wrap: wrap; }
  .logo { flex-basis: 220px; }
  .menu-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 0 0 14px; }
  .nav.open { display: flex; }
}

/* ---------- section headings in the "_Heading__" style of the logo ---------- */
.mh-title { text-align: center; font-size: clamp(24px, 3vw, 30px); font-weight: 700; margin: 0 0 28px; color: var(--green); }
.mh-title::before { content: "_"; color: var(--slate); }
.mh-title::after { content: "__"; color: var(--slate); letter-spacing: -5px; }
.section { padding: clamp(36px, 6vw, 64px) 0; }

/* ---------- home ---------- */
.hero { text-align: center; padding-top: clamp(24px, 5vw, 48px); }
.hero img { width: min(420px, 82vw); }
.hero .tagline { font-size: clamp(20px, 2.6vw, 25px); line-height: 1.5; max-width: 760px; margin: 12px auto 0; color: var(--ink); }
.hero .tagline b { color: var(--green); }
.center { text-align: center; }

/* ---------- tag cloud and chips ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 900px; margin: 0 auto; padding: 0; list-style: none; }
.chip { display: inline-block; padding: 3px 12px; border: 1px solid var(--green); border-radius: 999px; color: var(--green-dark); text-decoration: none; font-size: 15px; line-height: 1.6; background: #fff; }
.chip:hover, .chip[aria-pressed="true"], .chip[aria-current] { background: var(--green); color: #fff; }
.chip small { opacity: .7; }
.tag-cloud .w2 { font-size: 16px; } .tag-cloud .w3 { font-size: 18px; font-weight: 600; } .tag-cloud .w4 { font-size: 20px; font-weight: 600; }

/* ---------- post cards (the green-bordered boxes of the old site) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; }
.card { display: flex; flex-direction: column; border: 2px solid var(--green); border-radius: 10px; box-shadow: 10px 10px 8px #ededed; overflow: hidden; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 12px 14px 12px #e4e4e4; }
.card .thumb { display: block; aspect-ratio: 1024 / 668; background: var(--green-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 19px; margin: 0; line-height: 1.35; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--green); }
.card .meta { font-size: 14px; color: var(--muted); }
.card p { font-size: 15px; line-height: 1.6; margin: 0; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; }
.card[hidden] { display: none; }

.btn { display: inline-block; background: var(--green); color: #fff; padding: 10px 26px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--green-dark); color: #fff; }

/* ---------- archive pages ---------- */
.page-head { padding: clamp(28px, 5vw, 48px) 0 8px; }
.page-head p { color: var(--muted); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 30px; }
.filters button { font: inherit; cursor: pointer; }
.year { font-size: 22px; color: var(--slate); margin: 40px 0 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }

/* ---------- single post / page ---------- */
.post-hero { max-width: 1000px; margin: 0 auto; padding: clamp(16px, 3vw, 32px) var(--gutter) 0; }
.post-hero img { display: block; width: 100%; border-radius: 10px; }
.post-head { max-width: var(--prose); margin: 0 auto; padding: 28px var(--gutter) 0; }
.post-head h1 { margin-bottom: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 15px; margin: 0 0 8px; padding: 0; list-style: none; }
.post-meta a { color: var(--muted); }
.post-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; fill: none; stroke: var(--green); stroke-width: 2; }
.prose { max-width: var(--prose); margin: 0 auto; padding: 8px var(--gutter) 40px; overflow-wrap: anywhere; }
.post-head h1 { overflow-wrap: anywhere; hyphens: auto; }
.prose > :first-child { margin-top: 1em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose li { margin-bottom: .45em; }
.prose figure { margin: 1.8em 0; }
.prose figure img, .prose p > img { display: block; margin: 0 auto; }
.prose figcaption, .prose .wp-element-caption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
@media (max-width: 600px) { .prose .alignright, .prose .alignleft { float: none; margin: 1.5em auto; max-width: 100%; } }
.prose .is-style-rounded img { border-radius: 50%; }
.prose .img-post img { box-shadow: 5px 5px 14px -6px rgba(0,0,0,.72); border-radius: 4px; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose .has-large-font-size { font-size: 1.35em; }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2.5em auto; width: 40%; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--green); color: var(--ink); font-style: italic; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 1.5em 0; }
@media (max-width: 700px) { .prose table { display: block; overflow-x: auto; font-size: 15px; } }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose .wp-block-table { overflow-x: auto; margin: 1.5em 0; }
.prose .wp-block-columns { display: flex; gap: 28px; margin: 1.6em 0; align-items: flex-start; }
.prose .wp-block-columns.are-vertically-aligned-center, .prose .is-vertically-aligned-center { align-self: center; }
.prose .wp-block-column { flex: 1 1 0; min-width: 0; }
.prose .wp-block-column > :first-child { margin-top: 0; }
@media (max-width: 700px) { .prose .wp-block-columns { flex-direction: column; } }
.prose .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.prose .wp-block-gallery figure { flex: 1 1 200px; margin: 0; }
.prose .wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; }
.prose .listNumber { font-size: 150%; font-weight: 600; color: var(--red); }
.prose .infobox2 { padding: 20px; border: 2px solid var(--red); border-radius: 10px; box-shadow: 10px 10px 8px #ededed; margin: 1.6em 0; }
.prose .mh-title { text-align: left; font-size: 25px; margin: 1.8em 0 .6em; }
.prose iframe.demo { display: block; border: 0; margin: 1.5em auto; width: 420px; max-width: 100%; height: 650px; border-radius: 10px; box-shadow: 10px 10px 8px #ededed; }
.prose::after { content: ""; display: block; clear: both; }

/* code */
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .86em; background: var(--green-soft); padding: .1em .35em; border-radius: 4px; }
pre { position: relative; background: var(--code-bg); color: #e6edf3; border-radius: 8px; padding: 18px 20px; overflow-x: auto; font-size: 15px; line-height: 1.6; margin: 1.5em 0; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; white-space: pre-wrap; word-break: break-word; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 600 12px/1 "Poppins", sans-serif; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 4px; padding: 6px 9px; cursor: pointer; opacity: .75; }
.copy-btn:hover { opacity: 1; background: var(--green); }

/* end of post */
.post-tags { max-width: var(--prose); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 8px; }
.post-nav { max-width: var(--prose); margin: 36px auto 0; padding: 22px var(--gutter) 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); font-size: 16px; }
.post-nav a { text-decoration: none; color: var(--ink); }
.post-nav a:hover { color: var(--green); }
.post-nav small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.post-nav .next { text-align: right; }
.related { background: #fafbfa; border-top: 1px solid var(--line); margin-top: 48px; }

/* ---------- search ---------- */
.search-box { display: flex; gap: 10px; margin: 18px 0 8px; }
.search-box input { flex: 1; font: inherit; padding: 10px 14px; border: 2px solid var(--green); border-radius: 8px; min-width: 0; }
.search-count { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ---------- legal pages ---------- */
.legal h2 { font-size: 21px; }
.legal p, .legal li { font-size: 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #dfe6ec; margin-top: 64px; padding: 40px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9fd3ab; text-decoration: underline; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.foot-brand img { width: 230px; filter: brightness(0) invert(1); opacity: .95; }
.foot-brand p { margin: 10px 0 0; max-width: 340px; line-height: 1.6; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-transform: lowercase; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: #b8c4cf; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.to-top.show { opacity: .9; pointer-events: auto; }
.to-top:hover { color: #fff; opacity: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .to-top { transition: none; } }
@media print { .site-header, .site-footer, .post-nav, .related, .to-top, .copy-btn { display: none; } pre { white-space: pre-wrap; } }
