@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Source+Serif+Pro:ital,wght@0,400;0,600;0,700;1,400&family=Old+Standard+TT:wght@400;700&display=swap');

* { box-sizing: border-box; }
:root {
  --ink: #111;
  --paper: #fbfaf7;
  --rule: #111;
  --hair: #d8d4cc;
  --accent: #b02020;
  --accent-dark: #7a1414;
  --muted: #6b665e;
  --serif-head: 'Playfair Display', 'Old Standard TT', Georgia, serif;
  --serif-body: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --serif-name: 'Old Standard TT', Georgia, serif;
}
body {
  font-family: var(--serif-body);
  color: var(--ink);
  background: var(--paper);
  margin: 0;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }

/* Masthead ============================================================ */
.masthead {
  border-bottom: 3px double var(--rule);
  padding: 1.4rem 0 .9rem;
  background: var(--paper);
}
.masthead .top-strip {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--serif-body);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--hair);
  padding-bottom: .35rem; margin-bottom: .7rem;
}
.masthead .top-strip a { color: var(--muted); text-decoration: none; }
.masthead .top-strip a:hover { color: var(--accent); }
.masthead .nameplate {
  font-family: var(--serif-name);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.01em;
  text-align: center;
  margin: .1rem 0 .25rem;
}
.masthead .nameplate a { color: var(--ink); text-decoration: none; }
.masthead .nameplate .dot { color: var(--accent); }
.masthead .tagline {
  text-align: center;
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}
.masthead nav.sections {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: .8rem;
  padding: .35rem 0;
  text-align: center;
  font-family: var(--serif-body);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.masthead nav.sections a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 .7rem;
  display: inline-block;
}
.masthead nav.sections a:hover { color: var(--accent); }

/* Layout ============================================================= */
main { padding: 2rem 0 3rem; }
.site-footer {
  border-top: 3px double var(--rule);
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: .82rem;
  font-family: var(--serif-body);
}
.site-footer .colophon {
  text-align: center; font-style: italic;
}

/* Section titles ===================================================== */
.section-title {
  font-family: var(--serif-head);
  font-weight: 900;
  font-size: 1.4rem;
  margin: 0 0 1.2rem;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
}
.section-title .kicker {
  font-family: var(--serif-body);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}

/* List (homepage) ==================================================== */
.list-item {
  margin: 0 0 1.8rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--hair);
}
.list-item .kicker {
  font-family: var(--serif-body);
  font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: .15rem;
}
.list-item .kicker a { color: inherit; text-decoration: none; }
.list-item .kicker a:hover { text-decoration: underline; }
.list-item h2 {
  font-family: var(--serif-head);
  font-weight: 700;
  margin: 0 0 .3rem;
  font-size: 1.7rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.list-item h2 a { color: var(--ink); text-decoration: none; }
.list-item h2 a:hover { color: var(--accent-dark); text-decoration: underline; }
.meta {
  color: var(--muted);
  font-family: var(--serif-body);
  font-size: .82rem;
  margin: .1rem 0 .6rem;
  font-style: italic;
}
.meta a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--hair); }
.excerpt { color: #2a2a2a; font-size: 1.02rem; line-height: 1.5; }
.excerpt p { margin: .3rem 0; }

/* Single article ===================================================== */
.post { margin-bottom: 2rem; }
.post .kicker {
  font-family: var(--serif-body);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: .3rem;
}
.post .kicker a { color: inherit; text-decoration: none; }
.post .kicker a:hover { text-decoration: underline; }
.post-title {
  font-family: var(--serif-head);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 .4rem;
  color: var(--ink);
}
.post .byline {
  font-family: var(--serif-body);
  font-style: italic;
  color: var(--muted);
  font-size: .88rem;
  margin: 0 0 1.2rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--hair);
}
.post .byline .sep { margin: 0 .4rem; color: var(--hair); }
.post-content { font-size: 1.12rem; line-height: 1.65; color: #1a1a1a; }
.post-content p { margin: 0 0 1rem; }
.post-content p.lead,
.post-content > p:first-child {
  font-size: 1.2rem; line-height: 1.55; margin-bottom: 1.2rem;
}
.post-content > p:first-child::first-letter {
  font-family: var(--serif-head);
  font-weight: 900;
  font-size: 3.4rem;
  float: left;
  line-height: .85;
  padding: .15rem .4rem 0 0;
  color: var(--accent);
}
.post-content img {
  max-width: 100%; height: auto; display: block;
  margin: 1rem 0;
  border: 1px solid var(--hair);
  padding: 4px; background: #fff;
}
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--serif-head);
  color: var(--ink);
  margin: 1.4rem 0 .5rem;
  line-height: 1.2;
}
.post-content h3 { font-size: 1.4rem; }
.post-content h2 { font-size: 1.7rem; }
.post-content a { color: var(--accent-dark); text-decoration: underline; }
.post-content blockquote {
  margin: 1.2rem 0;
  padding: .4rem 0 .4rem 1.2rem;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: #333;
}
.post-content ul, .post-content ol { margin: .8rem 0 .8rem 1.4rem; }

/* Comments =========================================================== */
.comments {
  margin-top: 2.5rem;
  border-top: 3px double var(--rule);
  padding-top: 1.2rem;
}
.comments h3 {
  font-family: var(--serif-head);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.comment {
  background: #fff;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  padding: .7rem .9rem;
  margin: .5rem 0;
}
.comment-meta {
  font-family: var(--serif-body);
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 .35rem;
  font-style: italic;
}
.comment-meta strong { font-style: normal; color: var(--ink); }
.comment-meta a { color: var(--muted); text-decoration: none; }
.comment-body { font-size: .97rem; line-height: 1.5; }

/* Lists / index pages =============================================== */
.cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li {
  padding: .35rem 0;
  border-bottom: 1px dotted var(--hair);
  font-family: var(--serif-body);
}
.cat-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.cat-list a:hover { color: var(--accent); }
.cat-list .muted { color: var(--muted); font-weight: 400; font-style: italic; }

.muted { color: var(--muted); font-size: .85rem; font-style: italic; }
.back { margin-top: 1.8rem; font-family: var(--serif-body); font-size: .9rem; }
.back a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.back a:hover { color: var(--accent); }

/* Category/tag pages ================================================ */
.archive-head {
  font-family: var(--serif-body);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  margin-bottom: .2rem;
}

/* Responsive ======================================================== */
@media (max-width: 600px) {
  .masthead .nameplate { font-size: 2.4rem; }
  .list-item h2 { font-size: 1.4rem; }
  .post-title { font-size: 1.7rem; }
  .post-content { font-size: 1.05rem; }
  .post-content > p:first-child::first-letter { font-size: 2.6rem; }
  .masthead nav.sections a { margin: 0 .45rem; font-size: .75rem; }
  .searchbar input { font-size: 1rem; }
  .pagination .jump { display: none; }
}

/* Searchbar ========================================================= */
.searchbar {
  background: #f3efe6;
  border-bottom: 1px solid var(--hair);
  padding: .55rem 0;
  position: relative;
}
.searchbar input {
  width: 100%;
  font-family: var(--serif-body);
  font-size: .98rem;
  padding: .5rem .8rem;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  outline: none;
}
.searchbar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(176,32,32,.12);
}
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--hair);
  border-top: none;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.search-results .search-empty {
  padding: .8rem 1rem;
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif-body);
}
.search-item {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .55rem 1rem;
  border-bottom: 1px solid var(--hair);
  text-decoration: none;
  font-family: var(--serif-body);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: #faf6ed; }
.search-item .sr-cat {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 auto;
  min-width: 5.5rem;
}
.search-item .sr-title {
  color: var(--ink);
  font-weight: 600;
  flex: 1 1 auto;
}
.search-item .sr-date {
  color: var(--muted);
  font-size: .78rem;
  font-style: italic;
  flex: 0 0 auto;
}

/* Pager avanzato ==================================================== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  margin: 2rem 0 1rem;
  font-family: var(--serif-body);
  font-size: .9rem;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: .55rem 0;
}
.pagination a,
.pagination span.current,
.pagination .page-num,
.pagination .ellipsis {
  display: inline-block;
  padding: .22rem .55rem;
  min-width: 1.8rem;
  text-align: center;
}
.pagination a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.pagination a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: #fff;
}
.pagination .current {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
}
.pagination .nav-arrow {
  font-size: 1rem;
  padding: .22rem .45rem;
}
.pagination .jump {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .02em;
}
.pagination .jump:hover { border-color: var(--accent); }
.pagination .ellipsis {
  color: var(--muted);
  padding: .22rem .2rem;
}
