.notes-hero {
    padding: 48px 0 60px;
    background: radial-gradient(circle at 85% 20%,#e5d9c8 0,transparent 30%),linear-gradient(120deg,#eee8df,#fbfaf8);
    border-bottom: 1px solid var(--line);
}

.notes-hero h1 {
    max-width: 840px;
    margin: 10px 0 14px;
    font-size: clamp(44px,6vw,72px);
    line-height: 1.08;
}

.notes-hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.notes-directory {
    padding-top: 60px;
    padding-bottom: 90px;
}

.notes-section-head h2,
.all-notes-heading h2 {
    margin: 5px 0 24px;
    font-size: 36px;
}

.popular-notes {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.popular-note-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .18s ease,box-shadow .18s ease;
}

.popular-note-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px #0000000c;
}

.popular-note-image,
.note-thumb {
    display: grid;
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    place-items: center;
    overflow: hidden;
    background: #f1eee8;
    border-radius: 50%;
    color: var(--accent);
}

.popular-note-image img,
.note-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-note-copy,
.note-directory-copy {
    min-width: 0;
}

.popular-note-copy strong,
.popular-note-copy small,
.note-directory-copy strong,
.note-directory-copy small {
    display: block;
}

.popular-note-copy small,
.note-directory-copy small {
    margin-top: 4px;
    color: var(--muted);
}

.all-notes-heading {
    margin-top: 72px;
}

.note-group {
    scroll-margin-top: 145px;
    padding-top: 48px;
}

.note-group > h2 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 34px;
}

.note-directory-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
}

.note-directory-card {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 74px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.note-directory-card:hover {
    border-color: #cbbba8;
}

.note-directory-card .note-thumb {
    width: 46px;
    height: 46px;
    font-size: 10px;
}

.note-directory-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width:900px) {
    .popular-notes,
    .note-directory-grid {grid-template-columns: repeat(2,minmax(0,1fr))}
}

@media (max-width:560px) {
    .notes-hero {padding: 34px 0 44px}
    .notes-hero h1 {font-size: 42px}
    .popular-notes,
    .note-directory-grid {grid-template-columns: 1fr}
    .all-notes-heading {margin-top: 54px}
}
