/*
Theme Name: Observability Africa
Theme URI: https://observabilityafrica.org/
Author: Observability Africa
Description: A fast, accessible editorial theme for Observability Africa.
Version: 1.4.0
Text Domain: observability-africa
*/

:root {
  --oa-ink: #102033;
  --oa-muted: #526476;
  --oa-line: #dce5ec;
  --oa-soft: #f3f7f9;
  --oa-brand: #086f83;
  --oa-brand-dark: #064c5b;
  --oa-accent: #e8a027;
  --oa-white: #fff;
  --oa-radius: 14px;
  --oa-shadow: 0 12px 35px rgba(16, 32, 51, .08);
  --oa-width: 1180px;
  --oa-reading: 740px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--oa-ink); background: var(--oa-white); font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oa-brand); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--oa-brand-dark); }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--oa-ink); font-weight: 750; line-height: 1.16; letter-spacing: -.025em; }
h1 { font-size: clamp(2.25rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0 0 1.35em; }
:focus-visible { outline: 3px solid var(--oa-accent); outline-offset: 3px; }
.oa-wrap { width: min(calc(100% - 40px), var(--oa-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.oa-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--oa-line); backdrop-filter: blur(12px); }
.admin-bar .oa-header { top: 32px; }
.oa-header-row { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.oa-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--oa-ink); text-decoration: none; font-size: 1.08rem; font-weight: 800; white-space: nowrap; }
.oa-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--oa-brand); font-weight: 850; }
.oa-nav { margin-left: auto; }
.oa-nav ul { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.oa-nav a { color: var(--oa-ink); font-size: .92rem; font-weight: 680; text-decoration: none; }
.oa-nav a:hover { color: var(--oa-brand); }
.oa-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; color: #fff; background: var(--oa-brand); font-weight: 750; text-decoration: none; cursor: pointer; }
.oa-button:hover { color: #fff; background: var(--oa-brand-dark); }
.oa-button--ghost { color: var(--oa-brand); background: transparent; border: 1px solid var(--oa-brand); }
.oa-button--ghost:hover { color: #fff; }
.oa-menu-toggle { display: none; margin-left: auto; padding: 8px; border: 0; background: transparent; color: var(--oa-ink); font-size: 1.6rem; }

.oa-hero { padding: clamp(70px, 9vw, 125px) 0 80px; background: linear-gradient(135deg, #eff8f9 0%, #fff 56%, #fff7e8 100%); border-bottom: 1px solid var(--oa-line); }
.oa-eyebrow { display: inline-block; margin-bottom: 18px; color: var(--oa-brand); font-size: .78rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.oa-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; gap: clamp(42px, 7vw, 90px); }
.oa-hero h1 { max-width: 900px; }
.oa-hero-copy { max-width: 720px; color: var(--oa-muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.oa-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.oa-hero-card { padding: 30px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: rgba(255,255,255,.84); box-shadow: var(--oa-shadow); }
.oa-hero-card p { color: var(--oa-muted); }

.oa-section { padding: 80px 0; }
.oa-section--soft { background: var(--oa-soft); }
.oa-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.oa-section-head p { max-width: 600px; margin: 0; color: var(--oa-muted); }
.oa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.oa-card { overflow: hidden; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: #fff; box-shadow: 0 7px 24px rgba(16,32,51,.05); }
.oa-card-media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #d9e9ec; }
.oa-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.oa-card:hover .oa-card-media img { transform: scale(1.025); }
.oa-card-body { padding: 24px; }
.oa-card h3 { font-size: 1.28rem; }
.oa-card h3 a { color: var(--oa-ink); text-decoration: none; }
.oa-card h3 a:hover { color: var(--oa-brand); }
.oa-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-bottom: 12px; color: var(--oa-muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.oa-excerpt { color: var(--oa-muted); font-size: .98rem; line-height: 1.62; }
.oa-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.oa-topic { min-height: 190px; padding: 28px; border-radius: var(--oa-radius); color: #fff; background: var(--oa-brand-dark); text-decoration: none; }
.oa-topic:nth-child(2) { background: #214968; }
.oa-topic:nth-child(3) { background: #79551c; }
.oa-topic h3, .oa-topic p { color: #fff; }
.oa-topic p { margin: 0; opacity: .82; }

.oa-newsletter { padding: 52px; border-radius: 22px; color: #fff; background: var(--oa-ink); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
.oa-newsletter h2, .oa-newsletter p { color: #fff; }
.oa-newsletter p { max-width: 680px; margin: 0; opacity: .78; }

.oa-value-grid, .oa-deliverables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.oa-value-grid article, .oa-deliverables article { padding: 30px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: #fff; box-shadow: 0 7px 24px rgba(16,32,51,.045); }
.oa-value-grid article > span { display: inline-block; margin-bottom: 18px; color: var(--oa-accent); font-weight: 850; }
.oa-value-grid p, .oa-deliverables p { margin: 0; color: var(--oa-muted); }
.oa-centered-action { margin-top: 34px; text-align: center; }
.oa-service-hero { padding: clamp(72px, 10vw, 130px) 0 88px; background: linear-gradient(135deg, #eaf6f7 0%, #fff 58%, #fff5df 100%); border-bottom: 1px solid var(--oa-line); }
.oa-service-hero .oa-hero-copy { max-width: 800px; }
.oa-proof-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.oa-proof-row span { padding: 8px 13px; border: 1px solid #bcd5db; border-radius: 999px; color: var(--oa-brand-dark); background: rgba(255,255,255,.7); font-size: .9rem; font-weight: 700; }
.oa-audit-split { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.oa-checklist { padding: 0; margin: 0; list-style: none; }
.oa-checklist li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--oa-line); }
.oa-checklist li::before { position: absolute; left: 0; content: "✓"; color: var(--oa-brand); font-weight: 900; }
.oa-process { counter-reset: audit-step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.oa-process article { counter-increment: audit-step; padding: 26px; border-radius: var(--oa-radius); background: var(--oa-soft); }
.oa-process article::before { content: "0" counter(audit-step); display: block; margin-bottom: 16px; color: var(--oa-brand); font-weight: 850; }
.oa-service-cta { padding: clamp(42px, 7vw, 72px); border-radius: 24px; color: #fff; background: var(--oa-ink); text-align: center; }
.oa-service-cta h2, .oa-service-cta p { color: #fff; }
.oa-service-cta p { max-width: 720px; margin: 0 auto 25px; opacity: .8; }
.oa-contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.oa-contact-card { padding: 34px; border: 1px solid var(--oa-line); border-radius: var(--oa-radius); background: #fff; box-shadow: var(--oa-shadow); }
.oa-contact-card label { color: var(--oa-ink); font-weight: 700; }
.oa-contact-card input, .oa-contact-card textarea, .oa-contact-card select { width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid #bac8d2; border-radius: 8px; font: inherit; }
.oa-contact-card input[type="submit"] { width: auto; padding: 12px 22px; border: 0; border-radius: 999px; color: #fff; background: var(--oa-brand); font-weight: 750; cursor: pointer; }
.oa-contact-points { padding: 0; list-style: none; }
.oa-contact-points li { padding: 10px 0; border-bottom: 1px solid var(--oa-line); color: var(--oa-muted); }
.oa-scorecard-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 42px; border: 1px solid #c8dde1; border-radius: 20px; background: linear-gradient(120deg, #eaf6f7, #fff); }
.oa-scorecard-band p { max-width: 700px; margin: 0; color: var(--oa-muted); }
.oa-scorecard-grid { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(42px, 8vw, 100px); align-items: start; }
.oa-scorecard-list { columns: 2; gap: 32px; padding-left: 20px; color: var(--oa-muted); }
.oa-scorecard-list li { break-inside: avoid; margin-bottom: 12px; }
.oa-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.oa-package { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--oa-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(16,32,51,.06); }
.oa-package--featured { border: 2px solid var(--oa-brand); box-shadow: 0 16px 44px rgba(8,111,131,.15); }
.oa-package-badge { position: absolute; top: 0; right: 24px; padding: 7px 12px; border-radius: 0 0 9px 9px; color: #fff; background: var(--oa-brand); font-size: .72rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.oa-package-kicker { display: block; margin-bottom: 10px; color: var(--oa-brand); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.oa-package h3 { margin-bottom: 12px; }
.oa-package-price { margin: 0; color: var(--oa-ink); font-size: 2.1rem; font-weight: 850; line-height: 1.1; }
.oa-package-price span { font-size: .78rem; color: var(--oa-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.oa-package-timeline { margin: 7px 0 20px; color: var(--oa-brand-dark); font-size: .88rem; font-weight: 750; }
.oa-package > p:not(.oa-package-price):not(.oa-package-timeline):not(.oa-package-note) { color: var(--oa-muted); }
.oa-package ul { padding-left: 20px; margin-bottom: 22px; }
.oa-package li { margin-bottom: 8px; }
.oa-package-note { padding-top: 17px; margin-top: auto; border-top: 1px solid var(--oa-line); color: var(--oa-muted); font-size: .88rem; }
.oa-package .oa-button { align-self: flex-start; margin-top: 3px; }
.oa-pricing-footnote { max-width: 920px; margin: 24px auto 0; color: var(--oa-muted); font-size: .86rem; text-align: center; }

.oa-content-shell { width: min(calc(100% - 40px), 980px); margin-inline: auto; }
.oa-article-header { padding: 72px 0 36px; text-align: center; }
.oa-article-header h1 { max-width: 900px; margin-inline: auto; font-size: clamp(2.3rem, 5.5vw, 4.25rem); }
.oa-dek { max-width: 760px; margin: 20px auto 0; color: var(--oa-muted); font-size: 1.22rem; line-height: 1.55; }
.oa-featured { margin: 0 auto 54px; border-radius: 18px; overflow: hidden; }
.oa-featured img { width: 100%; max-height: 600px; object-fit: cover; }
.oa-prose { width: min(100%, var(--oa-reading)); margin-inline: auto; font-size: 18px; line-height: 1.76; }
.oa-prose h2 { margin-top: 2.1em; font-size: 1.75rem; }
.oa-prose h3 { margin-top: 1.9em; }
.oa-prose li { margin-bottom: .55em; }
.oa-prose blockquote { margin: 2em 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--oa-accent); color: var(--oa-muted); font-size: 1.15em; }
.oa-prose a { font-weight: 620; }
.oa-article-cta { margin: 55px auto; padding: 34px; border-radius: var(--oa-radius); background: var(--oa-soft); }
.oa-author { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin: 60px auto; padding-top: 34px; border-top: 1px solid var(--oa-line); }
.oa-author img { width: 112px; height: 112px; object-fit: cover; object-position: 50% 28%; border-radius: 50%; }
.oa-author p { margin: 0; color: var(--oa-muted); }

.oa-logo { display: block; width: 235px; height: 70px; object-fit: cover; object-position: center; }
.oa-author-page-head { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: center; }
.oa-author-page-head > img { width: 180px; height: 180px; object-fit: cover; object-position: 50% 28%; border-radius: 24px; }
.oa-author-page-head p { max-width: 720px; color: var(--oa-muted); }

.oa-archive-head { padding: 70px 0 25px; }
.oa-pagination { margin-top: 45px; }
.oa-pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.oa-pagination a, .oa-pagination span { min-width: 42px; padding: 8px 12px; border: 1px solid var(--oa-line); border-radius: 8px; text-align: center; text-decoration: none; }

.oa-footer { margin-top: 80px; padding: 56px 0 24px; color: #cbd7df; background: #0c1a2a; }
.oa-footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.oa-footer h2, .oa-footer h3 { color: #fff; }
.oa-footer p { max-width: 520px; }
.oa-footer ul { padding: 0; margin: 0; list-style: none; }
.oa-footer a { color: #dce9ef; text-decoration: none; }
.oa-footer a:hover { color: #fff; }
.oa-copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .86rem; }

@media (max-width: 900px) {
  .admin-bar .oa-header { top: 46px; }
  .oa-menu-toggle { display: block; }
  .oa-header .oa-button { display: none; }
  .oa-nav { position: absolute; display: none; top: 100%; left: 0; right: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--oa-line); }
  .oa-nav.is-open { display: block; }
  .oa-nav ul { align-items: stretch; flex-direction: column; gap: 5px; }
  .oa-nav a { display: block; padding: 10px; }
  .oa-hero-grid, .oa-newsletter { grid-template-columns: 1fr; }
  .oa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oa-topics { grid-template-columns: 1fr; }
  .oa-value-grid, .oa-deliverables { grid-template-columns: 1fr; }
  .oa-audit-split { grid-template-columns: 1fr; }
  .oa-contact-layout { grid-template-columns: 1fr; }
  .oa-scorecard-grid { grid-template-columns: 1fr; }
  .oa-scorecard-band { grid-template-columns: 1fr; }
  .oa-process { grid-template-columns: repeat(2, 1fr); }
  .oa-packages { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .oa-wrap, .oa-content-shell { width: min(calc(100% - 30px), var(--oa-width)); }
  .oa-header-row { min-height: 66px; }
  .oa-brand { font-size: .98rem; }
  .oa-hero { padding: 62px 0; }
  .oa-hero-card { padding: 24px; }
  .oa-section { padding: 58px 0; }
  .oa-section-head { align-items: start; flex-direction: column; }
  .oa-grid { grid-template-columns: 1fr; }
  .oa-card h3 { font-size: 1.35rem; }
  .oa-newsletter { padding: 30px 24px; }
  .oa-article-header { padding-top: 54px; }
  .oa-dek { font-size: 1.08rem; }
  .oa-featured { margin-bottom: 38px; }
  .oa-prose { font-size: 17px; line-height: 1.72; }
  .oa-author { grid-template-columns: 1fr; }
  .oa-logo { width: 190px; height: 58px; }
  .oa-author-page-head { grid-template-columns: 1fr; }
  .oa-process { grid-template-columns: 1fr; }
  .oa-scorecard-list { columns: 1; }
  .oa-footer { margin-top: 56px; }
  .oa-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
