/* ============================================================
   Sérgio Tavares — shared site system
   Typography: Satoshi (display) · DM Sans (body) · DM Mono (labels)
   Palette: warm paper, deep ink, swappable accent
   ============================================================ */

:root {
  --paper: #ffffff;
  --bg: #ffffff;
  --ink: #14140f;
  --ink-2: #4a463d;
  --mute: #8a8578;
  --rule: #d9d3c4;
  --accent: #d6ff3a;         /* lime default */
  --accent-ink: #14140f;
}
body[data-accent="magenta"] { --accent: #ff4fb2; }
body[data-accent="cyan"]    { --accent: #60f0ff; }
body[data-accent="orange"]  { --accent: #ff7a33; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  border: 15px solid var(--accent);
  padding: 15px;
  box-sizing: border-box;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6,
.title, .ttl, .ttl-big, .display, .sec-title {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900; color: var(--ink);
  letter-spacing: -0.035em; line-height: 1;
  margin: 0;
}
h1 *, h2 *, h3 *, h4 *, h5 *, h6 *,
.title *, .ttl *, .ttl-big *, .display *, .sec-title * {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: var(--ink); }
::selection { background: var(--accent); color: var(--ink); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ===== Typographic helpers ===== */
.cap {
  font-family: "DM Mono", monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.cap-mono {
  font-family: "DM Mono", monospace; font-size: 10px;
  letter-spacing: .1em; color: var(--mute);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ===== Tiny pixel cues ===== */
.pixel-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: -0.18em;
}
.pixel-icon.mini { width: 12px; height: 12px; }
.pixel-icon.tiny { width: 14px; height: 14px; }
.pixel-icon.room-glyph { width: 18px; height: 18px; }
.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.icon-label .pixel-icon { opacity: .82; }

.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; padding-bottom: 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.sec-num {
  font-family: "DM Mono", monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  font-family: "DM Mono", monospace; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--ink); color: var(--accent); }
.btn.accent { background: var(--accent); border-color: var(--accent); }
.btn.accent:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.btn.ghost { background: transparent; }
.btn .arrow { font-family: "DM Mono", monospace; }

.hero-ctarow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Topbar / nav ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.topbar .mark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Satoshi", sans-serif; font-weight: 900;
  font-size: 17px; letter-spacing: -0.025em;
  text-decoration: none; color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.topbar .mark .top-avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: #f5f5f5;
  padding: 2px;
}
.topbar .mark .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.topbar .nav { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar .nav a {
  font-family: "DM Mono", monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2);
  padding: 4px 0; border-bottom: 1px solid transparent;
}
.topbar .nav a:hover { color: var(--ink); }
.topbar .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.topbar .mark .mob-break { display: none; }

@media (max-width: 920px) {
  .topbar-inner {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .topbar .mark {
    white-space: normal;
    line-height: 1.1;
    font-size: 16px;
  }
  .topbar .mark .top-avatar {
    width: 24px;
    height: 24px;
  }
  .topbar .mark .mob-break { display: inline; }
  .topbar .nav {
    width: 100%;
    gap: 10px 18px;
    align-items: center;
  }
  .topbar .nav a {
    font-size: 10px;
    letter-spacing: .1em;
    padding: 3px 0;
  }
}

/* ===== Footer ===== */
footer.site {
  margin-top: 80px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink);
  padding: 60px 0 24px;
}
footer.site .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px;
}
@media (max-width: 820px) { footer.site .inner { grid-template-columns: 1fr 1fr; } }
footer.site .bigmark {
  font-family: "Satoshi", sans-serif; font-weight: 900;
  font-size: 22px; letter-spacing: -0.03em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
footer.site .bigmark .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
footer.site .brand p { color: var(--ink-2); font-size: 14px; max-width: 40ch; margin-top: 12px; }
footer.site h5 {
  font-family: "DM Mono", monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
  font-weight: 400; margin-bottom: 12px;
}
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer.site a { color: var(--ink); text-decoration: none; font-size: 14px; opacity: .85; }
footer.site a:hover { opacity: 1; color: var(--ink); }
footer.site a.icon-label { width: fit-content; }
footer.site .legal {
  max-width: 1280px; margin: 40px auto 0; padding: 20px 32px 0;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 12px;
  font-family: "DM Mono", monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--mute);
}

/* ===== Typography conventions ===== */
/* Subtitle paragraphs — 20% tighter tracking */
.sub { letter-spacing: -0.02em; }
/* Curly quotes for <q> elements */
q { quotes: "\201C" "\201D" "\2018" "\2019"; }

/* ===== Big quote standard ===== */
.bigq p,
.site-big-quote,
.site-big-quote blockquote {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  font-size: clamp(58px, 9vw, 148px);
  line-height: .84;
  letter-spacing: -0.055em;
  text-wrap: balance;
  color: var(--ink);
}
.bigq :is(b, strong),
.site-big-quote :is(b, strong) {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 900;
  background: var(--accent);
  padding: 0 .08em;
  color: var(--ink);
}
.bigq :is(em, i),
.site-big-quote :is(em, i) {
  font-family: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 900;
}
.bigq cite,
.site-big-quote cite {
  display: block;
  margin-top: 28px;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-style: normal;
}

/* ===== Common list style ===== */
.linelist { list-style: none; padding: 0; margin: 0; }
.linelist li {
  display: grid; grid-template-columns: 60px 1fr; gap: 14px;
  align-items: baseline; padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 15px;
}
.linelist li .cap-mono { color: var(--mute); }
