/* ==== Global Reset & Font Setup ==== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
  }
  
  body {
    font-family: 'Lato', 'Montserrat', 'Epilogue', 'Helvetica Neue', Arial, sans-serif;
    font-size: 19.5px;
    background: #fff;
    color: #222;
    line-height: 1.6;
  }

:root { --nav-h: 80px; }
  
  /* ==== Headings ==== */
  h1, h2 {
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
    font-weight: 780;
    color: black;
  }
  h1 {
    font-size: 45px;
  }
  h2 {
    font-size: 36px;
  }
  
  /* ==== Navigation Styles ==== */
nav {
    background: #ffffff;
    color: #000;
    position: fixed;
    z-index: 10;
    height: 80px;
    width: 100%;
    box-shadow: 5px 5px 0 #000;
  }
  label.logo {
    display: inline-block;
    height: 80%;
    padding: 0 20px;
  }
label.logo img {
    margin: 10px 0 0 10px;
    height: 90%;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
  }
label.logo img.active,
label.logo img:hover {
  filter: drop-shadow(2px 2px 0 #585858);
  transition: filter 0.3s ease;
}
  nav ul {
    float: right;
    margin-right: 20px;
  }
  nav ul li {
    display: inline-block;
    line-height: 80px;
    margin: 0 10px;
  }
nav ul li a {
    color: rgb(0, 0, 0);
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
    font-weight: 780;
    font-size: 30px;
    transition: color .5s;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.15);
  }
  nav ul li a.active,
  nav ul li a:hover {
   filter: drop-shadow(2px 2px 0 #969696);
  transition: filter 0.3s ease;
}
  .checkbtn {
    font-size: 200%;
    color: #000;
    float: right;
    line-height: 80px;
    margin: 20px 40px 0 0;
    cursor: pointer;
    display: none;
  }
  #check { display: none; }
  
  /* ==== Responsive Navigation ==== */
/*  @media (max-width: 952px) {
    label.logo { font-size: 30px; padding-left: 50px; }
    nav ul li a { font-size: 16px; }
  } */
  @media (max-width: 1000px) {
    nav {
      height: 80px;
    }
    .checkbtn { display: block; margin: 0 40px 0 0; }
    nav ul {
      position: fixed;
      width: 100%;
      height: 100vh;
      background: #ffffff;
      top: 80px;
      left: -100%;
      text-align: center;
      transition: all 0.5s;
    }
    nav ul li {
      display: block;
      margin: 12vw 0;
      line-height: 12vw;
    }
    nav ul li a { font-size: 2.2rem; }
    nav ul li a:hover, nav ul li a.active { color: #656565; background: none; }
    #check:checked ~ ul { left: 0; }
  }
  
/* Modern Responsive Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 7rem 2rem;
    max-width: 1400px;
    margin: 0 auto 0 auto;
  }
  
  .portfolio-item {
    background: #fff;
    color: #000;
    border: 3px solid #000;
    border-radius: 18px;
    box-shadow: 5px 5px 0 #000;
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
  }
  
  .portfolio-item a {
    color: inherit;
    text-decoration: none;
    display: block;
  }
  
  .portfolio-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.22s;
  }
  
  .portfolio-info {
    padding: 1.2rem 1rem 1.5rem 1rem;
    text-align: left;
  }
  
  .portfolio-info h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
    color: #1e2746;
  }

.portfolio-item a:hover .portfolio-info h2::after {
  margin-left: 10px;
}
  .portfolio-desc {
    font-size: 1rem;
    color: #646c86;
    margin: 0;
  }
  .portfolio-desc span {
    display: inline-block;
    color: #6665ee;
    font-size: 0.95em;
    margin-left: 0.6em;
  }
.portfolio-arrow {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 1.2rem;
  color: #000;
  transition: transform 0.2s ease;
}

.portfolio-item:hover .portfolio-arrow {
  transform: translateX(4px); /* subtle motion on hover */
}
  /* Hover effect with more info */
  .portfolio-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 6px 30px rgba(90,90,160,0.16);
  }
  .portfolio-item:hover img {
    transform: scale(1.05);
  }
  .portfolio-item::after {
    content: '';
    display: block;
    position: absolute; left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg,rgba(102,101,238,0.10) 60%,rgba(255,255,255,0));
    opacity: 0; pointer-events: none;
    transition: opacity 0.23s;
  }
  .portfolio-item:hover::after {
    opacity: 1;
  }
  
   /* Responsive for phones */
   @media (max-width: 1000px) {
    .portfolio-grid {
      grid-template-columns: 1fr;
      gap: 1rem;
      padding: 5rem 1vw;
      margin: 0 1rem 0 1rem;
    }
    .portfolio-item {
      margin-top: 200px;
      margin: 8vw 1vw 1vw 0;
    }
    .portfolio-item img {
      height: 80vw;
      min-height: 90px;
    }
    .portfolio-info h2 {
      font-size: clamp(1.7rem, 4vw, 1.7rem);
    }
    .portfolio-desc {
      font-size: 1.2rem;
    }
  }
  
  /* ==== Slider on Homepage ==== */
  .slider {
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    color: #666;
  }
  .slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
  }
  .slide.current {
    opacity: 1;
  }
  .slide .content {
    position: absolute;
    bottom: 100px;
    left: -600px;
    width: 600px;
    border: 5px solid #000;
    background-color: #fff;
    box-shadow: 5px 5px 0 5px #000;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
    color: #000000;
    padding: 35px;
  }
  .slide .content h1 {
    margin-bottom: 10px;
    color: #000000;
  }
  .slide.current .content {
    opacity: 1;
    transform: translateX(600px);
    transition: all 0.7s ease-in-out 0.3s;
  }
  /* Slider Navigation Buttons */
  .buttons button,
  button#next,
  button#prev {
    background: #fff;
    color: #000;
    border: 3px solid #000;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 0;
    box-shadow: 5px 5px 0 #000;
    position: fixed;
    bottom: 30px;
    z-index: 20;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  button#prev {
    left: 30px;
  }

  button#next {
    right: 30px;
  }

  .buttons button:hover,
  button#next:hover,
  button#prev:hover {
    background: #000;
    color: #fff;
    box-shadow: none;
  }
   /* ==== Slider Background Images ==== */
   .slide:nth-child(1) { background: url('png/frontpage/1.png') no-repeat center center/cover; }
   .slide:nth-child(2) { background: url('png/frontpage/2.png') no-repeat center top/cover; }
   .slide:nth-child(3) { background: url('png/frontpage/3.png') no-repeat center top/cover; }
   .slide:nth-child(4) { background: url('png/frontpage/9.png') no-repeat center top/cover; }
   .slide:nth-child(5) { background: url('png/frontpage/5.png') no-repeat center top/cover; }
   .slide:nth-child(6) { background: url('png/frontpage/6.png') no-repeat center top/cover; }
   .slide:nth-child(7) { background: url('png/frontpage/8.png') no-repeat center top/cover; }
   .slide:nth-child(8) { background: url('png/frontpage/13.png') no-repeat center top/cover; }
   @media(max-width: 1000px) {
     .slide .content {
       bottom: 60px;
       left: 50%;
       transform: translateX(-50%);
       width: 90%;
       max-height: calc(100vh - 140px);
       font-size: 16px;
       padding: 12px 16px;
       border-radius: 0;
       background-color: #fff;
       border: 3px solid #000;
       box-shadow: 4px 4px 0 #000;
       overflow-y: auto;
     }
     .slide h1 {font-size: 30px;}
     .slide.current .content {
       transform: translate(-50%, 0);
     }
     .buttons button,
     button#next,
     button#prev {
       background: #fff;
       color: #000;
       border: 3px solid #000;
       font-weight: 700;
       padding: 12px 15px;
       border-radius: 0;
       box-shadow: 4px 4px 0 #000;
       position: fixed;
       bottom: 20px;
       z-index: 20;
       cursor: pointer;
       transition: all 0.2s ease;
     }

     button#prev {
       left: 20px;
     }

     button#next {
       right: 20px;
     }

     .buttons button:hover,
     button#next:hover,
     button#prev:hover {
       background: #000;
       color: #fff;
       box-shadow: none;
     }
   }

  /* === About me page === */
.about-container {
    max-width: 1400px;
    margin: 0px auto 0 auto;
    background: #fff;
    padding: 8rem 2rem 4rem 2rem;
    gap: 1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    width: 100%;
  }
  .profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
    background: #fff;
  }
  .extra-img {
    width: 500px;
    height: auto;
    border-radius: 5%;
    object-fit: cover;
    border: 3px solid #000;
    box-shadow: 5px 5px 0 #000;
    background: #fff;
  }

  .about-intro {
    flex: 1;
    min-width: 220px;
  }
  .about-intro h2 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
    font-size: 2.1rem;
    color: #000;
    letter-spacing: 0;
  }
  .about-intro p {
    color: #000;
    font-size: 1.12rem;
    line-height: 1.7;
    margin-bottom: 1.3rem;
  }
  .about-btn {
    display: inline-block;
    margin-right: 20px;
    padding: 0.7em 1.7em;
    background: #fff;
    color: #000;
    border-radius: 0;
    border: 3px solid #000;
    font-weight: 600;
    text-decoration: none;
    gap: 1rem;
    letter-spacing: 0.02em;
    box-shadow: 4px 4px 0 #000;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .about-btn:hover {
    background: #000;
    color: #fff;
    box-shadow: none;
  }
  .about-skills {
    width: 100%;
    text-align: center;
    margin: 3rem 0 2.5rem 0;
  }
  .about-skills h3 {
    color: #1e2746;
    font-family: 'Epilogue', sans-serif;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
  }
  .skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 0.8rem;
  }
  .skills-badges span {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 0.48em 1.25em;
    border: 2px solid #000;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 3px 3px 0 #000;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  }
  .skills-badges span:hover {
    background: #000;
    color: #fff;
    box-shadow: none;
  }
  .about-extras {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    color: #6e768e;
  }
  .about-extras h2 {
    color: #1e2746;
    margin-bottom: 0.6rem;
  }

  /* === About: Interactive Diagram sizing === */
.about-container #interactive-topics.kc-card{
  width: 100%;
  max-width: 1350px;   /* make section wide like other blocks */
  margin: 2.2rem auto 3rem auto;
  padding: 1.2rem 1.4rem 1.6rem 1.4rem;
  box-shadow: 5px 5px 0 #000; /* match site style */
  border: 3px solid #000;
  border-radius: 18px;
  /* keep contents from overflowing small viewports */
  --kc-frame-vpad: 1.4rem;
  overflow: visible;
}
.about-container #interactive-topics .kc-diagram{
  display: block;
  width: 100%;
  height: auto;                 /* scale from width, keep ratio */
  aspect-ratio: 849 / 768;      /* native image ratio */
  max-height: calc(100vh - 260px); /* fit on screen incl. nav + paddings */
}

@media (min-width: 1200px){
  .about-container #interactive-topics .kc-diagram{
    max-height: calc(100vh - 50px); /* a bit more room for large headers */
  }
}
@media (max-width: 900px){
  .about-container #interactive-topics.kc-card{
    padding: 0.8rem;             /* tighter padding on phones */
  }
  .about-container #interactive-topics .kc-diagram{
    max-height: 70vh;            /* prioritize fitting on small screens */
  }
}
.about-container #interactive-topics h2,
.about-container #interactive-topics p{
  margin-left: 6px;
}

@media (max-width: 1000px){
  .about-container #interactive-topics.kc-card{
    max-width: 95vw;
    margin: 1.2rem auto 2rem auto;
    padding: 0.8rem 0.8rem 1rem 0.8rem;
  }
}
  
  /* Responsive: Stack vertically on phones */
  @media (max-width: 1000px) {
    .about-hero {
      margin: 13vw 0 0 0;
      flex-direction: column;
      gap: 0;
      align-items: center;
      text-align: center;
    }
    .profile-img,
    .extra-img {
      margin: 0 auto;
      margin-bottom: 20px;
      display: block;
    }
    .about-hero h2 {
      font-size: clamp(1.5rem, 6vw, 2.7rem);
    }
    .about-intro p {
      font-size: 1.15rem;
      margin: 2vw 3vw 3vw 3vw;
    }
    .about-btn {
      margin: 0 2vw 7vw 2vw;
      padding: 0.6em 1.6em;
      font-size: 1.1rem;
      border-radius: 0;
      font-weight: 600;
      max-width: 80vw;
      box-shadow: 4px 4px 0 #000;
    }
    .about-skills {
      margin-bottom: 3rem;
    }
    .about-skills h2 {
      font-size: clamp(1.2rem, 5vw, 2.2rem);
    }
    .skills-badges span {
      display: inline-block;
      background: #fff;
      color: #000;
      padding: 0.7em 1.2em;
      border: 2px solid #000;
      border-radius: 0;
      font-size: 1rem;
      font-weight: 500;
      letter-spacing: 0.02em;
      box-shadow: 3px 3px 0 #000;
      transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    }
    .about-intro {
      min-width: unset;
      margin-bottom: 5vw;
    }
    .profile-img {
      margin: 3.6rem 0 0.6rem 0;
      width: 300px;
      height: 300px;
    }
    .extra-img {
      width: 90vw;
      max-width: 750px;
    }
  }
  @media (max-width: 900px) {
    .about-container {
      padding: 1.2rem 0.3rem 1.2rem 0.3rem;
    }
  }
  /* ==== Case Study (Individual Page) ==== */
  .case-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 2rem 1rem;
    padding-top: 100px;
    background: #ffffff;
    color: #585858;
    line-height: 1.8;
  }
  .case-container header {
    margin-bottom: 2rem;
  }
  .case-container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #222;
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
  }
  .case-container .meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
  }
  .case-container img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1.5rem 0;
  }
  .case-header {
    border-bottom: 2px solid #ffffff;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    background: #ffffff;
    padding: 2rem 1rem 1rem 1rem;
    border-radius: 8px 8px 0 0;
  }
  
  .case-header h1 {
    color: #1a1a1a;
    font-size: 30pt;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  .case-description-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin: 3rem 0;
  background: #f6f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(102,101,238,0.05);
  padding: 2rem;
  align-items: center;
  text-align: center;
}

.case-description-section img {
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(40,40,80,0.08);
  object-fit: cover;
  background: #f8fafc;
  flex-shrink: 0;
}

.case-description-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-description-content h2 {
  font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
  font-size: 2.1rem;
  color: #1e2746;
  margin-bottom: 0.8rem;
}

.case-description-content p {
  color: #4c5377;
  font-size: 1.15rem;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .case-description-section {
    flex-direction: column;
    padding: 1.2rem;
    gap: 1.2rem;
    align-items: stretch;
  }

  .case-description-section img {
    max-width: 100%;
    margin: 0 auto;
  }
  .case-description-content h2 {
    font-size: 1.5rem;
  }
  .case-header h1 {
    font-size: 20pt;
}
}

  .meta {
    font-size: 1rem;
    color: #888;
    letter-spacing: 0.03em;
  }
  
  .back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #6665EE;
    font-size: 1rem;
    text-decoration: none;
  }
  .back-link:hover { text-decoration: underline; }
  
  .result-callout {
    background: #e8f8ee;
    color: #21936a;
    padding: 1rem 1.2rem;
    border-left: 5px solid #21936a;
    margin: 1.5rem 0;
    font-size: 1.15rem;
    border-radius: 4px;
    font-weight: 500;
  }
  
  .case-container img {
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(40,40,80,0.06);
    border: 1px solid #ececec;
  }
  .case-container section {
    margin-bottom: 2.5rem;
  }
  .case-container h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #222;
    font-family: 'Epilogue', sans-serif;
    text-transform: uppercase;
  }

  /* ==== Case Study Image Slider ==== */
  .case-image-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  }

  .case-image-slider .slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
  }

  .case-image-slider img {
    width: 100%;
    flex-shrink: 0;
    object-fit: contain;
    max-height: 500px;
  }

  .case-image-slider .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #000;
    border: 3px solid #000;
    font-weight: 700;
    padding: 14px 18px;
    border-radius: 0;
    box-shadow: 5px 5px 0 #000;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
  }

  .case-image-slider .slider-btn:hover {
    background: #000;
    color: #fff;
    box-shadow: none;
  }

  .case-image-slider .prev {
    left: 15px;
  }

  .case-image-slider .next {
    right: 15px;
  }

  @media (min-width: 900px) {
    .case-container h1 {
      font-size: 3rem;
    }
    .case-container h2 {
      font-size: 3rem;
    }
  }

  .highlighted-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .highlighted-list li {
    background: #dddee2;
    color: #222;
    border-left: 5px solid #6665ee;
    border-radius: 7px;
    padding: 1.1em 1.4em;
    font-size: 1.08em;
    box-shadow: 0 2px 8px rgba(102,101,238,0.04);
    transition: box-shadow 0.2s;
    position: relative;
  }
  .highlighted-list li::before {
    color: #6665ee;
    font-size: 1em;
    margin-right: 0.75em;
    position: absolute;
    left: 1em;
    top: 1.05em;
  }
  @media (max-width: 600px) {
    .highlighted-list li {
      font-size: 1em;
      padding: 1em 1em 1em 2.3em;
    }
  }

  /* ==== Blog index (cards + filters) – matches site style ==== */
/* Uses the same visual language as .portfolio-item /.about-btn (black borders, 5px shadow, 18px radius) */

.blog-controls{
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  display: grid;
  gap: 12px;
}
.blog-controls .filter-pills{
  display:flex; flex-wrap:wrap; gap:.6rem;
}
.blog-controls .pill{
  appearance:none;
  background:#fff; color:#000;
  border:3px solid #000;
  border-radius:0;
  padding:.55em .9em;
  font-family:'Epilogue',sans-serif;
  text-transform:uppercase;
  font-weight:700;
  letter-spacing:.02em;
  box-shadow: 5px 5px 0 #000;
  cursor:pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .06s;
}
.blog-controls .pill[aria-pressed="true"],
.blog-controls .pill:hover{
  background:#000; color:#fff; box-shadow:none;
}
.blog-controls .search{
  display:flex; align-items:center; gap:.6rem;
  background:#fff; border:3px solid #000;
  border-radius:0; padding:.6rem .8rem; box-shadow: 5px 5px 0 #000;
}
.blog-controls .search input{
  flex:1; border:0; outline:0; font-size:1rem; font-family:'Lato',sans-serif;
}

/* Blog list + cards */
.blog-list{
  display:grid;
  grid-template-columns:1fr;
  gap: 1.5rem;
  padding: 2rem 2rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}
.blog-card{
  display:grid;
  grid-template-columns: 360px 1fr;   /* image | content */
  gap: 1rem;
  align-items:center;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border:3px solid #000;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #000;
  padding: 1rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.blog-card:hover{
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 6px 30px rgba(90,90,160,0.16);
}

/* Featured image – match provided image ratio (2:1) */
.blog-card__thumb{
  width:100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 12px;
  background:#f8fafc;
  display:block;
}

.blog-card__title{
  font-family:'Epilogue',sans-serif;
  text-transform:uppercase;
  font-weight:780;
  font-size: 1.35rem;
  color:#000;
  margin: 0 0 .35rem;
  line-height:1.3;
}
.blog-card__excerpt{
  font-family:'Lato',sans-serif;
  color:#646c86;
  margin:.1rem 0 .55rem;
  font-size:1rem;
}
.blog-card__meta{
  display:flex; flex-wrap:wrap; gap:.5rem; align-items:center;
  font-size:.92rem; color:#585858;
}
.badge{
  display:inline-block; background:#fff; color:#000;
  border:2px solid #000; border-radius:0;
  padding:.25em .6em; font-size:.85rem; font-weight:600;
  box-shadow: 3px 3px 0 #000;
}

/* Load more button – same feel as .about-btn */
.load-more{
  display:block; margin: .4rem auto 3rem;
  background:#fff; color:#000; border:3px solid #000;
  border-radius:0; padding:.7em 1.7em; font-weight:600;
  box-shadow: 5px 5px 0 #000; cursor:pointer;
  transition: background .2s, color .2s, box-shadow .2s;
}
.load-more:hover{ background:#000; color:#fff; box-shadow:none; }

/* Breakpoints aligned with site */
@media (max-width: 1000px){
  .blog-controls{ margin: 2rem auto 0; padding: 0 1rem; }
  .blog-list{ padding: 1.2rem 1rem 2rem; gap: 1rem; }
  .blog-card{ grid-template-columns: 1fr; }
}
@media (max-width: 900px){
  .blog-controls{ gap:.5rem; }
}

/* Prevent fixed nav from overlapping content on all pages (incl. blog posts) */
main.container,
.post,
.blog-post { /* legacy wrapper name used in older templates */
  padding-top: calc(var(--nav-h) + 12px);
}

@media (max-width: 1000px){
  main.container,
  .post,
  .blog-post {
    padding-top: calc(var(--nav-h) + 18px);
  }
}

/* ============ ARTICLE LAYOUT ============ */
.post {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 1rem 3rem;
}

html { scroll-padding-top: calc(var(--nav-h) + 10px); }

/* Header block (title + dek + meta) */
.post-header {
  max-width: 900px;
  margin: 4rem auto 1.75rem;
  padding: 0 1rem;
}
.post h1,
.post-header .title,
.blog-post__title {
  font-family: 'Epilogue', sans-serif;
  text-transform: uppercase;
  font-weight: 780;
  font-size: clamp(1.8rem, 5.2vw, 2.6rem);
  line-height: 1.08;
  color: #000;
  margin: 0;
}
.post-header .dek,
.blog-post__excerpt {
  font-family: 'Lato', sans-serif;
  margin-top: 1rem;
  font-size: 1.12rem;
  line-height: 1.75;
  color: #222;
  max-width: 65ch;              /* readable line length */
}

/* Author meta row (avatar, name, date) */
.post-meta,
.blog-post__meta {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  color: #585858;
  font-size: 1rem;
}
.post-meta .author-avatar{
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 48px;
  border: 2px solid #000; box-shadow: none; background: none; object-fit: cover;
}
.post-meta .author-name{ color:#000; font-weight:700; }
.post-meta .byline-sep{ opacity:.5; padding:0 .25rem; }

.post figure {
  max-width: 1100px;
  margin: 1rem auto 1.8rem;
  padding: 0 1rem;
}
.post figure img {
  width: 100%;
  aspect-ratio: 2 / 1;   /* 2:1 hero ratio */
  object-fit: cover;
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #000;
  display: block;
  background: #fff;
}
.post figure figcaption {
  font-size: .9rem;
  color: #585858;
  margin-top: .5rem;
}

/* ============ BODY TYPOGRAPHY ============ */
.post article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
  display: block; /* ensure normal flow so siblings don't visually nest */
}

.post article h1,
.post article h2,
.post article h3 { scroll-margin-top: calc(var(--nav-h) + 10px); }
.post article p {
  font-family: 'Lato', sans-serif;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #222;
  margin: 1rem 0;
}
.post article h2 {
  font-family: 'Epilogue', sans-serif;
  text-transform: uppercase;
  font-weight: 780;
  font-size: 1.35rem;
  color: #000;
  margin: 2rem 0 .5rem;
}
.post article h3 {
  font-family: 'Epilogue', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.18rem;
  color: #000;
  margin: 0.4rem 0 .4rem;
}

.post article h1 { font-size: 1.6rem; line-height: 1.25; }
.post article ul,
.post article ol {
  margin: .6rem 0 1.2rem 1.2rem;
}
.post article li { margin: .35rem 0; }

/* Blockquotes */
.post blockquote {
  border-left: 3px solid #000;
  padding: .75rem 1rem;
  margin: 1.5rem 0;
  background: #fff;
  box-shadow: 5px 5px 0 #000;
}
.post blockquote p { margin: 0; font-style: italic; }

/* Horizontal rule */
.post hr {
  border: 0;
  border-top: 3px solid #000;
  margin: 2.5rem 0;
}

/* ============ TAGS / BADGES (pill look) ============ */
.post-tags { display: flex; flex-wrap: wrap; gap: .6rem; }
.post-tags { margin: 2rem 0 2.25rem; }
.badge {
  display: inline-block;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  padding: .25em .6em;
  font-family: 'Epilogue', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 3px 3px 0 #000;
  text-decoration: none;
}

/* Source block styling */
.sources {
  position: relative;
  background: #f8f8f8;
  padding: 1rem 1.2rem;
  font-size: 0.8rem;
  border-left: 4px solid #000;
  margin: 1.2rem auto; /* reduced and normalized margins */
  max-width: 900px;
  box-shadow: 5px 5px 0 #000;
  border-radius: 12px;
}
.sources h3 {
  font-family: 'Epilogue', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Prefix each source line with a separator */
.sources p::before,
.sources li::before {
  content: "• ";
  opacity: .8;
}
/* If sources are plain paragraphs, give them a tiny spacing */
.sources p { margin: .4rem 0; }
.sources li { margin: .3rem 0; }

/* Tag pill styling */
.tag-pill {
  display: inline-block;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 #000;
  text-transform: uppercase;
  transition: background .2s, color .2s, box-shadow .2s;
  cursor: default;
}
.tag-pill:hover {
  background: #000;
  color: #fff;
  box-shadow: none;
}

/* ============ AUTHOR BOX / CTA ============ */
.author-box {
  margin: 2rem 0 3rem;
  padding: 1rem;
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #000;
}

/* Non-hero images inside body */
.post article img {
  width: 100%;
  margin: 2rem 0;
  height: auto;
  border: 3px solid #000;
  border-radius: 18px;
  box-shadow: 5px 5px 0 #000;
  display: block;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px){
  .post-header { margin: 5rem auto 1.25rem; }
  .post-header .title{ font-size: clamp(1.6rem, 5.4vw, 2.2rem); }
  .post-header .dek{ font-size: 1.05rem; }
  .post-meta{ font-size: .95rem; }
  .post article p { font-size: 1.02rem; }
}
@media (max-width: 600px){
  .post { padding: calc(var(--nav-h) + 1rem) .8rem 2.5rem; }
  .post-header { margin: 4.5rem auto 1.2rem; }
  .post article h2 { font-size: 1.35rem; }
  .post-header{ margin: 4.6rem auto 1rem; }
  .post-meta .author-avatar{ width: 44px; height: 44px; }
}