@font-face {
  font-family: "Exo 2";
  src: url("./fonts/exo-2.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #080808;
  --panel: #141414;
  --paper: #f5f1e7;
  --yellow: #f8d75b;
  --muted: #c2bfb7;
  --line: #373632;
  --display: "Exo 2", Arial, sans-serif;
  --body: "Exo 2", Arial, sans-serif;
  --gutter: clamp(1.25rem, 7vw, 7rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--black); color: var(--paper); font: 1rem/1.65 var(--body); }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--yellow); }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
main > section { padding-block: clamp(4rem, 9vw, 8.5rem); }
section + section { border-top: 1px solid var(--line); }
p, h1, h2, h3, figure { margin: 0; }
p + p, p + ul, p + ol { margin-top: 1rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.03; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.7vw, 8.2rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.2rem, 4.9vw, 5rem); letter-spacing: -.05em; }
h3 { font-size: clamp(1.55rem, 2.5vw, 2.6rem); letter-spacing: -.04em; }
h1 + p, h2 + p, h3 + p, h2 + div, h2 + ul, h2 + ol { margin-top: 1.25rem; }
h3:not(:first-child) { margin-top: 2.25rem; }
.eyebrow, .tag, .editorial-meta {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow + h1, .eyebrow + h2 { margin-top: .9rem; }
.lead { font-size: clamp(1.05rem, 1.65vw, 1.35rem); max-width: 43rem; }
.muted, .small, .caption { color: var(--muted); }
.small, .caption { font-size: .85rem; }
.row, .topic-links { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; margin-top: 1.65rem; }
.grid { display: grid; gap: clamp(1.5rem, 4vw, 4.5rem); }
.grid > * { min-width: 0; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mist { background: #101010; }
.dark { background: #080808; }
.skip { position: fixed; z-index: 50; inset: .75rem auto auto .75rem; padding: .6rem 1rem; background: var(--yellow); color: var(--black); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

header { position: sticky; top: 0; z-index: 10; background: rgba(8, 8, 8, .96); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 6.4rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--yellow); text-decoration: none; font-size: .73rem; font-weight: 700; line-height: 1.15; letter-spacing: .075em; }
.brand svg { width: 2.35rem; flex: 0 0 2.35rem; }
nav { display: flex; align-items: center; gap: clamp(.65rem, 1.65vw, 1.6rem); }
nav > a, .menu, .language-menu summary { font-size: .7rem; letter-spacing: .075em; font-weight: 700; text-transform: uppercase; text-decoration: none; }
.mobile-donate, .menu { display: none !important; }
.language-menu { position: relative; }
.language-menu summary { list-style: none; padding: .55rem 0; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-options { position: absolute; right: 0; top: 100%; min-width: 9rem; background: var(--panel); border: 1px solid var(--line); padding: .35rem; }
.language-options a { display: block; padding: .4rem .7rem; text-decoration: none; }
.language-options a[aria-current="true"] { color: var(--yellow); }

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: .6rem 1rem;
  border: 1px solid var(--yellow);
  border-radius: 100px;
  background: var(--yellow);
  color: #15120a;
  text-decoration: none;
  font-size: .75rem;
  line-height: 1.35;
  font-weight: 700;
  transition: background .2s, color .2s, border-color .2s;
}
.button:hover, button:hover { background: var(--paper); color: #15120a; border-color: var(--paper); }
.button.ghost, .button.outline { background: transparent; color: var(--paper); border-color: #77736a; }
.button.ghost:hover, .button.outline:hover { color: var(--yellow); border-color: var(--yellow); }
button:disabled { cursor: wait; opacity: .55; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(48rem, 83svh); padding-block: clamp(5rem, 10.5vw, 10rem) 4rem; }
.hero > .wrap { width: min(1120px, 72%); }
.hero h1 { max-width: 19ch; }
.hero .lead { color: var(--muted); max-width: 36rem; }
.hero .small { max-width: 38rem; margin-top: 1.25rem; }
.hero-art { position: absolute; z-index: -1; object-fit: cover; }
.hero-art--left { left: -2vw; top: 53%; width: clamp(5rem, 10vw, 10rem); height: clamp(10rem, 20vw, 18rem); }
.hero-art--right { right: 0; top: 16%; width: clamp(7rem, 14.4vw, 15rem); aspect-ratio: 1.85; }
.hero-bottom { margin-top: 2.5rem; }
.hero-bottom a { display: inline-flex; color: var(--yellow); text-decoration: none; font-size: .77rem; font-weight: 700; }
#fundacion .grid { align-items: start; }
.mission-image { margin-top: 2rem; aspect-ratio: 1.85; object-fit: cover; }
#fundacion a, .card a, .topic-links a, .prose a { text-decoration-color: #897a45; }
#proyectos .three { margin-top: 2.5rem; gap: clamp(1rem, 2.5vw, 2rem); }
.card { border-top: 1px solid var(--line); min-width: 0; }
.card-image { aspect-ratio: 1.45; object-fit: cover; transition: filter .25s; }
.card:hover .card-image { filter: brightness(1.12); }
.card-body { padding-block: 1.25rem 1rem; }
.card-body h3, .article-card h2 { margin-top: .6rem; }
.card-body a, .article-card a { display: inline-block; margin-top: .9rem; }
.article-card h2 { font-size: clamp(1.65rem, 2.8vw, 2.7rem); }
.article-card .eyebrow { margin-top: 1rem; }
#laurisilva .two { align-items: center; }
.page-visual { object-fit: cover; }
.caption { margin-top: .6rem; }
.guardian-panel { padding: 1.5rem 0; border-block: 1px solid var(--line); }
.big { color: var(--yellow); font: 400 clamp(3rem, 6vw, 6.5rem)/1.05 var(--display); letter-spacing: -.055em; margin-block: .35rem .7rem; }
.list { padding-left: 1.15rem; }
.feature { border-top: 1px solid var(--line); padding-top: 1rem; }
.feature h3 { margin-top: .3rem; }
.number { font-size: .75rem; color: var(--yellow); }
.page-hero { position: relative; overflow: hidden; isolation: isolate; min-height: 27rem; }
.page-hero .wrap { padding-right: 13%; }
.page-hero h1 { font-size: clamp(2.8rem, 6.1vw, 6.5rem); max-width: 15ch; }
.page-hero .lead { color: var(--muted); }
.page-hero .hero-art { right: 0; top: 30%; width: 15%; height: auto; aspect-ratio: 1.3; }
.breadcrumbs { margin-bottom: 2rem; font-size: .8rem; color: var(--muted); }
.editorial-meta { margin-top: 1.3rem; }
.content-block .prose { max-width: 920px; }
.prose > p, .prose > ul, .prose > ol { max-width: 70ch; }
.prose h2 { font-size: clamp(2.1rem, 4.1vw, 4rem); }
.prose h3 + p { margin-top: .65rem; }
.content-block figure { max-width: 1050px; }
.content-block .page-visual { max-height: 35rem; }
.fund-table { border-collapse: collapse; width: 100%; margin-block: 1.5rem; }
.fund-table :is(th,td) { border-bottom: 1px solid var(--line); padding: .65rem; text-align: left; overflow-wrap: anywhere; }
.closing { background: var(--yellow); color: #131108; }
.closing a:hover { color: #131108; }
.closing .button { background: #131108; color: var(--paper); border-color: #131108; }
.closing .ghost { background: transparent; color: #131108; }
.closing .button:hover { background: var(--paper); color: #131108; }

.form-card { background: var(--panel); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); }
.form-card label { display: block; margin-block: 1rem; font-size: .9rem; }
.form-card :is(input:not([type="checkbox"]),select,textarea) {
  width: 100%; display: block; margin-top: .35rem; min-height: 2.7rem;
  padding: .5rem .7rem; background: #080808; color: var(--paper);
  border: 1px solid #69675e; border-radius: 0;
}
.form-card textarea { min-height: 8rem; resize: vertical; }
.form-card .check { display: grid; grid-template-columns: 1rem 1fr; gap: .55rem; }
.check input { accent-color: var(--yellow); margin: .26rem 0 0; }
.form-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%); }
.amounts { display: flex; flex-wrap: wrap; gap: .45rem; }
.amounts button[aria-pressed="false"] { background: transparent; color: var(--paper); border-color: #77736a; }
.note, .summary-box { margin-block: 1rem; padding: .7rem .9rem; border-left: 2px solid var(--yellow); background: #20201c; }
.status { margin-top: .7rem; color: var(--yellow); }
.status:empty { display: none; }
details:not(.language-menu) { border-bottom: 1px solid var(--line); padding-block: .8rem; }
details:not(.language-menu) p { color: var(--muted); margin-top: .7rem; }
footer { border-top: 1px solid var(--line); padding-block: 4rem; }
footer .wrap > p:first-child { font-size: 1.25rem; font-weight: 700; color: var(--yellow); line-height: 1.18; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-block: 1.5rem; }
.editor { position: fixed; right: 1rem; bottom: 1rem; z-index: 15; }
.editor-panel { position: fixed; right: 1rem; bottom: 4.3rem; z-index: 15; max-width: min(24rem, 90vw); padding: 1rem; background: var(--panel); border: 1px solid var(--line); }
.editor-panel button { margin: .25rem; }
[contenteditable="true"] { outline: 1px dashed var(--yellow); }
dialog { background: var(--panel); color: var(--paper); border: 1px solid var(--line); max-width: min(42rem, 92vw); }
dialog::backdrop { background: #000b; }
.js-motion .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js-motion .reveal.visible, .js-motion .reveal:focus-within { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .nav { min-height: 4.7rem; }
  .menu { display: inline-flex !important; margin-left: auto; }
  nav { display: none; position: absolute; top: 100%; inset-inline: 0; max-height: calc(100svh - 4.7rem); overflow: auto; padding: 1.5rem var(--gutter); background: var(--black); border-block: 1px solid var(--line); }
  nav.open { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .language-options { position: static; margin-top: .4rem; }
  .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .two, .three { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding-top: 5rem; }
  .hero > .wrap { width: calc(100% - var(--gutter) * 2); }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.75rem); }
  .hero-art--right { width: 5.4rem; top: 1rem; }
  .hero-art--left { display: none; }
  .page-hero { min-height: 0; padding-top: 4.5rem; }
  .page-hero .wrap { padding-right: 0; }
  .page-hero .hero-art { width: 4.5rem; top: .65rem; }
  .breadcrumbs { max-width: 80%; }
  .form-card { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
}

.field-video-wrap { margin-top: clamp(2rem, 5vw, 4.5rem); }
.field-video { max-width: 62rem; }
.field-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--panel);
}
