:root{
    --red:#D8262B; --red-d:#b01d22; --red-dd:#8f1519; --ink:#1a1a1a;
    --paper:#faf6f6; --line:#efe2e2; --muted:#7a7070; --cream:#fff8f7;
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html{scroll-behavior:smooth}
  body{font-family:'Segoe UI','Helvetica Neue',Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased}
  .wrap{max-width:1120px;margin:0 auto;padding:0 32px}
  a{text-decoration:none;color:inherit}
  img{max-width:100%;display:block}
  .eyebrow{font-size:12px;letter-spacing:3px;text-transform:uppercase;color:var(--red);font-weight:800}
  h2{font-size:34px;font-weight:800;letter-spacing:-.6px;line-height:1.1}
  h2 em{color:var(--red);font-style:normal}
  .btn{display:inline-flex;align-items:center;gap:8px;padding:15px 28px;border-radius:8px;font-weight:800;font-size:14px;cursor:pointer;border:none}
  .btn-red{background:var(--red);color:#fff}.btn-red:hover{background:var(--red-d)}
  .btn-white{background:#fff;color:var(--red)}
  .btn-out{border:2px solid #e0cccc;color:var(--ink);background:#fff}.btn-out:hover{border-color:var(--ink)}
  .ph{background:repeating-linear-gradient(45deg,#f3e9e9,#f3e9e9 10px,#ecdede 10px,#ecdede 20px);border:1px dashed #d9c4c4;display:flex;align-items:center;justify-content:center;color:#b09a9a;font-size:11px;text-align:center;padding:12px}


  /* announce bar */
  .announce{background:#1a1a1a;color:#cfd5dd;font-size:12.5px;text-align:center;padding:8px 0;letter-spacing:.3px}
  .announce b{color:#fff}
  header{background:#fff;border-bottom:2px solid var(--red);position:sticky;top:0;z-index:30}
  .nav{display:flex;align-items:center;justify-content:space-between;height:68px}
  .brand img{height:40px;display:block}
  .menu{display:flex;gap:20px}.menu a{font-size:14px;font-weight:600;color:#3a2f2f}.menu a:hover{color:var(--red)}
  .menu a.active{color:var(--red)}
  .nav-cta{background:var(--red);color:#fff;padding:10px 16px;border-radius:7px;font-weight:700;font-size:13px}

  /* page hero — dark red banner (site standard, matches all other pages) */
  .pagehead{position:relative;overflow:hidden;color:#fff;padding:46px 0 50px;
    background:
      linear-gradient(115deg, rgba(143,21,25,.94) 0%, rgba(216,38,43,.82) 45%, rgba(26,26,26,.78) 100%),
      repeating-linear-gradient(135deg,#2a2a2a,#2a2a2a 2px,#242424 2px,#242424 22px),#262626;}
  .pagehead::after{content:"IMAGE: banner background (developer swaps in)";position:absolute;bottom:10px;right:16px;font-size:10px;color:rgba(255,255,255,.35)}
  .pagehead .wrap{position:relative}
  .crumb{font-size:12.5px;color:#ffd9d8;font-weight:600;margin-bottom:18px}
  .crumb a{color:#ffd9d8}.crumb a:hover{color:#fff}
  .crumb b{color:#fff}
  .pagehead .eyebrow{color:#ffd9d8}
  .pagehead h1{font-size:46px;font-weight:800;letter-spacing:-1.1px;line-height:1.04;margin:12px 0 12px}
  .pagehead h1 em{color:#fff;font-style:normal}
  .pagehead p{color:#ffe4e3;font-size:17px;max-width:560px;line-height:1.5}

  /* category filter */
  .filters{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:70px;z-index:20}
  .filters .wrap{display:flex;gap:10px;flex-wrap:wrap;padding:16px 32px;align-items:center}
  .chip{font-size:13px;font-weight:700;color:#5a4f4f;border:1px solid var(--line);background:#fff;border-radius:30px;padding:8px 16px;cursor:pointer;transition:.15s}
  .chip:hover{border-color:var(--red);color:var(--red)}
  .chip.on{background:var(--red);border-color:var(--red);color:#fff}
  .spec-note{margin-left:auto;font-size:12.5px;color:var(--muted)}
  .spec-note a{color:var(--red);font-weight:700}

  /* featured */
  .feat{padding:50px 0 20px}
  .feat-card{display:grid;grid-template-columns:1.15fr 1fr;gap:36px;align-items:center;border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff}
  .feat-card:hover{box-shadow:0 20px 44px -26px rgba(20,25,32,.35)}
  .feat-img{height:349px;position:relative;min-width:0;overflow:hidden}
  .ph.feat-img,.ph.post-img{padding:0;border:0;background:#f7f4f3 url('../images/canco-pattern-bg.jpg') center/cover no-repeat}
  .feat-img img,.post-img img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
  .feat-img .tag{position:absolute;top:16px;left:16px;background:var(--red);color:#fff;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;border-radius:20px;padding:6px 14px}
  .feat-body{padding:14px 40px 14px 0}
  .feat-body .kicker{font-size:12px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:var(--red)}
  .feat-body h3{font-size:28px;font-weight:800;letter-spacing:-.5px;line-height:1.15;margin:12px 0 12px}
  .feat-body p{color:var(--muted);font-size:15.5px;margin-bottom:20px}
  .meta{display:flex;gap:16px;align-items:center;color:#9a8f8f;font-size:12.5px;font-weight:600;margin-bottom:22px;flex-wrap:wrap}
  .meta span{display:flex;align-items:center;gap:6px}
  .readlink{color:var(--red);font-weight:800;font-size:14px}

  /* grid */
  .grid-sec{padding:34px 0 20px}
  .postgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
  .post{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff;transition:.15s;display:flex;flex-direction:column}
  .post:hover{transform:translateY(-4px);box-shadow:0 18px 38px -24px rgba(20,25,32,.32);border-color:#e6d3d3}
  .post-img{height:213px;position:relative;min-width:0;overflow:hidden;}
  .post-img .tag{position:absolute;top:12px;left:12px;background:rgba(216,38,43,.95);color:#fff;font-size:10px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;border-radius:16px;padding:5px 11px}
  .post-body{padding:20px 20px 22px;display:flex;flex-direction:column;flex:1}
  .post-body h4{font-size:17.5px;font-weight:800;letter-spacing:-.3px;line-height:1.25;margin-bottom:9px}
  .post-body p{color:var(--muted);font-size:14px;margin-bottom:16px;flex:1}
  .post .meta{margin-bottom:0;font-size:12px}

  .more{text-align:center;padding:20px 0 8px}

  /* newsletter band */
  .news{background:linear-gradient(115deg,var(--red-dd),var(--red));color:#fff;margin-top:40px}
  .news .wrap{display:grid;grid-template-columns:1.2fr 1fr;gap:30px;align-items:center;padding:48px 32px}
  .news h3{font-size:26px;font-weight:800;letter-spacing:-.5px;margin-bottom:8px}
  .news p{color:#ffe4e3;font-size:15px;max-width:440px}
  .news-form{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
  .news-form input{border:none;border-radius:8px;padding:14px 16px;font-size:14px;min-width:240px;font-family:inherit}
  .news-form input:focus{outline:2px solid #fff}

  /* footer (shared) */
  .site-footer{background:var(--ink);color:#b9b0b0;padding:16px 0}
  .site-footer .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px}
  .site-footer .fl{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
  .site-footer .cpy{color:#fff;font-weight:700}
  .site-footer a{color:#b9b0b0}
  .site-footer a:hover{color:#fff}
  .site-footer .flinks a{margin:0 2px}
  .site-footer .fcontact span{margin-right:14px}
  .site-footer .fsocial{display:flex;gap:8px}
  .site-footer .fsocial a{width:30px;height:30px;border-radius:7px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#fff}
  .site-footer .fsocial a:hover{background:var(--red)}

  @media(max-width:900px){
    .feat-card,.news .wrap{grid-template-columns:1fr}
    .feat-body{padding:0 24px 28px}
    .feat-img{height:240px}
    .postgrid{grid-template-columns:1fr 1fr}
    .news-form{justify-content:flex-start}
    .spec-note{margin-left:0;flex-basis:100%}
    .menu{display:none}
  }
  @media(max-width:760px){
    .postgrid{grid-template-columns:1fr}
    .pagehead h1{font-size:34px}
    .filters{position:static}
    .site-footer .wrap{flex-direction:column;text-align:center;gap:12px}
  }


/* ===== CANONICAL HOMEPAGE HEADER + FOOTER ===== */
.announce{background:#1a1a1a;color:#cfd5dd;font-size:12.5px;text-align:center;padding:8px 0;letter-spacing:.3px}
.announce b{color:#fff}
header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40;box-shadow:0 1px 0 rgba(0,0,0,.02)}
header .wrap{max-width:1200px;margin:0 auto;padding-left:32px;padding-right:32px}
.nav{display:flex;align-items:center;justify-content:space-between;height:100px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:22px;letter-spacing:-.5px}
.brand .mark{width:34px;height:34px;border-radius:8px;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:900}
.brand img{height:70px;max-width:100%;display:block}
.brand-accent{color:var(--red)}
.menu{display:flex;gap:26px;align-items:center}
.menu a{font-size:14.5px;font-weight:600;color:#3a424e}
.menu a:hover,.menu a.active{color:var(--red)}
.menu .drop::after{content:' ▾';color:#9aa3b0;font-size:11px}
.nav-cta{background:var(--red);color:#fff;padding:11px 20px;border-radius:8px;font-weight:700;font-size:14px}
.site-footer{background:#1a1a1a;color:#b9b0b0;padding:16px 0}
.site-footer .wrap{max-width:1200px;margin:0 auto;padding-left:32px;padding-right:32px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:13px}
.site-footer .fl{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.site-footer .cpy{color:#fff;font-weight:700}
.site-footer a{color:#b9b0b0}
.site-footer a:hover{color:#fff}
.site-footer .flinks a{margin:0 2px}
.site-footer .fcontact span{margin-right:14px}
.site-footer .fsocial{display:flex;gap:8px}
.site-footer .fsocial a{width:30px;height:30px;border-radius:7px;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;color:#fff}
.site-footer .fsocial a:hover{background:#D8262B}
@media(max-width:900px){.menu{display:none}}
@media(max-width:760px){.site-footer .wrap{flex-direction:column;text-align:center;gap:12px}}

/* Mobile/tablet: size blog image boxes to the image shape (blog images are ~1220x781) so no empty bars show */
@media(max-width:900px){
  .feat-img,.post-img{height:auto;aspect-ratio:1220/781}
  .feat-img img,.post-img img{object-fit:cover}
}
