  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --bg: #0a0e17;
    --surface: #131822;
    --surface2: #1b2129;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e4e6ee;
    --muted: #7d818f;
    --muted-dim: #4a4f62;
    --accent: #4a8ef7;
    --accent2: #3f6fc0;
    --accent-dim: rgba(74, 142, 247, 0.10);
  }

  :root[data-theme="light"] {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface2: #eef0f4;
    --border: rgba(10, 14, 23, 0.09);
    --border-strong: rgba(10, 14, 23, 0.18);
    --text: #191d24;
    --muted: #5a5f6d;
    --muted-dim: #9095a1;
    --accent: #3f6fc0;
    --accent2: #2d5296;
    --accent-dim: rgba(63, 111, 192, 0.08);
  }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans', sans-serif;
    font-weight: 300;
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    justify-content: center;
    padding: 4.5rem 1.25rem 4rem;
    transition: background 0.2s, color 0.2s;
  }

  .page { width: 100%; max-width: 1160px; }

  /* ---------- Theme toggle ---------- */
  .theme-toggle {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, background 0.18s;
    z-index: 50;
  }
  .theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
  .theme-toggle-icon { width: 16px; height: 16px; flex-shrink: 0; }
  .theme-toggle .icon-moon { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
  :root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

  /* ---------- Hero de imagen ---------- */
  .blog-hero {
    height: 32vh;
    min-height: 200px;
    margin-top: calc(-4.5rem + 20px);
    margin-bottom: 3.5rem;
    background: #0a0e17 url('../img/guide-divider.webp') center / cover no-repeat;
    border-radius: 8px;
  }

  @media (max-width: 560px) {
    .blog-hero { height: 26vh; margin-top: calc(-3rem + 20px); margin-bottom: 2.5rem; }
  }

  /* ---------- Header ---------- */
  .eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
  }
  .eyebrow .mark { width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
  .eyebrow a { color: inherit; text-decoration: none; }
  .eyebrow a:hover { color: var(--accent); }

  h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(38px, 8vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 16px;
  }
  h1 .em { color: var(--accent); font-style: italic; font-weight: 400; }

  .tagline {
    font-size: 17px;
    color: var(--muted);
    max-width: 50ch;
    margin-bottom: 3.5rem;
  }

  /* ---------- Section label ---------- */
  .section-label {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
  }
  .section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
  .section-label .count { color: var(--muted); }

  /* ---------- Grid ---------- */
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }

  /* ---------- Card ---------- */
  .card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.6rem 1.6rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 184px;
    position: relative;
    transition: background 0.18s, border-color 0.18s;
    outline: none;
  }
  .card:hover, .card:focus-visible { background: var(--surface2); border-color: var(--border-strong); }
  .card:focus-visible { box-shadow: inset 0 0 0 1px var(--accent); }

  .card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
  }
  .card-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DM Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .card-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent);
    flex-shrink: 0;
  }
  .card-arrow {
    font-family: 'DM Mono', monospace;
    font-size: 17px;
    color: var(--muted-dim);
    transition: transform 0.18s, color 0.18s;
  }
  .card:hover .card-arrow, .card:focus-visible .card-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
  }

  .card-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 25px;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.18s;
  }
  .card:hover .card-name, .card:focus-visible .card-name { color: var(--accent); }

  .card-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: auto;
  }
  .card-url {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted-dim);
    letter-spacing: 0.02em;
    margin-top: 1.3rem;
  }

  /* ---------- Coming soon card ---------- */
  .card.soon {
    background: transparent;
    border: 1px dashed var(--border-strong);
    border-radius: 8px;
    cursor: default;
    justify-content: center;
    align-items: flex-start;
  }
  .card.soon:hover { background: transparent; }
  .card.soon .soon-label {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-dim);
  }
  .card.soon .soon-sub {
    font-size: 13.5px;
    color: var(--muted-dim);
    margin-top: 8px;
    line-height: 1.55;
  }

  /* ---------- Footer ---------- */
  footer {
    position: relative;
    margin-top: 3.5rem;
    padding: 4rem 2rem 2rem;
    background: #0a0e17 url('../img/guide-divider.webp') center / cover no-repeat;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    overflow: hidden;
  }
  footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 18, 0.3) 0%, rgba(8, 11, 18, 0.72) 100%);
  }
  footer > * { position: relative; z-index: 1; }

  .footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: clamp(34px, 6vw, 64px);
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  }
  .footer-brand:hover { color: #dbe9ff; }

  .footer-meta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-meta a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
  .footer-meta a:hover { color: #dbe9ff; }

  @media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; }
  }

  @media (max-width: 560px) {
    body { padding: 3rem 1rem; }
    .tagline { font-size: 15.5px; margin-bottom: 2.5rem; }
    footer { padding: 3rem 1.5rem 1.75rem; gap: 2rem; }
  }
