/* Shared navigation and editorial surfaces for Blog and Sobre mí. */
.editorial-page { position: relative; isolation: isolate; min-height: 100svh; }
.editorial-atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: 660px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,#08090bf5,rgba(8,9,11,.62) 60%,rgba(8,9,11,.7)),
              linear-gradient(0deg,#08090b,transparent 80%),
              url('/assets/hacker-intrusion-v1.webp') center 35% / cover no-repeat;
}
.editorial-main { min-height: calc(100svh - 100px); padding-top: 164px; padding-bottom: 110px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font: 600 12px/1.8 var(--mono); color: #cbc5d1; }
.breadcrumb a { padding-block: 8px; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb > span[aria-hidden] { color: var(--accent-text); }
.editorial-hero { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 64px; padding-top: 66px; padding-bottom: 70px; }
.editorial-hero .section-kicker { margin-bottom: 24px; }
.editorial-title { font-size: clamp(68px,7.7vw,112px); line-height: 1.03; letter-spacing: -.055em; color: #f3f0f4; }
.editorial-intro { max-width: 580px; margin-top: 26px; font-size: 18px; line-height: 1.8; color: #d2cdd8; }
.editorial-caption { padding-bottom: 5px; font: 600 12px/1.9 var(--mono); letter-spacing: .5px; color: #c8c1ce; }
.editorial-caption span { display: block; color: var(--accent-text); margin-bottom: 6px; }
.archive { border-top: 1px solid var(--accent); }
.archive-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.archive-heading h2 { font-size: 24px; line-height: 1.3; letter-spacing: -.6px; }
.archive-count { font: 600 12px/1.8 var(--mono); color: #d0c9d7; }
.archive-empty { display: grid; grid-template-columns: 100px 1fr; align-items: start; gap: 40px; padding: 64px 0 70px; border-bottom: 1px solid var(--line); }
.archive-marker { font: 400 56px/1 var(--mono); color: var(--accent); letter-spacing: -5px; }
.archive-empty h3 { font-size: clamp(24px,2.8vw,34px); line-height: 1.3; letter-spacing: -1px; margin-bottom: 16px; }
.archive-empty p { max-width: 600px; font-size: 17px; line-height: 1.8; }
.editorial-return { display: inline-flex; align-items: center; gap: 15px; min-height: 48px; margin-top: 34px; font-size: 16px; font-weight: 600; color: #e8e2ed; }
.editorial-return > span { color: var(--accent-text); transition: transform .3s; }
.editorial-return:hover > span { transform: translateX(-4px); }
.profile-panel { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--line); padding-block: 44px 64px; }
.profile-panel .section-kicker { margin: 0; }
.profile-pending { min-height: 100px; display: flex; align-items: flex-start; gap: 16px; }
.profile-pending .live-dot { margin-top: 13px; }
.profile-pending p { font-size: 19px; line-height: 1.8; color: #d2cdd8; }
.editorial-page .site-footer .site-name { white-space: normal; }

/* Ready for real entries: reusable archive cards and long-form research text. */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-card { border-bottom: 1px solid var(--line); }
.post-card > a { display: grid; grid-template-columns: 150px 1fr 24px; align-items: start; gap: 36px; padding-block: 36px; }
.post-card time, .post-meta, .post-tags { font: 600 12px/1.9 var(--mono); color: #c8c1ce; }
.post-card h3 { font-size: clamp(25px,2.8vw,35px); line-height: 1.3; letter-spacing: -1px; margin-bottom: 14px; }
.post-card p { max-width: 690px; font-size: 17px; line-height: 1.8; }
.post-card .post-arrow { color: var(--accent-text); font-size: 22px; transition: transform .3s; }
.post-card > a:hover .post-arrow { transform: translate(3px,-3px); }
.post-card > a:hover h3 { color: #fff; }
.post-header { max-width: 900px; padding-block: 58px 46px; border-bottom: 1px solid var(--accent); }
.post-header h1 { font-size: clamp(42px,5.5vw,76px); line-height: 1.12; letter-spacing: -.045em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 25px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; color: var(--accent-text); }
.post-body { max-width: 760px; padding-top: 42px; overflow-wrap: anywhere; }
.post-body p, .post-body li { font-size: 18px; line-height: 1.9; color: #d5cfdd; }
.post-body p + p { margin-top: 24px; }
.post-body h2 { margin: 58px 0 22px; font-size: 34px; line-height: 1.25; letter-spacing: -1px; scroll-margin-top: 110px; }
.post-body h3 { margin: 34px 0 18px; font-size: 25px; line-height: 1.4; letter-spacing: -.6px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li + li { margin-top: 10px; }
.post-body a { color: #f0d8de; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.post-body strong { color: #f3eff6; font-weight: 600; }
.post-body pre { max-width: 100%; overflow-x: auto; margin: 30px 0; padding: 24px; border: 1px solid #ffffff25; border-left: 2px solid var(--accent); background: #07080bf0; }
.post-body code { font: 400 .88em/1.8 var(--mono); color: #f2dce4; }
.post-body p code, .post-body li code { padding: 2px 5px; background: #ffffff0d; }
.post-body blockquote { margin: 30px 0; padding: 8px 0 8px 24px; border-left: 2px solid var(--accent); }
.post-body img { display: block; max-width: 100%; height: auto; margin-block: 30px; }
.post-body figure { margin: 30px 0; }
.post-body figcaption { margin-top: 12px; font-size: 14px; color: #c4bfca; }
.post-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { padding: 12px 16px; border: 1px solid var(--line); text-align: left; }
.post-body th { color: #f0edf3; }

@media (max-width: 1000px) {
  .editorial-hero { gap: 40px; }
  .editorial-caption { max-width: 220px; }
  .profile-panel { gap: 40px; }
}

/* Five navigation links use the same disclosure on all pages up to 800px. */
@media (max-width: 800px) {
  .site-header { height: 84px; }
  .site-header.is-scrolled { height: 72px; }
  .site-header .brand-link { width: 88px; height: 66px; }
  .main-nav { position: absolute; inset: 84px 0 auto; padding: 18px 32px 25px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; background: #0d0c10fa; border-bottom: 1px solid #ffffff26; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: visibility .25s,opacity .25s,transform .25s; backdrop-filter: blur(24px); }
  .is-scrolled .main-nav { top: 72px; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav > a { padding: 12px 0; font-size: 16px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px; width: 44px; height: 44px; background: transparent; border: 0; padding: 10px; }
  .menu-toggle span { display: block; width: 23px; height: 1px; background: #f1edf4; transition: transform .3s; }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  html:not(.js) .site-header { height: auto; min-height: 84px; flex-wrap: wrap; padding-top: 12px; }
  html:not(.js) .main-nav { position: static; inset: auto; visibility: visible; opacity: 1; transform: none; padding: 10px 0; background: transparent; flex-direction: row; flex-wrap: wrap; width: 100%; gap: 4px 24px; border: 0; backdrop-filter: none; }
  html:not(.js) .main-nav a { font-size: 15px; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .editorial-main { padding-top: 230px; }
  .editorial-hero { grid-template-columns: 1fr; gap: 30px; }
  .editorial-caption { max-width: none; }
  .editorial-caption span { display: inline; margin-right: 14px; }
  .profile-panel { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .main-nav { padding-inline: 24px; }
  .editorial-main { padding-top: 130px; padding-bottom: 80px; }
  .editorial-hero { padding-top: 44px; padding-bottom: 45px; }
  .editorial-title { font-size: clamp(55px,15vw,76px); letter-spacing: -.055em; }
  .editorial-intro { font-size: 16px; margin-top: 22px; }
  .editorial-caption { font-size: 12px; }
  .archive-heading { padding-block: 22px; gap: 14px; }
  .archive-heading h2 { font-size: 22px; }
  .archive-empty { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 45px; }
  .archive-marker { font-size: 42px; letter-spacing: -4px; }
  .archive-empty h3 { font-size: 26px; }
  .archive-empty p { font-size: 16px; }
  .profile-panel { padding-block: 32px 45px; }
  .profile-pending p { font-size: 17px; }
  .post-card > a { grid-template-columns: 1fr 20px; gap: 16px; padding-block: 28px; }
  .post-card time { grid-column: 1 / -1; }
  .post-card p { font-size: 16px; }
  .post-header { padding-top: 42px; }
  .post-header h1 { font-size: clamp(36px,10vw,55px); }
  .post-body p, .post-body li { font-size: 16px; }
  .post-body h2 { font-size: 29px; }
  .post-body h3 { font-size: 23px; }
  .post-body pre { padding: 18px; }
}

@media print {
  .editorial-atmosphere, .breadcrumb, .editorial-return { display: none; }
  .editorial-main { min-height: 0; padding-block: 20px; }
  .editorial-title, .post-header h1, .archive-empty h3 { color: #111; }
  .post-body p, .post-body li, .editorial-intro { color: #333; }
}
