/* Light theme base */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6b6b;
  --link: #111111;
  --link-hover: #555555;
  --accent-a: #594E4E; /* detectando */
  --accent-b: #AEA468; /* valor */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Jacques Francois', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 860px;
  margin: 8vh auto 0;
  padding: 0 24px 40px;
}

.hero h1 {
  font-size: clamp(42px, 10vw, 96px);
  line-height: 1.05;
  margin: 0 0 8px 0;
  font-weight: 400;
}

.hero { margin-bottom: 40px; }

.tag {
  margin: 0 0 32px 2px;
  color: var(--muted);
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; }
  /* Justify text in right column */
  .grid > div:last-child p { text-align: justify; text-justify: inter-word; }
}

h2 {
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 8px 0;
}

p { line-height: 1.6; margin: 0 0 12px 0; }

.list { list-style: none; padding: 0; margin: 0; text-transform: lowercase; }
.list li { margin: 6px 0; }

a {
  color: var(--link);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--link-hover); }

.font-name { color: var(--muted); }

.footer {
  max-width: 860px;
  margin: 24px auto;
  padding: 0 24px 24px;
  color: var(--muted);
}

/* Left column layout: push contact to bottom */
.grid > div:first-child {
  display: flex;
  flex-direction: column;
}
.contact-block {
  margin-top: auto;
  padding-top: 16px;
}
.contact-block p:empty { display: none; }

.portfolio-block { margin-top: 16px; }
.portfolio-block p { text-align: justify; text-justify: inter-word; }
.portfolio-row { display: flex; align-items: center; gap: 6px; line-height: 1.2; }
.solulith-logo { height: 0.8em; width: auto; filter: invert(1); display: block; transform: none; }

/* Detectando Valor specific helpers */
.brand-line {
  font-size: clamp(24px, 5vw, 40px);
  margin: 8px 0 20px 0;
}
.brand-line .slash { color: #000; }
.brand-line .detect { color: var(--accent-a); }
.brand-line .valor { color: var(--accent-b); }

.post-list { list-style: none; padding: 0; margin: 24px 0 0; }
.post-list li { margin: 10px 0; }
.post-list a { display: inline-block; }
.post-meta { color: var(--muted); font-size: 14px; margin-left: 8px; }

.content { line-height: 1.7; font-size: 18px; }
.content h1, .content h2, .content h3 { font-weight: 400; }
.content h1 { font-size: 38px; margin: 0 0 12px; }
.content h2 { font-size: 26px; margin: 24px 0 8px; }
.content p { margin: 0 0 14px; }

/* Justify long-form text on specific pages */
.content-justify p { text-align: justify; text-justify: inter-word; }

/* Language switch */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 14px;
  z-index: 10;
  user-select: none;
}
.lang-switch button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: 'Jacques Francois', serif;
  color: var(--muted);
}
.lang-switch .sep { color: var(--muted); margin: 0 6px; }
.lang-switch .active { color: var(--text); }
