* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0B0A08; color: #F2EFE6; font-family: Archivo, system-ui, sans-serif; overflow-x: hidden; }
a { color: #E3F24D; text-decoration: none; }
a:hover { color: #F2EFE6; }
p { text-wrap: pretty; }
img { display: block; }
::selection { background: #E3F24D; color: #0B0A08; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
[data-reveal].on { opacity: 1; transform: none; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px clamp(16px,4vw,48px); backdrop-filter: blur(14px); background: #0B0A08D9; border-bottom: 1px solid #1C1A15; }
.nav-logo { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; color: #F2EFE6; }
.nav-logo span { color: #E3F24D; }
.nav-links { display: flex; align-items: center; gap: clamp(10px,1.8vw,22px); font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8F8B7E; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a.nav-link { color: #8F8B7E; }
.nav-links a.nav-link:hover { color: #E3F24D; }
.nav-links a.nav-link.current { color: #E3F24D; }
.nav-cta { color: #0B0A08 !important; background: #E3F24D; padding: 7px 14px; border-radius: 999px; }
.nav-cta:hover { color: #0B0A08 !important; background: #F2EFE6; }

/* footer */
.site-footer { border-top: 1px solid #1C1A15; padding: clamp(36px,6vh,80px) clamp(16px,4vw,48px) 26px; display: grid; gap: clamp(22px,4vh,44px); }
.site-footer .wordmark { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(60px,17vw,272px); line-height: .78; letter-spacing: -.035em; color: #1C1A15; }
.site-footer .wordmark span { color: #26241E; }
.site-footer .foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #5C594F; }

/* pill button (outline, invert on hover) */
.pill { display: inline-flex; border: 1px solid #3A372E; border-radius: 999px; padding: 11px 20px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #F2EFE6; transition: all .2s; }
.pill:hover { background: #E3F24D; color: #0B0A08; border-color: #E3F24D; }

/* entry cards (home: Música / Projetos / Escritos / Artigos) */
.entry-card { background: #0B0A08; padding: clamp(22px,2.6vw,38px); display: grid; gap: 14px; align-content: start; min-height: 240px; color: #F2EFE6; transition: background .2s; }
.entry-card:hover { background: #14130F; color: #F2EFE6; }

/* placeholder image box */
.img-placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; background: #14130F; border: 1px dashed #3A372E; color: #5C594F; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* password gate */
html.locked, html.locked body { overflow: hidden; height: 100%; }
#site { filter: blur(22px) saturate(0.8) brightness(0.7); transform: scale(1.02); transition: filter .6s ease, transform .6s ease; }
html.unlocked #site { filter: none; transform: none; }
#gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(120% 120% at 50% 0%, #14130f 0%, #0B0A08 65%); transition: opacity .5s ease, visibility .5s; }
html.unlocked #gate { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-card { position: relative; z-index: 1; width: 100%; max-width: 380px; border: 1px solid #26241E; border-radius: 8px; background: #0B0A08cc; backdrop-filter: blur(8px); padding: clamp(28px,5vw,44px); text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gate-mark { font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: #F2EFE6; }
.gate-mark span { color: #E3F24D; }
.gate-card h2 { margin: 22px 0 8px; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; font-size: clamp(28px,4vw,36px); letter-spacing: -.01em; color: #F2EFE6; }
.gate-card p.hint { margin: 0 0 24px; font-size: 13px; line-height: 1.5; color: #8F8B7E; }
.gate-form { display: flex; flex-direction: column; gap: 12px; }
.gate-form input { background: #14130F; border: 1px solid #3A372E; border-radius: 999px; padding: 14px 20px; color: #F2EFE6; font-family: Archivo, sans-serif; font-size: 15px; text-align: center; outline: none; letter-spacing: .04em; }
.gate-form input:focus { border-color: #E3F24D; }
.gate-form button { background: #E3F24D; color: #0B0A08; border: none; border-radius: 999px; padding: 14px 20px; font-family: Archivo, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: opacity .2s; }
.gate-form button:hover { opacity: .85; }
.gate-error { margin: 14px 0 0; font-size: 12px; color: #E35E4D; min-height: 16px; }
.gate-error.shake { animation: gate-shake .35s ease; }
@keyframes gate-shake { 0%,100%{ transform: translateX(0); } 25%{ transform: translateX(-6px); } 75%{ transform: translateX(6px); } }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; }
  .nav-links { gap: 10px 14px; justify-content: flex-start; }
  /* only collapse when JS is running, so the menu never becomes unreachable */
  html.js-nav .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid #3A372E; border-radius: 999px; padding: 7px 14px; color: #F2EFE6; font-family: Archivo, sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
  html.js-nav .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 6px; font-size: 13px; }
  html.js-nav .nav-links a { display: block; width: 100%; padding: 13px 0; border-top: 1px solid #1C1A15; }
  html.js-nav .nav-links a.nav-cta { width: auto; margin-top: 12px; padding: 10px 18px; border-top: none; }
  html.nav-open .nav-links { display: flex; }
}
