/* araai.com.br — luz que revela */

:root {
  --ink: #050505;
  --paper: #f4f1ea;
  --muted: #8b8578;
  --amber: #e2a84a;
  --rule: #242220;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* A luz. Puramente aditiva: nada aqui esconde texto. */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  background: radial-gradient(
    circle 340px at var(--mx, 50vw) var(--my, 38vh),
    rgba(255, 226, 178, 0.10) 0%,
    rgba(255, 196, 120, 0.04) 45%,
    rgba(0, 0, 0, 0) 72%
  );
}

[data-light="on"] .glow { opacity: 1; }

@media (pointer: coarse) {
  .glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glow { display: none; }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 68rem;
  margin: 0 auto;
  padding: 2.5rem 1.75rem 5rem;
}

/* Cabeçalho e alternador de idioma */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 6rem;
}

.mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
}

.lang {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.lang a { color: var(--amber); }

/* Rótulos monoespaçados das seções */
.label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Hero */
.hero { margin-bottom: 7rem; }

h1 {
  font-weight: 200;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 1.5rem 0 0;
}

h1 strong { font-weight: 600; }

.lede {
  max-width: 46ch;
  margin: 2.25rem 0 0;
  font-size: 1.0625rem;
  color: var(--paper);
}

.rule {
  width: 2.25rem;
  height: 1px;
  background: var(--amber);
  border: 0;
  margin: 2rem 0 0;
}

/* Seções */
section { margin-bottom: 5.5rem; }

h2 {
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }

/* Publicações */
.pubs { list-style: none; padding: 0; margin: 0; max-width: 76ch; }

.pubs li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

.pubs li:last-child { border-bottom: 1px solid var(--rule); }

/* Coluna esquerda: ano, tipo e glifo */
.pub-rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.pub-year {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.pub-kind {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.pub-glyph {
  width: 22px;
  height: 22px;
  margin-top: 0.35rem;
  stroke: var(--amber);
  stroke-width: 1.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.45;
}

.pub-title {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--paper);
  text-decoration: none;
}

.pub-title:hover,
.pub-title:focus-visible { color: var(--amber); }

.pub-meta {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 40rem) {
  .pubs li { grid-template-columns: 1fr; gap: 0.85rem; }
  .pub-rail { flex-direction: row; align-items: center; gap: 0.85rem; }
  .pub-glyph { margin-top: 0; }
}

/* Docência e contatos em colunas */
.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 3rem;
}

.cols h3 {
  font-weight: 500;
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.plain { list-style: none; padding: 0; margin: 0; }
.plain li { margin-bottom: 0.55rem; color: var(--muted); }
.plain a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--rule); }
.plain a:hover,
.plain a:focus-visible { color: var(--amber); border-bottom-color: var(--amber); }

/* Contatos com glifo monoline */
.links li { margin-bottom: 0.85rem; }

.links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 0;
}

.links a span { border-bottom: 1px solid var(--rule); }

.links a:hover span,
.links a:focus-visible span { color: var(--amber); border-bottom-color: var(--amber); }

.ico {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 1.35;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--muted);
  transition: color 200ms ease;
}

.links a:hover .ico,
.links a:focus-visible .ico { color: var(--amber); }

/* Rodapé */
footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Foco visível de teclado em todo elemento interativo */
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Espaço reservado para a foto futura, sem ocupar lugar hoje */
.portrait { display: none; }
