/*
Theme Name: Limatric
Theme URI: https://limatric.com
Author: Guilherme Lima
Description: Block theme for Limatric — Electrical engineering, explained.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: limatric
*/

body { margin: 0; background: #FAFCF5; color: #1A2E05; font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
a { color: #3F6212; }
a:hover { color: #1A2E05; }
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.3px; line-height: 1.2; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0; }
.lt-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.lt-btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 10px; }

/* Latest guides (query loop) */
.lt-guides .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.lt-guides .wp-block-post-template > li { margin: 0; }
.lt-card { background: #FFFFFF; border: 1px solid #E2E8D5; border-radius: 16px; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.lt-card-art { height: 180px; background: #ECFCCB; display: flex; align-items: center; justify-content: center; }
.lt-guides li:nth-child(3n+2) .lt-card-art { background: #1A2E05; }
.lt-guides li:nth-child(3n+3) .lt-card-art { background: #FEF9C3; }
.lt-card-art img { width: 100%; height: 100%; object-fit: cover; }
.lt-card-art .wp-block-post-featured-image { width: 100%; height: 100%; margin: 0; }
.lt-card-art:not(:has(img)) { background-image: url("assets/icon.svg"); background-repeat: no-repeat; background-position: center; background-size: 72px; }
.lt-card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.lt-card .wp-block-post-terms a { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: #3F6212; background: #F0F7E1; padding: 4px 10px; border-radius: 999px; text-decoration: none; display: inline-block; }
.lt-card .wp-block-post-terms { margin: 0; }
.lt-card .wp-block-post-title { margin: 0; font-size: 22px; line-height: 1.3; }
.lt-card .wp-block-post-title a { color: #1A2E05; text-decoration: none; }
.lt-card .wp-block-post-title a:hover { color: #3F6212; }
.lt-card .wp-block-post-date { font-size: 14px; color: #5B6650; margin: 0; }
.lt-empty { background: #FFFFFF; border: 1px dashed #C5D3AE; border-radius: 16px; padding: 32px; color: #3F4A33; }

/* Articles & pages */
.lt-article { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; box-sizing: border-box; }
.lt-article .wp-block-post-title { font-size: 44px; line-height: 1.1; margin: 0 0 12px; }
.lt-article .wp-block-post-content h2 { font-size: 30px; margin-top: 40px; }
.lt-article .wp-block-post-content h3 { font-size: 23px; margin-top: 28px; }
.lt-article .wp-block-post-content table { border-collapse: collapse; width: 100%; }
.lt-article .wp-block-post-content th, .lt-article .wp-block-post-content td { border: 1px solid #E2E8D5; padding: 10px 12px; text-align: left; }
.lt-article .wp-block-post-content th { background: #F0F7E1; }
.lt-meta { font-size: 14px; color: #5B6650; }

/* Patterns */
.lt-product-box { background: #FFFFFF; border: 2px solid #84CC16; border-radius: 20px; padding: 28px; }
.lt-amazon-btn .wp-block-button__link { background: #FACC15; color: #1A2E05; font-weight: 700; border-radius: 10px; }
.lt-notice { background: #F0F7E1; border-left: 4px solid #84CC16; border-radius: 8px; padding: 12px 16px; font-size: 15px; color: #3F4A33; }
.lt-tip { background: #FEF9C3; border-left: 4px solid #FACC15; border-radius: 8px; padding: 16px 20px; }

@media (max-width: 640px) {
  .lt-hero-title { font-size: 44px !important; }
  .lt-article .wp-block-post-title { font-size: 34px; }
}
