/* portifolio.online · modelo de portfólio com 4 estilos (data-preset) e tema claro/escuro */

body[data-preset] {
  --accent: var(--accent-base, #1e5e5a);
  --accent-ink: #fff;
  --radius: 14px;
  --wrap: 1160px;
  --head-transform: none;
  --head-weight: 700;
  --head-track: -0.02em;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
body[data-preset="industrial"] {
  --bg: #eef1f4; --surface: #ffffff; --alt: #e6eaee; --ink: #14202a; --muted: #586572; --line: #d3dbe2;
  --band: #12293a; --band-fg: #e6edf2; --band-muted: #9fb3c2;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif; --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 4px; --head-transform: uppercase; --head-weight: 600; --head-track: 0.01em;
}
body[data-preset="editorial"] {
  --bg: #ffffff; --surface: #f3f6f7; --alt: #f3f6f7; --ink: #15222c; --muted: #5a6772; --line: #e1e6e9;
  --band: #15222c; --band-fg: #eef2f4; --band-muted: #a3b0b8;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 16px; --head-weight: 700;
}
body[data-preset="tech"] {
  --bg: #f6f7fb; --surface: #ffffff; --alt: #eceff7; --ink: #11152a; --muted: #555c78; --line: #dde1ee;
  --band: #0d1122; --band-fg: #e8ebf7; --band-muted: #9aa2c4;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace; --radius: 10px; --head-weight: 600;
}
body[data-preset="natureza"] {
  --bg: #fbfaf6; --surface: #ffffff; --alt: #f1efe7; --ink: #1d2420; --muted: #5d665f; --line: #e3e0d4;
  --band: #1f2b26; --band-fg: #eef1ec; --band-muted: #a8b4ab;
  --display: "Fraunces", Georgia, serif; --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 18px; --head-weight: 600; --head-track: -0.01em;
}

/* Tema escuro: automático pelo aparelho ou forçado pelo botão/painel */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body[data-preset] { --accent: color-mix(in srgb, var(--accent-base, #1e5e5a) 55%, #fff); --accent-ink: #0b1014; color-scheme: dark; }
  html:not([data-theme="light"]) body[data-preset="industrial"] { --bg: #0d151c; --surface: #142029; --alt: #111b23; --ink: #e3eaef; --muted: #93a3b0; --line: #24333f; --band: #081017; }
  html:not([data-theme="light"]) body[data-preset="editorial"] { --bg: #0f161b; --surface: #172128; --alt: #131c22; --ink: #e7ecef; --muted: #9aa7b0; --line: #26323a; --band: #0a1014; }
  html:not([data-theme="light"]) body[data-preset="tech"] { --bg: #0b0e1a; --surface: #131729; --alt: #0f1322; --ink: #e6e9f5; --muted: #98a0c0; --line: #242a44; --band: #070912; }
  html:not([data-theme="light"]) body[data-preset="natureza"] { --bg: #121614; --surface: #1a201d; --alt: #161b18; --ink: #e9ede8; --muted: #a2aca4; --line: #2a322d; --band: #0c0f0d; }
}
html[data-theme="dark"] body[data-preset] { --accent: color-mix(in srgb, var(--accent-base, #1e5e5a) 55%, #fff); --accent-ink: #0b1014; color-scheme: dark; }
html[data-theme="dark"] body[data-preset="industrial"] { --bg: #0d151c; --surface: #142029; --alt: #111b23; --ink: #e3eaef; --muted: #93a3b0; --line: #24333f; --band: #081017; }
html[data-theme="dark"] body[data-preset="editorial"] { --bg: #0f161b; --surface: #172128; --alt: #131c22; --ink: #e7ecef; --muted: #9aa7b0; --line: #26323a; --band: #0a1014; }
html[data-theme="dark"] body[data-preset="tech"] { --bg: #0b0e1a; --surface: #131729; --alt: #0f1322; --ink: #e6e9f5; --muted: #98a0c0; --line: #242a44; --band: #070912; }
html[data-theme="dark"] body[data-preset="natureza"] { --bg: #121614; --surface: #1a201d; --alt: #161b18; --ink: #e9ede8; --muted: #a2aca4; --line: #2a322d; --band: #0c0f0d; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--head-weight); letter-spacing: var(--head-track); line-height: 1.08; margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Topo */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topin { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: calc(var(--radius) * .6); background: var(--accent); color: var(--accent-ink); font: 600 .8rem/1 var(--mono); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a.on { color: var(--ink); background: var(--alt); }
.tools { display: flex; align-items: center; gap: 6px; }
.iconbtn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; cursor: pointer; }
.iconbtn svg { width: 18px; height: 18px; }
.menubtn { display: none; }
.switch { position: relative; }
.switch summary { list-style: none; cursor: pointer; font-size: .85rem; font-weight: 600; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); white-space: nowrap; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary::after { content: " ▾"; color: var(--muted); }
.switch .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); }
.switch .menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.switch .menu a:hover { background: var(--alt); }
.switch .menu b { display: block; font-size: .95rem; }
.switch .menu span { display: block; font-size: .8rem; color: var(--muted); }

/* Abertura */
.hero { padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px); }
.heroin { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { font: 500 .8rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); text-transform: var(--head-transform); text-wrap: balance; }
.hero h1 em { display: block; font-style: normal; color: var(--accent); }
body[data-preset="natureza"] .hero h1 em { font-style: italic; font-weight: 400; }
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 58ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .96rem; transition: transform .2s, background .2s; }
.btn svg { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
body[data-preset="industrial"] .btn { border-radius: var(--radius); }
.idcard { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.3); padding: 22px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); display: block; background: var(--alt); }
.photo.mono { display: grid; place-items: center; font: 600 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.idname { margin-top: 16px; display: grid; gap: 2px; }
.idname strong { font-family: var(--display); font-size: 1.25rem; }
.idname span { color: var(--muted); font-size: .92rem; }
.facts { margin-top: 14px; border-top: 1px solid var(--line); }
.facts div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { font: 500 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.facts dd { font-size: .95rem; }

/* Números */
.stats { background: var(--band); color: var(--band-fg); }
.statsin { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.stat { padding: 30px 22px 30px 0; display: grid; gap: 6px; border-right: 1px solid color-mix(in srgb, var(--band-fg) 14%, transparent); padding-left: 22px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { font: var(--head-weight) clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--display); color: color-mix(in srgb, var(--accent-base, #1e5e5a) 45%, #fff); text-transform: var(--head-transform); }
.stat span { color: var(--band-muted); font-size: .92rem; line-height: 1.45; }

/* Seções */
.sec { padding: clamp(56px, 9vw, 104px) 0; }
.sec.alt { background: var(--alt); }
.sh { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker { font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.sh h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: var(--head-transform); text-wrap: balance; }
.sintro { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose p + p { margin-top: 1em; }
.prose p { max-width: 66ch; }
.traits { display: grid; gap: 12px; }
.traits li { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; }
.traits b { font-family: var(--display); font-weight: var(--head-weight); }
.traits span { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.code { align-self: flex-start; font: 500 .74rem/1 var(--mono); letter-spacing: .06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 6px 8px; border-radius: 6px; text-transform: uppercase; }
.tile h3 { font-size: 1.28rem; text-transform: var(--head-transform); }
.tile p { color: var(--muted); font-size: .98rem; }
.checks { display: grid; gap: 7px; font-size: .96rem; }
.checks li { position: relative; padding-left: 20px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); opacity: .8; }
.note { margin-top: 18px; color: var(--muted); font: 500 .9rem/1.5 var(--mono); }

.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 12px; }
.ctx { font: 500 .76rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.project h3 { font-size: 1.35rem; text-transform: var(--head-transform); }
.project > p { color: var(--muted); }
.cai { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.cai dt { font: 500 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cai dd { font-size: .97rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.tags li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--alt); border: 1px solid var(--line); color: var(--muted); }
.sec.alt .tags li { background: var(--bg); }
.plink { display: inline-flex; gap: 8px; align-items: center; color: var(--accent); font-weight: 600; text-decoration: none; }
.plink svg { width: 14px; height: 14px; }

.timeline { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.job { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 0 0 36px 30px; }
.job:last-child { padding-bottom: 0; }
.job::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
.sec.alt .job::before { background: var(--alt); }
.job.now::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.when { font: 500 .85rem/1.5 var(--mono); color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.what h3 { font-size: 1.4rem; text-transform: var(--head-transform); }
.org { font-weight: 600; margin-top: 4px; }
.place { color: var(--muted); font-size: .92rem; }
.sum { margin-top: 10px; max-width: 72ch; }
.bul { margin-top: 10px; display: grid; gap: 8px; max-width: 76ch; }
.bul li { position: relative; padding-left: 18px; color: var(--muted); font-size: .98rem; }
.bul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.what .tags { margin-top: 14px; }

.skillwrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.skills { display: grid; border-top: 1px solid var(--line); }
.skills li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lvl { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lvl i { width: 18px; height: 6px; border-radius: 3px; background: var(--line); }
.lvl[data-n="1"] i:nth-child(-n+1), .lvl[data-n="2"] i:nth-child(-n+2), .lvl[data-n="3"] i:nth-child(-n+3) { background: var(--accent); }
.lvl em { font: normal 500 .78rem/1 var(--mono); color: var(--muted); margin-left: 8px; min-width: 96px; }
.toolbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.toolbox h3 { font-size: 1.15rem; margin-bottom: 12px; text-transform: var(--head-transform); }
.toolbox ul { display: grid; gap: 12px; }
.toolbox li { display: grid; gap: 1px; }
.toolbox b { font-size: .98rem; }
.toolbox span { color: var(--muted); font-size: .9rem; }

.degrees .degree h3 { font-size: 1.3rem; }
.yr { font: 500 .85rem/1.4 var(--mono); }
.courses { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cgroup { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.cgroup h3 { font-size: 1.05rem; margin-bottom: 8px; text-transform: var(--head-transform); }
.cgroup li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cgroup li:last-child { border-bottom: 0; }
.cgroup b { display: block; font-weight: 500; font-size: .97rem; }
.cgroup small { color: var(--muted); font-size: .85rem; }
.cgroup em { font: normal 500 .8rem/1.6 var(--mono); color: var(--muted); white-space: nowrap; }

.contact { background: var(--band); color: var(--band-fg); }
.contact .sintro { color: var(--band-muted); }
.contact .kicker { color: color-mix(in srgb, var(--accent-base, #1e5e5a) 45%, #fff); }
.contactin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.channels { display: grid; border-top: 1px solid color-mix(in srgb, var(--band-fg) 16%, transparent); }
.channels li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid color-mix(in srgb, var(--band-fg) 16%, transparent); }
.cl { font: 500 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--band-muted); }
.channels a { text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.channels a:hover { text-decoration: underline; }
.copy { font: 500 .8rem/1 var(--body); padding: 8px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--band-fg) 24%, transparent); background: transparent; color: var(--band-fg); cursor: pointer; }
.copy.ok { background: var(--band-fg); color: var(--band); }

.foot { background: var(--band); color: var(--band-muted); border-top: 1px solid color-mix(in srgb, var(--band-fg) 10%, transparent); font-size: .85rem; }
.footin { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--band-fg); }

/* Celular e tablet */
@media (max-width: 900px) {
  .heroin, .about, .skillwrap, .contactin { grid-template-columns: 1fr; }
  .idcard { max-width: 460px; }
  .job { grid-template-columns: 1fr; gap: 6px; }
  .when { flex-direction: row; align-items: center; }
}
@media (max-width: 1100px) {
  .menubtn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0; padding: 8px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .tools { margin-left: auto; }
  .lname { display: none; }
}
@media (max-width: 560px) {
  .stat { border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--band-fg) 14%, transparent); padding: 20px 0; }
  .stat:last-child { border-bottom: 0; }
  .channels li { grid-template-columns: 1fr auto; }
  .channels .cl { grid-column: 1 / -1; }
  .switch summary { font-size: .8rem; padding: 8px 10px; }
  .switch .menu { position: fixed; left: 16px; right: 16px; top: 70px; min-width: 0; }
  .lvl em { min-width: 0; }
  .lvl i { width: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print {
  .top, .actions, .copy, .switch { display: none !important; }
  .stats, .contact, .foot { background: none; color: #000; }
  body { background: #fff; color: #000; }
}
