/* Theme "chronicle": a quieter, text-first broadsheet - centered serif
   wordmark, a minimal pipe-divided small-caps nav (no filled active state,
   just a red underline), "double rule flanking the section name" headings,
   dense list-style cards (small thumb left, text right) instead of
   image-top cards, and a light parchment footer instead of a dark one. No
   scrolling ticker or pill strip - deliberately calmer than "gazette" or
   "bulletin". Same class-name contract as the other themes (see
   functions/_themes/chronicle.js). */
:root {
  --ink: #1a1a1a; --muted: #666666; --line: #dcdcdc; --paper: #ffffff;
  --accent: #8b1a1a; --accent-ink: #ffffff; --sidebar-bg: #f7f5f2;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body { font-family: 'Inter', -apple-system, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; margin: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.placeholder-img { background: repeating-linear-gradient(45deg, #f0efec, #f0efec 10px, #e6e4de 10px, #e6e4de 20px); display: flex; align-items: center; justify-content: center; color: #9a9690; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; object-fit: cover; }

.topbar { background: #fff; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 7px 24px; flex-wrap: wrap; gap: 6px; }
.topbar-left { display: flex; gap: 18px; align-items: center; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.social-dot { width: 21px; height: 21px; border-radius: 50%; border: 1px solid #ccc; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: var(--muted); }

.site-header { background: #fff; border-bottom: 1px solid var(--ink); }
.header-inner { display: flex; align-items: center; justify-content: center; padding: 26px 24px 22px; }
.logo-group { display: flex; align-items: center; gap: 14px; }
.logo-box { width: 56px; height: 56px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 22px; }
.logo-img { height: 130px; width: auto; max-width: 460px; object-fit: contain; flex-shrink: 0; }
.site-name { font-size: 40px; font-weight: 700; letter-spacing: .04em; text-align: center; }
.site-tagline { font-size: 12.5px; color: var(--muted); font-style: italic; margin-top: 4px; text-align: center; letter-spacing: .02em; }

.main-nav { background: #fff; border-bottom: 3px double var(--line); }
.main-nav .wrap { display: flex; gap: 0; justify-content: center; flex-wrap: wrap; padding: 9px 0; }
.main-nav a { color: var(--ink); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 4px 16px; border-right: 1px solid var(--line); }
.main-nav a:last-child { border-right: none; }
.main-nav a.home { color: var(--accent); }
.main-nav a:hover { color: var(--accent); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 36px; padding: 34px 24px 20px; max-width: 1180px; margin: 0 auto; align-items: start; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.breadcrumb a { font-weight: 700; color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: #ccc; }

/* Centered "double rule flanking the section name" heading - the recurring
   motif of this theme, in place of a boxed or underlined header. */
.section-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.section-heading h2 { display: flex; align-items: center; gap: 14px; flex: 1; color: var(--accent); font-size: 20px; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; min-width:0; overflow:hidden; text-overflow:ellipsis; font-family: 'Inter', sans-serif; font-weight: 800; }
.section-heading h2::before { content: ""; order: -1; flex: 1; height: 0; border-top: 3px double var(--line); }
.section-heading h2::after { content: ""; flex: 1; height: 0; border-top: 3px double var(--line); }
.section-heading .see-all { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
section.cat-section { margin-bottom: 48px; }

.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-bottom: 44px; }
.hero-main .placeholder-img, .hero-main img { width: 100%; height: 330px; margin-bottom: 16px; }
.cat-tag { color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.hero-main h1 { font-size: 33px; line-height: 1.2; margin: 8px 0 10px; font-weight: 700; }
.hero-main p { color: var(--muted); font-size: 15.5px; margin: 0 0 8px; }
.meta { color: #9a9690; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.hero-side { display: flex; flex-direction: column; gap: 0; }
.hero-side-item { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.hero-side-item:first-child { border-top: none; padding-top: 0; }
.hero-side-item .placeholder-img, .hero-side-item img { width: 92px; height: 72px; flex-shrink: 0; font-size: 9px; }
.hero-side-item h3 { font-size: 15px; line-height: 1.32; margin: 3px 0; font-weight: 700; }

.tech-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tech-item { border-left: 3px solid var(--accent); padding-left: 14px; display: block; }
.tech-item .placeholder-img, .tech-item img { width: 100%; height: 88px; margin-bottom: 10px; font-size: 9px; }
.tech-item h3 { font-size: 14px; line-height: 1.3; margin: 0; font-weight: 700; }

.picks-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; background: var(--sidebar-bg); padding: 28px; border: 1px solid var(--line); }
.picks-feature { display: block; }
.picks-feature .placeholder-img, .picks-feature img { width: 100%; height: 234px; margin-bottom: 14px; font-size: 10px; }
.picks-feature h3 { font-size: 22px; line-height: 1.24; margin: 8px 0; }
.picks-list { list-style: none; margin: 0; padding: 0; counter-reset: pick; }
.picks-list li { counter-increment: pick; display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.picks-list li:last-child { border-bottom: none; }
.picks-list li::before { content: counter(pick); font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--accent); width: 26px; flex-shrink: 0; }
.picks-list .p-title { font-size: 14px; font-weight: 600; line-height: 1.3; }

.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lifestyle-card { position: relative; overflow: hidden; height: 250px; display: block; }
.lifestyle-card .placeholder-img, .lifestyle-card img { width: 100%; height: 100%; }
.lifestyle-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 38px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; }
.lifestyle-overlay h3 { color: #fff; font-size: 16px; margin-top: 4px; }

.travel-feature { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--ink); color: #fff; overflow: hidden; margin-bottom: 20px; }
.travel-feature .placeholder-img, .travel-feature > img { width: 100%; height: 100%; min-height: 250px; }
.travel-copy { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.travel-copy h3 { color: #fff; font-size: 23px; margin: 10px 0 12px; line-height: 1.26; }
.travel-copy p { color: #cfcfcf; font-size: 14px; margin: 0; }
.travel-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.travel-small .placeholder-img, .travel-small img { width: 100%; height: 126px; margin-bottom: 10px; font-size: 9px; }
.travel-small h3 { font-size: 14.5px; line-height: 1.3; font-weight: 700; }

.business-list { border-top: 1px solid var(--line); }
.business-row { display: flex; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.business-row .placeholder-img, .business-row img { width: 88px; height: 64px; flex-shrink: 0; font-size: 8px; }
.business-row h3 { font-size: 15px; line-height: 1.3; margin: 4px 0 4px; font-weight: 700; }

.popular-list { list-style: none; margin: 0; padding: 0; counter-reset: pop; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.popular-list li { counter-increment: pop; display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.popular-list li::before { content: counter(pop); font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--accent); width: 26px; flex-shrink: 0; }
.popular-list .pop-title { font-size: 14px; font-weight: 600; line-height: 1.3; }

.cta-banner { background: var(--sidebar-bg); color: var(--ink); padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; border-top: 3px double var(--line); border-bottom: 3px double var(--line); }
.cta-banner h2 { color: var(--ink); font-size: 22px; margin-bottom: 6px; }
.cta-banner p { margin: 0; font-size: 14px; color: var(--muted); }
.cta-form { display: flex; gap: 10px; flex-shrink: 0; }
.cta-form input { padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; width: 240px; font-family: inherit; background: #fff; color: var(--ink); }
.cta-form button { padding: 12px 20px; border: none; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }

.widget { background: var(--sidebar-bg); border: 1px solid var(--line); padding: 20px; margin-bottom: 20px; }
.widget h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-bottom: 16px; font-family: 'Inter', sans-serif; color: var(--accent); }
.weather-widget { background: var(--ink); color: #fff; border-color: var(--ink); }
.weather-widget h3 { color: #d6d3cd; }
.weather-now { display: flex; align-items: center; justify-content: space-between; }
.weather-now .temp-big { font-size: 40px; font-weight: 700; }
.weather-now .cond { font-size: 13px; color: #d6d3cd; }
.weather-date { font-size: 12.5px; color: #9a9690; margin-top: 12px; border-top: 1px solid #3a3a38; padding-top: 12px; }
.weather-date .clock { font-weight: 700; color: #fff; font-size: 15px; }
.trending-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; }
.trending-list li { counter-increment: trend; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.trending-list li:last-child { border-bottom: none; padding-bottom: 0; }
.trending-list li::before { content: counter(trend); font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 700; color: var(--accent); flex-shrink: 0; width: 24px; }
.trending-list .t-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.trending-list .t-meta { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.newsletter-widget p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.newsletter-widget input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); font-size: 13.5px; margin-bottom: 10px; font-family: inherit; }
.newsletter-widget button { width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; cursor: pointer; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #fff; border: 1px solid var(--line); padding: 6px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.social-row { display: flex; gap: 10px; }
.social-row a { flex: 1; background: #fff; border: 1px solid var(--line); text-align: center; padding: 12px 6px; font-size: 12px; font-weight: 700; }
.ad-widget { border: 1px dashed #c9c5bc; background: transparent; text-align: center; color: #9a9690; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 60px 10px; }

/* Dense list-row cards - small thumbnail left, text right - instead of
   image-top cards, matching this theme's text-first character. */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.post-card { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-card .placeholder-img, .post-card img { width: 130px; height: 96px; flex-shrink: 0; margin-bottom: 0; font-size: 9px; }
.post-card h3 { font-size: 17px; line-height: 1.3; margin: 4px 0 6px; font-weight: 700; }
.post-card p { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; }

.category-title { font-size: 30px; margin: 0 0 8px; font-weight: 700; }
.category-desc { font-size: 14px; color: var(--muted); font-style: italic; margin: 0 0 26px; }
.pagination { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; text-transform: uppercase; font-size: 12.5px; letter-spacing: .04em; }
.pagination a { color: var(--accent); }

.single-post { max-width: 760px; }
.single-post-header h1 { font-size: 37px; line-height: 1.22; margin: 10px 0 14px; }
.single-post-headline { width: 100%; max-height: 470px; object-fit: cover; margin: 20px 0 30px; }
.single-post-content { font-size: 19px; font-family: 'Playfair Display', Georgia, serif; }
.single-post-content p { margin: 0 0 22px; }
.single-post-content h2 { font-size: 25px; margin: 36px 0 16px; }
.single-post-content h3 { font-size: 20px; margin: 28px 0 12px; }
.single-post-content img { margin: 24px 0; width: 100%; }
.single-post-content a { color: var(--accent); text-decoration: underline; }

.related-posts { max-width: 760px; margin: 60px 0 0; border-top: 3px double var(--line); padding-top: 30px; }
.related-posts h2 { font-size: 19px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: .05em; font-family: 'Inter', sans-serif; }

.site-footer { background: var(--sidebar-bg); color: var(--muted); padding: 46px 24px 20px; margin-top: 20px; border-top: 3px double var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-grid h4 { color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; font-family: 'Inter', sans-serif; }
.footer-grid p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 13px; }
.footer-bottom { padding-top: 18px; font-size: 12px; color: #9a9690; }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty-state h1 { color: var(--ink); font-size: 28px; }
.btn { display: inline-block; margin-top: 16px; background: var(--accent); color: #fff; padding: 10px 20px; font-weight: 600; }

.post-card { position: relative; }
.featured-ribbon {
  display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; margin-bottom: 6px;
}
.single-post-header .featured-ribbon { margin: 6px 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tag-pill-link { background: var(--sidebar-bg); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border: 1px solid var(--line); text-transform: uppercase; letter-spacing: .03em; }
.tag-pill-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.search-form { display: flex; gap: 10px; margin: 0 0 22px; }
.search-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); font-size: 15px; font-family: inherit; }
.search-form button { background: var(--accent); color: #fff; border: none; padding: 0 20px; font-weight: 600; cursor: pointer; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero, .picks-split, .travel-feature { grid-template-columns: 1fr; }
  .tech-row, .lifestyle-grid, .travel-small, .popular-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-card { flex-direction: row; }
}
