/*
  Template de referência para o estilo de página "1page" (ver SITES.md e agents/design.md).

  Este arquivo NUNCA é publicado — ele não vive dentro de nenhuma pasta que vira
  um projeto Cloudflare Pages. Ao criar um site novo desse estilo, copie este
  arquivo para `[site]/assets/design-system.css` e preencha os tokens abaixo
  com a paleta/fonte extraída do site de referência. Documente os valores
  escolhidos em `[site]/DESIGN.md`.

  Duas variantes de composição, mesmos tokens/componentes:
  - "card único"      (ex.: maisdevbr, treinebasquete) — usar .site-wrapper > .site-card
  - "seções empilhadas" (ex.: songdoro, desenlatar, agoradw) — usar .site-wrapper > .site-sections
*/

:root {
  /* --- Tokens: preencher por site --- */
  --bg-gradient-start: #F7F7F7;
  --bg-gradient-end: #576A9C;
  --bg-base: #A7B1CA;
  --card-bg: #FFFFFF;
  --text-primary: #4F5C63;
  --text-secondary: #8797A1;
  --divider: #E4EBF0;
  --icon-border: #E4EBF0;
  --icon-hover: #8ED5ED;
  --radius: 0.375rem;
  --font-family: 'Source Sans Pro', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family);
  font-weight: 300;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image: linear-gradient(40deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

/* --- Variante: card único --- */

.site-card {
  width: 100%;
  max-width: 25rem;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 1.375rem 1.75rem rgba(27, 54, 74, 0.09);
  padding: 3rem 2rem;
  text-align: center;
}

.site-card > * + * {
  margin-top: 1rem;
}

/* --- Variante: seções empilhadas --- */

.site-sections {
  width: 100%;
  max-width: 40rem;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 1.375rem 1.75rem rgba(27, 54, 74, 0.09);
  padding: 3rem 2rem;
}

.section {
  padding: 2rem 0;
}

.section:first-child {
  padding-top: 0;
}

.section:last-child {
  padding-bottom: 0;
}

.section + .section {
  border-top: 1px solid var(--divider);
}

/* --- Componentes comuns --- */

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) * 0.6);
}

.site-title {
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02rem;
  color: var(--text-primary);
  margin: 0;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.lede,
.body-text {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.body-text + .body-text {
  margin-top: 1rem;
}

.body-text a,
.section a {
  color: var(--text-primary);
  text-decoration: underline;
}

.body-text a:hover,
.section a:hover {
  text-decoration: none;
}

.divider {
  border: 0;
  border-top: 1px solid var(--divider);
  width: 100%;
  margin: 0;
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 100%;
  border: 1px solid var(--icon-border);
  transition: border-color 0.25s ease, color 0.25s ease;
  color: var(--text-secondary);
}

.social-icons a:hover,
.social-icons a:focus-visible {
  border-color: var(--icon-hover);
  color: var(--icon-hover);
}

.social-icons svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

@media (max-width: 480px) {
  .site-card,
  .site-sections {
    padding: 2rem 1.5rem;
  }

  .site-title {
    font-size: 1.75rem;
  }
}
