/*
Theme Name: 93d Editorial
Theme URI: https://93d.buzz/
Author: 93d.buzz Editorial
Description: Tema editorial independente para o guia 93d.buzz.
Version: 1.0.0
Text Domain: editorial-93d
*/

:root {
  --paper: #f5f0e7;
  --surface: #fffcf7;
  --surface-muted: #ebe2d5;
  --brick: #9e3f35;
  --sage: #2f6f62;
  --gold: #c28b35;
  --ink: #252321;
  --muted: #6d6861;
  --line: #d7cdbf;
  --info: #eaf1ed;
  --warn: #fff1d0;
  --warn-ink: #8b5e16;
  --focus: #2f6f62;
  --max: 1160px;
  --reading: 740px;
  --wide: 980px;
  --shadow: 0 10px 28px rgba(60, 45, 30, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(158,63,53,.035), transparent 26rem),
    radial-gradient(circle at 92% 32%, rgba(47,111,98,.035), transparent 30rem),
    var(--paper);
  font: 18px/1.8 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: var(--brick); text-decoration-thickness: .09em; text-underline-offset: .16em; }
a:hover { color: var(--sage); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; padding: .65rem 1rem; clip: auto; background: var(--surface); z-index: 1000; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(245,240,231,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.masthead { max-width: var(--max); margin: auto; padding: .55rem 1.5rem .3rem; }
.site-brand { color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.8rem); font-family: Georgia, "Times New Roman", serif; font-weight: 800; letter-spacing: -.05em; text-decoration: none; }
.nav-layer { border-top: 1px solid rgba(215,205,191,.7); }
.nav-inner { max-width: var(--max); margin: auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; padding: .45rem .75rem; border: 1px solid var(--ink); color: var(--ink); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.primary-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 1.15rem; margin: 0; padding: 0; list-style: none; }
.primary-menu a { display: flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 700; font-size: .91rem; text-decoration: none; border-bottom: 2px solid transparent; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: var(--brick); border-color: var(--brick); }

.site-main { min-height: 60vh; }
.hero { max-width: var(--max); margin: 0 auto; padding: 4.3rem 1.5rem 2.4rem; }
.hero-copy { max-width: 900px; }
.kicker { color: var(--sage); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.16; color: var(--ink); text-wrap: balance; }
h1 { margin: .55rem 0 1.25rem; font-size: clamp(2.25rem, 5.8vw, 4.5rem); letter-spacing: -.035em; }
h2 { margin: 4.8rem 0 1.2rem; padding-top: .8rem; border-top: 2px solid var(--brick); font-size: clamp(1.7rem, 3.3vw, 2.5rem); letter-spacing: -.02em; }
h3 { margin: 2.1rem 0 .7rem; font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1.25rem; }
.hero-lead { max-width: 800px; color: #3f3b37; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 0; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .65rem 1.05rem; border: 2px solid var(--brick); background: var(--brick); color: #fff; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.button.secondary { color: var(--brick); background: transparent; }
.button.secondary:hover { color: #fff; }
.hero-media, .section-media, .page-media { max-width: var(--wide); margin: 2.4rem auto 0; }
.hero-media img, .section-media img, .page-media img { width: 100%; border-radius: 8px; box-shadow: var(--shadow); }
figcaption { margin-top: .6rem; color: var(--muted); font-size: .82rem; line-height: 1.5; }

.article-shell { max-width: var(--reading); margin: 0 auto; padding: 0 1.5rem 5rem; }
.page-shell { padding-top: 3.8rem; }
.page-shell h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); }
.article-shell > .section-media, .article-shell > .table-wrap, .article-shell > table { width: min(var(--wide), calc(100vw - 3rem)); max-width: var(--wide); margin-left: 50%; transform: translateX(-50%); }
.article-shell ul, .article-shell ol { margin: 0 0 1.6rem; padding-left: 1.35rem; }
.article-shell li { margin-bottom: .55rem; }
.article-shell li::marker { color: var(--brick); font-weight: 800; }
.article-shell > p:first-of-type { font-size: 1.08em; }
.article-shell strong { color: #1d1b19; }
table { width: 100%; border-collapse: collapse; margin: 1.8rem 0 2.2rem; background: var(--surface); box-shadow: var(--shadow); font-size: .9rem; line-height: 1.55; }
th, td { padding: .82rem .9rem; text-align: left; vertical-align: top; border: 1px solid var(--line); }
th { background: var(--surface-muted); font-weight: 800; }
tbody tr:nth-child(even) { background: rgba(235,226,213,.35); }
blockquote { margin: 2rem 0; padding: 1rem 1.2rem; background: var(--info); border-left: 4px solid var(--sage); }

.faq-list { margin-top: 1.5rem; }
.faq-list details { margin: 0 0 .75rem; border: 1px solid var(--line); background: var(--surface); }
.faq-list summary { min-height: 48px; padding: .85rem 1rem; cursor: pointer; font-weight: 800; }
.faq-list details > div { padding: 0 1rem 1rem; }
.not-found { max-width: var(--reading); margin: auto; padding: 5rem 1.5rem; }

.site-footer { background: #292724; color: #eee8df; border-top: 5px solid var(--brick); }
.footer-top { max-width: var(--max); margin: auto; padding: 3rem 1.5rem 2rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font: 800 2rem/1 Georgia, serif; }
.footer-top h2 { margin: 0 0 .8rem; padding: 0; border: 0; color: #fff; font: 800 1rem/1.3 system-ui, sans-serif; }
.footer-top p { color: #d6cfc5; font-size: .9rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: #f5f0e7; }
.footer-bottom { border-top: 1px solid #4b4741; padding: 1rem 1.5rem; text-align: center; color: #bfb7ac; font-size: .78rem; }

@media (max-width: 780px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 72px; }
  .masthead { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: .45rem 1rem; }
  .site-brand { font-size: 2rem; }
  .nav-layer { border-top: 0; }
  .nav-inner { min-height: 0; padding: 0 1rem; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .main-navigation { display: none; position: absolute; left: 0; right: 0; top: 68px; padding: .75rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-navigation.is-open { display: block; }
  .primary-menu { display: block; }
  .primary-menu a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .hero { padding: 2.8rem 1rem 1.7rem; }
  .hero-actions .button { width: 100%; }
  .article-shell { padding-left: 1rem; padding-right: 1rem; }
  .article-shell > .section-media, .article-shell > .table-wrap, .article-shell > table { width: calc(100vw - 2rem); }
  h2 { margin-top: 3.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 1.4rem; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { padding: .45rem .7rem; border-bottom: 1px solid var(--line); }
  td { padding: .5rem; border: 0; }
  td::before { content: attr(data-label); display: block; color: var(--brick); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
