  @font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: optional;
  }
  @font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: optional;
  }
  @font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: optional;
  }


  :root {
    --bg: #f3f3f7;
    --bg2: #ebebee;
    --bg3: #e4e4e4;
    --accent: #0066cc;
    --accent2: #1a7add;
    --text: #191a1f;
    --muted: #66656a;
    --border: rgba(1,1,8,0.1);
    --border-accent: rgba(0,102,204,0.3);
    --mono: 'Inter', sans-serif;
    --sans: 'Playfair Display', serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
  }

  .skip-link {
    position: fixed;
    top: 1rem; left: 1rem;
    z-index: 200;
    transform: translateY(-160%);
    padding: 0.65rem 1rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
  }
  .skip-link:focus { transform: translateY(0); }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
      linear-gradient(rgba(0,102,204,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,102,204,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 3rem;
    background: rgba(248,248,250,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-logo {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-decoration: none;
  }
  .nav-logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 1.8rem; list-style: none; }
  .nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s;
  }
  .nav-links a:hover,
  .nav-links a[aria-current="page"] { color: var(--accent); }
  a:focus-visible, button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 8px;
  }
  .nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 0.5rem 1.1rem !important;
    border-radius: 4px;
    transition: opacity 0.2s, transform 0.15s !important;
  }
  .nav-cta:hover { opacity: 0.88 !important; transform: translateY(-1px); }

  /* PAGE */
  .page-wrap {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 9rem 3rem 6rem;
  }

  .section-tag {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }
  .section-tag::before {
    content: '';
    display: block;
    width: 24px; height: 1px;
    background: var(--accent);
  }

  h1 {
    font-family: var(--sans);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.6rem;
  }

  .blog-intro {
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 56ch;
    line-height: 1.8;
    margin-bottom: 3.5rem;
  }

  /* POSTS GRID */
  .posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
    margin-bottom: 3rem;
  }

  .post-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.2s;
  }
  .post-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
  }

  .post-thumb {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border);
    background: var(--bg3);
  }

  .post-body {
    padding: 1.6rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
  }

  .post-date {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .post-tag {
    font-size: 0.62rem;
    padding: 0.18rem 0.55rem;
    border: 1px solid var(--border);
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: lowercase;
  }

  .post-title {
    font-family: var(--sans);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.75rem;
  }

  .post-excerpt {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 1.2rem;
  }

  .post-read-more {
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.08em;
    align-self: flex-start;
    text-decoration: none;
  }

  /* PAGINATION */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
  }
  .page-btn:hover,
  .page-btn.active { border-color: var(--border-accent); color: var(--accent); }
  .page-btn.active { background: rgba(0,102,204,0.06); font-weight: 600; }
  .page-btn.disabled { opacity: 0.35; pointer-events: none; }

  .page-info {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    padding: 0 0.5rem;
  }

  /* DIVIDER & FOOTER */
  .divider {
    height: 1px;
    background: var(--border);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
  }
  footer {
    border-top: 1px solid var(--border);
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.72rem;
    color: var(--muted);
    position: relative;
    z-index: 1;
  }
  footer a { color: var(--muted); text-decoration: none; }
  footer a:hover { color: var(--accent); }

  ::-webkit-scrollbar { width: 4px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: rgba(0,102,204,0.3); border-radius: 2px; }

  @media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .page-wrap { padding: 7rem 1.5rem 4rem; }
    .posts-grid { grid-template-columns: 1fr; }
    footer { padding: 2rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }
