/** ===== ABOUT US • BLOCKSY + ELEMENTOR POLISH ===== **/
/* Uses Blocksy palette if present, with sensible fallbacks */
:root{
  --abt-text: var(--paletteColor2, #1b1c1f);
  --abt-muted: var(--paletteColor3, #6b7280);
  --abt-accent: var(--paletteColor1, #1e3a8a);
  --abt-card: var(--paletteColor4, #f7f7f8);
  --abt-border: var(--paletteColor5, #e7e7eb);
}

/* Base wrapper — keeps your existing class */
.ct-custom {
  color: var(--abt-text);
}

/* Preserve your current rules */
.ct-custom.elementor-widget-image-box,
.ct-custom .elementor-widget-container {
  height: 100%;
}
.ct-custom .elementor-widget-container { overflow: hidden; }
.ct-custom .elementor-image-box-content { padding: 0 30px; }

/* ===== Card layout for image boxes ===== */
.ct-custom .elementor-widget-image-box,
.ct-custom .elementor-image-box-wrapper {
  display: flex;
  height: 100%;
}
.ct-custom .elementor-image-box-wrapper {
  flex-direction: column;
  background: var(--abt-card);
  border: 1px solid var(--abt-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover lift */
.ct-custom .elementor-image-box-wrapper:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}

/* ===== Image treatment ===== */
.ct-custom .elementor-image-box-img img {
  display: block;
  width: 100%;
  height: auto;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Optional: enforce aspect ratio for cleaner grid */
.ct-custom .elementor-image-box-img {
  position: relative;
  aspect-ratio: 16/9;          /* change to 4/3 or 1/1 if you prefer */
  overflow: hidden;
}
.ct-custom .elementor-image-box-img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== Text / typography ===== */
.ct-custom .elementor-image-box-title,
.ct-custom .elementor-widget-image-box .elementor-image-box-title {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 14px 0 6px;
  color: var(--abt-text);
}

.ct-custom .elementor-image-box-description {
  color: var(--abt-muted);
  line-height: 1.6;
  margin: 0.25rem 0 0.75rem;
}

/* Links inside cards */
.ct-custom .elementor-image-box-content a {
  color: var(--abt-accent);
  text-decoration: none;
  font-weight: 600;
}
.ct-custom .elementor-image-box-content a:hover { text-decoration: underline; }

/* ===== Buttons (if you add Elementor buttons) ===== */
.ct-custom .elementor-button,
.ct-custom .wp-block-button__link {
  background: var(--abt-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .6rem 1rem;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ct-custom .elementor-button:hover,
.ct-custom .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  filter: saturate(1.06);
}

/* ===== Responsive spacing & grid help ===== */
@media (max-width: 1024px){
  .ct-custom .elementor-image-box-content { padding: 0 22px; }
}
@media (max-width: 768px){
  .ct-custom .elementor-image-box-content { padding: 0 18px; }
  .ct-custom .elementor-image-box-title { font-size: 1.15rem; }
}

/* ===== Optional: section header style (About page H2) ===== */
.ct-custom .about-section-title,
.ct-custom h2.about-title {
  font-family: "Source Serif Pro", Georgia, serif;
  font-weight: 800;
  letter-spacing: .2px;
  border-bottom: 1px solid var(--abt-border);
  padding-bottom: .35rem;
  margin-bottom: 1rem;
}

/* ===== Dark mode (auto, if user prefers) ===== */
@media (prefers-color-scheme: dark){
  :root{
    --abt-text: #e5e7eb;
    --abt-muted: #a1a1aa;
    --abt-card: #181a1c;
    --abt-border: #26282a;
  }
  .ct-custom .elementor-image-box-wrapper { box-shadow: none; }
  .ct-custom .elementor-image-box-content a { color: color-mix(in srgb, var(--abt-text) 25%, var(--abt-accent) 75%); }
}

/* ===== Accessibility: visible focus ===== */
.ct-custom a:focus,
.ct-custom button:focus {
  outline: 3px solid color-mix(in srgb, var(--abt-accent) 70%, white 30%);
  outline-offset: 3px;
}
:root{ --paletteColor1: #1e3a8a; } /* royal blue accent */
/* === Global tokens === */
:root{
  --bg: #0b0e12;           /* deep slate */
  --bg-soft: #11161d;      /* cards */
  --text: #e7ecf2;         /* body */
  --muted: #aab6c4;        /* secondary */
  --accent: #67b8ff;       /* links */
  --accent-2: #7be0b8;     /* buttons alt */
  --border: #1f2a36;
  --maxw: 72ch;            /* ideal reading width */
}
@media (prefers-color-scheme: light){
  :root{--bg:#ffffff;--bg-soft:#f6f8fb;--text:#0e1621;--muted:#4a5567;--accent:#1e6aff;--accent-2:#0db47e;--border:#e6ecf5}
}

/* === Base reset + type scale === */
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--text);font:400 17px/1.7 system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial}
main{display:block}
img{max-width:100%;height:auto;border-radius:12px}
figure{margin:0}

.container{width:min(1120px, 92vw);margin-inline:auto}
.prose{max-width:var(--maxw)}

h1,h2,h3{line-height:1.2;letter-spacing:-0.01em;margin:1.6rem 0 0.8rem}
h1{font-weight:800;font-size:clamp(2rem,3vw,2.6rem)}
h2{font-weight:700;font-size:clamp(1.5rem,2.5vw,2rem)}
h3{font-weight:700;font-size:clamp(1.2rem,2vw,1.4rem)}

p{margin:0.9rem 0}
ul,ol{margin:0.9rem 0 0.9rem 1.4rem}
blockquote{border-left:3px solid var(--accent);padding:0.2rem 1rem;color:var(--muted);margin:1rem 0}
code,pre{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}
pre{background:var(--bg-soft);padding:1rem;border:1px solid var(--border);border-radius:12px;overflow:auto}

/* === Header / nav === */
.site-header{position:sticky;top:0;background:color-mix(in oklab, var(--bg) 90%, transparent);backdrop-filter:saturate(1.2) blur(12px);border-bottom:1px solid var(--border);z-index:50}
.navbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0.8rem 0}
.brand{font-weight:800;letter-spacing:0.02em}
.nav{display:flex;gap:0.8rem;align-items:center}
.nav a{padding:0.5rem 0.75rem;border-radius:10px;color:var(--text);text-decoration:none}
.nav a:hover{background:var(--bg-soft)}

/* Mobile nav */
.nav-toggle{display:none}
@media (max-width:760px){
  .nav{display:none}
  .nav[aria-expanded="true"]{display:flex;flex-direction:column;align-items:flex-start;padding:0.5rem 0}
  .nav-toggle{display:inline-flex;border:1px solid var(--border);background:var(--bg-soft);padding:0.5rem 0.7rem;border-radius:10px}
}

/* === Hero === */
.hero{padding:2.2rem 0 1.6rem;border-bottom:1px solid var(--border)}
.hero h1 strong{background:linear-gradient(90deg,var(--accent),var(--accent-2));-webkit-background-clip:text;color:transparent}
.hero p{color:var(--muted);max-width:70ch}

/* === Cards === */
.grid{display:grid;gap:1rem}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
@media (max-width:1024px){.grid.cols-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:700px){.grid.cols-3{grid-template-columns:1fr}}
.card{background:var(--bg-soft);border:1px solid var(--border);border-radius:16px;padding:1rem;display:flex;flex-direction:column;gap:0.6rem}
.card .meta{font-size:0.85rem;color:var(--muted)}
.card a.title{font-weight:700;text-decoration:none;color:var(--text)}
.card a.title:hover{color:var(--accent)}
.tag{display:inline-block;font-size:0.75rem;border:1px solid var(--border);padding:0.2rem 0.5rem;border-radius:999px;color:var(--muted)}

/* === Buttons === */
.button{display:inline-flex;align-items:center;gap:0.5rem;border:1px solid var(--border);background:linear-gradient(180deg, color-mix(in oklab, var(--bg) 70%, var(--accent) 30%), var(--bg));padding:0.6rem 0.95rem;border-radius:12px;text-decoration:none;color:var(--text)}
.button:hover{border-color:color-mix(in oklab, var(--border) 70%, var(--accent) 30%)}
.button.primary{background:linear-gradient(180deg,var(--accent),color-mix(in oklab,var(--accent) 40%, var(--bg) 60%));color:black}

/* === Footer === */
.site-footer{margin-top:2rem;border-top:1px solid var(--border);padding:1.2rem 0;color:var(--muted);font-size:0.95rem}

/* === Post content quality-of-life === */
.post .prose p{hyphens:auto}
.post img{border:1px solid var(--border)}
.post .toc{background:var(--bg-soft);border:1px solid var(--border);border-radius:12px;padding:0.8rem}
.post .toc h3{margin-top:0}

/* === Accessibility helpers === */
.skip-link{position:absolute;left:-9999px}
.skip-link:focus{left:0;top:0;background:var(--accent);col