/* Site pessoal · tema Terra (fixo). Base: design/tokens/site-terra.css; layout: design/canvas/Site-A.dc.html */
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #17110D; --panel: #221911; --soft: #2E2219; --line: #4A3A2C;
  --ink: #F3EDE3; --muted: #B8A893; --muted-2: #D9CDBC;
  --accent: #D2B13C; --accent-ink: #17110D; --accent-text: #E2C866;
  --link: #2E8C87; --link-text: #6CC4BC;
  --clay: #C08A5A; --clay-text: #D9A577; --clay-deep: #8A5A3B;
  --danger: #D9714E;
  --font-sans: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --stroke-marker: 4.5px; --stroke-marker-thin: 1.1px;   /* marcador: traço contínuo + brilho fino por cima */
  --stroke-ink: 2px; --stroke-ink-thin: .6px;            /* aguarela: traço fino sobre manchas */
  --clay-wash: #A86F48;
  --thick: var(--stroke-marker); --thin: var(--stroke-marker-thin);
  --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}
html.wash { --thick: var(--stroke-ink); --thin: var(--stroke-ink-thin); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
a:hover { color: var(--ink); }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.kicker { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.muted { color: var(--muted-2); }
.mono { font-family: var(--font-mono); }
.thick { stroke-width: var(--thick); transition: stroke-width .4s var(--ease-out); }
.thin { stroke-width: var(--thin); transition: stroke-width .4s var(--ease-out); }
.wash-only { opacity: 0; transition: opacity .6s var(--ease-out); }
html.wash .wash-only { opacity: 1; }
.btn { font-size: 16px; height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; font-weight: 500; transition: border-color .2s, transform .18s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* nav */
.nav { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand strong { font-weight: 600; }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; font-size: 15px; }
.nav nav a { padding: 10px 12px; color: var(--muted-2); text-decoration: none; border-radius: 10px; }
.nav nav a:hover { color: var(--ink); background: var(--soft); }
.seg { display: flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); }
.seg button { font: inherit; font-size: 13px; height: 38px; padding: 0 12px; border-radius: 9px; border: 0; cursor: pointer; background: transparent; color: var(--muted-2); }
html:not(.wash) .seg [data-mode="marker"], html.wash .seg [data-mode="wash"] { background: var(--ink); color: var(--accent-ink); }

/* hero */
.hero { padding-top: 40px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.intro { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
h1 { margin: 0; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted-2); max-width: 520px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.tree { flex: 1 1 460px; margin: 0; position: relative; aspect-ratio: 560 / 520; }
.tree svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tl { position: absolute; font-size: 13px; color: var(--muted-2); white-space: nowrap; }
.tl .mono { font-size: 12px; color: var(--muted); }
.tl.br { font-size: 14px; font-weight: 600; }
.tl.edu { color: var(--link-text); } .tl.game, .tl.hl { color: var(--accent-text); } .tl.mgmt { color: var(--clay-text); }
.tl.hl { font-weight: 600; }
.tn { transform-box: fill-box; transform-origin: center; transition: opacity .6s var(--ease-out), transform .6s cubic-bezier(.34, 1.56, .64, 1); }
html.js .tn { opacity: .25; transform: scale(.6); }
html.js .tn.lit { opacity: 1; transform: none; }

/* traço que se desenha */
.ink-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease-in-out), stroke-width .4s var(--ease-out); }
.ink-draw.is-visible { stroke-dashoffset: 0; }
html:not(.js) .ink-draw { stroke-dashoffset: 0; }

/* secções */
.section { padding-top: 80px; padding-bottom: 80px; border-top: 1px solid var(--soft); }
h2 { margin: 0; font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split .side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; align-self: flex-start; position: sticky; top: 24px; }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend span { width: 12px; height: 12px; border-radius: 50%; }

/* percurso */
.timeline { flex: 2 1 520px; list-style: none; margin: 0; padding: 0; position: relative; }
.timeline .line { position: absolute; left: 0; top: 0; width: 40px; height: 100%; }
.timeline .progress { stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .2s linear; }
html:not(.js) .timeline .progress { stroke-dashoffset: 0; }
.timeline li { position: relative; padding: 0 0 40px 64px; display: flex; flex-direction: column; gap: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .mark { position: absolute; left: 11px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--soft); border: 3px solid var(--bg); transition: background-color .5s var(--ease-out), box-shadow .5s; }
.timeline li.lit.edu .mark, html:not(.js) .timeline li.edu .mark { background: var(--link); }
.timeline li.lit.game .mark, html:not(.js) .timeline li.game .mark { background: var(--accent); }
.timeline li.lit.mgmt .mark, html:not(.js) .timeline li.mgmt .mark { background: var(--clay); }
.timeline li.now .mark { left: 7px; top: 0; width: 26px; height: 26px; }
.timeline li.now.lit .mark { background: var(--accent); box-shadow: 0 0 0 6px rgba(210, 177, 60, .2); }
.timeline .when { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.timeline li.now .when { color: var(--accent-text); }
.timeline strong { font-size: 20px; font-weight: 600; line-height: 1.3; }
.timeline .desc { font-size: 15px; line-height: 1.55; color: var(--muted-2); }
html.js .timeline li { opacity: .55; transition: opacity .5s var(--ease-out); }
html.js .timeline li.lit { opacity: 1; }

/* projetos */
.proj-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.proj-head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.filters { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { font: inherit; font-size: 14px; height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--muted-2); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.proj { border-radius: 20px; background: var(--panel); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 230px;
  transition: transform .25s var(--ease-out), border-color .25s; }
.proj:hover { transform: translateY(-4px); border-color: var(--accent); }
.proj svg { width: 100%; height: 96px; overflow: visible; }
.proj .tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.proj strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.proj .muted { font-size: 15px; line-height: 1.55; }
.proj[hidden] { display: none; }

/* rodapé */
footer { border-top: 1px solid var(--soft); }
.foot { padding-top: 40px; padding-bottom: 56px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot strong { font-size: 24px; font-weight: 600; }
.foot a { font-size: 16px; }
.made { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

@media (max-width: 700px) {
  .nav nav { order: 3; width: 100%; margin-left: -12px; }
  .seg { margin-left: auto; }
  .hero { padding-top: 16px; }
  .tl { font-size: 11px; }
  .tl.br { font-size: 12px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  h2 { font-size: 32px; }
  .split .side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ink-draw { stroke-dasharray: none; transition: none; }
  *, *::before, *::after { transition-duration: 0ms !important; }
}

/* troca de língua e ligações nos cartões */
.lang { font-family: var(--font-mono); font-size: 13px; letter-spacing: .08em; height: 38px; min-width: 44px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted-2); text-decoration: none; }
.lang:hover { color: var(--ink); border-color: var(--accent); }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: " ↗"; color: var(--accent-text); font-size: .8em; }
.card-link:hover { color: var(--accent-text); }
.made a { color: var(--muted); }

/* brilho do marcador (some na aguarela) */
.sheen { opacity: .28; transition: opacity .4s var(--ease-out), stroke-width .4s var(--ease-out); }
html.wash .sheen { opacity: 0; }
