/* Septies · sitio estático. Colores y fuentes de docs/diseno/tokens.md v2. Sin JavaScript, sin recursos de terceros. */

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/EBGaramond_400Regular_Italic.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fuentes/EBGaramond_600SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fuentes/SourceSans3_400Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fuentes/SourceSans3_600SemiBold.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f6f5f9;
  --surf: #fefdff;
  --sunk: #eceaf0;
  --line: #dfdde4;
  --ink: #1c1923;
  --mut: #5c5865;
  --acento: #613888;
  --acento-tinte: #ede2fb;
  --acento-ink: #401f5f;
  --libro: "EB Garamond", Georgia, "Times New Roman", serif;
  --texto: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0d13;
    --surf: #19171e;
    --sunk: #1f1d24;
    --line: #2f2c34;
    --ink: #e8e7ec;
    --mut: #a6a3ad;
    --acento: #b691e1;
    --acento-tinte: #302040;
    --acento-ink: #e0cef8;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--texto);
  font-size: 1.125rem;
  line-height: 1.6;
}

.salto {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  z-index: 10;
}
.salto:focus {
  top: 12px;
}

a {
  color: var(--acento);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--acento);
  outline-offset: 3px;
  border-radius: 4px;
}

.caja {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Cabecera */
.cabecera {
  border-bottom: 1px solid var(--line);
}
.cabecera .caja {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
}
.marca {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--libro);
  font-weight: 600;
  font-size: 1.625rem;
  color: var(--ink);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mut);
  text-decoration: none;
  border-radius: 8px;
}
.nav a:hover {
  color: var(--ink);
  background: var(--sunk);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--acento);
  border-radius: 8px 8px 0 0;
}

/* Contenido */
main {
  flex: 1;
  padding-top: 40px;
  padding-bottom: 56px;
}

h1,
h2,
h3 {
  font-family: var(--libro);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: 2.25rem;
  margin: 0 0 8px;
}
h2 {
  font-size: 1.625rem;
  margin: 2.25em 0 0.5em;
  padding-top: 0.75em;
  border-top: 1px solid var(--line);
}
h3 {
  font-size: 1.25rem;
  margin: 1.75em 0 0.25em;
}
p,
ul,
ol {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.4em;
}
li {
  margin-bottom: 0.4em;
}
strong {
  font-weight: 600;
}
.fecha {
  margin: 0 0 24px;
  color: var(--mut);
  font-size: 1rem;
}

.resumen {
  margin: 0 0 8px;
  padding: 16px 20px;
  background: var(--acento-tinte);
  color: var(--acento-ink);
  border-radius: 12px;
  border-left: 6px solid var(--acento);
}
.resumen p:last-child {
  margin-bottom: 0;
}

/* Portada */
.portada {
  padding-top: 24px;
}
.portada h1 {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
}
.lema {
  margin: 0 0 4px;
  font-family: var(--libro);
  font-style: italic;
  font-size: 1.625rem;
  line-height: 1.3;
  color: var(--mut);
}
.cita {
  margin: 0 0 32px;
  font-size: 1rem;
  color: var(--mut);
}
.entradilla {
  font-size: 1.25rem;
  margin-bottom: 28px;
}
.proximamente {
  display: inline-block;
  margin: 0 0 32px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surf);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.enlaces a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surf);
  font-weight: 600;
  text-decoration: none;
}
.enlaces a:hover {
  background: var(--sunk);
}

/* Pie */
.pie {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 28px;
  font-size: 1rem;
  color: var(--mut);
}
.pie p {
  margin: 0 0 4px;
}
.pie a {
  color: var(--mut);
}
.pie a:hover {
  color: var(--ink);
}

@media (min-width: 640px) {
  .caja {
    padding-left: 24px;
    padding-right: 24px;
  }
  h1 {
    font-size: 2.75rem;
  }
  .portada h1 {
    font-size: 5.5rem;
  }
}

@media (max-width: 380px) {
  .portada h1 {
    font-size: 3.5rem;
  }
}

@media print {
  .cabecera,
  .pie nav {
    display: none;
  }
}
