/* styles.css */
/* Estilos base, componentes e markdown */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

body {
  background: whitesmoke;
  color: #000;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 57px;
}

/* ─── NAV ─────────────────────────────────────────────── */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: whitesmoke;
  border-bottom: 1px solid #d4d4d4;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1rem max(4rem, calc((100vw - 1100px) / 2));
}

#nav a {
  color: #000;
  text-decoration: none;
  font-family: monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.38;
  transition: opacity 0.15s;
}

#nav a:hover,
#nav a.active {
  opacity: 1;
}

/* ─── APP ────────────────────────────────────────────── */

#app {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 4rem;
  flex: 1;
}

/* ─── HOME INTRO ─────────────────────────────────────── */

.home-intro {
  margin-bottom: 3.75rem;
  padding-bottom: 3.25rem;
  border-bottom: 1px solid #d8d8d8;
}

.home-title {
  font-family: Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.65rem;
  line-height: 1.1;
  color: #000;
}

.home-subtitle {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.6;
}

/* ─── LOADING ────────────────────────────────────────── */

.loading {
  font-family: monospace;
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ─── 404 ────────────────────────────────────────────── */

.not-found {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.not-found-code {
  font-family: monospace;
  font-size: 3.25rem;
  font-weight: bold;
  color: #ccc;
  line-height: 1;
}

.not-found a {
  font-family: monospace;
  font-size: 0.85rem;
  color: #000;
  text-decoration: underline;
}

/* ─── ARTICLE LIST ───────────────────────────────────── */

.article-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
}

.article-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  border-bottom: 1px solid #e0e0e0;
  padding: 1.25rem 0;
  gap: 2.5rem;
  transition: background 0.1s;
}

.article-list li:hover {
  background: #ebebeb;
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.article-list-main {
  min-width: 0;
}

.article-list a {
  color: #000;
  text-decoration: none;
  font-size: 1.08rem;
}

.article-list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-description {
  font-size: 0.875rem;
  color: #777;
  margin-top: 0.3rem;
  line-height: 1.55;
  max-width: 78ch;
}

.article-list span {
  font-family: monospace;
  font-size: 0.78rem;
  color: #aaa;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── ARTICLES SECTION ───────────────────────────────── */

.articles-section {
  padding-top: 0;
}

.articles-section h2 {
  font-family: monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin-bottom: 1.5rem;
}

/* ─── SEARCH ─────────────────────────────────────────── */

.article-search {
  width: 100%;
  max-width: 420px;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 0;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #000;
  background: transparent;
  outline: none;
  margin-bottom: 0.3rem;
  transition: border-color 0.15s;
  display: block;
}

.article-search::placeholder {
  color: #bbb;
}

.article-search:focus {
  border-bottom-color: #000;
}

.search-empty {
  font-family: monospace;
  font-size: 0.8rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 1.75rem 0;
}

/* ─── BACK LINK ──────────────────────────────────────── */

.back-link {
  display: inline-block;
  font-family: monospace;
  font-size: 0.82rem;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.38;
  transition: opacity 0.15s;
  margin-bottom: 2.75rem;
}

.back-link:hover {
  opacity: 1;
}

/* ─── KITS PAGE ──────────────────────────────────────── */

.kits-contact {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.kits-cta {
  display: inline-block;
  font-family: monospace;
  font-size: 0.85rem;
  color: #f5f5f5;
  background: #000;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.15s;
  align-self: flex-start;
}

.kits-cta:hover {
  opacity: 0.72;
}

.kits-cta--secondary {
  background: transparent;
  color: #000;
  border: 1px solid #bbb;
}

.kits-cta--secondary:hover {
  opacity: 0.6;
}

/* ─── FOOTER ─────────────────────────────────────────── */

#site-footer {
  border-top: 1px solid #d4d4d4;
  margin-top: auto;
  padding: 3rem max(4rem, calc((100vw - 1100px) / 2)) 1.75rem;
  font-size: 0.85rem;
  background: whitesmoke;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 5rem;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-about {
  flex: 1;
  min-width: 260px;
  max-width: 460px;
}

.footer-brand {
  display: block;
  font-family: monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: bold;
  margin-bottom: 0.65rem;
  color: #000;
}

.footer-about p {
  font-size: 0.82rem;
  color: #666;
  line-height: 1.7;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col-title {
  font-family: monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #aaa;
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: #555;
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #000;
}

.footer-bottom {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: monospace;
  font-size: 0.68rem;
  color: #bbb;
  border-top: 1px solid #e8e8e8;
  padding-top: 1.35rem;
}

.footer-bottom a {
  color: #bbb;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #000;
}

/* ─── MARKDOWN ───────────────────────────────────────── */

.markdown-body {
  color: #000;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 72ch;
}

.markdown-body h1 {
  font-size: 2.2rem;
  margin-bottom: 1.35rem;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: #000;
}

.markdown-body h2 {
  font-size: 1.4rem;
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.4rem;
  letter-spacing: -0.01em;
  color: #000;
}

.markdown-body h3 {
  font-size: 1.12rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: #000;
}

.markdown-body p {
  margin-bottom: 1.4rem;
}

.markdown-body a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.markdown-body a:hover {
  opacity: 0.5;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.markdown-body li {
  margin-bottom: 0.45rem;
}

.markdown-body blockquote {
  border-left: 2px solid #bbb;
  padding: 0.65rem 1.35rem;
  color: #555;
  font-style: italic;
  margin: 1.85rem 0;
}

.markdown-body code {
  font-family: monospace;
  font-size: 0.88em;
  background: #e8e8e8;
  padding: 0.18em 0.48em;
  border-radius: 3px;
  color: #222;
}

.markdown-body pre {
  background: #e8e8e8;
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
  margin-bottom: 1.85rem;
  border-radius: 3px;
  border: 1px solid #d8d8d8;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
  color: inherit;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2.75rem 0;
}

.markdown-body img {
  max-width: 100%;
  display: block;
  margin: 2.25rem 0;
  border-radius: 2px;
}

.markdown-body strong {
  font-weight: 700;
}

.markdown-body em {
  font-style: italic;
  color: #333;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.85rem;
  font-size: 0.95rem;
}

.markdown-body th {
  text-align: left;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  border-bottom: 1px solid #ccc;
  padding: 0.55rem 0.8rem 0.55rem 0;
}

.markdown-body td {
  border-bottom: 1px solid #e8e8e8;
  padding: 0.65rem 0.8rem 0.65rem 0;
  vertical-align: top;
}

/* ─── LEGAL ──────────────────────────────────────────── */

.legal-wrap {
  max-width: 72ch;
}