/* Bandera Ham Rodeo — event site
   Western poster brand family shared with banderawranglers.org:
   Rye + Alfa Slab One display, Libre Baskerville text, rust / paper / ink palette. */

@font-face { font-family: "Rye"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/rye-latin.woff2") format("woff2"); }
@font-face { font-family: "Alfa Slab One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/alfa-slab-one-latin.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/libre-baskerville-latin.woff2") format("woff2"); }
@font-face { font-family: "Libre Baskerville"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/libre-baskerville-italic-latin.woff2") format("woff2"); }

:root {
  --paper: #f2e4c6;
  --paper-deep: #e3cfa5;
  --paper-edge: #c9ad7a;
  --cream: #fbf3df;
  --ink: #3b2416;
  --ink-soft: #6a4a33;
  --night: #1d120c;
  --rust: #a7401f;
  --rust-deep: #7f2d14;
  --gold: #c58f2a;

  --display: "Rye", "Alfa Slab One", Georgia, serif;
  --slab: "Alfa Slab One", "Rockwell", Georgia, serif;
  --serif: "Libre Baskerville", "Baskerville", Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(29, 18, 12, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.lb-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.22  0 0 0 0 0.10  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--cream);
  font-family: var(--slab); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- type ---------- */

.kicker {
  margin: 0 0 0.6em;
  font-family: var(--slab);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--rust);
}
.h2 {
  margin: 0 0 0.5em;
  font-family: var(--slab);
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.h2-big { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
.lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; margin: 0 0 0.9em; }
p { margin: 0 0 1em; }

.tbd {
  display: inline-block;
  padding: 0.15em 0.6em;
  border: 1px dashed var(--ink-soft);
  border-radius: 999px;
  font-size: 0.8em;
  font-style: italic;
  color: var(--ink-soft);
  background: rgba(255, 250, 236, 0.5);
  vertical-align: middle;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.5em;
  font-family: var(--slab);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: var(--cream); border-color: var(--rust);
  box-shadow: inset 0 0 0 1px var(--rust), inset 0 0 0 2px rgba(251, 243, 223, 0.55); }
.btn-primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn-ghost { color: var(--cream); border-color: rgba(251, 243, 223, 0.7); background: rgba(29, 18, 12, 0.25); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(251, 243, 223, 0.14); border-color: var(--cream); }
.btn-light { background: var(--cream); color: var(--rust-deep); border-color: var(--cream); }
.btn-light:hover { background: #fff; }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: var(--night); }
.btn-ghost-dark { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: var(--cream); }
.btn-small { padding: 0.7em 1.1em; font-size: 0.78rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.cta-row.center { justify-content: center; }

/* ---------- header ---------- */

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  padding-top: 14px;
  color: var(--cream);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-star { width: 12px; height: 12px; background: var(--gold); transform: rotate(45deg); flex: none;
  box-shadow: 0 0 0 2px var(--cream); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-small { font-family: var(--slab); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.9; }
.brand-big { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: none; gap: 26px; }
.nav a {
  font-family: var(--slab); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.nav a:hover, .nav a:focus-visible { border-bottom-color: var(--gold); }
.site-header .btn-small { color: var(--cream); border-color: rgba(251, 243, 223, 0.65); background: rgba(29, 18, 12, 0.3); }
.site-header .btn-small:hover { background: var(--rust); border-color: var(--rust); }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  min-height: min(92svh, 860px);
  display: grid;
  align-items: end;
  color: var(--cream);
  background: var(--night);
  isolation: isolate;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media img { object-fit: cover; object-position: 50% 45%; }  /* intentional: full-bleed cover */
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 18, 12, 0.55) 0%, rgba(29, 18, 12, 0.05) 28%, rgba(29, 18, 12, 0.15) 55%, rgba(29, 18, 12, 0.88) 100%),
    linear-gradient(90deg, rgba(29, 18, 12, 0.35) 0%, rgba(29, 18, 12, 0) 60%);
}
@media (max-width: 699px) {
  .hero-shade {
    background: linear-gradient(180deg, rgba(29, 18, 12, 0.6) 0%, rgba(29, 18, 12, 0.1) 25%, rgba(29, 18, 12, 0.55) 50%, rgba(29, 18, 12, 0.94) 100%);
  }
  .cta-row .btn { flex: 1 1 100%; }
}
.hero-body {
  position: relative;
  padding: clamp(120px, 20vh, 180px) 0 clamp(40px, 6vw, 72px);
  max-width: 100%;
}
.eyebrow {
  margin: 0 0 1.2em;
  display: flex; align-items: center; gap: 0.7em; flex-wrap: wrap;
  font-family: var(--slab);
  font-size: clamp(0.72rem, 0.65rem + 0.4vw, 0.95rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.eyebrow .dot { color: var(--gold); }
.star { width: 0.55em; height: 0.55em; background: var(--gold); transform: rotate(45deg); flex: none; }

.title { margin: 0; line-height: 0.9; text-transform: uppercase; display: grid; }
.title > span { display: block; }
.t-bandera {
  font-family: var(--slab);
  font-size: clamp(1.6rem, 1rem + 3.6vw, 3.4rem);
  letter-spacing: 0.1em;
  color: var(--cream);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  margin-bottom: 0.1em;
}
.t-ham {
  font-family: var(--display);
  font-size: clamp(3.1rem, 1.6rem + 9.4vw, 8.4rem);
  letter-spacing: 0.02em;
  color: var(--cream);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0.035em 0.035em 0 var(--rust),
    0.07em 0.07em 0 var(--rust-deep),
    0 0.12em 0.5em rgba(0,0,0,0.55);
}
.lede {
  max-width: 34em;
  margin: 1.1em 0 1.4em;
  font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-note {
  margin: 1.4em 0 0;
  font-family: var(--slab);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-deep);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero-note strong { color: var(--gold); font-weight: 400; }

/* ---------- sections ---------- */

.section { padding: clamp(56px, 8vw, 110px) 0; }
.grid-2 { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: 1.1fr 1fr; }
  .grid-2.rev { grid-template-columns: 1fr 1.1fr; }
}

.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(22px, 3vw, 36px); }
.section-head .h2 { margin-bottom: 0; }
.section-sub { margin: 0 0 0.35em; color: var(--ink-soft); font-style: italic; }

/* about */
.about { background: var(--paper); }
.facts { list-style: none; margin: 1.6em 0 0; padding: 0; border-top: 2px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 6.5em 1fr; gap: 14px; padding: 0.85em 0; border-bottom: 1px solid var(--paper-edge); align-items: baseline; }
.fact-k { font-family: var(--slab); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust); }
.fact-v { line-height: 1.5; }
.fact-v .tbd { margin-left: 0.3em; }

figure { margin: 0; }
.about-fig img, .proceeds-fig img {
  width: 100%;
  border: 3px solid var(--ink);
  outline: 1px solid var(--paper-edge);
  outline-offset: 5px;
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}
figcaption { margin-top: 1em; font-size: 0.9rem; font-style: italic; color: var(--ink-soft); }
.credit { font-style: normal; font-family: var(--slab); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rust); margin-left: 0.4em; }

/* bleachers band */
.band { line-height: 0; background: var(--night); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.band img { width: 100%; aspect-ratio: 1536 / 220; object-fit: cover; }

/* proceeds */
.proceeds { background: var(--rust); color: var(--cream);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255, 230, 190, 0.18), rgba(255,230,190,0) 55%); }
.proceeds .kicker { color: var(--gold); }
.proceeds .h2 { color: var(--cream); }
.proceeds a:not(.btn) { color: var(--cream); }
.proceeds-fig img { border-color: var(--rust-deep); outline-color: rgba(251, 243, 223, 0.5); background: var(--rust-deep); }
.proceeds figcaption { color: var(--paper-deep); }
.proceeds .tbd { color: var(--cream); border-color: rgba(251, 243, 223, 0.6); background: rgba(127, 45, 20, 0.45); }
.tbd-block { margin: 0 0 1.6em; }

/* photos */
.photos { background: var(--paper-deep);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 250, 236, 0.55), rgba(255,250,236,0) 60%); }
.shots { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 18px; }
@media (min-width: 600px) { .shots { columns: 2; } }
@media (min-width: 1000px) { .shots { columns: 3; column-gap: 22px; } }
.shot { break-inside: avoid; margin: 0 0 18px; }
@media (min-width: 1000px) { .shot { margin-bottom: 22px; } }
.shot a { display: block; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--ink); background: var(--ink); box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; transition: transform 400ms ease, opacity 300ms ease; }
.shot a:hover img, .shot a:focus-visible img { transform: scale(1.025); opacity: 0.94; }
.photo-credit { margin: 1.6em 0 0; font-size: 0.85rem; color: var(--ink-soft); font-style: italic; }

/* next year */
.next { background: var(--ink); color: var(--cream);
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(167, 64, 31, 0.35), rgba(167,64,31,0) 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.9  0 0 0 0 0.7  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.next-card {
  max-width: 980px; margin: 0 auto; text-align: center;
  padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 56px);
  border: 2px solid var(--paper-edge); outline: 1px solid var(--paper-edge); outline-offset: 6px;
  position: relative;
}
.next-card::before, .next-card::after, .next-card .kicker::before, .next-card .kicker::after {
  content: ""; position: absolute; width: 12px; height: 12px; background: var(--rust); transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--paper-edge);
}
.next-card::before { top: -7px; left: -7px; }
.next-card::after { top: -7px; right: -7px; }
.next-card .kicker { position: static; }
.next-card .kicker::before { bottom: -7px; left: -7px; }
.next-card .kicker::after { bottom: -7px; right: -7px; }
.next .kicker { color: var(--gold); }
.next .h2 { color: var(--cream); }
.year { font-family: var(--display); color: var(--gold); letter-spacing: 0.04em; }
.next-grid {
  display: grid; gap: 18px; margin: clamp(24px, 4vw, 40px) 0;
  text-align: left;
}
@media (min-width: 700px) { .next-grid { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; text-align: center; } }
.next-grid > div { padding: 18px 20px; border: 1px solid rgba(201, 173, 122, 0.45); background: rgba(251, 243, 223, 0.04); }
.next-grid dt { font-family: var(--slab); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5em; }
.next-grid dd { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.next .tbd { color: var(--paper-deep); border-color: rgba(201, 173, 122, 0.7); background: rgba(0,0,0,0.25); }
.next-copy { color: var(--paper-deep); margin-bottom: 1.6em; }

/* organizer */
.wranglers { background: var(--paper); }
.org { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 800px) { .org { grid-template-columns: 1fr 1.25fr; } }
.org-fig img {
  width: 100%;
  border: 3px solid var(--ink);
  outline: 1px solid var(--paper-edge);
  outline-offset: 5px;
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

/* ---------- footer ---------- */

.site-footer { background: var(--night); color: var(--paper-deep); padding: clamp(36px, 5vw, 56px) 0; border-top: 4px solid var(--rust); }
.foot { display: grid; gap: 22px; }
@media (min-width: 800px) { .foot { grid-template-columns: auto 1fr; align-items: start; } .foot-fine { grid-column: 1 / -1; } }
.foot-brand { display: flex; flex-direction: column; line-height: 1.05; color: var(--cream); }
.foot-brand .brand-big { font-size: 1.6rem; }
.foot-place { margin-top: 0.6em; font-size: 0.85rem; font-style: italic; color: var(--paper-deep); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-start; }
@media (min-width: 800px) { .foot-nav { justify-content: flex-end; } }
.foot-nav a { font-family: var(--slab); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-deep); text-decoration: none; }
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.foot-fine { margin: 0; font-size: 0.85rem; color: #b8a07a; }

/* ---------- lightbox ---------- */

.lb { border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  background: rgba(14, 9, 6, 0.96); color: var(--cream); }
.lb::backdrop { background: rgba(14, 9, 6, 0.96); }
.lb[open] { display: grid; place-items: center; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: 12px; width: min(100vw - 24px, 1400px); max-height: 100vh; padding: 56px 12px 18px; }
.lb-img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 130px); border: 3px solid var(--paper-edge); background: var(--night); }
.lb-cap { font-size: 0.9rem; font-style: italic; color: var(--paper-deep); text-align: center; max-width: 60ch; }
.lb-close, .lb-nav {
  position: fixed; z-index: 2; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(251, 243, 223, 0.6); background: rgba(29, 18, 12, 0.7); color: var(--cream); cursor: pointer;
}
.lb-close:hover, .lb-nav:hover { background: var(--rust); border-color: var(--rust); }
.lb-close { top: 14px; right: 14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
@media (max-width: 599px) { .lb-nav { top: auto; bottom: 14px; transform: none; } .lb-prev { left: 14px; } .lb-next { right: 14px; } .lb-fig { padding-bottom: 76px; } .lb-img { max-height: calc(100vh - 190px); } }

/* ---------- 404 / simple page ---------- */

.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.simple .title { justify-items: center; }
.simple .t-bandera, .simple .t-ham { color: var(--ink); text-shadow: none; }
.simple .t-ham { color: var(--rust); text-shadow: 0 1px 0 var(--cream), 0.03em 0.03em 0 var(--rust-deep), 0.06em 0.06em 0 var(--ink); }

@media print {
  .site-header, .lb, .band { display: none !important; }
  .hero { min-height: 0; color: var(--ink); background: #fff; }
  .hero-media, .hero-shade { display: none; }
  .hero .t-bandera, .hero .t-ham, .hero .lede, .hero .eyebrow, .hero-note { color: var(--ink); text-shadow: none; }
}

/* venue link (Twin Elm) */
.venue-link { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.venue-link:hover { color: var(--rust); }
.venue-link--dark { color: var(--gold); }
.venue-link--dark:hover { color: var(--paper); }
