/* Cloudtria blog theme. Tokens follow cloudtria/brand (tokens/tokens.css) and cloudtria.com. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); }

:root {
  --ct-midnight: #01052d;
  --ct-indigo: #020c6a;
  --ct-blue: #0276db;
  --ct-blue-dark: #0263bb;
  --ct-aqua: #47ebe0;
  --ct-mint: #5efca1;
  --ct-grey-50: #f7f8fb;
  --ct-grey-100: #eef0f5;
  --ct-grey-200: #dde1ea;
  --ct-grey-400: #9aa1b4;
  --ct-grey-600: #5b6278;
  --ct-grey-800: #2a2f45;
  --ct-gradient-aurora: linear-gradient(135deg, #0276db 0%, #47ebe0 55%, #5efca1 100%);
  --ct-gradient-night: linear-gradient(135deg, #01052d 0%, #020c6a 100%);
  /* Ghost Design settings can override these with custom fonts. */
  --font-display: var(--gh-font-heading, "Poppins", "Segoe UI", system-ui, sans-serif);
  --font-body: var(--gh-font-body, "Inter", "Segoe UI", system-ui, -apple-system, sans-serif);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(1 5 45 / 5%), 0 1px 3px rgb(1 5 45 / 6%);
  --shadow-md: 0 8px 24px rgb(1 5 45 / 10%);
  --content-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ct-grey-800); font: 400 17px/1.7 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ct-blue); }
a:hover { color: var(--ct-blue-dark); }
h1, h2, h3, h4 { color: var(--ct-midnight); font-family: var(--font-display); font-weight: 700; line-height: 1.25; }
:focus-visible { outline: 2px solid var(--ct-blue); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: calc(var(--content-width) + 48px); }
.container--wide { max-width: 1100px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border: 2px solid transparent; border-radius: 999px; font: 600 15px/1.2 var(--font-display); text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.button--primary { background: var(--ct-blue); color: #fff; }
.button--primary:hover { background: var(--ct-blue-dark); color: #fff; }
.button--ghost { border-color: var(--ct-blue); color: var(--ct-blue); background: transparent; }
.button--ghost:hover { background: var(--ct-blue); color: #fff; }
.button--link { background: none; color: var(--ct-grey-600); text-decoration: underline; padding: 11px 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: #fff; cursor: pointer; }
.icon-button:hover { background: rgb(255 255 255 / 10%); }

.eyebrow { display: inline-block; color: var(--ct-blue); font: 600 12px/1.4 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.eyebrow--light { color: var(--ct-aqua); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ct-midnight); color: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-header__logo img { width: 132px; }
.site-nav { flex: 1; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 8px; color: #dbe2f3; font: 500 15px/1.2 var(--font-body); text-decoration: none; }
.site-nav a:hover, .site-nav .nav-current a { color: #fff; background: rgb(255 255 255 / 8%); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-header__toggle { display: none; }

/* Hero */
.hero { background: var(--ct-gradient-night); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgb(71 235 224 / 18%), transparent 65%); pointer-events: none; }
.hero--compact { padding: 48px 0 52px; }
.hero__title { color: #fff; font-size: clamp(30px, 4.5vw, 46px); margin: 10px 0 12px; max-width: 820px; }
.hero__text { color: #c7d0e6; font-size: 19px; max-width: 680px; margin: 0; }
.author-hero { display: flex; align-items: center; gap: 24px; }
.author-hero__image { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

/* Featured post and cards */
.feature-post { margin: -40px 0 40px; position: relative; z-index: 1; }
.feature-post__link { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); color: inherit; text-decoration: none; }
.feature-post__image { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.feature-post__body { padding: 36px; }
.feature-post__title { font-size: 30px; margin: 8px 0 12px; }
.feature-post__link:hover .feature-post__title { color: var(--ct-blue); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin: 40px 0; }
.post-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ct-grey-200); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.post-card__link:hover { border-color: #7dc0f0; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__image--blank { background: var(--ct-gradient-aurora); opacity: .85; }
.post-card__body { padding: 20px 22px 22px; }
.post-card__title { font-size: 20px; margin: 6px 0 8px; }
.post-card__excerpt { margin: 0 0 10px; color: var(--ct-grey-600); font-size: 15.5px; line-height: 1.6; }
.post-card__meta { margin: 0; color: var(--ct-grey-400); font-size: 14px; }
.empty { margin: 48px 0; color: var(--ct-grey-600); }

/* Pagination (Ghost's {{pagination}} helper) */
.pagination { display: flex; align-items: center; justify-content: space-between; margin: 0 0 48px; color: var(--ct-grey-600); font-size: 15px; }
.pagination a { font-weight: 600; text-decoration: none; }

/* Article */
.article__header { padding-top: 56px; }
.article__crumbs { margin: 0 0 12px; font-size: 14px; }
.article__crumbs a { color: var(--ct-grey-600); text-decoration: none; }
.article__crumbs a:hover { color: var(--ct-blue); }
.article__title { font-size: clamp(32px, 5vw, 48px); margin: 0 0 16px; }
.article__lead { margin: 0 0 16px; color: var(--ct-grey-600); font-size: 21px; line-height: 1.55; }
.article__meta { margin: 0 0 32px; color: var(--ct-grey-400); font-size: 15px; }
.article__meta a { color: var(--ct-grey-800); font-weight: 600; text-decoration: none; }
.article__image { margin: 0 auto 40px; }
.article__image img { width: 100%; border-radius: var(--radius); }
.article__image figcaption { margin-top: 8px; color: var(--ct-grey-400); font-size: 14px; text-align: center; }
.article__tags { margin: 24px 0 0; color: var(--ct-grey-600); font-size: 14px; }
.article__tags a { display: inline-block; margin: 0 6px 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--ct-grey-100); color: var(--ct-grey-800); text-decoration: none; }

/* Post content: Ghost's editor output */
.gh-content { display: grid; grid-template-columns: [full-start] minmax(24px, 1fr) [wide-start] minmax(0, 150px) [main-start] min(var(--content-width), calc(100% - 48px)) [main-end] minmax(0, 150px) [wide-end] minmax(24px, 1fr) [full-end]; }
.gh-content > * { grid-column: main-start / main-end; }
.gh-content > .kg-width-wide { grid-column: wide-start / wide-end; }
.gh-content > .kg-width-full { grid-column: full-start / full-end; }
.gh-content > .kg-width-full img { width: 100%; }
.gh-content > * + * { margin-top: 1.4em; margin-bottom: 0; }
.gh-content h2 { font-size: 30px; margin-top: 1.8em; }
.gh-content h3 { font-size: 23px; margin-top: 1.6em; }
.gh-content p, .gh-content li { font-size: 18px; line-height: 1.75; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: .4em; }
.gh-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ct-aqua); color: var(--ct-grey-600); font-style: italic; }
.gh-content code { padding: 2px 6px; border-radius: 6px; background: var(--ct-grey-100); font: 15px var(--font-mono); }
.gh-content pre { overflow-x: auto; padding: 18px 20px; border-radius: 10px; background: var(--ct-midnight); color: #e6ecff; font: 14.5px/1.6 var(--font-mono); }
.gh-content pre code { padding: 0; background: none; color: inherit; }
.gh-content figure img { border-radius: 10px; }
.gh-content figcaption { margin-top: 8px; color: var(--ct-grey-400); font-size: 14px; text-align: center; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--ct-grey-200); text-align: left; }
.gh-content hr { border: 0; border-top: 1px solid var(--ct-grey-200); margin: 2.4em 0; }

/* Call to action, related posts and subscribe */
.post-cta { margin: 48px 0 0; padding: 32px; border-radius: var(--radius); background: var(--ct-gradient-night); color: #c7d0e6; }
.post-cta h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.post-cta p { margin: 0 0 20px; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.post-cta .button--ghost { border-color: #fff; color: #fff; }
.post-cta .button--ghost:hover { background: #fff; color: var(--ct-midnight); }
.related { margin-top: 64px; }
.related h2 { font-size: 24px; margin: 0; }
.subscribe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin: 56px 0 72px; padding: 32px 36px; border: 1px solid var(--ct-grey-200); border-radius: var(--radius); background: var(--ct-grey-50); }
.subscribe h2 { margin: 0 0 6px; font-size: 24px; }
.subscribe p { margin: 0; max-width: 560px; color: var(--ct-grey-600); }
.subscribe__form { flex: 1 1 320px; }

/* Footer */
.site-footer { background: var(--ct-midnight); color: #aab6d3; font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 32px 48px; padding-top: 56px; padding-bottom: 40px; }
.site-footer__nav ul { columns: 3 180px; column-gap: 32px; }
.site-footer__nav li { break-inside: avoid; margin: 0 0 8px; }
.site-footer__nav li + li { margin-top: 0; }
.site-footer__brand img { width: 140px; margin-bottom: 12px; }
.site-footer h2 { margin: 6px 0 12px; color: #fff; font-size: 15px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: #dbe2f3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 14px; }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer__legal li + li { margin-top: 0; }

/* Cookie consent banner (same as cloudtria.com) */
.ct-consent { position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; max-width: 440px; padding: 20px 22px; background: #fff; color: var(--ct-grey-800); border-radius: 12px; box-shadow: 0 12px 40px rgb(15 23 42 / 22%); font-size: 15px; line-height: 1.5; }
.ct-consent[hidden], .ct-consent [hidden] { display: none !important; }
.ct-consent__title { margin: 0 0 6px; font-size: 17px; }
.ct-consent__text { margin: 0 0 12px; }
.ct-consent__choices { margin: 0 0 12px; }
.ct-consent__choice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; cursor: pointer; }
.ct-consent__choice input { margin-top: 4px; flex: none; }
.ct-consent__choice strong { display: block; }
.ct-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ct-consent__actions .button { padding: 9px 16px; font-size: 14px; }

/* Narrow screens */
@media (max-width: 900px) {
  .feature-post__link { grid-template-columns: 1fr; }
  .feature-post__image { min-height: 0; aspect-ratio: 16 / 9; }
  .feature-post__body { padding: 24px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .site-header__toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 72px; display: none; background: var(--ct-midnight); border-top: 1px solid rgb(255 255 255 / 10%); padding: 8px 16px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .hero { padding: 48px 0 56px; }
  .post-cta, .subscribe { padding: 24px; }
}
@media (max-width: 575px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .ct-consent { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 12px 12px 0 0; padding: 16px; }
  .ct-consent__actions .button--primary { flex: 1 1 40%; }
  .ct-consent-open .woot--bubble-holder, .ct-consent-open .woot-widget-bubble { visibility: hidden !important; }
}
