/* ============================================================
   CONEN.DEV — blog.css — BLOG page only
   Sections: hero / featured post / index rows / newsletter
   ============================================================ */

/* ---------- HERO ---------- */
.blog-hero {
  padding-top: clamp(9rem, 22vh, 15rem);
  padding-bottom: clamp(2rem, 5vh, 4rem);
}
.blog-hero__title .si {
  color: var(--ghost);
  text-shadow: 0 0 60px rgba(87, 230, 255, .4);
}
.blog-hero__sub {
  margin-top: clamp(1.4rem, 3.5vh, 2.4rem);
  color: var(--ghost-dim);
}

/* ---------- FEATURED POST ---------- */
.feature {
  background: linear-gradient(180deg, var(--abyss), var(--deep) 60%, var(--abyss));
}
.feature__card {
  display: block;
  position: relative;
}
.feature__media {
  border-radius: 12px;
  transition: transform .7s var(--ease-out);
}
.feature__card:hover .feature__media { transform: scale(.988); }
.feature__media .media-fallback {
  background:
    radial-gradient(130% 80% at 70% 20%, rgba(87, 230, 255, .14), transparent 55%),
    radial-gradient(80% 90% at 15% 90%, rgba(157, 245, 227, .08), transparent 55%),
    linear-gradient(165deg, #0b1526, var(--abyss) 80%);
}

/* body overlaps the media plate — editorial layering */
.feature__body {
  position: relative;
  z-index: 2;
  max-width: 46em;
  margin-top: clamp(-4rem, -6vw, -6rem);
  margin-left: clamp(0rem, 4vw, 5rem);
  padding: clamp(1.6rem, 3.5vw, 3rem);
  background: linear-gradient(180deg, rgba(6, 10, 20, .92), rgba(6, 10, 20, .78));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.feature__meta { color: var(--ghost-faint); margin-bottom: 1.1rem; }
.feature__title {
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  transition: color .3s ease;
}
.feature__title .si { color: var(--glow); text-shadow: 0 0 40px rgba(87, 230, 255, .3); }
.feature__excerpt {
  margin-top: 1.2rem;
  color: var(--ghost-dim);
  line-height: 1.65;
  max-width: 40em;
}
.feature__link { margin-top: 1.6rem; }
.feature__card:hover .feature__link { color: var(--glow); }
.feature__card:hover .feature__link::after { transform: scaleX(1); transform-origin: left; }

/* ---------- INDEX ROWS ---------- */
.notes { padding-top: clamp(3rem, 6vh, 5rem); }
.notes__list {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
.note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(6rem, 12rem) 1fr auto;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 3.5rem);
  padding: clamp(1.8rem, 4vw, 3.2rem) var(--gutter);
  border-bottom: 1px solid var(--line);
  transition: background-color .4s ease;
}
.note:hover { background: rgba(255, 255, 255, .02); }

.note__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--ghost-faint);
  font-variant-numeric: tabular-nums;
  transition: color .45s var(--ease-out), -webkit-text-stroke-color .45s var(--ease-out);
}
.note:hover .note__num {
  color: var(--glow);
  -webkit-text-stroke-color: transparent;
}

.note__body { max-width: 44em; }
.note__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color .3s ease, transform .45s var(--ease-out);
}
.note:hover .note__title { color: var(--glow); transform: translateX(10px); }
.note__excerpt {
  display: block;
  margin-top: .7rem;
  color: var(--ghost-dim);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 52em;
}
.note__meta {
  color: var(--ghost-faint);
  white-space: nowrap;
  transition: color .3s ease;
}
.note:hover .note__meta { color: var(--ghost-dim); }

/* floating hover preview (mirrors home services thumb, own instance) */
.note-preview {
  position: fixed;
  top: 0; left: 0;
  z-index: 700;
  width: min(320px, 24vw);
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s var(--ease-out);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(87, 230, 255, .08);
  will-change: transform;
}
.note-preview.is-on { opacity: 1; }
.note-preview video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
}
.note-preview .media-fallback { position: absolute; inset: 0; }
.note-preview[data-hue="1"] .media-fallback { filter: hue-rotate(18deg); }
.note-preview[data-hue="2"] .media-fallback { filter: hue-rotate(-24deg) brightness(1.1); }
.note-preview[data-hue="3"] .media-fallback { filter: hue-rotate(40deg) saturate(.8); }
.note-preview[data-hue="4"] .media-fallback { filter: hue-rotate(-45deg); }

/* ---------- NEWSLETTER ---------- */
.sonar {
  background: linear-gradient(180deg, var(--abyss), var(--deep));
}
.sonar__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}
.sonar__title .si { color: var(--glow); text-shadow: 0 0 40px rgba(87, 230, 255, .3); }
.sonar__sub { margin-top: 1.4rem; color: var(--ghost-faint); }

.sonar__label {
  display: block;
  color: var(--ghost-faint);
  margin-bottom: .8rem;
}
.sonar__row {
  display: flex;
  gap: .8rem;
  align-items: stretch;
}
.sonar__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--ghost);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1em 1.6em;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.sonar__input::placeholder { color: var(--ghost-faint); }
.sonar__input:focus {
  outline: none;
  border-color: var(--glow);
  box-shadow: 0 0 0 1px rgba(87, 230, 255, .25), 0 0 28px rgba(87, 230, 255, .14);
}
.sonar__ok { margin-top: 1.2rem; color: var(--glow); }
.sonar__form.is-sent .sonar__row { opacity: .25; pointer-events: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .feature__body { margin-left: 0; margin-top: -2.5rem; }
  .note {
    grid-template-columns: 1fr;
    gap: .9rem;
    align-items: start;
  }
  .note__num { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .note-preview { display: none; }
  .sonar__grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 600px) {
  .sonar__row { flex-direction: column; align-items: stretch; }
  .sonar__row .btn { justify-content: center; }
}
