/* Páginas de palavras (umdia.co/palavra/… e /palavras). Mesmas cores e letras da app. */
@font-face { font-family: 'Lora'; src: url('/fonts/lora-var.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #18151F; --ink-2: #1A1625; --teal: #6E32F2; --teal-2: #A47BFF; --teal-light: #F6F3FD; --teal-ink: #6E32F2;
  --clay: #FF4FB0; --clay-ink: #B0126C; --gold: #C8F31D;
  --gradiente: linear-gradient(135deg, #6E32F2 0%, #C8167F 100%);
  --bg: #FFFFFF; --surface: #FFFFFF; --surface-2: #F6F5F9; --text: #18151F; --muted: #65606F; --line: #E7E4EE;
  --shadow: 0 24px 60px -18px rgba(26,22,37, .22); --shadow-sm: 0 6px 18px -6px rgba(26,22,37, .18);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E13; --surface: #1A1921; --surface-2: #2A2438; --text: #F4F2F8; --muted: #A29DB3; --line: #2D2B38;
    --teal-light: #2A2438; --teal-ink: #B89BFF; --clay-ink: #FF8DCB;
    --shadow: 0 24px 60px -18px rgba(0, 0, 0, .7); --shadow-sm: 0 6px 18px -6px rgba(0, 0, 0, .6);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.estreito { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink-2); padding: 10px 16px; border-radius: 10px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* Navegação: a mesma cápsula da página inicial (umdia.co), aqui sempre na cor da página */
.nav { position: sticky; top: 0; z-index: 30; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; max-width: 1080px; padding: 0 8px 0 16px; border-radius: 20px; color: var(--text); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow-sm); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); }
.marca { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 16px; }
.marca img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { color: inherit; opacity: .78; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 12px; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; background: rgba(128,120,150,.16); }
.nav-links a.cta { opacity: 1; background: var(--gradiente); color: #fff; font-weight: 700; padding: 10px 16px; margin-left: 6px; box-shadow: 0 6px 16px -6px rgba(110,50,242,.6); }
.nav-links a.cta:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .nav-links a.so-largo { display: none; } }
@media (max-width: 400px) { .nav { padding-inline: 8px; } .nav .wrap { padding: 0 6px 0 12px; } }

/* Migalhas */
.migalhas { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.migalhas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.migalhas li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.migalhas a { text-decoration: none; }
.migalhas a:hover { color: var(--text); text-decoration: underline; }

/* Ficha da palavra */
.ficha { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow); padding: clamp(30px, 6vw, 56px) clamp(22px, 6vw, 56px); margin: 22px 0 28px; position: relative; overflow: hidden; }
.ficha::before { content: '“'; position: absolute; top: -26px; right: 22px; font-family: var(--serif); font-size: 180px; line-height: 1; color: var(--clay); opacity: .14; pointer-events: none; }
.etiq { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-ink); text-decoration: none; }
.etiq::before { content: ''; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.ficha h1 { font-family: var(--serif); font-size: clamp(46px, 10vw, 88px); line-height: 1.02; letter-spacing: -.025em; color: var(--teal-ink); margin: 12px 0 10px; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.meta span { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.meta .sil { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: .02em; }
.ficha h2 { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 28px 0 10px; }
.defs { padding-left: 1.3em; font-size: clamp(18px, 2.3vw, 21px); line-height: 1.55; }
.defs li { margin-bottom: 8px; padding-left: 4px; }
.defs li::marker { color: var(--clay); font-weight: 700; }
.exemplos { list-style: none; display: grid; gap: 10px; }
.exemplos li { font-family: var(--serif); font-style: italic; font-size: 18px; padding: 12px 18px; border-left: 3px solid var(--clay); background: var(--bg); border-radius: 0 14px 14px 0; }
.sin { display: flex; flex-wrap: wrap; gap: 8px; }
.sin a, .sin span { font-size: 15px; padding: 6px 14px; border-radius: 999px; background: var(--teal-light); color: var(--teal-ink); font-weight: 600; text-decoration: none; }
.sin a:hover { text-decoration: underline; }
.traducoes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0 16px; padding: 0; }
.traducoes li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, transparent); margin: 0; }
.traducoes span { font-size: 12px; color: var(--muted, #666); }
.traducoes b { font-size: 16px; font-weight: 600; }
.origem { font-size: 17px; color: var(--text); }
.cita { margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--line); }
.cita blockquote { font-family: var(--serif); font-size: clamp(20px, 2.8vw, 25px); line-height: 1.4; font-style: italic; text-wrap: balance; }
.cita figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* Chamada para a app */
.chamada { display: grid; grid-template-columns: 1fr 180px; gap: 18px; align-items: center; background: var(--ink-2); color: #fff; border-radius: 28px; padding: 30px clamp(22px, 5vw, 40px); margin: 0 0 44px; position: relative; overflow: hidden; isolation: isolate; }
.chamada::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 90% 40%, rgba(164,123,255,.4), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(255,79,176,.3), transparent 70%); }
.chamada h2 { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 32px); line-height: 1.15; margin-bottom: 8px; }
.chamada p { color: rgba(255,255,255,.8); margin-bottom: 18px; }
.chamada .acoes { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.chamada img { width: 180px; }
@media (max-width: 600px) { .chamada { grid-template-columns: 1fr; text-align: center; } .chamada img { width: 150px; margin: -6px auto 0; grid-row: 1; } .chamada .acoes { justify-content: center; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 24px; border-radius: 16px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-primario { background: var(--gradiente); color: #fff; box-shadow: 0 8px 22px -8px rgba(110,50,242,.6); }
.btn-primario:hover { filter: brightness(1.08); }
.loja { background: #fff; color: #0b0b0b; padding: 8px 20px 8px 16px; min-height: 52px; border-radius: 16px; cursor: default; }
.loja svg { width: 24px; height: 24px; }
.loja span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.loja small { font-size: 11px; font-weight: 600; opacity: .7; }
.loja b { font-size: 17px; }
.link-claro { color: #fff; font-weight: 700; text-decoration: none; padding: 10px 4px; }
.link-claro:hover { text-decoration: underline; }

/* Mais palavras */
.titulo-sec { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); line-height: 1.15; margin-bottom: 18px; }
.titulo-sec em { color: var(--clay); }
.grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; }
.cartao { display: block; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; text-decoration: none; transition: transform .15s, box-shadow .2s, border-color .2s; }
.cartao:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--teal-2); }
.cartao b { display: block; font-family: var(--serif); font-size: 21px; color: var(--teal-ink); line-height: 1.2; }
.cartao span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vizinhas { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; margin-bottom: 60px; }
.vizinhas a { flex: 1; max-width: 48%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; background: var(--surface); }
.vizinhas a:hover { border-color: var(--teal-2); }
.vizinhas small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vizinhas b { font-family: var(--serif); font-size: 19px; color: var(--teal-ink); }
.vizinhas .seg { text-align: right; margin-left: auto; }

/* Índice */
.topo-indice { padding: 46px 0 10px; }
.topo-indice h1 { font-family: var(--serif); font-size: clamp(38px, 7vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 10px 0 14px; text-wrap: balance; }
.topo-indice h1 em { color: var(--clay); }
.topo-indice p { color: var(--muted); font-size: 18px; max-width: 620px; }
.hoje { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 26px 0 8px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.hoje small { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-ink); }
.hoje a { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.hoje a:hover { text-decoration: underline; }
.hoje span { color: var(--muted); font-size: 15px; flex-basis: 100%; }
.filtros { position: sticky; top: 64px; z-index: 5; background: var(--bg); padding: 14px 0 12px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.procura { width: 100%; font: inherit; font-size: 17px; padding: 13px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text); }
.procura:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(164,123,255,.25); }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.cats button[aria-pressed=true] { background: var(--teal); border-color: var(--teal); color: #fff; }
.contagem { font-size: 14px; color: var(--muted); margin: 14px 0 0; min-height: 1.6em; }
.letra { padding-top: 26px; scroll-margin-top: 190px; }
.letra h2 { font-family: var(--serif); font-size: 30px; color: var(--clay); margin-bottom: 12px; }
.sem { padding: 40px 0; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

footer { padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 12px 0; }
footer nav a { padding: 8px 10px; text-decoration: none; }
footer nav a:hover { color: var(--text); text-decoration: underline; }
footer .mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .08em; color: var(--text); }
footer .mark img { width: 26px; height: 26px; border-radius: 7px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
