/* Inner pages (resume, builds, writing, 404) dressed like the home (v4 "luxury"):
   ivory paper, green signature, Inter light, letter-spaced caps, square buttons,
   same bar, menu and footer. Loaded after style.css; the old nav stays in the DOM
   (script.js hooks into it) but is hidden. Light only, like the home's paper sections. */

:root, :root[data-theme="dark"], :root[data-theme="light"] {
  --bg: #f4f1ea; --bg-elev: #fbf9f4; --bg-sunk: #ebe6db;
  --border: rgba(20, 20, 18, .12); --border-lit: rgba(20, 20, 18, .22);
  --text: #141412; --text-dim: #5f5a51; --text-faint: #8d877b;
  --accent: #0c2a22; --accent-ink: #f4f1ea; --accent-2: #b99a5b;
  --glow: transparent;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --green: #0c2a22; --gold: #b99a5b; --paper: #ebe6db; --mute-l: #6f6a60;
  --pad: clamp(20px, 3.4vw, 56px); --ease: cubic-bezier(.22, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #f4f1ea; --bg-elev: #fbf9f4; --bg-sunk: #ebe6db; --border: rgba(20, 20, 18, .12); --border-lit: rgba(20, 20, 18, .22);
    --text: #141412; --text-dim: #5f5a51; --text-faint: #8d877b; --accent: #0c2a22; --accent-ink: #f4f1ea; --accent-2: #b99a5b; --glow: transparent;
  }
}
html, body { background: var(--bg) !important; color: var(--text); }
body { font-family: var(--sans); font-weight: 300; padding-top: 62px; }
nav.nav, .skip { display: none !important; }
.hero { background: none !important; padding-top: 90px !important; }
.hero::before, .hero::after { display: none !important; }

h1, h1.name, .brand { font-family: var(--sans) !important; font-weight: 200 !important; letter-spacing: -.025em !important; }
h1, h1.name { font-size: clamp(40px, 5.6vw, 76px) !important; line-height: 1.04 !important; }
h2, h3, h4 { font-family: var(--sans); font-weight: 400; letter-spacing: -.01em; }
.block-head h2 { font-size: 11px !important; font-weight: 500 !important; letter-spacing: .22em !important; text-transform: uppercase; color: var(--gold) !important; }
.eyebrow, .kicker, .backlink { font-family: var(--sans) !important; font-size: 11px !important; font-weight: 500 !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--gold) !important; }
.backlink { color: var(--mute-l) !important; }
.summary, .lede, p { color: var(--text-dim); }
strong, b { font-weight: 500; color: var(--text); }
.tag { font-family: var(--sans) !important; font-size: 11px !important; letter-spacing: .08em; border-radius: 2px !important; background: transparent !important; border: 1px solid var(--border) !important; color: var(--text-dim) !important; }
.proj, .skill-card, .role, .card { border-radius: 4px !important; background: var(--bg-elev) !important; border: 1px solid var(--border) !important; box-shadow: none !important; transition: transform .6s var(--ease), border-color .3s !important; }
.proj:hover { transform: translateY(-4px); border-color: var(--green) !important; }
.proj-icon { background: var(--green) !important; color: #e9e2d0 !important; border-radius: 2px !important; border: 0 !important; }
.proj h3 { font-weight: 400; font-size: 22px; }
.more { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--green) !important; }
.btn, .btn.primary { border-radius: 2px !important; background: var(--green) !important; color: #fff !important; border-color: var(--green) !important; font-weight: 500; letter-spacing: .06em; }
a { text-decoration-color: rgba(12, 42, 34, .3); }
.prose a, .company-head a { color: var(--green); }
figure.shot, .shot img { border-radius: 4px !important; }
.rule { background: var(--border) !important; }

/* ---------- bar + menu (same as home, always solid) ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 62px; padding: 0 var(--pad); background: rgba(244, 241, 234, .96); color: var(--text); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); font-family: var(--sans); }
.bar a { text-decoration: none; color: inherit; }
.mark { font-size: 13px; font-weight: 500; letter-spacing: .5em; padding-left: .5em; }
.menu-btn { justify-self: start; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit; font: inherit; }
.burger { position: relative; width: 22px; height: 10px; }
.burger span { position: absolute; left: 0; width: 22px; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 0; }
.burger span + span { top: 9px; }
.menu-btn em { font-style: normal; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.menu-btn[aria-expanded="true"] .burger span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger span + span { top: 5px; transform: rotate(-45deg); }
.bar .right { justify-self: end; display: flex; align-items: center; gap: 18px; }
.btn-sm { font-size: 12px; letter-spacing: .08em; padding: 9px 16px; background: var(--green); color: #fff !important; border-radius: 2px; }
.menu { position: fixed; inset: 0; z-index: 55; background: var(--green); color: #e9e2d0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--pad) 0 calc(var(--pad) + 4vw); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; font-family: var(--sans); }
.menu a { font-size: clamp(28px, 4vw, 52px); font-weight: 200; letter-spacing: -.01em; opacity: .75; color: inherit; text-decoration: none; transition: opacity .2s, transform .4s var(--ease); }
.menu a:hover { opacity: 1; transform: translateX(8px); }
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-open .bar { background: transparent; color: #e9e2d0; box-shadow: none; }
.menu-open .btn-sm { background: transparent; border: 1px solid currentColor; }

/* ---------- footer (same as home) ---------- */
footer.foot { background: var(--paper); padding: 60px var(--pad) 30px; font-size: 13px; margin-top: 100px; border: 0; font-family: var(--sans); }
.foot a { text-decoration: none; }
.f-top { border-bottom: 1px solid rgba(0, 0, 0, .14); padding-bottom: 22px; }
.f-mark { font-size: 12px; font-weight: 500; letter-spacing: .45em; }
.f-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 220px)); gap: 30px; padding: 34px 0 60px; }
.f-cols div { display: grid; gap: 8px; align-content: start; }
.f-cols b { font-weight: 500; margin-bottom: 4px; }
.f-cols a { color: var(--mute-l); overflow-wrap: anywhere; }
.f-cols a:hover { color: var(--text); }
.f-bot { display: flex; justify-content: space-between; color: var(--mute-l); font-size: 12px; }

@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr auto; }
  .mark { justify-self: center; font-size: 11px; letter-spacing: .35em; }
  .btn-sm, .menu-btn em { display: none; }
  .f-cols { grid-template-columns: 1fr 1fr; }
}
@media print {
  .bar, .menu, footer.foot { display: none !important; }
  body { padding-top: 0; }
}

/* labels and kickers inside build cards: gold Inter caps, no mono, no orange */
.proj .lab { font-family: var(--sans) !important; font-size: 10px !important; font-weight: 500; letter-spacing: .2em !important; color: var(--gold) !important; }
.proj .kicker { color: var(--mute-l) !important; font-size: 10px !important; }
.proj .build { border: 0 !important; background: none !important; padding: 0 !important; }
figcaption { font-family: var(--sans) !important; font-size: 12px !important; letter-spacing: .02em; color: var(--mute-l) !important; }
/* Discord-style digest reproduced in HTML */
.digest .dc { background: #313338; color: #dbdee1; border-radius: 6px; padding: 18px 20px; font: 14px/1.5 var(--sans); }
.dc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dc-h b { color: #fff; font-weight: 500; }
.dc-h i { font-style: normal; font-size: 12px; color: #949ba4; }
.dc-av { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #e9e2d0; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.dc-e { background: #2b2d31; border-left: 4px solid var(--gold); border-radius: 4px; padding: 10px 14px; margin: 0 0 8px 46px; font-size: 13px; }
.dc-e b { color: #fff; font-weight: 600; }
.dc-e > b:first-child { display: block; margin-bottom: 4px; }
.dc-e span { display: block; }
.dc-e em { font-style: normal; font-size: 12px; color: #949ba4; }
@media (max-width: 700px) { .dc-e { margin-left: 0; } }

/* ---------- builds index (v4.4): cover + image cards ---------- */
.builds { font-family: var(--sans); }
.b-hero { padding: 70px var(--pad) 0; max-width: 1600px; margin: 0 auto; }
.b-in { max-width: 760px; margin-bottom: 44px; }
.b-in h1 { margin: 14px 0 16px; }
.b-in p { font-size: 18px; line-height: 1.6; margin: 0; }
.b-cover { position: relative; display: block; aspect-ratio: 21 / 9; border-radius: 4px; overflow: hidden; background: #0b1411; color: #fff; text-decoration: none; }
.b-cover video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.b-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 16, 13, .88) 0%, rgba(8, 16, 13, .55) 34%, transparent 62%); }
.b-cover:hover video { transform: scale(1.03); }
.b-cap { position: absolute; z-index: 2; left: clamp(24px, 4vw, 64px); bottom: clamp(24px, 4vw, 60px); max-width: 420px; }
.b-cap h2 { font-size: clamp(30px, 3.4vw, 52px); font-weight: 200; letter-spacing: -.02em; line-height: 1.05; margin: 12px 0 14px; color: #fff; }
.b-cap p { color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.6; margin: 0 0 22px; }
.b-cap .bc-m { color: #fff; }
.b-cover:hover .bc-m { color: var(--gold); }
.b-sec { max-width: 1600px; margin: 0 auto; padding: 96px var(--pad) 0; }
.b-head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 34px; }
.b-head h2 { font-size: clamp(26px, 2.4vw, 36px); font-weight: 300; margin: 0; letter-spacing: -.015em; }
.b-head p { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--mute-l); }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 44px 28px; }
.bc { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.bc-img { position: relative; aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; background: #0f1d19; }
.bc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 1.2s var(--ease); }
.bc:hover .bc-img img { transform: scale(1.05); }
.bc-img.plain { background: linear-gradient(150deg, #1d3a31, #0c1b17); display: grid; place-items: center; }
.bc-art { font-size: clamp(54px, 5vw, 84px); font-weight: 200; letter-spacing: -.04em; color: rgba(233, 226, 208, .22); text-transform: lowercase; transition: color .6s var(--ease); }
.bc:hover .bc-art { color: rgba(233, 226, 208, .4); }
.bc-t { padding-top: 18px; }
.bc-k, .bc-m { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.bc-t h3 { font-size: 22px; font-weight: 400; letter-spacing: -.01em; margin: 8px 0 8px; }
.bc-t p { font-size: 15px; line-height: 1.55; margin: 0 0 14px; }
.bc-m { color: var(--green); transition: color .3s; }
.bc:hover .bc-m { color: var(--gold); }
@media (max-width: 760px) {
  .b-hero { padding-top: 40px; }
  .b-cover { aspect-ratio: 4 / 5; }
  .b-cover::after { background: linear-gradient(transparent 10%, rgba(8, 16, 13, .95) 55%); }
  .b-cap { right: 24px; }
  .b-sec { padding-top: 64px; }
}
.b-in { max-width: 980px; }
@media (min-width: 1000px) { .bgrid.g3 { grid-template-columns: repeat(3, 1fr); gap: 52px 36px; } }

/* ---------- bilingual (v4.5): each translatable node exists as [lang="en"] and [lang="pt"] ---------- */
html[data-lang="en"] [lang="pt"],
html[data-lang="pt"] [lang="en"] { display: none !important; }
.bar .lang { display: flex; gap: 2px; }
.bar .lang button { background: none; border: 0; cursor: pointer; font: inherit; font-size: 11px; letter-spacing: .14em; padding: 6px; opacity: .5; color: inherit; }
.bar .lang button[aria-pressed="true"] { opacity: 1; }

/* Fim das páginas de builds: convite para conversar (v4.8) */
.talk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.talk p { margin: 0; font-size: 19px; line-height: 1.45; max-width: 560px; color: var(--text); }
.talk-links { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.ghost { background: transparent !important; color: var(--green) !important; border: 1px solid var(--green) !important; }
@media (max-width: 560px) { .talk-links .btn { flex: 1; justify-content: center; } }
