* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f7f6f3; color: #292927; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #225f54; text-underline-offset: 3px; }
a:hover { color: #163e37; }
button, textarea, input { font: inherit; }
.page-shell { width: min(1100px, calc(100% - 36px)); margin: 0 auto; }
.site-header { display: flex; justify-content: center; padding: 18px 0 14px; }
.site-logo { display: block; width: min(280px, 76vw); line-height: 0; }
.site-logo img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.main-menu { display: flex; gap: 28px; padding: 0 0 16px; border-bottom: 1px solid #deded8; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 28px; border-top: 1px solid #deded8; color: #737873; font-size: 13px; }
.main-menu a { color: #404a45; font-size: 14px; font-weight: 600; text-decoration: none; }
.main-menu a:hover { color: #225f54; text-decoration: underline; }
main { padding: 32px 0 64px; }
.site-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 24px; }
.content-column, .sidebar { min-width: 0; }
.sidebar { display: grid; gap: 18px; }
.widget { padding: 17px 18px; border: 1px solid #e2e2db; border-radius: 8px; background: #fff; }
.widget h2 { margin: 0 0 13px; padding-bottom: 8px; border-bottom: 1px solid #e9e9e4; font-size: 16px; line-height: 1.3; }
.widget p { margin: 0; color: #737873; font-size: 13px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 9px; font-size: 13px; }
.widget li span { color: #737873; }
.widget-more { display: inline-block; margin-top: 4px; font-size: 13px; }
.widget-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.widget-tags a { padding: 3px 8px; border-radius: 999px; background: #edf3ed; font-size: 12px; text-decoration: none; }
.widget-comments li a { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.search-form { display: flex; gap: 6px; }
.search-form input { width: 100%; min-width: 0; padding: 8px; border: 1px solid #cdd1cb; border-radius: 6px; }
.search-form button { padding: 7px 9px; border: 0; border-radius: 6px; background: #225f54; color: #fff; cursor: pointer; font-size: 12px; }
.search-form button:hover { background: #194b42; }
.search-results { margin: -8px 0 22px; color: #737873; font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.main-column { min-width: 0; }
.add-post-box { padding: 20px; border: 1px solid #d9e4dc; border-radius: 9px; background: #edf3ed; }
.add-post-box .form-intro { margin: 0 0 12px; color: #5f6761; font-size: 14px; }
.tag-picker { margin-top: 16px; }
.tag-picker p { margin: 0 0 8px; color: #5f6761; font-size: 14px; }
.tag-picker-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pick { padding: 6px 10px; border: 1px solid #b9cfc0; border-radius: 999px; background: #fff; color: #225f54; cursor: pointer; font-size: 13px; }
.tag-pick:hover { background: #d8e8dc; }
.tag-pick:disabled { border-color: #8fac9c; background: #d8e8dc; color: #225f54; cursor: default; }
.tag-pick:focus-visible { outline: 3px solid #d7a755; outline-offset: 2px; }
form label { display: block; margin: 15px 0 6px; font-weight: 600; }
input[type=file], input[type=text], textarea { width: 100%; max-width: 100%; border: 1px solid #cdd1cb; border-radius: 6px; padding: 10px; background: #fff; }
textarea { resize: vertical; }
.form-button { display: block; margin: 16px 0 8px; padding: 10px 16px; border: 0; border-radius: 6px; background: #225f54; color: #fff; font-weight: 600; cursor: pointer; }
.form-button:hover { background: #194b42; }
.form-error { padding: 10px; border: 1px solid #d69b9b; border-radius: 6px; background: #fff1f1; color: #8b2828; }
form small { display: block; margin-top: 6px; color: #737873; font-size: 12px; }
.section-title, .detail-title { margin: 0 0 20px; font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.empty-box { padding: 28px 20px; border: 1px solid #e2e2db; border-radius: 8px; background: #fff; color: #656b65; text-align: center; }
.photo-card, .photo-detail { margin: 0 0 24px; overflow: hidden; border: 1px solid #e2e2db; border-radius: 9px; background: #fff; }
.photo-card-top { display: flex; justify-content: space-between; gap: 12px; padding: 17px 18px 14px; font-size: 14px; font-weight: 600; }
.photo-card-top span, .photo-date { color: #7a817a; font-size: 13px; font-weight: 400; }
.photo-link { display: block; text-align: center; background: #f2f2ef; }
.photo-link img { display: block; width: auto; max-width: 100%; max-height: 650px; height: auto; margin: 0 auto; }
.caption { margin: 0; padding: 16px 18px 0; overflow-wrap: anywhere; white-space: normal; }
.tag-filter, .photo-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter { margin: -6px 0 22px; }
.photo-tags { padding: 14px 18px 0; }
.tag-filter a, .photo-tags a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #edf3ed; color: #225f54; font-size: 13px; text-decoration: none; }
.tag-filter a:hover, .photo-tags a:hover, .tag-filter a[aria-current="page"] { background: #d8e8dc; }
.photo-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 16px; padding: 16px 18px; font-size: 14px; }
.action-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-button { padding: 9px 14px; border: 1px solid #1b5147; border-radius: 6px; background: #225f54; color: #fff; font-weight: 650; cursor: pointer; }
.share-button:hover { background: #194b42; color: #fff; }
.share-button:visited { color: #fff; }
.facebook-share { display: inline-flex; align-items: center; border-color: #1457a8; background: #1769cf; text-decoration: none; }
.facebook-share:hover { background: #1055ae; }
.share-button[data-copy-url] { border-color: #844717; background: #9a5524; }
.share-button[data-copy-url]:hover { background: #7e4219; }
.share-button:focus-visible { outline: 3px solid #d7a755; outline-offset: 2px; }
.share-button:disabled { opacity: .6; cursor: wait; }
.photo-page { min-width: 0; }
.back-link { margin: 0 0 24px; font-size: 14px; }
.photo-detail { text-align: center; }
.photo-date { margin: 0; padding: 16px 18px; text-align: left; }
.photo-detail img { display: block; width: auto; max-width: 100%; max-height: 850px; height: auto; margin: 0 auto; }
.detail-caption { text-align: left; }
.photo-navigation { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 24px 0 42px; font-size: 14px; }
.photo-navigation span { color: #a5aaa5; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 38px; font-size: 14px; }
.pagination span { color: #737873; }
.archive-month { margin: 0 0 36px; }
.archive-month h2 { margin: 0 0 14px; font-size: 19px; text-transform: capitalize; }
.archive-month h2 span { color: #7a817a; font-weight: 400; }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.archive-grid a { display: block; overflow: hidden; border: 1px solid #e2e2db; border-radius: 8px; background: #fff; text-decoration: none; }
.archive-grid img { display: block; width: 100%; height: 145px; object-fit: cover; background: #f2f2ef; }
.archive-grid span { display: block; overflow: hidden; padding: 8px 10px; color: #292927; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.comments-section { border-top: 1px solid #deded8; padding-top: 32px; }
.comment { margin: 0 0 12px; padding: 16px 18px; border: 1px solid #e2e2db; border-radius: 8px; background: #fff; }
.comment-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.comment-heading span { color: #7a817a; font-size: 12px; font-weight: 400; }
.comment-body { overflow-wrap: anywhere; }
.comment-form-box { margin-top: 30px; padding: 20px; border: 1px solid #d9e4dc; border-radius: 9px; background: #edf3ed; }
.comment-form-box h2 { margin: 0 0 4px; font-size: 19px; }
.comment-form-box p { margin: 0; color: #5f6761; font-size: 14px; }
@media (max-width: 680px) {
    .site-layout { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .page-shell { width: calc(100% - 28px); }
    .site-header { padding-top: 16px; }
    main { padding-top: 24px; }
    .sidebar { grid-template-columns: 1fr; }
    .photo-card-top, .comment-heading { flex-wrap: wrap; }
    .photo-navigation { justify-content: center; }
    .main-menu { gap: 18px; flex-wrap: wrap; }
}
