.field-notes-home { padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--border); background: #fff; }
.notes-section-heading { display: grid; grid-template-columns: 1fr minmax(280px, .65fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.notes-section-heading h2, .notes-library-head h2 { margin-top: .85rem; font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.notes-section-heading > div:last-child { justify-self: end; max-width: 52ch; }
.notes-section-heading > div:last-child p { color: var(--text-muted); line-height: 1.7; }
.notes-section-heading > div:last-child a { display: inline-flex; gap: .35rem; margin-top: .85rem; color: var(--accent); font-size: .76rem; font-weight: 800; text-decoration: none; }

.notes-home-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; min-height: 30rem; }
.field-note-card, .note-library-card { overflow: hidden; border: 1px solid #d8d6df; border-radius: 1.25rem; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.field-note-card:hover, .note-library-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(23,19,51,.1); }
.field-note-image, .note-library-image { display: block; overflow: hidden; background: #f4f1fa; }
.field-note-image { aspect-ratio: 1 / 1; }
.field-note-image img, .note-library-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.field-note-card:hover img, .note-library-card:hover img { transform: scale(1.018); }
.field-note-copy { padding: 1.2rem; }
.field-note-meta, .note-library-meta { display: flex; gap: .5rem; color: var(--text-muted); font-size: .61rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.field-note-meta span + span::before, .note-library-meta span + span::before { content: '·'; margin-right: .5rem; }
.field-note-card h3, .note-library-card h3 { margin: .7rem 0 .55rem; font-size: 1.05rem; line-height: 1.35; letter-spacing: -.025em; }
.field-note-card h3 a, .note-library-card h3 a { color: inherit; text-decoration: none; }
.field-note-card p, .note-library-card > div > p:not(.note-library-meta) { color: var(--text-muted); font-size: .77rem; line-height: 1.65; }
.field-note-read { display: inline-flex; gap: .35rem; margin-top: .9rem; color: var(--accent); font-size: .7rem; font-weight: 800; text-decoration: none; }
.notes-loading, .notes-error { grid-column: 1 / -1; padding: 3rem; color: var(--text-muted); text-align: center; }

.notes-rotation-controls { display: flex; justify-content: center; gap: .6rem; align-items: center; margin-top: 1.5rem; }
.notes-rotation-controls button { border: 1px solid #d8d6df; border-radius: 999px; background: #f7f6f9; color: var(--text); min-width: 2.35rem; min-height: 2.35rem; padding: .5rem .75rem; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.notes-rotation-controls button:hover { border-color: var(--accent); background: #f0edff; }
.notes-rotation-controls span { min-width: 5.6rem; color: var(--text-muted); font-size: .68rem; font-weight: 700; text-align: center; }
.notes-rotation-controls .notes-pause { min-width: 7.5rem; }
.mockup-note-link { display: inline-flex; gap: .35rem; align-items: center; align-self: flex-start; flex: 0 0 auto; padding: .45rem .7rem; border-radius: 999px; background: var(--text); color: #fff; font-size: .62rem; font-weight: 800; text-decoration: none; }
.mockup-note-link:hover, .mockup-note-link:focus { background: var(--card-accent,var(--accent)); }

.notes-hero { padding-block: clamp(5rem, 10vw, 8.5rem); background: radial-gradient(circle at 92% 15%, rgba(229,222,250,.8), transparent 25rem), radial-gradient(circle at 8% 85%, rgba(217,243,231,.7), transparent 24rem), #fff; }
.notes-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(2rem, 8vw, 8rem); align-items: end; }
.notes-hero h1 { max-width: 12ch; margin-top: 1.25rem; font-size: clamp(3.8rem, 7.5vw, 7.2rem); line-height: .94; letter-spacing: -.06em; }
.notes-hero-grid > div:last-child > p { color: var(--text-muted); font-size: clamp(1rem,1.5vw,1.18rem); line-height: 1.75; }
.notes-count { display: flex; gap: .8rem; align-items: end; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
.notes-count strong { font-size: 2.2rem; line-height: 1; }
.notes-count span { max-width: 12ch; color: var(--text-muted); font-size: .68rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; }

.notes-library { padding-block: clamp(4rem,8vw,7rem); background: #faf9fc; }
.notes-library-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.notes-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.notes-filters button { padding: .55rem .8rem; border: 1px solid #d8d6df; border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: .68rem; font-weight: 800; cursor: pointer; }
.notes-filters button[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: #fff; }
.notes-library-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.2rem; }
.note-library-card { border-top: 4px solid var(--note-color); }
.note-library-image { aspect-ratio: 1 / 1; }
.note-library-card > div { padding: 1.15rem; }

.note-detail { max-width: 1120px; margin-inline: auto; }
.note-back { display: inline-flex; margin-bottom: 1.25rem; color: var(--text); font-size: .75rem; font-weight: 800; text-decoration: none; }
.note-article { overflow: hidden; border: 1px solid #d8d6df; border-radius: 1.5rem; background: #fff; }
.note-article > header { display: grid; grid-template-columns: 1fr minmax(300px,.75fr); gap: clamp(2rem,5vw,5rem); align-items: center; padding: clamp(1.5rem,4vw,3.5rem); background: color-mix(in srgb,var(--note-color) 8%,#fff); }
.note-article > header img { width: 100%; border: 1px solid color-mix(in srgb,var(--note-color) 25%,#d8d6df); border-radius: 1.2rem; }
.note-detail-meta { color: var(--note-color); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.note-article h1 { margin: .9rem 0 1rem; font-size: clamp(2.5rem,5vw,5rem); line-height: .98; letter-spacing: -.055em; }
.note-detail-hook { max-width: 48ch; color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.note-article-body { max-width: 760px; margin-inline: auto; padding: clamp(2rem,6vw,5rem) clamp(1.4rem,4vw,3rem); }
.note-article-body p { color: #4f4b5e; font-size: clamp(1rem,1.5vw,1.1rem); line-height: 1.85; }
.note-article-body p + p { margin-top: 1.25rem; }
.note-article-body .note-hashtags { color: var(--note-color); font-size: .82rem; font-weight: 800; }
.note-article > footer { display: flex; justify-content: space-between; gap: 1.5rem; align-items: center; padding: 1.4rem clamp(1.4rem,4vw,3rem); border-top: 1px solid #e9e7ed; background: #f8f7fa; }
.note-article > footer span, .note-article > footer strong { display: block; }
.note-article > footer span { color: var(--text-muted); font-size: .63rem; font-weight: 800; text-transform: uppercase; }
.note-article > footer strong { margin-top: .2rem; }
.note-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.note-actions .btn { font-size: .7rem; }

@media (max-width: 900px) {
  .notes-home-grid, .notes-library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .notes-hero-grid, .notes-section-heading { grid-template-columns: 1fr; }
  .notes-section-heading > div:last-child { justify-self: start; }
  .note-article > header { grid-template-columns: 1fr; }
  .note-article > header img { max-width: 34rem; }
}

@media (max-width: 640px) {
  .notes-home-grid, .notes-library-grid, .notes-library-head { grid-template-columns: 1fr; }
  .notes-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
  .notes-filters button { flex: none; }
  .notes-hero h1 { font-size: clamp(3.2rem,15vw,4.8rem); }
  .note-article > footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .field-note-card, .note-library-card, .field-note-image img, .note-library-image img { transition: none; }
}
