/* clasico, the plain variant: the fallback look, not one of the ten. System fonts, no images, one column on phones
   and two (the posts and the sidebar) from 48em. */

:root {
  color-scheme: light;
  --tinta: #222;
  --tenue: #6b6b6b;
  --fondo: #fbfaf7;
  --papel: #fff;
  --raya: #dedad2;
  --enlace: #9b1b1f;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 70rem;
  padding: 0 1rem 2rem;
  background: var(--fondo);
  color: var(--tinta);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

a { color: var(--enlace); }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }

h1, h2 { line-height: 1.25; }

/* the header: the site name and the search */
body > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: 1.5rem 0 .75rem;
  border-bottom: 3px double var(--tinta);
}
body > header h1 { margin: 0; font-size: 1.75rem; }
body > header h1 a { color: inherit; text-decoration: none; }
/* the search's word is its button's too, so its label is for whoever cannot see the field beside it */
body > header label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

input, textarea, button { font: inherit; }
input, textarea { padding: .3rem .4rem; border: 1px solid var(--raya); background: var(--papel); color: inherit; }
button { padding: .3rem .8rem; border: 1px solid var(--tinta); background: var(--tinta); color: var(--papel); cursor: pointer; }
button:disabled { opacity: .5; cursor: progress; }

/* the sections */
body > nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0; padding: .6rem 0; list-style: none; border-bottom: 1px solid var(--raya); }

/* the posts */
main article { margin: 1.5rem 0 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--raya); }
main article > h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.meta { margin: 0 0 1rem; color: var(--tenue); font-size: .875rem; }
.contenido img, .contenido iframe, .contenido video, .contenido embed, .contenido object { max-width: 100%; height: auto; }
.contenido blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 3px solid var(--raya); }
.contenido pre { overflow-x: auto; }
.enlace { margin: 1rem 0 0; font-size: .875rem; }
.no-encontrado h2 { font-size: 2rem; }

.paginas { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 2rem; }
.paginas span { color: var(--tenue); }

/* the sidebar */
aside section { margin: 1.5rem 0; }
aside h2 { margin: 0 0 .5rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; }
aside ul { margin: 0; padding: 0; list-style: none; }
aside li { margin: .25rem 0; }

/* the skin picker, the sidebar's block after the book */
.pieles ul { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.pieles li { margin: 0; }
[aria-current="true"] { color: var(--tinta); font-weight: bold; text-decoration: none; }

.calendario table { width: 100%; max-width: 18rem; border-collapse: collapse; font-size: .875rem; text-align: center; }
.calendario caption { margin-bottom: .25rem; font-weight: bold; text-align: left; }
.calendario th { color: var(--tenue); font-weight: normal; }
.calendario td { padding: .15rem 0; }
.calendario td a { font-weight: bold; }

.firmas li { margin: 0 0 .75rem; }
.firmas p { margin: 0; }
.quien { color: var(--tenue); font-size: .875rem; }
.quien .by { color: var(--tinta); font-weight: bold; }

.firmar { display: grid; gap: .5rem; margin-top: 1rem; }
.firmar label { display: grid; gap: .15rem; font-size: .875rem; }
.firmar button { justify-self: start; }
.status:empty { display: none; }
.status { margin: 0; color: var(--enlace); }

/* the honeypot: out of sight and out of reach */
.tarro { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 48em) {
  body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 17rem;
    grid-template-areas: "cabecera cabecera" "secciones secciones" "posts lateral" "pie pie";
    column-gap: 3rem;
  }
  body > header { grid-area: cabecera; }
  body > nav { grid-area: secciones; }
  body > main { grid-area: posts; }
  body > aside { grid-area: lateral; }
  body > footer { grid-area: pie; }
}
