/* Notes */
.notes-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.note-row { padding: 36px 0; border-bottom: 1px solid var(--border); cursor: pointer; transition: padding 0.15s; }
.note-row:hover { padding-left: 16px; }
.note-row:hover .note-title { color: var(--accent); }
.note-meta { font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; display: flex; gap: 8px; }
.note-title { font-size: clamp(24px, 2.6vw, 32px); margin-top: 14px; max-width: 22ch; transition: color 0.15s; }
.note-ex { color: var(--fg-dim); margin-top: 14px; max-width: 60ch; line-height: 1.55; }
.note-cta { font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 18px; display: inline-block; }

.note-empty { padding: 32px 0; text-align: left; }

.subscribe {
  margin-top: 48px;
  padding: 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  display: flex; flex-direction: column; gap: 12px;
}
.subscribe-l { font-size: 11px; color: var(--muted); letter-spacing: 0.14em; }
.subscribe input {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.subscribe input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,90,44,0.12); }
.subscribe-thanks {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--fg-dim);
  padding: 10px 4px;
}

/* Note modal */
.note-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: note-fade 0.15s ease-out;
}
@keyframes note-fade { from { opacity: 0; } to { opacity: 1; } }
.note-modal-card {
  position: relative;
  background: rgba(16, 18, 22, 0.55);
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: note-slide 0.2s ease-out;
}
@keyframes note-slide {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.note-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.note-modal-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: transparent; border: 1px solid var(--border);
  color: var(--fg-dim); border-radius: 50%;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.12s, border-color 0.12s;
}
.note-modal-close:hover { color: var(--accent); border-color: var(--accent); }
.note-modal-title {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.025em;
  margin-top: 12px;
  max-width: 22ch;
}
.note-modal-scroll {
  overflow-y: auto;
  padding: 24px 32px 8px;
  /* soft fade at the bottom edge to hint there's more */
  mask-image: linear-gradient(to bottom, transparent 0, black 16px, black calc(100% - 28px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 16px, black calc(100% - 28px), transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.note-modal-scroll::-webkit-scrollbar { width: 8px; }
.note-modal-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.note-modal-body { padding-bottom: 24px; }
.note-modal-body p {
  font-size: 15px; line-height: 1.7; color: var(--fg-dim);
  margin-bottom: 18px;
  max-width: 64ch;
  text-wrap: pretty;
}
.note-modal-body p:last-child { color: var(--fg); margin-bottom: 0; }

@media (max-width: 600px) {
  .note-modal-head { padding: 24px 22px 16px; }
  .note-modal-scroll { padding: 20px 22px 8px; }
}
