/*
Theme Name: Teacher Talita
Theme URI: https://teachertalita.com
Author: Teacher Talita
Author URI: https://teachertalita.com
Description: Tema de blog para a Teacher Talita — dicas de inglês para brasileiros. Layout editorial com categorias, espaços para Google AdSense e captura de newsletter. Publique posts e eles aparecem automaticamente na home, nas categorias e como artigo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: teacher-talita
*/

/* ===== Resets ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #FAF8F4;
  color: #1C1B18;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
::selection { background: oklch(0.45 0.18 262 / .18); }
.tt-site { display: flex; flex-direction: column; min-height: 100vh; }
.tt-main { flex: 1 0 auto; }

/* ===== Article body (the_content) — matches the design ===== */
.entry-content {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  line-height: 1.7;
  color: #26241F;
}
.entry-content > p { margin: 0 0 22px; }
.entry-content h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px; font-weight: 600; letter-spacing: -.01em;
  margin: 36px 0 16px; color: #1C1B18;
}
.entry-content h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 21px; font-weight: 600; margin: 30px 0 12px; color: #1C1B18;
}
.entry-content a { color: oklch(0.45 0.18 262); text-decoration: underline; text-underline-offset: 2px; }
.entry-content strong { font-weight: 600; }
.entry-content ul, .entry-content ol { margin: 0 0 26px; padding-left: 1.2em; }
.entry-content li { margin-bottom: 9px; }
.entry-content img { height: auto; border-radius: 8px; display: block; }
.entry-content figure { margin: 0 0 26px; }
.entry-content figcaption { font-family: 'Hanken Grotesk', sans-serif; font-size: 12.5px; color: #9A968C; margin-top: 8px; text-align: center; }
.entry-content blockquote {
  background: oklch(0.5 0.18 262 / .08);
  border-left: 3px solid oklch(0.5 0.18 262);
  border-radius: 0 6px 6px 0;
  padding: 18px 22px; margin: 0 0 26px;
  font-family: 'Hanken Grotesk', sans-serif; font-style: normal;
}
.entry-content blockquote p { font-size: 15px; line-height: 1.6; color: #2A2823; margin: 0; }
.entry-content h2:first-child, .entry-content h3:first-child { margin-top: 0; }

/* WordPress alignment + caption helpers */
.alignleft { float: left; margin: 6px 24px 18px 0; }
.alignright { float: right; margin: 6px 0 18px 24px; }
.aligncenter { display: block; margin: 0 auto 22px; }
.wp-caption { max-width: 100%; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ===== Hover helpers ===== */
.tt-link-blue:hover { color: oklch(0.45 0.18 262); }
.tt-btn-ghost:hover { border-color: #1C1B18 !important; }
.tt-card:hover h3 { color: oklch(0.45 0.18 262); }

/* Menu de navegação (wp_nav_menu) */
.tt-nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.tt-nav-menu li { margin: 0; }
.tt-nav-menu a { color: #3A3833; white-space: nowrap; }
.tt-nav-menu a:hover, .tt-nav-menu .current-cat > a, .tt-nav-menu .current-menu-item > a { color: oklch(0.45 0.18 262); }

/* ===== Responsive (overrides inline grids via !important) ===== */
@media (max-width: 980px) {
  .tt-nav { display: none !important; }
  .tt-shell-grid { grid-template-columns: 1fr !important; }
  .tt-hero { grid-template-columns: 1fr !important; }
  .tt-article { max-width: 100% !important; }
  .tt-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .tt-sidebar-sticky { position: static !important; }
}
@media (max-width: 640px) {
  .tt-cards { grid-template-columns: 1fr !important; }
  .tt-related { grid-template-columns: 1fr !important; }
  .tt-topbar-extra { display: none !important; }
  .tt-footer-grid { grid-template-columns: 1fr !important; }
  .tt-hero-title { font-size: 26px !important; }
  .tt-post-title { font-size: 30px !important; }
}
