@font-face {
  font-family: Petrona;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/petrona-400.woff2") format("woff2");
}

@font-face {
  font-family: Petrona;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/petrona-600.woff2") format("woff2");
}

@font-face {
  font-family: Petrona;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/petrona-700.woff2") format("woff2");
}

@font-face {
  font-family: Petrona;
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/petrona-400i.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
}

@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/outfit-700.woff2") format("woff2");
}

:root {
  --paper: #f1f4ef;
  --panel: #fbfcf9;
  --leaf: #dce8dc;
  --ink: #1a1d18;
  --muted: #545c56;
  --juniper: #1e4d40;
  --juniper-deep: #14352c;
  --anilina: #2a3f86;
  --anilina-deep: #1c2c62;
  --rule: #c5d0c6;
  --display: Petrona, "Palatino Linotype", Palatino, Georgia, serif;
  --body: Outfit, "Segoe UI", system-ui, sans-serif;
  --max: 72rem;
  --pad: 1.15rem;
  --measure: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--anilina);
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--anilina-deep);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 40;
  background: var(--juniper);
  color: var(--paper);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--pad) 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--juniper);
  min-width: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--juniper-deep);
}

.brand-mark {
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 3.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.brand-tag {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--anilina);
  font-weight: 600;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--juniper);
  background: var(--panel);
  color: var(--juniper);
  font: 600 0.95rem var(--body);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.menu-toggle-bars {
  display: block;
  width: 0.72rem;
  height: 0.85rem;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
}

#site-nav {
  width: 100%;
  display: none;
  padding: 0.15rem 0 0.7rem;
}

#site-nav.is-open,
body.menu-open #site-nav {
  display: block;
}

#site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--juniper);
  font-weight: 600;
}

#site-nav a[aria-current="page"] {
  color: var(--anilina);
}

.independence {
  margin: 0;
  padding: 0.7rem var(--pad);
  background: var(--leaf);
  color: var(--juniper-deep);
  font-size: 0.86rem;
  line-height: 1.45;
}

.independence-inner {
  max-width: var(--max);
  margin: 0 auto;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--pad) 3.2rem;
}

.kicker {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--anilina);
  margin: 0 0 0.45rem;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--juniper);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.85rem);
  margin: 0 0 0.85rem;
}

h1::after {
  content: "";
  display: block;
  width: 7.5rem;
  height: 0.55rem;
  margin-top: 0.7rem;
  border-top: 2px solid var(--juniper);
  border-bottom: 2px solid var(--anilina);
}

h2 {
  font-size: 1.35rem;
  margin: 1.6rem 0 0.55rem;
}

.lede {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--juniper-deep);
  max-width: 40rem;
  margin: 0 0 1.3rem;
}

.prose {
  max-width: var(--measure);
}

.prose p {
  margin: 0 0 1rem;
}

figure {
  margin: 0 0 1.4rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  max-width: 100%;
}

figure img {
  width: 100%;
  height: auto;
}

figcaption {
  padding: 0.65rem 0.8rem 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero {
  display: grid;
  gap: 1.3rem;
  margin-bottom: 2.2rem;
}

.hero-copy .lede {
  font-size: 1.18rem;
}

.orillas {
  display: grid;
  gap: 1.4rem;
  margin: 0 0 2rem;
}

.bank {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1rem 1rem 0.4rem;
  min-width: 0;
}

.bank h2 {
  margin-top: 0;
  font-size: 1.28rem;
}

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

.bank-list li {
  border-top: 1px solid var(--rule);
}

.bank-list a {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 0;
  text-decoration: none;
  color: inherit;
}

.bank-list img {
  width: 5.2rem;
  height: 5.2rem;
  object-fit: cover;
  border-radius: 3px;
}

.bank-list h3 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}

.bank-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.bank-list a:hover h3,
.bank-list a:focus-visible h3 {
  color: var(--anilina);
}

.river {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--anilina);
  font-family: var(--display);
  font-style: italic;
  letter-spacing: 0.08em;
}

.river::before,
.river::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--anilina);
  opacity: 0.55;
}

.bridge {
  background: var(--leaf);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem 1.3rem;
  margin-bottom: 0.5rem;
}

.bridge h2 {
  margin-top: 0;
}

.bridge p {
  margin: 0 0 0.7rem;
  max-width: 40rem;
}

.bridge a {
  font-weight: 600;
}

.related {
  margin-top: 2.2rem;
  padding-top: 1rem;
  border-top: 2px solid var(--juniper);
  box-shadow: 0 -4px 0 var(--anilina);
  max-width: var(--measure);
}

.related h2 {
  margin-top: 0.4rem;
}

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

.related li {
  margin: 0 0 0.45rem;
}

.credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.credits-list li {
  display: grid;
  gap: 0.8rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 0.7rem;
  min-width: 0;
}

.credits-list img {
  width: 100%;
  height: 7rem;
  object-fit: cover;
}

.credits-list p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  padding: 1.4rem var(--pad) 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 50rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0.8rem 0 0.7rem;
}

.footer-links a {
  font-weight: 600;
  text-decoration: none;
}

.socios {
  color: var(--ink);
}

@media (min-width: 860px) {
  .menu-toggle {
    display: none;
  }

  #site-nav,
  #site-nav.is-open,
  body.menu-open #site-nav {
    display: block;
    width: 100%;
    padding: 0.1rem 0 0.65rem;
  }

  #site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--rule);
  }

  #site-nav a {
    padding: 0.6rem 0.75rem 0.55rem 0;
    margin-right: 0.85rem;
    border-bottom: 3px solid transparent;
  }

  #site-nav a[aria-current="page"] {
    border-bottom-color: var(--anilina);
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: end;
    gap: 2rem;
  }

  .orillas {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 0.9rem;
  }

  .river {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 0.4rem 0.15rem;
    letter-spacing: 0.18em;
    font-size: 1.05rem;
  }

  .river::before,
  .river::after {
    width: 2px;
    height: auto;
    flex: 1;
    background: var(--anilina);
  }

  .credits-list li {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: center;
  }
}

@media (max-width: 859px) {
  .bank-list a {
    grid-template-columns: 4.4rem minmax(0, 1fr);
    gap: 0.7rem;
  }

  .bank-list img {
    width: 4.4rem;
    height: 4.4rem;
  }
}
