@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root { --ink: #4a3f35; --muted: #b0a08d; --line: #f0e6d6; --paper: #fffbf3; --peach: #ffe9d6; --accent: #e28a5f; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Quicksand', -apple-system, sans-serif; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Quicksand', sans-serif; margin: 0; font-weight: 700; }
.script { font-family: 'Caveat', cursive; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.placeholder-img { background: var(--peach); display: flex; align-items: center; justify-content: center; color: #d9b696; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; object-fit: cover; }

.site-header { padding: 50px 24px 20px; text-align: center; }
.logo-group { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.logo-box { width: 64px; height: 64px; border-radius: 50%; transform: rotate(-4deg); background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Caveat', cursive; font-weight: 700; font-size: 30px; }
.logo-img { height: 160px; width: auto; max-width: 480px; object-fit: contain; }
.site-name { font-family: 'Caveat', cursive; font-size: 42px; margin-top: 8px; color: var(--accent); }
.site-tagline { font-size: 13.5px; color: var(--muted); }

.main-nav { padding: 6px 0 20px; }
.main-nav .wrap { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.main-nav a { font-size: 12.5px; font-weight: 600; background: var(--peach); padding: 7px 15px; border-radius: 99px; }
.main-nav a.home { background: var(--accent); color: #fff; }
.main-nav a:hover:not(.home) { background: #ffdcbe; }

.layout { max-width: 720px; margin: 0 auto; padding: 30px 24px 60px; }

.post-list-item { padding: 28px; margin-bottom: 26px; background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(190,150,110,.1); }
.post-list-item .thumb-wrap { transform: rotate(-1.5deg); margin-bottom: 16px; }
.post-list-item:nth-child(even) .thumb-wrap { transform: rotate(1.5deg); }
.post-list-item .thumb { width: 100%; height: 240px; border-radius: 8px; border: 6px solid #fff; box-shadow: 0 4px 14px rgba(190,150,110,.2); }
.cat-tag { display: inline-block; background: var(--peach); color: var(--accent); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 11px; border-radius: 99px; margin-bottom: 8px; }
.post-list-item h2 { font-size: 24px; margin: 0 0 8px; }
.post-list-item p { color: #7a6b5b; font-size: 15px; margin: 0 0 10px; }
.meta, .byline { color: var(--muted); font-size: 12px; }
.featured-ribbon { display: inline-block; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 11px; border-radius: 99px; margin-bottom: 8px; margin-right: 6px; }

.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-family: 'Caveat', cursive; font-size: 40px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 22px; border-radius: 99px; font-weight: 700; }

.category-title { font-family: 'Caveat', cursive; font-size: 42px; color: var(--accent); text-align: center; margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 13px; text-align: center; display: block; margin-bottom: 24px; }

.single-post-header { text-align: center; margin-bottom: 26px; }
.single-post-header h1 { font-size: 32px; margin: 8px 0 10px; }
.single-post-headline { width: 100%; border-radius: 14px; border: 8px solid #fff; box-shadow: 0 8px 24px rgba(190,150,110,.25); margin-bottom: 30px; }
.single-post-content { font-size: 17px; line-height: 1.85; background: #fff; padding: 30px; border-radius: 18px; box-shadow: 0 6px 20px rgba(190,150,110,.1); }
.single-post-content p { margin: 0 0 20px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-content img { border-radius: 10px; margin: 20px 0; }
.single-post-content blockquote { font-family: 'Caveat', cursive; font-size: 28px; color: var(--accent); border-left: 4px solid var(--accent); margin: 24px 0; padding: 6px 0 6px 20px; line-height: 1.3; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; justify-content: center; }
.tag-pill-link { background: var(--peach); color: var(--accent); font-size: 12.5px; font-weight: 600; padding: 5px 13px; border-radius: 99px; }

.related-posts { margin-top: 40px; }
.related-posts h2 { font-family: 'Caveat', cursive; font-size: 28px; color: var(--accent); text-align: center; margin-bottom: 16px; }

.search-form { display: flex; gap: 8px; margin: 0 0 26px; }
.search-form input { flex: 1; padding: 11px 16px; border: none; background: #fff; border-radius: 99px; font-family: inherit; box-shadow: 0 3px 10px rgba(190,150,110,.12); }
.search-form button { background: var(--accent); color: #fff; border: none; border-radius: 99px; padding: 0 20px; cursor: pointer; font-weight: 700; }

.site-footer { text-align: center; padding: 40px 24px; }
.site-footer .footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; margin-bottom: 8px; }
.site-footer .footer-links a { color: var(--muted); }
.footer-bottom { font-family: 'Caveat', cursive; font-size: 18px; color: var(--accent); }

/* ---- Front page (Opinion & Columns editorial layout) ---- */
.opinion-front { max-width: 980px; margin: 0 auto; padding: 34px 24px 60px; }
.opinion-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.lead-opinion { background: #fff; border-radius: 20px; padding: 34px; box-shadow: 0 8px 26px rgba(190,150,110,.12); }
.lead-opinion h1 { font-size: 32px; line-height: 1.2; margin: 8px 0 14px; }
.lead-opinion .dek { font-family: 'Caveat', cursive; font-size: 26px; color: var(--accent); line-height: 1.3; margin: 0 0 18px; }
.col-byline { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.col-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-family: 'Caveat', cursive; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.col-name { font-weight: 700; font-size: 13px; }

.more-opinions { background: #fff; border-radius: 20px; padding: 26px; box-shadow: 0 8px 26px rgba(190,150,110,.1); }
.more-opinions h2 { font-family: 'Caveat', cursive; font-size: 26px; color: var(--accent); margin: 0 0 14px; }
.more-opinions ul { list-style: none; margin: 0; padding: 0; }
.more-opinions li { display: flex; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.more-opinions li:first-child { border-top: none; padding-top: 0; }
.more-opinions li.muted { color: var(--muted); font-size: 13px; }
.more-opinions h3 { font-size: 15px; line-height: 1.3; margin: 2px 0 4px; }
.more-opinions h3 a:hover { text-decoration: underline; }

.section-grid-diary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.section-block { background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 6px 20px rgba(190,150,110,.1); }
.section-block h2 { font-family: 'Caveat', cursive; font-size: 24px; color: var(--accent); margin: 0 0 12px; }
.section-block ul { list-style: none; margin: 0; padding: 0; }
.section-block li { display: flex; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.section-block li:first-child { border-top: none; padding-top: 0; }
.section-block .col-avatar { width: 30px; height: 30px; font-size: 14px; }
.section-block h3 { font-size: 14px; line-height: 1.3; margin: 0 0 3px; }

@media (max-width: 760px) {
  .opinion-grid { grid-template-columns: 1fr; }
  .section-grid-diary { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .single-post-header h1 { font-size: 26px; }
  .post-list-item h2 { font-size: 20px; }
  .lead-opinion h1 { font-size: 26px; }
}
