/* main.css — ÚNICO archivo de estilos del sitio.
   Mobile first. La estructura HTML es un solo hilo ("kebab"):
   este archivo solo define presentación sobre esa estructura. */

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
}

header,
main,
footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  justify-content: space-between;
}

header > a {
  font-weight: 700;
  text-decoration: none;
}

nav ul,
nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: #0b5fff;
}

[aria-current="page"] {
  font-weight: 700;
}

section,
article {
  margin-block: 1.5rem;
}

figure {
  margin: 0 0 1rem;
}

blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid #cccccc;
}

details {
  margin-block: 0.5rem;
}

footer {
  padding-block: 2rem;
  border-top: 1px solid #eeeeee;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}
