:root {
  --ink: #16221d;
  --muted: #5c6b64;
  --forest: #174c3b;
  --forest-dark: #0b2d24;
  --leaf: #b9d767;
  --coral: #e4524f;
  --paper: #f7f7f2;
  --white: #fff;
  --line: #d9dfda;
  --focus: #ffd34e;
  --max: 1180px;
  --header: 78px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--coral); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .7rem 1rem; background: var(--white); color: var(--ink); }
.skip-link:focus { top: 1rem; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50; min-height: var(--header);
  background: rgba(247, 247, 242, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px);
}
.nav-wrap { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--forest-dark); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--forest); color: var(--white); font-weight: 800; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text strong { font-size: 1rem; letter-spacing: 0; }
.brand-text small { color: var(--muted); font-size: .71rem; margin-top: .3rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; }
.nav-list { display: flex; align-items: center; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: .86rem; font-weight: 700; text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--coral); }
.nav-list .nav-cta { padding: .65rem .85rem; color: var(--white); background: var(--forest); }
.nav-list .nav-cta:hover { color: var(--white); background: var(--coral); }

.hero {
  min-height: calc(91svh - var(--header)); display: grid; align-items: end; position: relative;
  background: #17392f url("assets/img/monzon-valle-hero.png") center / cover no-repeat; color: var(--white); overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 28, 22, .93) 0%, rgba(5, 28, 22, .63) 40%, rgba(5, 28, 22, .1) 74%), linear-gradient(0deg, rgba(5, 28, 22, .55), transparent 50%); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 11vh, 8rem); width: min(700px, 100%); }
.eyebrow { margin: 0 0 .7rem; color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero .eyebrow { color: #d9ef9f; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.08; font-weight: 600; letter-spacing: 0; margin-top: 0; }
h1 { margin-bottom: 1.2rem; font-size: clamp(3rem, 8vw, 6.9rem); }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4.8vw, 4rem); }
h3 { margin-bottom: .55rem; font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.hero-lead { max-width: 620px; margin: 0 0 1.8rem; font-size: clamp(1.05rem, 2vw, 1.35rem); color: #eef5f0; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; border: 1px solid currentColor; background: var(--coral); color: var(--white); font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); background: #c94240; color: var(--white); }
.button.secondary { background: transparent; color: currentColor; }
.hero-note { max-width: 590px; margin-top: 1.4rem; padding-left: 1rem; border-left: 3px solid var(--leaf); color: #e3ebe6; font-size: .83rem; }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section.white { background: var(--white); }
.section.dark { background: var(--forest-dark); color: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.section-head p { margin: 0; color: var(--muted); }
.dark .section-head p { color: #c4d2cc; }
.kicker { color: var(--coral); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.rule-list { border-top: 1px solid var(--line); }
.rule-item { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 2rem; align-items: start; padding: 1.7rem 0; border-bottom: 1px solid var(--line); }
.rule-item time { color: var(--forest); font-weight: 800; }
.rule-item p { margin: .4rem 0 0; color: var(--muted); }
.source-link { white-space: nowrap; color: var(--forest); font-size: .82rem; font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: .45rem; color: var(--forest); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.status.pending { color: #8a4e10; }
.status.pending::before { background: #f5a623; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.artifact { position: relative; }
.artifact img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.caption { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; }
.fact-band { background: var(--leaf); color: var(--forest-dark); padding-block: 2.4rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fact-grid strong { display: block; font-family: Georgia, serif; font-size: 2rem; }
.fact-grid span { font-size: .85rem; }
.editorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.editorial-item { min-height: 300px; padding: 2rem; background: var(--paper); }
.editorial-item .num { display: block; margin-bottom: 3rem; color: var(--coral); font-weight: 800; }
.editorial-item p { color: var(--muted); }

.page-hero { padding-block: clamp(4rem, 8vw, 7rem); background: var(--forest-dark); color: var(--white); }
.page-hero h1 { max-width: 900px; font-size: clamp(3rem, 7vw, 6rem); }
.page-hero p { max-width: 730px; color: #cad7d1; font-size: 1.12rem; }
.crumb { margin-bottom: 2rem; color: #b6c6bf; font-size: .8rem; }
.crumb a { color: var(--white); }
.prose p, .prose li { color: #425149; }
.prose h2 { margin-top: 3.5rem; }
.callout { margin-block: 2rem; padding: 1.4rem; border-left: 4px solid var(--coral); background: #fff2ee; }
.callout p { margin: 0; }
.timeline { position: relative; margin-top: 2rem; }
.timeline::before { content: ""; position: absolute; left: 91px; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.timeline-entry { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 44px; position: relative; margin-bottom: 3rem; }
.timeline-entry::before { content: ""; position: absolute; left: 86px; top: 8px; width: 11px; height: 11px; background: var(--coral); border: 4px solid var(--paper); border-radius: 50%; }
.timeline-entry time { font-weight: 800; color: var(--forest); }
.timeline-entry p { color: var(--muted); }
.evidence { padding-top: 1rem; border-top: 1px solid var(--line); font-size: .82rem; }
.evidence strong { color: var(--ink); }

.priority-list { counter-reset: priority; border-top: 1px solid var(--line); }
.priority { counter-increment: priority; display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.priority::before { content: "0" counter(priority); color: var(--coral); font-weight: 900; font-size: 1.2rem; }
.priority p { color: var(--muted); margin-bottom: 0; }
.pending-panel { padding: 1.5rem; border: 2px dashed #b07838; background: #fff8e9; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-button { padding: .6rem .85rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-weight: 700; cursor: pointer; }
.filter-button[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--white); }
.document-list { border-top: 1px solid var(--line); }
.document { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.document .doc-type { color: var(--coral); font-size: .77rem; font-weight: 800; text-transform: uppercase; }
.document h3 { font-family: inherit; font-size: 1rem; font-weight: 800; }
.document p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.document a { align-self: center; font-weight: 800; font-size: .85rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: .35rem; font-size: .86rem; font-weight: 800; }
input, textarea, select { width: 100%; padding: .8rem; border: 1px solid #a9b4ae; border-radius: 0; background: var(--white); color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 1.1rem; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; }
.check input { width: 18px; height: 18px; margin-top: .25rem; }
.check label { font-weight: 500; }
.form-message { margin-top: 1rem; padding: 1rem; background: #e7f3ea; color: var(--forest-dark); }
.privacy { color: var(--muted); font-size: .82rem; }

.audio-bar { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(250px, 2fr); gap: 2rem; align-items: center; padding-block: 2rem; border-block: 1px solid var(--line); }
audio { width: 100%; }
.site-footer { padding-block: 3.5rem 2rem; background: #071e18; color: #dce7e2; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.footer-brand { font-family: Georgia, serif; font-size: 1.7rem; }
.footer-title { color: var(--leaf); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #dce7e2; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #315047; color: #98afa5; font-size: .78rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --header: 68px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: var(--header); padding: 1rem; background: var(--paper); border-bottom: 1px solid var(--line); align-items: stretch; flex-direction: column; }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: .65rem; }
  .section-head, .split { grid-template-columns: 1fr; }
  .section-head { gap: 1rem; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-item { min-height: 0; }
  .editorial-item .num { margin-bottom: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: calc(91svh - var(--header)); background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(5,28,22,.94), rgba(5,28,22,.58)), linear-gradient(0deg, rgba(5,28,22,.5), transparent); }
  .hero-inner { padding-block: 3.2rem; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  .fact-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .rule-item, .document { grid-template-columns: 1fr; gap: .5rem; }
  .source-link { white-space: normal; }
  .timeline::before { left: 9px; }
  .timeline-entry { grid-template-columns: 1fr; gap: .35rem; padding-left: 34px; }
  .timeline-entry::before { left: 4px; }
  .priority { grid-template-columns: 44px 1fr; gap: .7rem; }
  .audio-bar { grid-template-columns: 1fr; gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .hero-actions, .filters, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-hero, .section.dark { background: #fff; color: #000; }
  a { color: #000; }
}
