body { min-height: 100vh; }
.feed-shell { width: min(1040px, 100%); margin: 0 auto; padding: 0 32px; }
.masthead { display: flex; justify-content: space-between; align-items: center; min-height: 86px; border-bottom: 1px solid var(--border); }
.masthead-note { font-size: 12px; color: var(--muted); }
.profile-header { padding: 64px 0 48px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.profile-header h1 { margin: 14px 0 18px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 4.7vw, 54px); line-height: 1.45; letter-spacing: -.055em; word-break: keep-all; }
.profile-header p { font-size: 14px; line-height: 1.9; color: var(--muted); word-break: keep-all; }
.hero-action { padding-bottom: 4px; }
.hero-action p { margin-top: 11px; font-size: 11px; text-align: right; }
.library-heading { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 28px; gap: 12px; }
.library-heading h2 { font-size: 17px; font-weight: 600; letter-spacing: -.035em; }
.library-heading span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.personal-library { padding: 22px 0 20px; }
.personal-filters { display: flex; gap: 8px; }
.personal-filters button { min-height: 44px; padding: 9px 23px; border: 1px solid var(--border); border-radius: 24px; background: transparent; color: var(--muted); font-size: 13px; transition: background .2s; }
.personal-filters button:hover { background: #e9e5db; }
.personal-filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.personal-library-info { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-top: 20px; color: var(--muted); font-size: 11px; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 30px; }
.feed-item { position: relative; display: flex; min-height: 250px; aspect-ratio: 1.12; text-decoration: none; background: var(--paper); border: 1px solid #ded8cc; border-radius: 14px; box-shadow: 0 3px 9px #51493604; transition: transform var(--motion-medium) var(--ease-out), box-shadow var(--motion-medium), border-color var(--motion-fast); overflow: hidden; }
.feed-item:nth-child(6n+2), .feed-item:nth-child(6n+6) { background: #e8ebdf; }
.feed-item:nth-child(6n+3) { background: #eee4d8; }
.feed-item:nth-child(6n+4) { background: #f1ecdf; }
@media (hover: hover) { .feed-item:hover { transform: translateY(-3px); box-shadow: 0 10px 25px #51493612; border-color: #b5b8a6; } }
.feed-item:active { transform: scale(.975); box-shadow: 0 2px 8px #51493608; }
.feed-thumbnail { display: flex; flex-direction: column; width: 100%; padding: 25px; }
.thumbnail-top { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 20px; }
.thumbnail-date { font-size: 11px; color: #666b5e; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.latest-badge { font-size: 10px; color: var(--accent); border: 1px solid #bbc4b0; padding: 3px 7px; border-radius: 20px; white-space: nowrap; }
.thumbnail-title { margin: 25px 0 14px; font-family: var(--serif); font-size: 22px; line-height: 1.65; letter-spacing: -.05em; font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }
.personal-badges { display: flex; flex-wrap: wrap; gap: 5px 10px; color: #42583d; font-size: 11px; margin-bottom: 16px; }
.personal-badges:has(> [hidden]):not(:has(> :not([hidden]))) { display: none; }
.thumbnail-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #464f3420; color: #696d60; font-size: 11px; }
.thumbnail-foot span:last-child { font-size: 17px; color: var(--accent); }
.personal-empty { padding: 55px 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.9; border: 1px dashed var(--border); border-radius: 10px; background: #fffdf755; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0 0; padding: 24px 0 34px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.site-footer img { display: block; width: 46px; height: 46px; object-fit: contain; opacity: .8; cursor: pointer; }
.unavailable { max-width: 600px; margin: 14vh auto; padding: 36px; }
.unavailable h1 { font-family: var(--serif); font-size: 30px; line-height: 1.6; font-weight: 500; word-break: keep-all; margin: 24px 0 16px; }
.unavailable p { color: var(--muted); font-size: 14px; line-height: 1.9; margin-bottom: 24px; }
@media (max-width: 640px) {
    .feed-shell { padding: 0 16px; }
    .masthead { min-height: 80px; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 0; }
    .masthead-note { font-size: 10px; }
    .profile-header { padding: 28px 0; grid-template-columns: 1fr; gap: 20px; text-align: center; }
    .profile-header h1 { font-size: 34px; margin: 10px 0 12px; line-height: 1.4; }
    .profile-header p { font-size: 13px; }
    .hero-action { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0; }
    .hero-action .primary-link { width: 200px; gap: 22px; font-size: 13px; padding: 11px 20px; }
    .hero-action p { text-align: center; margin: 0; font-size: 11px; }
    .hero-action p br { display: none; }
    .library-heading { padding-top: 22px; justify-content: center; gap: 10px; flex-wrap: wrap; }
    .library-heading h2 { font-size: 16px; }
    .personal-library { padding: 18px 0 15px; }
    .personal-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .personal-filters button { padding: 8px 4px; font-size: 12px; }
    .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .feed-item { min-height: 184px; aspect-ratio: auto; border-radius: 12px; }
    .feed-thumbnail { padding: 13px 9px 10px; text-align: center; }
    .thumbnail-top { flex-direction: column; justify-content: flex-start; gap: 3px; min-height: 31px; }
    .thumbnail-date { font-size: 9px; letter-spacing: -.02em; white-space: nowrap; }
    .thumbnail-title { font-size: 14px; line-height: 1.65; margin: 12px 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
    .latest-badge { font-size: 9px; padding: 2px 5px; }
    .thumbnail-foot { font-size: 9px; padding-top: 9px; gap: 3px; }
    .thumbnail-foot span:last-child { font-size: 13px; }
    .personal-badges { justify-content: center; font-size: 9px; gap: 4px; margin-bottom: 10px; }
    .site-footer { justify-content: center; flex-direction: column-reverse; text-align: center; gap: 10px; }
}
@media (max-width: 350px) {
    .feed-shell { padding: 0 12px; }
    .feed-grid { gap: 6px; }
    .feed-thumbnail { padding-inline: 7px; }
    .thumbnail-title { font-size: 13px; }
}
