/* The plain pages of the site (public/sitio/*.html): deep bark paper, one column, made to be read, in the site's own
   letters (public/sitio/letra: Alegreya for what is read, Tlilli for what is named); --letra, --titulo and the
   @font-face rules are the only places that name them. */
@font-face { font-family: 'Tlilli'; font-weight: 500; font-display: swap; src: url('/sitio/letra/tlilli-media.woff2') format('woff2'); }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/sitio/letra/alegreya.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/sitio/letra/alegreya-nahuatl.woff2') format('woff2'); unicode-range: U+0100-0130, U+0132-02FF, U+0300-036F, U+A78B-A78C; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 800; font-display: swap; src: url('/sitio/letra/alegreya-italica.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+2000-206F, U+20AC, U+2212; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400 800; font-display: swap; src: url('/sitio/letra/alegreya-italica-nahuatl.woff2') format('woff2'); unicode-range: U+0100-0130, U+0132-02FF, U+0300-036F, U+A78B-A78C; }

:root {
  color-scheme: dark;
  --letra: 'Alegreya', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --titulo: 'Tlilli', 'Gill Sans', 'Trebuchet MS', sans-serif;
  --noche: #3d2616;
  --noche-alta: #4a2e1a;
  --cal: #ece2c8;
  --piedra: #c9b593;
  --linea: rgba(244, 246, 242, 0.18);
  --maiz: #e8a723;
  --agua: #7cc3d3;
}

* { box-sizing: border-box; }

html { background: var(--noche); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--cal);
  font: 500 1.15rem/1.6 var(--letra);
  background: #4a2e1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.011 0.14' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0.09  0 0 0 0 0.05  0 0 0 0 0.03  0.9 0.5 0 0 -0.52'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23f)'/%3E%3C/svg%3E");
  overflow-wrap: break-word;
}

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

/* ------------------------------------------------------------------------------------------ where one is */
header { padding-top: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--cal); font: 500 1.05rem var(--titulo); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
header ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.9375rem; color: var(--piedra); }
header li + li::before { content: '/'; margin-right: 0.5rem; color: var(--linea); }

/* ------------------------------------------------------------------------------------------ the text */
h1 { margin: 1.25rem 0 0.25rem; font: 500 clamp(2.3rem, 8vw, 3.6rem)/1 var(--titulo); letter-spacing: 0.03em; text-transform: uppercase; text-wrap: balance; -webkit-text-stroke: 0.035em #160e0a; paint-order: stroke fill; }
h2 { margin: 2.75rem 0 0.5rem; font: 500 1.05rem/1.2 var(--titulo); letter-spacing: 0.16em; text-transform: uppercase; color: var(--maiz); text-wrap: balance; }
h3 { margin: 1.5rem 0 0.2rem; font-size: 1.125rem; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 38rem; }
.lead { margin: 1rem 0 1.5rem; font-size: 1.3rem; line-height: 1.5; }
.other { margin: 1.75rem 0 -0.75rem; color: var(--piedra); font-size: 1rem; }
h3 + .other, .cards .other { margin: 0 0 0.4rem; }
.nahuatl { margin: 0.5rem 0 1rem; color: var(--agua); }
.nahuatl i { font-weight: 700; font-size: 1.15em; }
.nahuatl span { margin-left: 0.45em; }
.nahuatl .said { color: var(--piedra); }
.nahuatl .said b { color: var(--cal); letter-spacing: 0.02em; }
.note { color: var(--piedra); font-size: 1rem; }

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

code { padding: 0.15em 0.4em; border-radius: 0.3em; background: var(--noche-alta); font: 500 0.95em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-wrap: anywhere; }
sup { margin-left: 0.2em; font-size: 0.68em; line-height: 0; }
sup a { padding: 0 0.15em; text-decoration: none; }
.mark { display: inline-block; margin-left: 0.3em; padding: 0.05em 0.55em; border: 1px solid var(--linea); border-radius: 1em; color: var(--piedra); font-size: 0.75rem; line-height: 1.5; vertical-align: 0.1em; }

.go { margin: 1.25rem 0; }
.go a { display: inline-block; padding: 0.7rem 1.2rem; border-radius: 0.5rem; background: var(--maiz); color: var(--noche); font-weight: 750; text-decoration: none; }

/* ------------------------------------------------------------------------------------------ lists */
ul, ol { margin: 0 0 1rem; padding-left: 1.3rem; max-width: 38rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--maiz); }
ul.cards, ol.cards { padding: 0; list-style: none; max-width: none; }
.cards > li { margin: 0; padding: 1rem 0; border-top: 1px solid var(--linea); }
.cards h3 { margin-top: 0; }
.cards p:last-child { margin-bottom: 0; }
.links { columns: 15rem auto; column-gap: 2rem; }
.links li { break-inside: avoid; }
.steps > li::marker { font-weight: 800; }
.doubts { color: var(--piedra); }
dl.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 2rem; margin: 1.5rem 0; }
.figures > div { border-top: 1px solid var(--linea); padding: 0.75rem 0; }
.figures dt { color: var(--piedra); font-size: 1rem; }
.figures dd { margin: 0; }
.figures dd b { display: block; font-size: 1.9rem; line-height: 1.2; font-weight: 800; font-stretch: 110%; color: var(--maiz); }
details { border-top: 1px solid var(--linea); }
summary { padding: 0.6rem 0; cursor: pointer; font-weight: 650; }

/* ------------------------------------------------------------------------------------------ the end of a page */
.sources { margin-top: 3rem; padding-top: 0.25rem; border-top: 1px solid var(--linea); font-size: 1rem; line-height: 1.5; color: var(--piedra); }
.sources li:target { color: var(--cal); }
.sources li span { display: block; font-size: 0.9375rem; }
.sources .note { margin: 0.5rem 0 0; font-size: 0.9375rem; }
.around { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.around a { flex: 1 1 0; padding: 0.9rem 0; border-top: 2px solid var(--maiz); color: var(--cal); font-weight: 700; text-decoration: none; }
.around a:last-child { text-align: right; }
.around span { display: block; color: var(--piedra); font-size: 0.875rem; font-weight: 500; }
footer { margin-top: 4rem; padding-top: 1.5rem; padding-bottom: 3rem; border-top: 1px solid var(--linea); font-size: 0.9375rem; color: var(--piedra); }

@media print {
  html, body { background: none; color: #000; }
  header nav, footer, .go, .around { display: none; }
  a, .nahuatl, .other, .note, .sources, .doubts, .mark { color: #000; }
}
