/*
Theme Name: 87a Editorial
Theme URI: https://87a.buzz/
Author: 87a.buzz
Description: Tema editorial independente em português do Brasil para o 87a.buzz.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: oitentasetea
*/

:root {
  --ink: #171717;
  --muted: #5f5f5f;
  --paper: #fff;
  --soft: #f6f4f1;
  --line: #e5e2de;
  --header: #23211d;
  --nav: #34322f;
  --purple: #7a00ff;
  --orange: #ff8a18;
  --red: #b71925;
  --focus: #ffd55e;
  --content: 1040px;
  --reading: 820px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #6200cc; text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.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; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 14px; clip: auto; background: #fff; color: #000; }
.site-topline { height: 6px; background: linear-gradient(90deg, var(--purple), var(--orange), var(--red)); }
.site-header { background: var(--header); color: #fff; }
.header-main { min-height: 92px; max-width: var(--content); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: baseline; min-height: 48px; color: #fff; font-size: 42px; line-height: 1; font-weight: 900; letter-spacing: -4px; text-decoration: none; }
.brand span { color: var(--orange); font-size: .75em; letter-spacing: -2px; }
.brand:hover { color: #fff; transform: translateY(-1px); }
.site-kicker { max-width: 430px; margin: 0; color: #d9d6d1; font-size: 14px; line-height: 1.45; text-align: right; }
.nav-wrap { background: var(--nav); border-top: 1px solid #4a4742; }
.site-nav { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.site-nav ul { display: flex; align-items: stretch; gap: 4px; min-height: 52px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: flex; align-items: center; min-height: 52px; padding: 0 20px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-decoration: none; border-bottom: 4px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item a, .site-nav .current_page_item a { color: #fff; background: #413e39; border-color: var(--orange); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; padding: 10px; color: #fff; background: transparent; border: 2px solid #77716a; border-radius: 8px; cursor: pointer; }
.menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 24px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before { position: absolute; top: -7px; }
.menu-toggle-lines::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }
.page-shell { min-height: 60vh; }
.article-header { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #faf8f5 100%); }
.article-header-inner { max-width: var(--reading); margin: 0 auto; padding: 58px 24px 44px; }
.article-header h1 { max-width: 780px; margin: 0 0 18px; color: var(--red); font-size: clamp(2.25rem, 5vw, 4.1rem); line-height: 1.03; letter-spacing: -.045em; }
.article-deck { margin: 0; color: #393734; font-size: clamp(1.08rem, 2.2vw, 1.28rem); line-height: 1.55; }
.updated { display: block; margin-top: 20px; color: var(--muted); font-size: 14px; font-weight: 700; }
.content-area { max-width: var(--reading); margin: 0 auto; padding: 12px 24px 72px; }
.content-area section { padding-top: 42px; scroll-margin-top: 24px; }
.content-area h2 { margin: 0 0 18px; color: var(--red); font-size: clamp(1.75rem, 3.5vw, 2.55rem); line-height: 1.15; letter-spacing: -.025em; }
.content-area h3 { margin: 30px 0 12px; color: #2a2723; font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.25; }
.content-area p { margin: 0 0 1.15em; }
.content-area ul, .content-area ol { margin: 0 0 1.4em; padding-left: 1.35em; }
.content-area li + li { margin-top: .55em; }
.editorial-image { margin: 28px 0 10px; overflow: hidden; border-radius: var(--radius); background: #191815; box-shadow: 0 18px 45px rgba(35, 33, 29, .16); }
.editorial-image img { width: 100%; }
.inline-cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 8px; padding: 11px 18px; color: #fff; background: var(--purple); border-radius: 8px; font-weight: 800; text-decoration: none; box-shadow: 0 7px 20px rgba(122, 0, 255, .18); }
.inline-cta:hover { color: #fff; background: #5f00c7; transform: translateY(-2px); }
.note { margin: 24px 0; padding: 18px 20px; border-left: 5px solid var(--orange); background: #fff6ea; }
.table-scroll { width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.5; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--nav); }
tr:last-child td { border-bottom: 0; }
.steps { margin: 24px 0; padding: 0; counter-reset: step; list-style: none; }
.steps li { position: relative; min-height: 58px; padding: 0 0 24px 68px; }
.steps li::before { position: absolute; top: -2px; left: 0; display: grid; place-items: center; width: 48px; height: 48px; color: #fff; background: var(--red); border-radius: 50%; font-weight: 900; counter-increment: step; content: counter(step); }
.steps li::after { position: absolute; top: 48px; bottom: 0; left: 23px; width: 2px; background: var(--line); content: ""; }
.steps li:last-child::after { display: none; }
.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: #fff; }
.faq summary { min-height: 54px; padding: 16px 44px 16px 4px; color: #2e2a26; font-weight: 850; cursor: pointer; }
.faq details p { padding: 0 4px 18px; }
.editorial-meta { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.contact-form { margin: 24px 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 800; }
.form-row input, .form-row textarea, .form-row select { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #aaa49d; border-radius: 7px; font: inherit; }
.form-row textarea { min-height: 160px; resize: vertical; }
.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.check-row input { width: 22px; min-height: 22px; margin-top: 4px; }
.form-submit { min-height: 48px; padding: 11px 20px; color: #fff; background: var(--red); border: 0; border-radius: 8px; font: inherit; font-weight: 850; cursor: pointer; }
.form-submit:hover { background: #8f111c; transform: translateY(-2px); }
.form-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 8px; font-weight: 700; }
.form-alert.success { background: #e9f7ed; border: 1px solid #79b88b; }
.form-alert.error { background: #fff0ef; border: 1px solid #dc8a84; }
.site-footer { color: #fff; background: var(--header); border-top: 6px solid var(--purple); }
.footer-inner { max-width: var(--content); margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 52px; }
.footer-brand { margin: 0 0 12px; font-size: 32px; font-weight: 900; letter-spacing: -2px; }
.footer-copy, .footer-note { max-width: 620px; margin: 0 0 12px; color: #d2cec8; font-size: 14px; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: flex; align-items: center; min-height: 44px; color: #fff; font-weight: 750; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { max-width: var(--content); margin: 0 auto; padding: 16px 24px 26px; color: #aaa59d; border-top: 1px solid #48443e; font-size: 13px; }
.error-page { max-width: var(--reading); min-height: 52vh; margin: 0 auto; padding: 80px 24px; }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-main { min-height: 76px; padding: 0 18px; }
  .brand { font-size: 36px; }
  .site-kicker { display: none; }
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { padding: 0 18px; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 0 16px; }
  .site-nav a { justify-content: center; min-height: 48px; padding: 8px 10px; background: #413e39; border: 1px solid #5d5851; border-radius: 7px; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .article-header-inner { padding: 42px 20px 32px; }
  .article-header h1 { font-size: clamp(2.2rem, 11.2vw, 3.15rem); }
  .content-area { padding: 8px 20px 52px; }
  .content-area section { padding-top: 28px; }
  .editorial-image { margin-inline: -4px; border-radius: 10px; }
  .contact-form { padding: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 38px 20px 24px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { padding-inline: 20px; }
}

@media (max-width: 380px) {
  .site-nav ul { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 2.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

