/* ═══════════════════════════════════════════
   NOTES — page-specific styles
   Loaded by /notes and by landing-page.html + about.html
   (for the .notes-previews section that appears on both).
   ═══════════════════════════════════════════ */

/* ─── PAGE HERO ─── */
.notes-hero {
  padding: 120px 0 56px;
  text-align: center;
}
.notes-hero .container {
  max-width: 760px;
}
.notes-hero-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.notes-hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text-primary);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.notes-hero-tagline {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 560px;
}

/* ─── LAYOUT: archive sidebar + posts stream ─── */
.notes-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 140px;
}

/* ─── ARCHIVE SIDEBAR (desktop) ─── */
.notes-archive {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 20px 14px;
  background: rgba(var(--bg-elevated-rgb), 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.notes-archive::-webkit-scrollbar {
  width: 6px;
}
.notes-archive::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.notes-archive-title {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.notes-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.notes-archive-list li {
  margin: 2px 0;
}
.notes-archive-list a {
  display: block;
  padding: 10px 10px 10px 14px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.notes-archive-list a:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}
.notes-archive-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
}
.notes-archive-list .date {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.notes-archive-list a.active .date {
  color: var(--accent);
  opacity: 0.7;
}
.notes-archive-list .title {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}

/* ─── MOBILE ARCHIVE DROPDOWN ─── */
.notes-archive-mobile {
  display: none;
  position: sticky;
  top: 64px;
  z-index: 80;
  margin: 0 auto 32px;
  padding: 0 16px;
  max-width: 1200px;
}
.notes-archive-mobile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(var(--bg-elevated-rgb), 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Suppress the default mobile tap-highlight flash on all notes interactive elements. */
.notes-seek button,
.notes-archive-list a,
.notes-preview-card {
  -webkit-tap-highlight-color: transparent;
}
.notes-archive-mobile-btn:hover,
.notes-archive-mobile-btn.open {
  color: var(--text-primary);
  border-color: var(--border-accent);
}
.notes-archive-mobile-chevron {
  transition: transform 0.3s ease;
}
.notes-archive-mobile-btn.open .notes-archive-mobile-chevron {
  transform: rotate(180deg);
}
.notes-archive-mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  max-width: 280px;
  margin-top: 0;
  transition:
    grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    margin-top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.notes-archive-mobile-panel.open {
  grid-template-rows: 1fr;
  margin-top: 8px;
}
.notes-archive-mobile-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.notes-archive-mobile-panel .notes-archive-list {
  margin: 0;
  padding: 8px;
  background: rgba(var(--bg-elevated-rgb), 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.notes-archive-mobile-panel .notes-archive-list a {
  border-radius: 6px;
}

@media (max-width: 900px) {
  .notes-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 16px 80px;
  }
  .notes-archive { display: none; }
  .notes-archive-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;       /* push button + panel to the right */
  }
}

/* ─── POSTS STREAM ─── */
.notes-posts {
  min-width: 0;
}
.notes-article {
  margin-bottom: 96px;
  padding-top: 24px;
  scroll-margin-top: 88px;
}
.notes-article:first-child {
  padding-top: 0;
}
.notes-article + .notes-article {
  padding-top: 72px;
  border-top: 1px solid var(--border);
}
.notes-article-hero {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-elevated);
  border-radius: 10px;
  margin-bottom: 28px;
}
.notes-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.notes-article-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}
.notes-article .prose {
  max-width: none; /* let prose fill the column */
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-primary);
}
.notes-article .prose p {
  margin-bottom: 28px;
}
.notes-article .prose h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-primary);
  margin: 56px 0 18px;
  line-height: 1.25;
}
@media (max-width: 600px) {
  .notes-article .prose {
    font-size: 17px;
  }
}

/* ─── SEEK ARROWS ─── */
.notes-seek {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom);
}
.notes-seek button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--bg-elevated-rgb), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  opacity: 0.32;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.notes-seek button.active {
  opacity: 1;
  color: var(--accent);
  border-color: var(--border-accent);
}
.notes-seek button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.notes-seek button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.notes-seek button:disabled {
  cursor: default;
  opacity: 0.15;
}
.notes-seek svg {
  display: block;
}

@media (max-width: 600px) {
  .notes-seek {
    right: 16px;
    bottom: 16px;
  }
}

/* ─── PREVIEW SECTION (home + about) ─── */
.notes-previews {
  padding: 140px 0;
}
.notes-previews .container {
  max-width: 1200px;
}
.notes-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
  max-width: 1100px;          /* caps the 3-up row so cards don't stretch on wide screens */
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .notes-preview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }
}
.notes-preview-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.notes-preview-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  text-decoration: none;
}
html.light .notes-preview-card:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}
.notes-preview-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-surface);
  background-size: cover;
  background-position: center;
}
.notes-preview-body {
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.notes-preview-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}
.notes-preview-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.notes-preview-excerpt {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 18px;
  flex: 1;
}
.notes-preview-cta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}

/* Hairline separator when section follows another default-bg section (about.html) */
.notes-previews.has-top-rule {
  border-top: 1px solid var(--border);
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .notes-archive-mobile-panel,
  .notes-archive-mobile-chevron,
  .notes-preview-card,
  .notes-seek button {
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
