/* SIMPLEFOLIO EXACT MATCH — image above text, smaller fonts */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

:root{
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #0b0c15;
  --muted: #5b6472;
  --border: #e5e7eb;
  --brand: #111827;
  --link: #0b57d0;
  --accent: #22c55e;
  --radius: 12px;
  --container: 1040px;
  --shadow: 0 4px 12px rgba(15,23,42,.06);

  /* SMALLER TYPOGRAPHY - More like reference */
  --step--1: clamp(0.75rem, calc(0.7rem + 0.1vw), 0.8rem);
  --step-0: clamp(0.875rem, calc(0.85rem + 0.15vw), 0.95rem);
  --step-1: clamp(1rem, calc(0.95rem + 0.25vw), 1.125rem);
  --step-2: clamp(1.25rem, calc(1.15rem + 0.5vw), 1.5rem);
  --step-3: clamp(1.5rem, calc(1.3rem + 1vw), 2.2rem);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height:1.5;
  font-size: var(--step-0);
}

img{max-width:100%; display:block; border-radius: calc(var(--radius) - 2px);}
a{color: var(--link); text-decoration: none}
a:hover{text-decoration: underline}
p{color: var(--text);}

.container{max-width: var(--container); padding: 0 24px; margin: 0 auto}
.readable{max-width: 65ch}

.skip-link{position:absolute; left:-9999px}
.skip-link:focus{position:static; background:#000; color:#fff; padding:4px 8px}

.site-header{
  position: sticky; top:0; z-index:10;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex; align-items:center; justify-content:space-between; min-height:60px}
.brand{font-family: Manrope, sans-serif; font-weight:700; font-size: var(--step-1); color: var(--text)}
.nav-links{display:flex; gap:24px; list-style:none; padding:0; margin:0}
.nav-links a{color: var(--text); opacity:.8; font-weight:500; font-size: var(--step--1)}
.nav-links a:hover{opacity:1}

/* HERO SECTION - Image ABOVE text */
.hero.light{
  padding: 80px 0 60px;
  border-bottom:1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* Triangular pyramid shape in bottom-right */
.hero.light::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 300px;
  height: 200px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(11, 87, 208, 0.15) 100%);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

/* Circular shadow under the avatar, creeping to the left */
.hero-media::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 144px;
  height: 144px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(11, 87, 208, 0.15) 100%);
  border-radius: 50%;
  transform: translate(-30px, -10px);
  z-index: -1;
}

.hero-grid{
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 2;
}

/* Profile image at the TOP */
.hero-media{
  margin: 32px 0;
  order: -1; /* Force image to appear first */
  position: relative;
}

.avatar{
  border-radius: 9999px; 
  width: 144px; 
  height: 144px; 
  object-fit: contain; 
  box-shadow: var(--shadow); 
  border: 3px solid #fff; 
  margin: 0;
}

/* Text content below image */
.hero-copy{
  /* This comes after the image */
}

.eyebrow{
  display: none;
}

h1{
  font-family: Manrope, sans-serif; 
  font-size: var(--step-3); 
  line-height: 1.2; 
  margin: 0 0 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lede{
  font-size: var(--step-1); 
  color: var(--muted); 
  max-width: 50ch; 
  line-height: 1.5; 
  margin: 32px 0;
}

.actions{
  display: flex; 
  gap: 12px; 
  margin-top: 0;
  flex-wrap: wrap;
}

.btn{
  display: inline-block; 
  padding: 12px 24px; 
  border-radius: 999px; 
  background: var(--brand); 
  color: #fff; 
  font-weight: 600; 
  box-shadow: var(--shadow); 
  border: 1px solid #0f172a;
  font-size: var(--step-0);
  transition: all 0.2s ease;
}

.btn:hover{
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(15,23,42,.1);
}

.btn.ghost{
  background: var(--accent); 
  color: var(--text); 
  border: 1px solid var(--accent); 
  box-shadow: none;
}

.btn.ghost:hover{
  background: #16a34a;
  color: #fff;
}

.status-label{
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
  font-size: 11px;
  font-weight: 500;
  cursor: default;
  line-height: 1;
}

/* SECTIONS */
.section{padding: 60px 0}
.section.alt{background: var(--bg-alt); border-top:1px solid var(--border); border-bottom:1px solid var(--border)}

.section-head h2{font-size: var(--step-2); margin:0 0 12px; font-weight:700; font-family: Manrope, sans-serif}
.section-head p{margin:0 0 32px; color: var(--muted); font-size: var(--step-0)}

/* WORK SAMPLES GRID */
.samples-grid{display:grid; gap:24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))}
.sample-card{
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.sample-card:hover{transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,23,42,.06)}
.sample-image{
  height: 160px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight:500;
  overflow: hidden;
}
.sample-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sample-content{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sample-card h3{margin:0 0 8px; font-size: var(--step-1); font-weight:600}
.sample-card p{margin:0 0 12px; color: var(--muted); font-size: var(--step--1); line-height:1.4}
.sample-card a{color: var(--link); font-weight:500; font-size: var(--step--1)}

/* Push action links to bottom of cards */
.sample-content a:last-child {
  margin-top: auto;
}

/* TESTIMONIALS */
.testimonials-grid{display:grid; gap:32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 48px}
.testimonial{display:flex; gap:16px; align-items:flex-start}
.testimonial-avatar{flex-shrink:0}
.testimonial-avatar img{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.testimonial-content p{
  margin:0 0 12px;
  font-size: var(--step-0);
  line-height:1.6;
  font-style: italic;
}
.testimonial-content cite{
  font-size: var(--step--1);
  color: var(--muted);
  font-style: normal;
  font-weight:500;
}

/* ABOUT SECTION */
.about-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.about-content{
  max-width: 600px;
}
.about-content h2{
  font-size: var(--step-2);
  margin: 0 0 24px;
  font-weight: 700;
  font-family: Manrope, sans-serif;
}
.about-content p{
  margin: 0 0 20px;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
}
.about-content p:last-child{
  margin-bottom: 0;
}
.about-image{
  flex-shrink: 0;
}
.about-image img{
  width: 280px;
  height: 280px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .about-grid{
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .about-image{
    order: -1;
  }
  .about-image img{
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}

/* POSTS/ARTICLES */
.posts{display:grid; gap:20px}
.post{padding: 16px 0; border-bottom:1px solid var(--border)}
.post:last-child{border-bottom:none}
.post h3, .post h2{margin:0 0 6px; font-size: var(--step-0); font-weight:600}
.meta{color: var(--muted); font-size: var(--step--1); margin-bottom:8px}

.more{margin-top: 20px}

.social{display:flex; gap:12px; list-style:none; margin: 20px 0 0; padding:0; flex-wrap:wrap}
.chip{
  display:inline-block; 
  border:1px solid var(--border); 
  padding:8px 16px; 
  border-radius:999px; 
  color: var(--text);
  font-weight:500;
  font-size: var(--step--1);
  transition: all 0.2s ease;
}
.chip:hover{background: var(--bg-alt); border-color: var(--muted)}

.post-head h1{font-size: var(--step-2); margin:0 0 12px; font-weight:700}
.post-foot{margin-top: 32px}

.site-footer{border-top:1px solid var(--border); padding:32px 0; color: var(--muted); font-size: var(--step--1)}
.footer-grid{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero-grid{max-width: 100%; padding: 0 20px}
  .avatar{width: 128px; height: 128px}
  .samples-grid{grid-template-columns: 1fr; gap: 20px}
  .container{padding: 0 20px}
  .section{padding: 45px 0}

  /* Adjust background shapes for tablet */
  .hero.light::before {
    width: 250px;
    height: 160px;
  }

  /* Adjust circular shadow for medium avatar */
  .hero-media::after {
    width: 128px;
    height: 128px;
    transform: translate(-25px, -8px);
  }

  /* Better tablet spacing */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  /* Tablet navigation improvements */
  .nav-links {
    gap: 20px;
  }

  /* Tablet button improvements */
  .actions {
    gap: 10px;
  }
}

@media (max-width: 640px){
  .avatar{width: 112px; height: 112px}
  .hero.light{padding: 50px 0 30px}
  .section{padding: 32px 0}
  .actions{flex-direction: column; align-items: center; gap: 8px}
  .btn{width: auto; min-width: 180px; font-size: var(--step--1)}
  .nav-links{gap:16px; font-size: 14px}
  .container{padding: 0 16px}
  .hero-grid{padding: 0; max-width: 100%; text-align: center}

  /* Center main content on mobile */
  .hero-copy {
    text-align: center;
  }

  /* Center section headers on mobile */
  .section-head {
    text-align: center;
  }

  /* Resize background shapes for mobile */
  .hero.light::before {
    width: 200px;
    height: 120px;
  }

  /* Hide circular shadow on mobile */
  .hero-media::after {
    display: none;
  }

  /* Improve mobile typography */
  h1 {
    font-size: var(--step-2);
    margin: 0 0 16px;
    line-height: 1.1;
  }

  .lede {
    font-size: var(--step-0);
    margin: 20px 0;
  }

  /* Better mobile spacing */
  .hero-media {
    margin: 20px 0;
  }

  /* Center avatar on mobile only */
  .avatar {
    margin: 0 auto;
  }

  /* Mobile-friendly testimonials */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  /* Improve mobile cards */
  .sample-content {
    padding: 16px;
  }

  .sample-card h3 {
    font-size: var(--step-0);
  }
}

/* Extra small mobile devices */
@media (max-width: 480px){
  .hero.light{padding: 40px 0 24px}
  .section{padding: 24px 0}
  .container{padding: 0 12px}

  /* Enhanced centering for very small screens */
  .hero-grid {
    text-align: center;
  }

  .actions {
    align-items: center;
    justify-content: center;
  }

  /* Very small background shapes */
  .hero.light::before {
    width: 150px;
    height: 100px;
  }

  /* Hide circular shadow on very small mobile */
  .hero-media::after {
    display: none;
  }

  /* Compact typography */
  h1 {
    font-size: var(--step-1);
    margin: 0 0 12px;
  }

  .lede {
    font-size: var(--step--1);
    margin: 16px 0;
  }

  /* Compact avatar */
  .avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  /* Compact hero spacing */
  .hero-media {
    margin: 16px 0;
  }

  /* Compact buttons */
  .btn {
    padding: 10px 20px;
    min-width: 160px;
    font-size: 14px;
  }



  /* Compact navigation */
  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 13px;
  }

  /* Compact testimonials */
  .testimonial {
    gap: 12px;
  }

  .testimonial-avatar img {
    width: 50px;
    height: 50px;
  }

  /* Compact about section */
  .about-image img {
    width: 180px;
    height: 180px;
  }
}

/* ARTICLE PAGE STYLES */
}

.article-image{
  margin: 32px 0;
}

.article-image img{
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Slight spacing below images in article text - constrain to article body width */
.article-body .article-image-spaced {
  margin-bottom: 16px;
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

.article-header h1{
  font-family: Manrope, sans-serif;
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--text);
}

.article-meta{
  color: var(--muted);
  font-size: var(--step--1);
  margin: 0;
  font-weight: 500;
}

.article-content{
  padding: 60px 0;
}

.article-body{
  max-width: 700px;
  margin: 0 auto;
}

.article-body h2{
  font-family: Manrope, sans-serif;
  font-size: var(--step-1);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text);
}

.article-body h3{
  font-family: Manrope, sans-serif;
  font-size: var(--step-0);
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body p{
  margin: 0 0 20px;
  line-height: 1.6;
}

.article-body ul, .article-body ol{
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body li{
  margin-bottom: 8px;
  line-height: 1.5;
}

.article-footer{
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article-footer p{
  color: var(--muted);
  font-size: var(--step-0);
}

/* Ensure article image is truly 100% width */
.article-body .article-image {
  width: 100%;
  margin: 32px 0;
}

.article-body .article-image img {
  width: 100% !important;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Force image to be 100% width of content area */
.article-image {
  width: 100% !important;
  margin: 32px 0 !important;
  padding: 0 !important;
}

.article-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Override for spaced images - 5px right indent */
.article-body img.article-image-spaced {
  max-width: 695px !important;  /* 5px less than article-body (700px) */
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin-left: 0 !important;
  margin-right: 5px !important;
  display: block !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow) !important;
}
