/*
Theme Name: Lacorte Editorial
Theme URI: https://lacorte.adv.br/
Description: Child block theme editorial for lacorte.adv.br, built on Twenty Twenty-Five. Focused on Direito Digital, Tecnologia, Liberdade & Estado, and Economia & Liberdade.
Author: Christiano Lacorte
Author URI: https://lacorte.adv.br/
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lacorte-editorial
Tags: blog, news, one-column, block-patterns, block-styles, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, wide-blocks
*/

/* Lacorte Editorial — minimal CSS; the design system lives primarily in theme.json. */
:root {
  --lacorte-green: #0E4B3A;
  --lacorte-green-dark: #09392C;
  --lacorte-ink: #18201D;
  --lacorte-muted: #68706C;
  --lacorte-paper: #F7F6F2;
  --lacorte-soft-green: #E9F0EC;
  --lacorte-border: #D8DDD9;
  --lacorte-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

/* Header */
.lacorte-site-header { border-bottom: 1px solid var(--lacorte-border); }
.lacorte-header-inner { padding-top: clamp(1.5rem, 3vw, 2.25rem); padding-bottom: 0.9rem; }
.lacorte-brand a { text-decoration: none !important; }
.lacorte-brand a:hover { color: var(--lacorte-green); }
.lacorte-tagline { margin-top: .35rem !important; }
.lacorte-main-nav { margin-top: 1.1rem !important; padding-top: .9rem; border-top: 1px solid var(--lacorte-border); }
.lacorte-main-nav a { text-underline-offset: .2em; }

/* Editorial labels */
.lacorte-section-label,
.lacorte-kicker,
.lacorte-post-terms {
  font-family: var(--wp--preset--font-family--manrope), "Segoe UI", Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .095em;
  line-height: 1.35;
  text-transform: uppercase;
}
.lacorte-section-label::before,
.lacorte-kicker::before {
  content: "";
  display: inline-block;
  width: 1.65rem;
  height: 3px;
  margin-right: .65rem;
  background: var(--lacorte-green);
  vertical-align: .25em;
}
.lacorte-section-title a { color: inherit; text-decoration: none; }
.lacorte-section-title a:hover { color: var(--lacorte-green); }

/* Home */
.lacorte-main { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.lacorte-section { margin-top: clamp(4.5rem, 8vw, 7.5rem) !important; }
.lacorte-hero { gap: clamp(2rem, 5vw, 5rem); }
.lacorte-hero .wp-block-post-title { margin-top: .45rem; }
.lacorte-hero .wp-block-post-excerpt { margin-top: 1rem; }
.lacorte-hero .wp-block-post-featured-image img,
.lacorte-card .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.lacorte-card { border-top: 1px solid var(--lacorte-border); padding-top: 1rem; }
.lacorte-card .wp-block-post-title { margin-top: .4rem; }
.lacorte-card .wp-block-post-excerpt { margin-top: .65rem; }
.lacorte-card .wp-block-post-featured-image { margin-bottom: 1rem; }
.lacorte-grid-2 .wp-block-post-template,
.lacorte-grid-3 .wp-block-post-template { gap: clamp(1.5rem, 3vw, 2.5rem); }

/* Post */
.lacorte-post-header { padding-top: clamp(3rem, 7vw, 6rem); }
.lacorte-post-title { max-width: 980px; }
.lacorte-post-deck { max-width: 860px; }
.lacorte-post-meta { margin-top: 1.15rem !important; }
.lacorte-post-feature { margin-top: clamp(2.25rem, 5vw, 4rem) !important; margin-bottom: clamp(2.75rem, 6vw, 5rem) !important; }
.wp-block-post-content > h2 { margin-top: 3.25rem; }
.wp-block-post-content > h3 { margin-top: 2.5rem; }
.wp-block-post-content a { text-decoration-thickness: .075em; text-underline-offset: .16em; }
.wp-block-post-content blockquote { margin-top: 2.2rem; margin-bottom: 2.2rem; }

/* Author */
.lacorte-author-box { margin-top: clamp(3.5rem, 7vw, 6rem) !important; padding-top: 1.75rem; border-top: 1px solid var(--lacorte-border); }
.lacorte-author-box .wp-block-avatar img { border-radius: 2px; }

/* Related */
.lacorte-related { margin-top: clamp(4rem, 8vw, 7rem) !important; }

/* Newsletter visual block */
.lacorte-newsletter { border: 1px solid #CFD9D3; }
.lacorte-newsletter .wp-block-button__link { min-width: 10rem; }

/* Footer */
.lacorte-site-footer { border-top: 1px solid var(--lacorte-border); }
.lacorte-footer-inner { padding-top: clamp(2.25rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.lacorte-footer-nav a { text-decoration: none; }
.lacorte-footer-nav a:hover { color: var(--lacorte-green); }

/* Search and forms */
.wp-block-search__input,
input, textarea, select { border-radius: 0 !important; }
.wp-element-button, .wp-block-button__link { transition: background-color .16s ease, color .16s ease, border-color .16s ease; }

/* Accessibility */
:where(a, button, input, textarea, select):focus-visible { outline: 3px solid #285A73; outline-offset: 3px; }

/* Responsive */
@media (max-width: 900px) {
  .lacorte-grid-3 .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  .lacorte-grid-2 .wp-block-post-template,
  .lacorte-grid-3 .wp-block-post-template { grid-template-columns: 1fr !important; }
  .lacorte-hero { gap: 1.5rem; }
  .lacorte-main { padding-top: 2.25rem; }
  .lacorte-section { margin-top: 4.25rem !important; }
  .lacorte-header-inner { padding-top: 1.3rem; }
}
