 :root {
      /* Page environment */
      --bg-page: #f5f5f7;
      --bg-surface: #ffffff;
      --bg-elevated: #f9fafb;

      --ink: #111111;
      --muted: #6b7280;
      --stroke-soft: #e1e4ec;
      --stroke-subtle: #6b7280;

      /* Neutral accent */
      --brand-accent: #111111;
      --brand-accent-soft: #e5e7eb;

      /* Radii / layout */
      --radius-lg: 22px;
      --radius-md: 16px;
      --radius-sm: 12px;
      --radius-pill: 999px;

      /* Typographic scaling */
      --title-size: clamp(2.5rem, 3.2vw, 3.3rem);
      --title-line: 1.1;
      --section-title-size: clamp(1.6rem, 2.1vw, 2rem);
    }

    /* Base reset */
    * {
      box-sizing: border-box;
    }

    html {
      margin: 0;
      scroll-behavior: smooth;
      -webkit-text-size-adjust: 100%;
    }

    body {
      margin: 0;
      background:
        radial-gradient(circle at top left, rgba(15, 23, 42, 0.03), transparent 55%),
        var(--bg-page);
      color: var(--ink);
      font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      font-size: 16px;
      line-height: 1.7;
      -webkit-font-smoothing: antialiased;
      animation: pageFade 0.35s ease both;
    }

    @keyframes pageFade {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    a {
      color: var(--ink);
      text-decoration: none;
    }

    a:hover {
      opacity: 0.93;
    }

    .wrap {
      max-width: 1100px;
      margin: 0 auto;
      padding-inline: 24px;
    }

    @media (max-width: 640px) {
      .wrap {
        padding-inline: 16px;
      }
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      white-space: nowrap;
      border: 0;
      padding: 0;
      margin: -1px;
    }

    /* Section shell */
    .section {
      padding: 56px 0;
      scroll-margin-top: 84px;
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 0.45s ease, transform 0.45s ease;
      will-change: opacity, transform;
    }

    .section.is-in {
      opacity: 1;
      transform: translateY(0);
    }

    @media (max-width: 640px) {
      .section {
        padding: 46px 0;
      }
    }

    .section + .section {
      margin-top: 35px;
    }

    /* Typography */
    h1,
    h2,
    h3,
    h4,
    .section-title,
    .blog-hero-title,
    .post-title {
      font-family: "Epilogue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }

    p {
      margin: 0 0 1rem;
    }

    /* STICKY TOP BAR */
    .bar {
      background: rgba(245, 245, 247, 0.96);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--stroke-soft);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .bar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 56px;
      padding: 0 16px;
      gap: 10px;
      max-width: 1100px;
      margin: 0 auto;
    }

   /* Logo in top bar (Apple-style) */
.brand-mark{
display:flex;
align-items:center;
justify-content:center;
text-decoration:none;
}


.brand-mark__img{
display:block;
width:28px;
height:28px;
object-fit:contain;
opacity:0.96;
}


/* Slightly smaller on narrow screens */
@media (max-width:768px){
.brand-mark__img{
 width:24px;
 height:24px;
}
.brand-mark{
 margin-left:4px;
}
}

    .meta {
      justify-self: end;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 0.9rem;
      font-variant-numeric: tabular-nums;
      color: var(--muted);
      white-space: nowrap;
    }

    .meta__item {
      white-space: nowrap;
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 0.68rem 1.2rem;
      border-radius: var(--radius-pill);
      border: 0.5px solid transparent;
      font-size: 0.86rem;
      font-weight: 400;
      cursor: pointer;
      background: transparent;
      color: var(--ink);
    }

    /* BLOG FOOTER (from index) */
    .blog-footer {
      padding: 56px 0 32px;
      margin-top: 24px;
    }

    .blog-footer-shell {
      max-width: 1100px;
      margin: 0 auto;
      padding-inline: 24px;
    }

    @media (max-width: 640px) {
      .blog-footer-shell {
        padding-inline: 16px;
      }
    }

    .blog-footer-card {
      border-radius: 26px;
      background: #ffffff;
      border: 1px solid var(--stroke-soft);
      padding: 30px 26px 30px;
    }

    .blog-footer-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 28px;
      margin-bottom: 20px;
      font-size: 0.9rem;
    }

    @media (max-width: 880px) {
      .blog-footer-grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    @media (max-width: 640px) {
      .blog-footer-grid {
        grid-template-columns: 1fr;
      }
    }

    .blog-footer-col p {
      margin: 0 0 10px;
    }

    .blog-footer-title {
      font-family: "Epilogue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      font-size: 0.78rem;
      letter-spacing: 0.22em;
      text-transform: uppercase;
      color: var(--muted);
      margin: 0 0 10px;
    }

    .blog-footer-nav {
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 0.9rem;
    }

    .blog-footer-nav a {
      color: #4b5563;
      text-decoration: none;
      position: relative;
      display: inline-flex;
      align-items: center;
      width: auto;
      max-width: max-content;
    }

    .blog-footer-nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.2s ease;
    }

    .blog-footer-nav a:hover::after {
      transform: scaleX(1);
    }

    /* Email underline link (same as blog main) */
    .blog-footer-link {
      color: #111827;
      text-decoration: none;
      position: relative;
      display: inline-block;
    }

    .blog-footer-link::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -2px;
      width: 100%;
      height: 1px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.2s ease;
    }

    .blog-footer-link:hover::after {
      transform: scaleX(1);
    }

    .blog-footer-bottom {
      border-top: none;
      margin-top: 20px;
      padding-top: 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      justify-content: space-between;
      font-size: 0.82rem;
      color: #6b7280;
    }

    @media (max-width: 640px) {
      .blog-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }
    }

    .blog-footer-col--newsletter {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* subscribe styles kept (unused now but harmless) */
    .footer-subscribe {
      margin-top: 4px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px 12px;
      align-items: center;
    }

    .footer-subscribe input {
      flex: 1 1 180px;
      min-width: 0;
      padding: 7px 12px;
      border-radius: var(--radius-pill);
      border: 1px solid var(--stroke-soft);
      font-size: 0.86rem;
      color: var(--ink);
      background: #ffffff;
    }

    .footer-subscribe input::placeholder {
      color: #6b7280;
    }

    .footer-subscribe input:focus {
      outline: none;
      border-color: var(--ink);
    }

    .footer-subscribe button {
      padding: 8px 18px;
      border-radius: var(--radius-pill);
      border: 1px solid #111111;
      background: #111111;
      color: #ffffff;
      font-size: 0.78rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .footer-subscribe button:hover {
      transform: translateY(-1px);
    }

    @media (max-width: 640px) {
      .footer-subscribe {
        flex-direction: column;
        align-items: stretch;
      }

      .footer-subscribe button {
        width: 100%;
        justify-content: center;
      }
    }

    .back-to-top {
      width: 36px;
      height: 36px;
      padding: 0;
      border-radius: 999px;
      border: 1px solid #111111;
      background: transparent;
      color: #111111;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }

    .back-to-top-arrow {
      font-size: 0.9rem;
      line-height: 1;
    }

    .back-to-top:hover {
      background: #111111;
      color: #ffffff;
    }

    .sidebar-muted {
      font-size: 0.8rem;
      color: #9ca3af;
    }

    /* POSTS GRID CARD (for More to explore) */
    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 20px;
    }

    .post-card {
      background: var(--bg-surface);
      border-radius: var(--radius-md);
      border: 1px solid var(--stroke-soft);
      padding: 18px 18px 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .post-card--accent {
      background: #ffffff;
    }

    .post-card:hover {
      transform: translateY(-3px);
      border-color: rgba(15, 23, 42, 0.65);
      background: #ffffff;
    }

    .post-card__media {
      border-radius: var(--radius-sm);
      overflow: hidden;
      margin: 0 0 10px;
      background: #e5e7eb;
      aspect-ratio: 16 / 9;
    }

    .post-card__media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .post-meta-line {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      color: #4b5563;
      margin: 0 0 4px;
    }

    .post-category-line {
      margin: 0 0 8px;
      font-size: 0.75rem;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--stroke-soft);
    }

    .post-category-label {
      color: #4b5563;
    }

    .post-title {
      font-size: clamp(1.05rem, 1.35vw, 1.25rem);
      line-height: 1.35;
      margin: 0 0 10px;
      letter-spacing: 0.04em;
      text-transform: none;
    }

    .post-excerpt {
      font-size: 0.9rem;
      color: var(--muted);
      margin: 0 0 10px;
    }

    .post-link-row {
      margin-top: 18px;
      padding-top: 8px;
      padding-bottom: 2px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.82rem;
      letter-spacing: 0.04em;
      text-transform: none;
      color: var(--ink);
      align-self: inherit;
    }

    .post-link-arrow {
      display: inline-block;
      transform: translateX(0);
      transition: transform 0.18s ease;
    }

    .post-card:hover .post-link-arrow {
      transform: translateX(2px);
    }

    @media (max-width: 640px) {
      .post-card {
        padding: 16px 14px 12px;
      }
    }

    /* ARTICLE DETAIL LAYOUT */

    .article-main {
      padding-top: 32px;
      padding-bottom: 32px;
    }

    .article-hero {
      padding-top: 40px;
      padding-bottom: 20px;
    }

    .article-hero-card {
      border-radius: 26px;
      background: #ffffff;
      border: 1px solid var(--stroke-soft);
      padding: 20px 20px 22px;   /* tighter */
    }

    .article-hero-grid {
      max-width: 820px;
      margin: 0 auto;
    }

    .article-hero-media {
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: #e5e7eb;
      aspect-ratio: 21 / 9;      /* wider, less tall */
      margin-bottom: 16px;
    }

    .article-hero-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .article-hero-meta {
      text-align: center;
      margin-bottom: 8px;
      font-size: 0.78rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #4b5563;
    }

    .article-hero-title {
      font-size: clamp(1.8rem, 2.4vw, 2.2rem); /* smaller title */
      line-height: 1.15;
      font-weight: 500;
      margin: 4px 0 10px;
      text-transform: none;
      letter-spacing: 0.04em;
      text-align: center;
    }

    .article-hero-submeta {
      text-align: center;
      font-size: 0.8rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .article-hero-kicker {
      text-align: center;
      font-size: 0.9rem;
      color: var(--muted);
      max-width: 62ch;
      margin: 12px auto 0;
    }

    .article-shell {
      max-width: 760px;
      margin: 0 auto;
    }

    .article-body-card {
      border-radius: 26px;
      background: #ffffff;
      border: 1px solid var(--stroke-soft);
      padding: 26px 24px 30px;
    }

    .article-body-card p {
      font-size: 0.98rem;
      color: #111827;
    }

    .article-body-card p + p {
      margin-top: 0.35rem;
    }

    .article-body-card h2,
    .article-body-card h3 {
      font-family: "Epilogue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      font-weight: 500;
      text-transform: none;
      letter-spacing: 0.04em;
      margin-top: 2rem;
      margin-bottom: 0.35rem;
      line-height: 1.3;
    }

    .article-body-card h2:first-child {
      margin-top: 0;
    }

    .article-body-card ul {
      padding-left: 1.1rem;
      margin: 0.5rem 0 1rem;
      font-size: 0.96rem;
      color: #111827;
    }

    .article-body-card li + li {
      margin-top: 0.25rem;
    }

    .article-figure {
      margin: 1.8rem auto;
      border-radius: var(--radius-lg);
      overflow: hidden;
      border: 1px solid var(--stroke-soft);
      background: #f9fafb;
      max-width: 400px;
      width: 100%;
      aspect-ratio: 5 / 4;
    }

    .article-figure img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .article-figure video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .article-figure figcaption {
      padding: 10px 14px 12px;
      font-size: 0.8rem;
      color: var(--muted);
      background: #f9fafb;
    }

    .article-more {
      padding-top: 32px;
      padding-bottom: 8px;
    }

    .article-more-header {
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .article-more-subtitle {
      font-family: "Epilogue", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      font-size: 1.35rem;
      letter-spacing: 0.04em;
      text-transform: none;
      margin: 0;
    }

    .article-more-heading-block {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    @media (max-width: 640px) {
      .article-more-header {
        align-items: flex-start;
      }
    }

    /* Pinterest style small tile inside More to explore */
    .article-more .posts-grid {
      max-width: 1000px;
      margin: 0 auto;
    }

    .article-more .post-card {
      flex-direction: row;
      align-items: stretch;
      gap: 10px;
      padding: 12px 12px 10px;
    }

    .article-more .post-card__media {
      flex: 0 0 40%;
      margin: 0;
      aspect-ratio: 4 / 3;
    }

    .post-card-content {
      display: flex;
      flex-direction: column;
    }

    .article-more .post-card-content {
      flex: 1;
    }

    @media (max-width: 640px) {
      .article-more .post-card {
        flex-direction: column;
      }

      .article-more .post-card__media {
        flex-basis: auto;
        margin-bottom: 8px;
      }
    }