picture{display:contents}
img{height:auto}

@charset "UTF-8";

:root {
  --bg: #ffffff;
  --paper: #fafaf8;
  --ink: #333333;
  --navy: #003366;
  --muted: #6f6f6f;
  --soft: #8a8a85;
  --line: #cfcfcb;
  --rule: #555555;
  --serif: Baskerville, "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", Georgia, serif;
  --wrap: 62rem;
  --rail: 13rem;
  --gap: 2.75rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1rem, 0.5vw + 0.88rem, 1.125rem);
  line-height: 1.65;
  word-spacing: 0.04em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.cabecera {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2.25rem 1.75rem 0;
}

.cabecera__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cabecera__motif {
  width: min(22rem, 42%);
  height: auto;
  flex: 0 0 auto;
}

.cabecera__brand {
  text-align: right;
  border-right: 0;
}

.cabecera__title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw + 0.4rem, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
  text-decoration: none;
}

.cabecera__title:hover {
  color: var(--navy);
}

.cabecera__role {
  margin: 0.7rem 0 0;
  color: var(--soft);
  font-size: clamp(0.72rem, 0.5vw + 0.6rem, 0.82rem);
  font-variant: small-caps;
  letter-spacing: 0.26em;
  line-height: 1.6;
  text-transform: lowercase;
}

.filetes {
  height: 6px;
  margin: 1.5rem 0 0;
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.layout {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.indice {
  margin: 0;
  padding-top: 2.25rem;
  font-size: 0.95rem;
}

.indice__head {
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.26em;
  text-transform: lowercase;
  border-bottom: 1px dotted var(--navy);
}

.indice__list,
.indice__list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.indice__list > li {
  margin-bottom: 0.35rem;
}

.indice__list ul {
  margin: 0.35rem 0 0.6rem;
  padding-left: 1rem;
  border-left: 1px dotted var(--line);
}

.indice__list ul li {
  margin-bottom: 0.25rem;
}

.indice__list a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.indice__list a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.indice__group {
  color: var(--soft);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}

.indice__list a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.indice__toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--navy);
  font: inherit;
  font-variant: small-caps;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  cursor: pointer;
}

.indice__toggle::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
  color: var(--soft);
}

.indice__toggle[aria-expanded="true"]::after {
  content: "\2013";
}

.contenido {
  padding: 2.25rem 0 3rem 1.85rem;
  border-left: 1px dotted var(--line);
}

.contenido h1 {
  margin: 0 0 1.1rem;
  color: var(--navy);
  font-size: clamp(1.4rem, 1.8vw + 0.7rem, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.contenido h2 {
  margin: 2.4rem 0 0.9rem;
  color: var(--navy);
  font-size: clamp(1.1rem, 0.8vw + 0.85rem, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contenido h3 {
  margin: 1.6rem 0 0.6rem;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
}

.contenido p {
  margin: 0 0 0.9rem;
}

.intro {
  font-style: italic;
  text-align: justify;
  text-justify: inter-word;
}

.letra-cap::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  color: var(--navy);
  font-size: 3.3em;
  font-weight: 700;
  line-height: 0.72;
}

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

.retrato {
  float: right;
  width: min(13rem, 40%);
  margin: 0.35rem 0 1rem 1.75rem;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
}

.retrato img {
  display: block;
  width: 100%;
  height: auto;
}

.prose {
  max-width: 68ch;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin: 1.1rem 0 0.4rem;
  padding: 0.85rem 0;
  border-top: 1px dotted var(--line);
  border-bottom: 1px dotted var(--line);
  font-size: 0.85rem;
}

.tabs a {
  color: var(--muted);
  font-variant: small-caps;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: lowercase;
}

.tabs a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tabs a[aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
}

.modulo {
  margin: 2.4rem 0 1.2rem;
  color: var(--navy);
  font-size: 1.02rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.14em;
  text-align: center;
}

.modulo::after {
  content: "";
  display: block;
  width: 7rem;
  height: 1px;
  margin: 0.7rem auto 0;
  background: var(--line);
}

.submodulo {
  margin: 1.6rem 0 0.7rem;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.1em;
}

.contenido ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.contenido ul li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.5rem;
}

.contenido ul li::before {
  content: "*";
  position: absolute;
  left: 0;
  top: -0.05em;
  color: var(--navy);
  font-size: 1em;
}

.obras {
  margin: 0;
  padding: 0;
  list-style: none;
}

.obras li {
  margin: 0 0 0.7rem;
  padding-left: 1.4rem;
  text-indent: -1.4rem;
}

.obras li::before {
  content: none;
}

.entradas li {
  padding-left: 1.4rem;
  text-indent: -1.4rem;
  margin-bottom: 0.7rem;
}

.entradas li::before {
  content: none;
}

.pie {
  max-width: var(--wrap);
  margin: 1rem auto 0;
  padding: 1.5rem 1.75rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.pie p {
  margin: 0;
}

.pie a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.pie a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

@media (min-width: 48rem) {
  .layout {
    display: grid;
    grid-template-columns: var(--rail) 1fr;
    column-gap: var(--gap);
    align-items: start;
  }

  .contenido {
    min-width: 0;
  }
}

@media (max-width: 47.99rem) {
  .cabecera {
    padding: 1.5rem 1.25rem 0;
  }

  .cabecera__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .cabecera__motif {
    width: min(16rem, 70%);
  }

  .cabecera__brand {
    text-align: left;
  }

  .layout {
    display: block;
    padding: 0 1.25rem;
  }

  .indice {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -1.25rem;
    padding: 0.7rem 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .indice__head {
    display: none;
  }

  .indice__toggle {
    display: flex;
  }

  .indice__panel {
    display: none;
    padding-top: 0.9rem;
  }

  .indice__panel.is-open {
    display: block;
  }

  .contenido {
    padding: 1.75rem 0 2.25rem;
    border-left: 0;
    border-top: 1px dotted var(--line);
  }

  .contenido li {
    padding-left: 1.25rem;
  }

  .retrato {
    float: none;
    width: min(12rem, 62%);
    margin: 0 auto 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.001ms !important;
  }
}
