/* Fadeno — sitio estático. Sin fuentes externas: pila del sistema. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f6f7;
  --text: #1d2d3e;
  --muted: #475e75;
  --border: #d9dde2;
  --accent: #6d28d9;
  --accent-text: #ffffff;
  --draft-bg: #fff3cd;
  --draft-text: #5c3c00;
  --draft-border: #e9b949;
  --placeholder-bg: #fdecef;
  --placeholder-text: #8a1c2c;
  --radius: 10px;
  --max: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171c;
    --surface: #1b232b;
    --text: #e8edf2;
    --muted: #a9b4be;
    --border: #2e3a45;
    --accent: #a78bfa;
    --accent-text: #1a0b33;
    --draft-bg: #3a2c05;
    --draft-text: #ffe7a3;
    --draft-border: #a07a1c;
    --placeholder-bg: #3d1820;
    --placeholder-text: #ffc2cc;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-text);
  z-index: 10;
}
.skip:focus {
  left: 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.site-header,
.site-footer {
  border-color: var(--border);
  border-style: solid;
  border-width: 0 0 1px;
}
.site-footer {
  border-width: 1px 0 0;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.bar {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
}
nav a {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

.lang {
  font-size: 0.9rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}
h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.5rem;
}
h3 {
  font-size: 1.1rem;
  margin: 1.75rem 0 0.25rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.draft {
  background: var(--draft-bg);
  color: var(--draft-text);
  border: 2px solid var(--draft-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.ph {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  padding: 0 0.25em;
  border-radius: 4px;
  font-weight: 600;
}

.card,
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
details[open] summary {
  margin-bottom: 0.5rem;
}

.points {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.points li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.points strong {
  display: block;
  font-size: 1.1rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 0.3em;
  background: var(--surface);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
