@font-face {
  font-family: Rubik;
  src: url("assets/rubik-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url("assets/rubik-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --ink: #192f34;
  --subtle: #51615e;
  --line: #d6d9ce;
  --gold: #ce973b;
  --measure: 68.5rem;
  --gutter: clamp(1.25rem, 5.4vw, 5.5rem);
  font-family: Rubik, "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% 50%, #ebecdf88, transparent 50%),
    var(--paper);
}
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #176481;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
::selection { background: #f6d28a; color: #122d34; }
.masthead, .hub {
  width: min(calc(100% - var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}
.masthead-inner {
  min-height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.identity {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: inherit;
  text-decoration: none;
  gap: .65rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.identity img { display: block; width: 2.3rem; height: 2.3rem; }
.identity:hover span, .identity:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }
.share-button {
  min-height: 2.75rem;
  border: 1px solid #cbd0c5;
  border-radius: 4rem;
  background: transparent;
  padding: .55rem .96rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .875rem;
}
.share-button svg { width: 1rem; height: 1rem; }
.share-button:hover, .close-button:hover { background: #eceee5; }

.hub {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1fr);
  column-gap: clamp(2.8rem, 6.5vw, 6.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 4.75rem) clamp(3rem, 7vh, 6rem);
}
.postcard {
  min-width: 0;
  margin: 0;
  padding: .49rem;
  background: #fff9e9;
  border: 1px solid #c4beaa;
  transform: rotate(-1deg);
  box-shadow: 0 2px 3px #182a2420, 0 12px 26px -15px #17292364;
}
.scene {
  aspect-ratio: .89;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #15363b;
}
.scene picture, .scenery {
  display: block;
  width: 100%;
  height: 100%;
}
.scene picture { position: absolute; inset: 0; z-index: -2; }
.scenery { object-fit: cover; object-position: 50% 52%; }
.scene::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(146deg, #09242c63, transparent 42%);
  pointer-events: none;
}
.poster-type {
  position: absolute;
  top: 7.3%;
  left: 7.6%;
  color: #fff0cb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-shadow: 0 2px 2px #112b2e28;
}
.poster-central {
  margin-left: .33em;
  font-size: clamp(1rem, 1.54vw, 1.38rem);
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.15;
}
.poster-texas {
  font-family: Baskervville, "Baskerville", "Palatino Linotype", Georgia, serif;
  font-size: clamp(4.8rem, 8.8vw, 8.2rem);
  line-height: .94;
  letter-spacing: -.077em;
  font-style: italic;
  transform: rotate(-4deg);
  transform-origin: 30% 70%;
}
.regional-caption {
  min-height: 2.7rem;
  padding: .75rem 1rem .45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: #2b4643;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.regional-caption svg { width: .71rem; height: .71rem; color: #aa7434; flex: none; }
.caption-rule { flex: 1; max-width: 3.4rem; height: 1px; background: #b8af95; }

.profile { min-width: 0; padding-block: .3rem; }
.profile-heading { margin-bottom: 1.8rem; }
.badge-wrap {
  width: 5.65rem;
  margin-left: -.25rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 2px #19352e25);
}
.ctx-badge {
  width: 100%;
  height: auto;
  display: block;
  clip-path: polygon(32.1% 2.85%, 68.1% 2.85%, 95.8% 30.8%, 95.8% 69%, 68.2% 96.5%, 32.1% 96.5%, 4.45% 69%, 4.45% 30.85%);
}
h1, h2, p { margin: 0; }
h1 {
  font-size: clamp(2.25rem, 3.72vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.intro {
  margin-top: .75rem;
  color: var(--subtle);
  font-size: 1.04rem;
  line-height: 1.55;
}
.social-list { display: grid; gap: .76rem; }
.social-link {
  --accent: #395453;
  --icon-bg: #e6eee6;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .97rem;
  align-items: center;
  min-height: 5.15rem;
  padding: .91rem 1.12rem;
  border: 1px solid #d4d7cc;
  border-radius: .95rem;
  color: var(--ink);
  background: #fffef9;
  text-decoration: none;
  box-shadow: 0 2px 0 #2d413409;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.instagram { --accent: #a43560; --icon-bg: #f8e3e8; }
.facebook  { --accent: #2a5591; --icon-bg: #e3ebf7; }
.whatsapp  { --accent: #21664b; --icon-bg: #dfeee1; }
.donate    { --accent: #805b1a; --icon-bg: #f6ebd0; grid-template-columns: auto minmax(0, 1fr); }
.platform-icon {
  width: 3.13rem;
  height: 3.13rem;
  display: grid;
  place-items: center;
  border-radius: .8rem;
  background: var(--icon-bg);
  color: var(--accent);
}
.platform-icon svg { width: 1.72rem; height: 1.72rem; }
.facebook .platform-icon svg { width: 1.96rem; height: 1.96rem; }
.whatsapp .platform-icon svg { width: 1.62rem; height: 1.62rem; }
.channel-text { display: grid; gap: .2rem; }
.channel-text > strong { font-size: 1.17rem; letter-spacing: -.032em; line-height: 1.19; }
.fund-name { color: var(--ink); font-weight: 700; white-space: nowrap; }
.channel-text > span { font-size: .92rem; line-height: 1.4; color: var(--subtle); }
.smile { white-space: nowrap; }
.action {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  padding: .4rem 0 .4rem .5rem;
}
@media (hover: hover) {
  .social-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 16px -8px #213a3b46;
  }
  .social-link:hover .action { text-decoration: underline; text-underline-offset: .22em; }
}
.social-link:active { transform: translateY(1px); }

dialog {
  width: min(27rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1.5rem 5rem #122d3440;
}
dialog::backdrop { background: #142b3480; }
.share-panel { padding: 1.6rem; position: relative; }
.share-panel h2 {
  max-width: calc(100% - 1.9rem);
  font-size: 1.45rem;
  line-height: 1.17;
  letter-spacing: -.045em;
  margin-bottom: 1.45rem;
}
.close-button {
  position: absolute;
  right: .65rem;
  top: .64rem;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: .65rem;
  background: transparent;
}
.close-button svg { width: 1.2rem; }
.share-panel label { display: block; font-size: .92rem; margin-bottom: .4rem; }
#page-link {
  border: 1px solid #aebbb3;
  border-radius: .62rem;
  width: 100%;
  padding: .72rem;
  background: white;
  color: var(--ink);
}
.share-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.share-actions button {
  min-height: 2.85rem;
  padding: .6rem .95rem;
  border-radius: .7rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}
.share-actions button:hover { background: #2c4d52; }
#device-share { background: transparent; color: var(--ink); border-color: #abb9b1; }
.share-feedback { font-size: .92rem; line-height: 1.45; margin-top: .75rem; }
.share-feedback:empty { display: none; }

@media (max-width: 50rem) {
  :root { --measure: 34rem; --gutter: clamp(1rem, 4.8vw, 2rem); }
  .masthead-inner { min-height: 4.3rem; }
  .hub { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; padding-block: 1.35rem 2rem; }
  .postcard { transform: rotate(-.65deg); padding: .31rem; }
  .scene { height: clamp(8.8rem, 39vw, 13rem); aspect-ratio: auto; }
  .scenery { object-position: center; }
  .scene::after { background: linear-gradient(90deg, #062b36b5, #10303a2a 52%, transparent 70%); }
  .poster-type { top: 15%; left: 6%; }
  .poster-central { font-size: .93rem; letter-spacing: .24em; }
  .poster-texas { font-size: clamp(3.65rem, 12.5vw, 5.5rem); }
  .regional-caption { min-height: 1.7rem; padding: .42rem .55rem .16rem; gap: .64rem; font-size: .75rem; }
  .profile { padding: 0; }
  .profile-heading { display: flex; align-items: center; gap: .82rem; margin-bottom: 1.15rem; }
  .badge-wrap { flex: 0 0 clamp(3.75rem, 13.4vw, 4.55rem); margin: 0 0 0 -.17rem; }
  .heading-text { min-width: 0; }
  h1 { font-size: clamp(1.74rem, 6.55vw, 2.5rem); letter-spacing: -.058em; }
  .intro { margin-top: .36rem; font-size: .94rem; line-height: 1.4; }
  .social-list { gap: .62rem; }
  .social-link { min-height: 4.65rem; gap: .76rem; padding: .76rem .9rem; border-radius: .87rem; }
  .platform-icon { width: 2.85rem; height: 2.85rem; }
}
@media (max-width: 23rem) {
  .identity { font-size: 1rem; gap: .4rem; }
  .identity img { width: 2rem; height: 2rem; }
  .masthead-inner { gap: .5rem; }
  .share-button { padding-inline: .65rem; gap: .35rem; white-space: nowrap; }
  .hub { gap: 1.25rem; }
  .profile-heading { align-items: flex-start; gap: .58rem; }
  .badge-wrap { flex-basis: 3.2rem; }
  .social-link { grid-template-columns: auto minmax(0, 1fr); gap: .6rem; padding-inline: .7rem; }
  .action { display: none; }
}
@media (max-width: 26rem) {
  .whatsapp br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .social-link:hover, .social-link:active { transform: none; }
}
