/* Variáveis de cor (única fonte de cor), reset, tipografia, botões pílula e hanko. */
:root {
  color-scheme: light only;
  --sumi: #111111;          /* preto sumi: fundo escuro */
  --sumi-2: #1C1B1A;        /* palco do carrossel */
  --washi: #F4EFE6;         /* papel quente: fundo claro */
  --washi-2: #E4DCCD;       /* linhas finas no claro */
  --tinta: #151311;         /* texto no claro */
  --tinta-suave: #4A443C;   /* texto secundário no claro */
  --laca: #B3241B;          /* vermelho laca: botões, decoração, texto no claro */
  --laca-hover: #8F1A13;
  --laca-clara: #EE6A5C;    /* vermelho para texto/linhas sobre o escuro */
  --branco: #FFFFFF;
  --osso: #F4EFE6;          /* texto principal no escuro */
  --osso-suave: #D8D2C6;    /* texto secundário no escuro */
  --linha-escura: #3A3835;  /* linhas finas no escuro */
  --brasa: #4A1710;         /* brilho discreto de brasa no fundo do verbete */
  --margem: clamp(20px, 5vw, 64px);
  --titulos: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --texto: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light only; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--washi); color: var(--tinta); font-family: var(--texto); font-size: 1.0625rem; line-height: 1.65; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--titulos); font-weight: 700; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(2rem, 5.5vw, 3.25rem); margin-bottom: 20px; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--laca); outline-offset: 3px; }
.trabajos :focus-visible, .artista :focus-visible, .donde :focus-visible, .rodape :focus-visible { outline-color: var(--laca-clara); }

[hidden] { display: none !important; }
.caixa { width: min(1200px, 100% - 2 * var(--margem)); margin-inline: auto; }
.texto-largo { max-width: 62ch; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--sumi); color: var(--osso); padding: 12px 18px; border-radius: 999px; }
.pular:focus { top: 12px; }

.botoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pilula { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px;
  border: 2px solid transparent; font: 600 1rem/1 var(--texto); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.pilula-laca { background: var(--laca); color: var(--branco); }
.pilula-laca:hover { background: var(--laca-hover); }
.pilula-linha { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.pilula-linha:hover { background: var(--tinta); color: var(--washi); }
.pilula-linha-clara { border-color: var(--osso); color: var(--osso); background: transparent; }
.pilula-linha-clara:hover { background: var(--osso); color: var(--sumi); }

/* Selo hanko vermelho com 忍耐 */
.hanko { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: var(--laca); color: var(--washi);
  font-family: var(--titulos); font-weight: 700; border-radius: 4px; transform: rotate(-4deg); line-height: 1; }
.hanko-peq { width: 36px; height: 40px; font-size: 16px; gap: 1px; }
.hanko-grande { width: 84px; height: 96px; font-size: 38px; gap: 4px; position: absolute; right: 16px; bottom: -22px; box-shadow: 0 0 0 3px var(--washi); }

/* Kanji vertical decorativo */
.kanji-v { writing-mode: vertical-rl; font-family: var(--titulos); font-weight: 700; color: var(--laca); line-height: 1; font-size: clamp(64px, 17vw, 168px); letter-spacing: .08em; user-select: none; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
