@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/Barlow-Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/fonts/Barlow-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #868686;
  --line: #2e2e2e;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f5f2;
  --fg: #1c0e30;
  --muted: #5f5378;
  --line: #e3dfd8;
  color-scheme: light;
}

/* Idioma: cada texto existe nos dois idiomas; esconde o que não está ativo */
html[lang="en"] [lang="pt-BR"],
html[lang="pt-BR"] [lang="en"] {
  display: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
}

button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0.5rem;
}

button svg { display: block; }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

/* Topo */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg);
}

.menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Marca SAL.LT: fonte fina em todo lugar onde aparece */
.logo {
  font-family: "Barlow", ui-sans-serif, system-ui, sans-serif;
  font-weight: 100;
  font-synthesis: none;
  letter-spacing: 0.2em;
}

.brand {
  font-size: 1.1875rem;
  font-weight: 300;
  position: relative;
  top: 0.04em; /* centraliza a tinta das maiúsculas (não a caixa da linha) com o ícone do menu; valor medido em pixels */
  color: inherit;
  text-decoration: none;
}

#menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  background: var(--bg);
  border: 1px solid var(--line);
}

#menu-list a {
  display: block;
  padding: 0.75rem 1rem;
  color: inherit;
  text-decoration: none;
}

#menu-list a:hover,
#menu-list a:focus-visible {
  background: var(--fg);
  color: var(--bg);
  outline: 0;
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.langs {
  display: flex;
  align-items: center;
}

.langs button { opacity: 0.5; }
.langs button.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Ícone do tema: sol no escuro, lua no claro */
#theme-btn { display: flex; }
:root[data-theme="dark"] .icon-moon,
:root[data-theme="light"] .icon-sun { display: none; }

/* Conteúdo */
.hero {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}

h1.logo {
  margin: 0 0 2.5rem;
  font-size: clamp(2rem, 12vw, 6rem);
  letter-spacing: 0.4em;
  padding-left: 0.4em; /* compensa o espaço após a última letra, para centralizar de verdade */
  line-height: 1.1;
}

blockquote {
  max-width: 22rem;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--muted);
}

blockquote p { margin: 0; }

blockquote cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-style: normal;
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}

.page p:not(.back):not(.center) {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 8 4 4;
  text-wrap: pretty;
}

.page .center,
.page .back { text-align: center; }

.end { margin-top: 4rem; }

.page .back { margin-top: 4rem; }

.back a {
  color: var(--muted);
  text-decoration: none;
}

.back a:hover,
.back a:focus-visible { color: var(--fg); }

a.mail {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

h2 {
  text-align: center;
  padding-left: 0.08em; /* compensa o espaço após a última letra, para centralizar de verdade */
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.page p { margin: 0 0 1rem; }

h3 {
  margin: 2.5rem 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3:first-child { margin-top: 0; }

.closing { margin-top: 2.5rem; }


