/*
Theme Name: Marco Editoriale
Template: marco-seo
Description: Editorial child theme for Marco Digireale Costanzo.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: marco-editoriale
*/
:root {
  --c-bg: #f7f6ef;
  --c-text: #172b24;
  --c-muted: #526157;
  --c-accent: #245442;
  --c-accent-soft: #edf0e6;
  --c-border: #c8cec5;
  --w-content: 780px;
}

body { background: var(--c-bg); line-height: 1.7; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: anywhere; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #875b13;
  outline-offset: 4px;
}
.site-header { background: var(--c-bg); padding-block: 0; }
.site-header .wrap, .site-footer .wrap { max-width: 1120px; }
.site-header .wrap { justify-content: space-between; padding-block: 1rem; gap: .4rem 1.5rem; }
.masthead-brand { display: flex; align-items: center; gap: .65rem; }
.masthead-brand .site-title { font-size: clamp(1rem, 2.2vw, 1.35rem); letter-spacing: -.035em; }
.masthead-mark { display: grid; place-items: center; width: 44px; min-height: 44px; flex: none; }
.masthead-mark img { display: block; border-radius: 4px; }
.primary-nav ul { gap: 0 .95rem; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}
.eric-memorial { padding: .45rem 1rem; text-align: center; background: #172b24; color: #f7f6ef; font-size: .82rem; }
.eric-memorial a, .eric-memorial a:hover { color: inherit; }
main.wrap { padding-block: clamp(2rem, 5vw, 4rem); }
.editorial-intro { border-bottom: 2px solid #173d32; padding-block: .5rem clamp(1.8rem, 5vw, 3.75rem); }
.editorial-intro h1 { font-size: clamp(2.35rem, 7vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; margin: 0 0 1rem; }
.editorial-intro p { color: var(--c-muted); font-size: clamp(1.02rem, 2vw, 1.2rem); max-width: 53ch; }
.editorial-intro form { margin-top: 1.35rem; }
.editorial-title { margin-block: 2rem .65rem; font-size: 1.2rem; }
.editorial-feed article { padding-block: 1.5rem; border-bottom: 1px solid var(--c-border); }
.editorial-feed article :is(h2,h3) { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.035em; margin: .45rem 0 .75rem; }
.editorial-feed article :is(h2,h3) a { color: var(--c-text); text-decoration: none; }
.editorial-feed article :is(h2,h3) a:hover { text-decoration: underline; }
.editorial-feed .entry-meta { margin: 0; }
.editorial-feed .entry-read-more { margin-bottom: 0; }
.editorial-feed .entry-read-more a { font-weight: 650; }
.editorial-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: .5rem; max-width: 34rem; }
.editorial-search label { width: 100%; font-size: .9rem; font-weight: 650; }
.editorial-search input, .editorial-search button { font: inherit; min-height: 46px; border-radius: 4px; padding: .45rem .7rem; }
.editorial-search input { flex: 1 1 11rem; min-width: 0; max-width: 100%; background: #fffefa; border: 1px solid #829389; color: var(--c-text); }
.editorial-search button { border: 1px solid #173d32; background: #173d32; color: #fff; cursor: pointer; }
.editorial-search button:hover { background: #245442; }
.editorial-feed .navigation { margin-top: 1.5rem; }
.site-footer { background: var(--c-accent-soft); padding-block: clamp(1.25rem, 4vw, 2.5rem); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.entry-content { overflow-wrap: anywhere; }
.entry-content pre, .entry-content .wp-block-table { max-width: 100%; overflow: auto; }
.entry-content ul ul { padding-inline-start: 1.2em; }
.editorial-paths { margin-block: 2rem; }
.editorial-paths h2 { font-size: 1.2rem; margin: 0 0 .75rem; }
.editorial-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.editorial-path { padding: 1rem; background: var(--c-accent-soft); border: 1px solid var(--c-border); border-radius: 4px; }
.editorial-path h3 { font-size: 1.08rem; margin: 0 0 .65rem; }
.editorial-path p, .editorial-path ul { font-size: .95rem; margin: 0; }
.editorial-path ul { padding-inline-start: 1.1em; }
.editorial-archive-link { margin-top: 1.25rem; }

@media (max-width: 600px) {
  .site-header .wrap { gap: .25rem; }
  .primary-nav { flex-basis: 100%; }
  .primary-nav ul { gap: 0 .8rem; }
  .primary-nav a { font-size: .84rem; }
  .editorial-path-grid { grid-template-columns: 1fr; }
}
