/* ========================================================
   LEARNING NOTES — BLOG LANDING PAGE
   ======================================================== */
.notes-page { overflow:hidden; }
.notes-page-container { width:min(100% - 4rem, 1500px); margin-inline:auto; }

.notes-hero {
  position:relative;
  isolation:isolate;
  min-height:calc(100svh - 72px);
  display:flex;
  align-items:center;
  padding:clamp(3rem,7vw,7rem) 0;
}
.notes-hero::before {
  content:""; position:absolute; z-index:-2; inset:0;
  background:
    linear-gradient(rgba(45,107,108,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(45,107,108,.035) 1px,transparent 1px);
  background-size:46px 46px;
  mask-image:linear-gradient(to right,transparent,#000 16%,#000 84%,transparent);
  animation:notesGrid 28s linear infinite;
}
.notes-hero::after {
  content:""; position:absolute; z-index:-1; width:620px; height:620px;
  right:-210px; top:45%; border-radius:50%;
  background:radial-gradient(circle,rgba(201,126,90,.15),rgba(96,165,250,.07) 45%,transparent 70%);
  animation:notesGlow 14s ease-in-out infinite alternate;
}
.notes-hero-grid {
  display:grid;
  grid-template-columns:110px minmax(480px,1fr) minmax(320px,400px);
  align-items:center;
  gap:clamp(2rem,4vw,5rem);
}
.notes-now {
  min-height:390px; display:flex; flex-direction:column; align-items:center;
  padding:1.2rem .7rem; border:1px solid rgba(45,107,108,.14);
  border-radius:26px; background:rgba(255,255,255,.48);
  box-shadow:0 18px 45px rgba(44,40,34,.06); backdrop-filter:blur(12px);
}
.notes-live {
  display:inline-flex; align-items:center; gap:.42rem; color:var(--deep-teal);
  font:500 .62rem var(--ff-mono); letter-spacing:.13em; text-transform:uppercase;
}
.notes-live i { width:7px; height:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 5px rgba(34,197,94,.11); }
.notes-now-line { width:1px; flex:1; margin:1.2rem 0; background:linear-gradient(var(--deep-teal),var(--terracotta),transparent); opacity:.35; }
.notes-now dl { width:100%; display:grid; gap:.9rem; margin:0; }
.notes-now dl div { text-align:center; }
.notes-now dt { color:var(--text-muted); font:400 .54rem var(--ff-mono); letter-spacing:.12em; text-transform:uppercase; }
.notes-now dd { margin:.14rem 0 0; font-size:.73rem; font-weight:700; }

.notes-kicker {
  display:inline-flex; align-items:center; gap:.6rem; margin:0;
  color:var(--terracotta); font:500 .67rem var(--ff-mono);
  letter-spacing:.15em; text-transform:uppercase;
}
.notes-kicker::before { content:""; width:36px; height:2px; border-radius:99px; background:linear-gradient(90deg,var(--terracotta),var(--deep-teal)); }
.notes-hero-copy h1 {
  max-width:800px; margin:1rem 0 0; font-family:var(--ff-serif);
  font-size:clamp(3.3rem,5.8vw,6.6rem); line-height:.97;
  letter-spacing:-.048em; text-wrap:balance;
}
.notes-hero-copy h1 span { display:block; margin-top:.12em; color:var(--deep-teal); }
.notes-intro { max-width:650px; margin:1.55rem 0 0; color:var(--text-muted); font-size:clamp(1rem,1.2vw,1.14rem); line-height:1.75; }
.notes-principles { display:flex; flex-wrap:wrap; gap:.65rem 1.2rem; margin-top:1.4rem; color:var(--text-muted); font:400 .65rem var(--ff-mono); }
.notes-principles span { display:inline-flex; align-items:center; gap:.45rem; }
.notes-principles span::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--soft-amber); }

.notes-dashboard {
  padding:1.25rem; border:1px solid rgba(45,107,108,.16);
  border-radius:28px; background:rgba(255,255,255,.8);
  box-shadow:0 26px 70px rgba(44,40,34,.11); backdrop-filter:blur(18px);
}
.notes-dashboard-head { display:flex; align-items:start; justify-content:space-between; gap:1rem; padding:.2rem .15rem 1rem; }
.notes-dashboard-head small { color:var(--text-muted); font:400 .57rem var(--ff-mono); letter-spacing:.12em; text-transform:uppercase; }
.notes-dashboard-head h2 { margin:.15rem 0 0; font-size:1.65rem; }
.notes-dashboard-head > span { padding:.33rem .55rem; border-radius:999px; background:#eff6ff; color:#1d4ed8; font:500 .58rem var(--ff-mono); }
.notes-dashboard-stats { display:grid; grid-template-columns:1fr 1fr; gap:.55rem; margin-bottom:.7rem; }
.notes-dashboard-stats div { padding:.75rem; border-radius:14px; background:linear-gradient(145deg,rgba(219,234,254,.55),rgba(255,255,255,.85)); }
.notes-dashboard-stats strong { display:block; font:700 1.45rem var(--ff-serif); color:var(--deep-teal); }
.notes-dashboard-stats span { color:var(--text-muted); font-size:.62rem; }

.dashboard-feature {
  display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center;
  gap:.65rem; margin-top:.55rem; padding:.62rem; border:1px solid rgba(44,40,34,.07);
  border-radius:15px; background:rgba(255,255,255,.7); color:var(--text-primary);
  text-decoration:none; transition:transform .24s ease,box-shadow .24s ease;
}
.dashboard-feature:hover { transform:translateX(4px); box-shadow:0 9px 20px rgba(44,40,34,.07); }
.dashboard-feature-icon { width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#fef3c7;color:#9a5b15; }
.dashboard-feature-icon.blue { background:#dbeafe;color:#1d4ed8; }
.dashboard-feature-icon svg { width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round; }
.dashboard-feature > span:nth-child(2) { min-width:0;display:grid;gap:.08rem; }
.dashboard-feature small { color:var(--text-muted);font:400 .54rem var(--ff-mono);text-transform:uppercase;letter-spacing:.07em; }
.dashboard-feature strong { font-size:.75rem; }
.dashboard-feature b { color:var(--deep-teal);font-weight:500; }

.notes-library { position:relative; padding:clamp(4.5rem,8vw,7rem) 0; background:linear-gradient(180deg,rgba(79,139,140,.035),transparent); }
.library-heading { display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.5rem; }
.library-heading h2 { margin:.4rem 0 0;font-size:clamp(2.2rem,4vw,3.8rem);letter-spacing:-.04em; }
.library-heading > p { margin:0;color:var(--text-muted);font:400 .7rem var(--ff-mono); }

.notes-toolbar {
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  margin-bottom:2rem;padding:.75rem;border:1px solid rgba(45,107,108,.12);
  border-radius:20px;background:rgba(255,255,255,.7);box-shadow:0 12px 32px rgba(44,40,34,.06);
}
.notes-search { position:relative;flex:1;max-width:500px; }
.notes-search svg { position:absolute;left:.8rem;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--text-muted);stroke-width:1.8;stroke-linecap:round; }
.notes-search input {
  width:100%;padding:.72rem .8rem .72rem 2.45rem;border:1px solid transparent;
  border-radius:13px;outline:none;background:rgba(249,246,240,.7);
  color:var(--text-primary);font:400 .82rem var(--ff-sans);
}
.notes-search input:focus { border-color:rgba(45,107,108,.4);background:#fff;box-shadow:0 0 0 4px rgba(79,139,140,.09); }
.notes-filters { display:flex;flex-wrap:wrap;gap:.4rem; }
.filter-btn {
  padding:.58rem .8rem;border:1px solid transparent;border-radius:999px;
  background:transparent;color:var(--text-muted);font:600 .7rem var(--ff-sans);
  cursor:pointer;transition:transform .2s ease,background .2s ease,color .2s ease;
}
.filter-btn:hover { transform:translateY(-1px);background:rgba(219,234,254,.65);color:#1d4ed8; }
.filter-btn.active { background:linear-gradient(135deg,#2d6b6c,#3d8586);color:#fff;box-shadow:0 7px 17px rgba(45,107,108,.2); }

.blog-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1.2rem;padding:0;margin:0;max-width:none;
}
.blog-card {
  min-width:0;display:grid;grid-template-columns:minmax(180px,.75fr) minmax(0,1.25fr);
  color:var(--text-primary);text-decoration:none;border:1px solid rgba(44,40,34,.1);
  border-radius:24px;background:rgba(255,255,255,.76);overflow:hidden;
  box-shadow:0 12px 34px rgba(44,40,34,.055);
  transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.blog-card:first-child { grid-column:1/-1;grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr); }
.blog-card:hover { transform:translateY(-6px);border-color:rgba(45,107,108,.26);box-shadow:0 24px 50px rgba(44,40,34,.11); }
.blog-image-wrapper { position:relative;min-height:240px;overflow:hidden;background:#e8e4dc; }
.blog-card:first-child .blog-image-wrapper { min-height:350px; }
.blog-image-wrapper img { width:100%;height:100%;display:block;object-fit:cover;transition:transform .5s ease; }
.blog-card:hover .blog-image-wrapper img { transform:scale(1.045); }
.blog-index { position:absolute;left:1rem;top:1rem;padding:.34rem .52rem;border-radius:999px;background:rgba(23,63,64,.8);color:#fff;font:500 .58rem var(--ff-mono);backdrop-filter:blur(8px); }
.blog-content-wrapper { display:flex;flex-direction:column;justify-content:center;padding:clamp(1.25rem,2.4vw,2.1rem); }
.blog-category { width:fit-content;margin:0 0 .8rem;padding:.32rem .6rem;border-radius:999px;font:500 .58rem var(--ff-mono);letter-spacing:.1em;text-transform:uppercase; }
.category-build { color:#1d4ed8;background:#dbeafe; }
.category-learning { color:#166534;background:#dcfce7; }
.category-long-form { color:#9a5b15;background:#fef3c7; }
.blog-meta { display:flex;gap:.8rem;flex-wrap:wrap;margin:0 0 .65rem;color:var(--text-muted);font:400 .62rem var(--ff-mono); }
.blog-card h2 { margin:0;font-size:clamp(1.35rem,2.3vw,2rem);line-height:1.15;letter-spacing:-.025em; }
.blog-card:first-child h2 { font-size:clamp(1.8rem,3.2vw,3rem); }
.blog-excerpt { margin:.75rem 0 1rem;color:var(--text-muted);font-size:.86rem;line-height:1.62;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.blog-read-link { display:inline-flex;align-items:center;gap:.4rem;margin-top:auto;color:var(--deep-teal);font-size:.76rem;font-weight:700; }
.blog-card:hover .blog-read-link { gap:.7rem;color:var(--terracotta); }
.no-results { grid-column:1/-1;display:grid;place-items:center;min-height:280px;padding:2rem;border:1px dashed rgba(45,107,108,.2);border-radius:24px;text-align:center;color:var(--text-muted); }
.no-results svg { width:38px;height:38px;margin-bottom:.8rem;fill:none;stroke:var(--deep-teal);stroke-width:1.5; }

@keyframes notesGrid { to { background-position:46px 46px,46px 46px; } }
@keyframes notesGlow {
  from { transform:translate3d(0,-50%,0) scale(1); }
  to { transform:translate3d(-55px,-54%,0) scale(1.1); }
}

@media (max-width:1100px) {
  .notes-hero-grid { grid-template-columns:80px minmax(0,1fr) minmax(300px,350px);gap:2rem; }
  .notes-hero-copy h1 { font-size:clamp(3rem,6vw,5rem); }
  .blog-card { grid-template-columns:1fr; }
  .blog-image-wrapper { min-height:210px; }
}
@media (max-width:900px) {
  .notes-page-container { width:min(100% - 2.5rem,1500px); }
  .notes-hero { min-height:auto;padding:3.5rem 0; }
  .notes-hero-grid { grid-template-columns:minmax(0,1fr) minmax(300px,350px); }
  .notes-now { grid-column:1/-1;min-height:auto;flex-direction:row;padding:.75rem 1rem;border-radius:18px; }
  .notes-now-line { width:auto;height:1px;min-height:0;flex:1;margin:0 1rem; }
  .notes-now dl { width:auto;display:flex;gap:1rem; }
  .notes-now dl div { display:flex;align-items:baseline;gap:.3rem; }
  .notes-toolbar { align-items:stretch;flex-direction:column; }
  .notes-search { max-width:none; }
}
@media (max-width:700px) {
  .notes-page-container { width:min(100% - 2rem,1500px); }
  .notes-hero-grid,.blog-grid { grid-template-columns:1fr; }
  .notes-now { grid-column:auto; }
  .notes-now dl div:nth-child(3) { display:none; }
  .notes-hero-copy h1 { font-size:clamp(2.7rem,12vw,4rem); }
  .notes-dashboard { padding:1rem;border-radius:23px; }
  .library-heading { align-items:start;flex-direction:column;gap:.6rem; }
  .notes-filters { flex-wrap:nowrap;overflow-x:auto;padding-bottom:.15rem;scrollbar-width:none; }
  .notes-filters::-webkit-scrollbar { display:none; }
  .filter-btn { white-space:nowrap; }
  .blog-card:first-child { grid-column:auto;grid-template-columns:1fr; }
  .blog-card:first-child .blog-image-wrapper { min-height:230px; }
}
@media (max-width:430px) {
  .notes-now dl div:nth-child(2) { display:none; }
  .notes-hero-copy h1 { font-size:2.65rem; }
  .notes-principles { display:grid; }
  .blog-card,.blog-card:first-child { border-radius:20px; }
  .blog-image-wrapper,.blog-card:first-child .blog-image-wrapper { min-height:205px; }
}
@media (prefers-reduced-motion:reduce) {
  .notes-hero::before,.notes-hero::after { animation:none; }
  .blog-card,.blog-image-wrapper img,.dashboard-feature,.filter-btn { transition:none; }
}