@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("spectral.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #1c201d;
  --muted: #535950;
  --paper: #f9f7ef;
  --yellow: #f5dfa1;
  --orange: #a13323;
  --line: #ccc8b9;
  --white: #fffdf7;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Spectral", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 3px solid #2854ba; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 10px; left: 10px; transform: translateY(-200%); padding: 10px; background: var(--white); }
.skip:focus { transform: none; }
.masthead { background: var(--paper); border-top: 5px solid var(--ink); border-bottom: 1px solid var(--ink); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; column-gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -.055em; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; background: var(--orange); }
.brand-mark i { width: 13px; height: 14px; border-left: 2px solid #fff8e6; border-top: 2px solid #fff8e6; }
.brand-mark i::after { content: ""; display: block; width: 7px; height: 7px; border-left: 2px solid #fff8e6; border-top: 2px solid #fff8e6; margin: 4px 0 0 4px; }
.brand-dot { color: var(--orange); }
.header-inner nav { display: flex; flex-wrap: wrap; gap: 12px clamp(14px, 2.7vw, 36px); font-weight: 600; font-size: .96rem; }
.header-inner nav a { text-decoration: none; }
.header-inner nav a:hover, .header-inner nav [aria-current] { text-decoration: underline; }
.index-link { font-size: .9rem; font-weight: 700; white-space: nowrap; }
.hero { background: var(--yellow); border-bottom: 1px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 76px); padding-block: clamp(40px, 5.6vw, 84px); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: .79rem; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow::before { content: ""; display: inline-block; height: 9px; width: 9px; background: var(--orange); }
.hero h1 { margin: 14px 0 17px; font-size: clamp(3rem, 7.25vw, 7.45rem); font-weight: 700; line-height: .91; letter-spacing: -.08em; }
.hero h1 em { display: block; color: var(--orange); font-style: normal; }
.hero-deck { max-width: 35ch; font: 1.15rem/1.45 var(--serif); }
.button { display: inline-flex; align-items: center; justify-content: space-between; margin-top: 25px; gap: 22px; padding: 11px 15px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; }
.button:hover { background: #3a4137; }
.hero-figure { min-width: 0; border: 1px solid var(--ink); background: var(--ink); box-shadow: 8px 8px 0 #1c201d24; }
.hero-figure img { aspect-ratio: 1.53; }
.hero-figure a { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--ink); color: var(--white); padding: 12px 18px; text-decoration: none; }
.hero-figure a:hover strong { text-decoration: underline; }
.hero-figure small { display: block; color: #e6dea8; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.hero-figure strong { display: block; font-size: 1.06rem; }
.topics { padding-block: 40px 44px; }
.section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 17px; }
.section-heading h2 { font-weight: 700; font-size: clamp(1.85rem, 4.4vw, 3.4rem); letter-spacing: -.063em; line-height: 1.05; }
.section-heading p, .section-heading a { color: var(--muted); font-size: .88rem; font-weight: 600; }
.topic-grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.theme-enfoque { --theme: #e4eaf7; --accent: #243e79; }
.theme-organizacion { --theme: #f4e2ba; --accent: #785019; }
.theme-descanso { --theme: #dee8dc; --accent: #2c5946; }
.topic { padding: 16px 20px 15px; display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--theme); border: 1px solid var(--ink); transition: box-shadow .16s ease; }
.topic:hover { box-shadow: 4px 4px 0 var(--ink); }
.topic-title { display: flex; justify-content: space-between; align-items: center; gap: 9px; font-size: clamp(1.3rem, 2.55vw, 1.95rem); font-weight: 700; letter-spacing: -.04em; }
.topic p { max-width: 35ch; margin: 5px 0 12px; font-size: .91rem; }
.topic-count { margin-top: auto; color: var(--accent); font-size: .77rem; font-weight: 700; }
.library { border-top: 1px solid var(--ink); padding-block: 32px 66px; }
.library[id] { scroll-margin-top: 20px; }
.search { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(145px, .4fr) auto; align-items: end; gap: 12px; margin-bottom: 20px; }
.search label { display: grid; gap: 4px; color: var(--muted); font-size: .84rem; font-weight: 700; }
.search input, .search select, .search button { width: 100%; min-width: 0; min-height: 43px; padding: 8px 12px; border: 1px solid #908d82; border-radius: 0; font: 1rem var(--sans); background: var(--white); color: var(--ink); }
.search button { cursor: pointer; font-weight: 700; }
.search button:hover { background: var(--yellow); }
.card-grid { row-gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); min-width: 0; }
.card > a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card > a:hover h3 { text-decoration: underline; }
.card img { aspect-ratio: 1.78; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 15px 17px 17px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 11px; align-items: center; font-size: .75rem; color: var(--muted); }
.meta span:first-child { background: var(--theme); color: var(--accent); padding: 3px 7px; font-weight: 700; }
.card h3 { margin-block: 9px 5px; font-size: clamp(1.27rem, 2.25vw, 1.8rem); letter-spacing: -.04em; line-height: 1.12; }
.summary { font-size: .93rem; color: var(--muted); }
.card-read { font-weight: 700; font-size: .82rem; margin-top: auto; padding-top: 17px; }
.empty { padding: 20px 0; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 22px; color: var(--muted); font-size: .88rem; }
.topic-header { display: grid; grid-template-columns: 1fr .8fr; align-items: center; background: var(--theme); border: 1px solid var(--ink); margin-bottom: 32px; }
.topic-header > div { padding: clamp(19px, 4vw, 54px); }
.topic-header h1, .reading h1, .info h1 { font: 700 clamp(2.5rem, 6.2vw, 5.5rem)/.98 var(--sans); letter-spacing: -.064em; overflow-wrap: anywhere; }
.topic-header p { max-width: 36ch; margin-top: 12px; font: 1.15rem/1.45 var(--serif); }
.topic-header img { aspect-ratio: 1.7; height: 100%; max-height: 280px; }
.reading-head { max-width: 900px; margin-block: 35px 24px; }
.reading h1 { margin-block: 12px 16px; }
.reading-photo img { max-height: 380px; aspect-ratio: 2.1; border: 1px solid var(--ink); }
.reading-layout { display: grid; grid-template-columns: minmax(180px, .31fr) minmax(0, 710px); gap: clamp(22px, 5vw, 74px); margin-block: 34px 60px; }
.contents { align-self: start; position: sticky; top: 22px; border-top: 2px solid var(--ink); padding-top: 10px; font-size: .89rem; }
.contents ol { margin: 8px 0 0; padding-left: 18px; }
.contents li { padding-bottom: 5px; }
.prose { font: clamp(1.06rem, 1.6vw, 1.22rem)/1.66 var(--serif); }
.prose section + section { margin-top: 25px; }
.prose section, .practice { scroll-margin-top: 24px; }
.prose h2 { margin-bottom: 7px; font: 700 clamp(1.4rem, 2.9vw, 2rem)/1.12 var(--sans); letter-spacing: -.04em; }
.practice { background: var(--theme); border-left: 4px solid var(--accent); padding: 19px 22px; margin-top: 30px; }
.info { padding-bottom: 66px; }
.info .prose { max-width: 700px; }
.info h1 { margin: 30px 0 18px; }
.info h2 { margin-top: 24px; }
.footer { background: var(--ink); color: var(--white); padding-top: 35px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) .7fr .8fr minmax(0, 1.2fr); gap: 18px; padding-bottom: 28px; }
.footer-grid p { margin-top: 9px; max-width: 37ch; color: #dad8ca; font-size: .9rem; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: .9rem; }
.footer-grid nav strong { margin-bottom: 4px; }
.footer-grid nav a, .footer-contact a, .footer-base a { color: #dad8ca; }
.footer-contact { min-width: 0; font-size: .9rem; }
.footer-contact address { margin-block: 5px; font-style: normal; color: #dad8ca; }
.contact-phones { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 4px; }
.footer-contact p { margin-top: 4px; }
.footer .brand-dot { color: var(--yellow); }
.footer-base { display: flex; justify-content: space-between; gap: 10px; padding-block: 14px; border-top: 1px solid #5b5e51; font-size: .82rem; }
.footer :focus-visible, .hero-figure a:focus-visible { outline-color: #ffe377; }
@media (max-width: 860px) {
  .wrap { width: calc(100% - 44px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { gap: 12px; }
  .header-inner nav { gap: 13px; }
  .hero h1 { font-size: clamp(2.95rem, 8vw, 5.5rem); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { flex-wrap: wrap; padding-block: 11px; }
  .header-inner nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; }
  .brand { font-size: 1.32rem; gap: 7px; }
  .index-link { font-size: .78rem; }
  .hero-grid, .topic-header, .reading-layout { grid-template-columns: 1fr; gap: 20px; }
  .hero-grid { padding-block: 28px; }
  .hero h1 { font-size: clamp(3rem, 13.7vw, 5.4rem); }
  .hero-deck { font-size: 1.06rem; }
  .hero-figure img { aspect-ratio: 1.65; }
  .button { margin-top: 15px; }
  .topics { padding-block: 28px; }
  .topic-grid { grid-template-columns: 1fr; gap: 8px; }
  .topic { padding: 11px 14px; }
  .topic p { max-width: none; margin-bottom: 7px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .card-body { padding: 10px; }
  .search { grid-template-columns: 1fr auto; gap: 8px; }
  .search label:first-child { grid-column: 1 / -1; }
  .topic-header { gap: 0; }
  .contents { position: static; }
  .footer-grid > div, .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 24px); }
  .card-grid { grid-template-columns: 1fr; }
  .index-link { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topic { transition: none; }
}
