/* Blog do Pomodoro, mesma identidade do site (tokens de design-system.md). */
@font-face { font-family: "Clash"; src: url("/fonts/clash-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Clash"; src: url("/fonts/clash-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #000; --linen: #f1eee4; --ember: #bd0000; --fern: #588157; --teal: #344e41;
  --bg: var(--linen); --fg: var(--ink); --surface: #fff; --muted: rgb(0 0 0 / 0.66); --line: rgb(0 0 0 / 0.1); --hot: var(--ember); --go: #3f6b47;
  --radius: 14.4px; --display: "Clash", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
[data-theme="dark"] { --bg: #1a0505; --fg: var(--linen); --surface: #2b0c0c; --muted: rgb(241 238 228 / 0.7); --line: rgb(241 238 228 / 0.12); --hot: #ff8a7a; --go: #a6d1a1; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1a0505; --fg: var(--linen); --surface: #2b0c0c; --muted: rgb(241 238 228 / 0.7); --line: rgb(241 238 228 / 0.12); --hot: #ff8a7a; --go: #a6d1a1; color-scheme: dark; }
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 135%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 0.5rem; z-index: 99; background: var(--fg); color: var(--bg); padding: 0.4rem 0.8rem; border-radius: 8px; }

.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }
.eyebrow { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--hot); }
.eyebrow a { text-decoration: none; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0.8rem 0 0; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.header-row { display: flex; align-items: center; gap: 0.6rem; min-height: 3.3rem; }
.brand { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.mark { width: 2rem; height: 2rem; }
.nav { display: none; gap: 0.1rem; flex: 1; min-width: 0; font-size: 0.85rem; font-weight: 600; }
.nav a { text-decoration: none; padding: 0.45rem 0.7rem; border-radius: 999px; opacity: 0.8; white-space: nowrap; transition: opacity 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; background: var(--line); }
.theme { border: 0; background: none; color: inherit; width: 2.6rem; height: 2.6rem; border-radius: 999px; cursor: pointer; opacity: 0.75; display: grid; place-items: center; }
.theme:hover { opacity: 1; }
.cta-sm { display: none; text-decoration: none; background: var(--ember); color: var(--linen); font-weight: 700; font-size: 0.8rem; padding: 0.5rem 0.9rem; border-radius: 999px; white-space: nowrap; }
/* celular: menu em <details>; o painel abre sob o cabeçalho */
.menu { margin-left: auto; }
.menu summary { list-style: none; width: 2.75rem; height: 2.75rem; border-radius: 999px; display: grid; place-items: center; cursor: pointer; opacity: 0.8; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { opacity: 1; }
.menu .i-close, .menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu-panel { position: absolute; inset-inline: 0; top: 100%; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.5rem 0.75rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(0 0 0 / 0.18); }
.menu-panel a { display: flex; align-items: center; min-height: 3rem; padding: 0 1rem; border-radius: 0.75rem; text-decoration: none; font-weight: 600; font-size: 1rem; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--line); }
.menu-panel .cta { justify-content: center; margin-top: 0.5rem; border-radius: 999px; background: var(--ember); color: var(--linen); font-weight: 700; }
.menu-panel .cta:hover { background: var(--ember); filter: brightness(1.08); }
@media (min-width: 640px) { .nav { display: flex; } .menu { display: none; } .cta-sm { display: inline-block; } }
@media (max-width: 639px) { .theme { margin-left: auto; } .menu { margin-left: 0; } }

.site-footer { margin-top: 5rem; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.88rem; }
.footer-grid { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer a { text-decoration: none; opacity: 0.85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer p { color: var(--muted); }
.legal { text-align: center; border-top: 1px solid var(--line); padding: 1rem; margin: 0; font-size: 0.75rem; }

/* breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 1.6rem 0 0; font-size: 0.82rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; }
.crumbs li:last-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs ol { flex-wrap: nowrap; }
.crumbs li { flex-shrink: 0; }
.crumbs li:last-child { flex-shrink: 1; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* índice */
.page-head { margin: 1.8rem 0 1.6rem; }
.page-head h1 { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4rem); margin: 0.2rem 0 0; }
.page-head small { font-size: 0.45em; color: var(--muted); }
/* temas: chips cheios com contador; hover e atual só mudam cor (nada cresce nem se mexe) */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.25rem; }
.tags a { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 2.5rem; padding: 0.3rem 0.35rem 0.3rem 1rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 7%, transparent); text-decoration: none; font-size: 0.86rem; font-weight: 600; transition: background-color 0.2s, color 0.2s; }
.tags .n { display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 0.45rem; border-radius: 999px; background: var(--bg); color: var(--muted); font-size: 0.74rem; font-variant-numeric: tabular-nums; transition: background-color 0.2s, color 0.2s; }
.tags a:hover { background: color-mix(in srgb, var(--ember) 14%, transparent); color: var(--hot); }
.tags a:hover .n { background: var(--ember); color: var(--linen); }
.tags a[aria-current="page"] { background: var(--ember); color: var(--linen); }
.tags a[aria-current="page"] .n { background: rgb(0 0 0 / 0.25); color: var(--linen); }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
/* card: hover só em cor, no verde da marca (borda, fundo, véu na capa, título); sem transform nem escala */
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: border-color 0.25s, background-color 0.25s; }
.card:hover { border-color: color-mix(in srgb, var(--fern) 70%, transparent); background: color-mix(in srgb, var(--fern) 9%, var(--surface)); }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--fern); outline-offset: 2px; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-link:focus-visible { outline: none; }
.card-cover { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ember); }
.card-cover::after { content: ""; position: absolute; inset: 0; background: var(--fern); mix-blend-mode: multiply; opacity: 0; transition: opacity 0.25s; }
.card:hover .card-cover::after, .card:has(.card-link:focus-visible) .card-cover::after { opacity: 0.35; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover--art { display: grid; place-items: center; color: var(--linen); font-family: var(--display); font-size: 4rem; transition: background-color 0.25s; }
.card:hover .card-cover--art { background: var(--fern); }
.card-cover--art::after { display: none; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card h2 { font-family: var(--display); font-size: 1.25rem; margin: 0; transition: color 0.25s; }
.card:hover h2, .card:has(.card-link:focus-visible) h2 { color: var(--go); }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.card .meta { margin-top: auto; font-size: 0.78rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 0.75rem; }
.card .more { font-weight: 700; color: var(--muted); transition: color 0.25s; white-space: nowrap; }
.card:hover .more, .card:has(.card-link:focus-visible) .more { color: var(--go); }
.empty { padding: 3rem 0; max-width: 34rem; }
.empty h2 { font-family: var(--display); font-size: 1.8rem; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; font-size: 0.88rem; }
.pager a { font-weight: 700; text-decoration: none; }

/* post */
.post-head { margin: 1.6rem 0 1.8rem; }
.post-head h1 { font-family: var(--display); font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0.5rem 0 0; letter-spacing: -0.01em; }
.post-head .meta { color: var(--muted); font-size: 0.85rem; margin: 1rem 0 0; }
.post-cover { margin: 0 auto 2.2rem; }
.post-cover img { width: 100%; border-radius: var(--radius); aspect-ratio: auto; }
.post-grid { display: grid; gap: 2rem; }
@media (min-width: 1000px) { .post-grid { grid-template-columns: 13rem minmax(0, 46rem); justify-content: center; } }
.toc { font-size: 0.85rem; }
.toc nav { position: sticky; top: 5rem; }
.toc ol { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.45rem; }
.toc a { text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--fg); }
@media (max-width: 999px) { .toc { display: none; } }

.prose { font-size: 1.05rem; line-height: 1.75; min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2rem); margin: 2.4em 0 0.6em; scroll-margin-top: 5rem; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.4em; scroll-margin-top: 5rem; }
.prose h4 { font-size: 1.05rem; margin: 1.5em 0 0.3em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--ember); font-weight: 700; }
.prose a { text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose blockquote { border-left: 4px solid var(--ember); padding: 0.3em 0 0.3em 1.1em; font-family: var(--display); font-size: 1.25rem; line-height: 1.4; }
.prose blockquote p { margin: 0; }
.prose img, .prose picture { border-radius: var(--radius); margin: 1.6em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }
.prose code { font-size: 0.9em; background: var(--line); padding: 0.1em 0.35em; border-radius: 6px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 1rem 1.2rem; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 0.5em 0.6em; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose mark { background: color-mix(in srgb, var(--ember) 22%, transparent); color: inherit; padding: 0 0.15em; border-radius: 3px; }

.faq { border: 1px solid var(--line); border-radius: var(--radius); }
.faq details { padding: 0.9rem 1.1rem; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1rem; font-family: var(--body); }
.faq summary span { font-size: 1.3rem; line-height: 1; opacity: 0.6; transition: transform 0.3s var(--ease); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq p { margin: 0.7rem 0 0; color: var(--muted); }

.cta-box { margin: 3rem 0 1.5rem; background: var(--ember); color: var(--linen); border-radius: var(--radius); padding: 1.6rem; }
.cta-box .eyebrow { color: var(--linen); }
.cta-box p { margin: 0.3rem 0 0; }
.cta-title { font-family: var(--display); font-size: 1.5rem; line-height: 1.15; }
.cta { display: inline-block; margin-top: 1rem; background: var(--linen); color: var(--ember); text-decoration: none; font-weight: 700; padding: 0.7rem 1.3rem; border-radius: 999px; transition: background-color 0.2s, color 0.2s; }
.cta:hover { background: var(--ink); color: var(--linen); }
.share { font-size: 0.85rem; color: var(--muted); }
.related { margin-top: 4rem; }
.related > h2 { font-family: var(--display); font-size: 1.8rem; }

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