/* Bandera Wranglers — welcome page
   Rodeo-bill / wanted-poster design shared with banderahamrodeo.com. Warm earthy 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;
  --ink: #3b2416;
  --ink-soft: #6a4a33;
  --rust: #a7401f;
  --rust-deep: #7f2d14;
  --gold: #c58f2a;
  --cream: #fbf3df;

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

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: start center;
  padding: clamp(10px, 3vw, 40px);
  font-family: var(--serif);
  color: var(--ink);
  background-color: var(--paper-deep);
  background-image:
    radial-gradient(ellipse at 50% 20%, rgba(255, 246, 222, 0.55), rgba(255, 246, 222, 0) 60%),
    radial-gradient(ellipse at 50% 50%, rgba(59, 36, 22, 0) 55%, rgba(59, 36, 22, 0.28) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.15  0 0 0 0 0.08  0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  overflow-x: hidden;
}

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

a { color: var(--rust); text-decoration-color: var(--gold); text-underline-offset: 0.15em; }
a:hover, a:focus-visible { color: var(--rust-deep); }

/* ---------- poster sheet ---------- */

.poster {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 56px) clamp(14px, 5vw, 56px) clamp(18px, 4vw, 40px);
  text-align: center;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 20%, rgba(255, 250, 236, 0.7), rgba(255, 250, 236, 0) 65%),
    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.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  border: 3px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  box-shadow:
    0 0 0 9px var(--paper),
    0 0 0 10px var(--paper-edge),
    0 22px 50px -18px rgba(59, 36, 22, 0.55);
}
.poster-compact { max-width: 760px; align-self: center; }

/* inner hairline frame */
.poster::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--ink-soft);
  pointer-events: none;
}

/* corner diamonds */
.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--rust);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}
.corner.tl { top: 1px; left: 1px; }
.corner.tr { top: 1px; right: 1px; }
.corner.bl { bottom: 1px; left: 1px; }
.corner.br { bottom: 1px; right: 1px; }

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

.place {
  margin: 0;
  font-family: var(--slab);
  font-size: clamp(0.95rem, 3.4vw, 1.35rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
}

.star {
  width: 0.55em;
  height: 0.55em;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

.tagline {
  margin: 0.55em 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.82rem, 2.8vw, 1.05rem);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* ---------- rules ---------- */

.rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(16px, 3.5vw, 30px) auto;
  width: min(100%, 520px);
}
.rule::before,
.rule::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-top: 2px;
}
.rule > span {
  width: 10px;
  height: 10px;
  background: var(--rust);
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink);
}

/* ---------- title ---------- */

.title {
  margin: 0;
  line-height: 0.92;
  text-transform: uppercase;
  display: grid;
  gap: 0;
}
.title > span { display: block; white-space: nowrap; }

.t-bandera {
  font-family: var(--slab);
  font-size: clamp(1.7rem, 9vw, 4rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 1px 0 var(--cream);
  margin-bottom: 0.1em;
}

.t-big {
  font-family: var(--display);
  color: var(--rust);
  /* "Wranglers" is a long word: tighter clamp so it never overflows at 320px */
  font-size: clamp(2.1rem, 12.2vw, 6rem);
  letter-spacing: 0.015em;
  /* letterpress: cream top-lite, deep-rust body, ink drop */
  text-shadow:
    0 1px 0 var(--cream),
    0.03em 0.03em 0 var(--rust-deep),
    0.06em 0.06em 0 var(--ink);
}

/* ---------- section headings ---------- */

.h2 {
  margin: 0 0 0.5em;
  font-family: var(--slab);
  font-size: clamp(1.15rem, 4.2vw, 1.7rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

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

.hero {
  margin: 0 auto;
  max-width: 680px;
}
.hero img {
  width: 100%;
  border: 2px solid var(--ink);
  outline: 1px solid var(--paper-edge);
  outline-offset: 4px;
  box-shadow: 0 14px 30px -16px rgba(59, 36, 22, 0.6);
  background: var(--paper-deep);
}
.hero figcaption,
.note {
  margin: 0.9em 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.85rem, 2.9vw, 1rem);
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

/* ---------- about ---------- */

.about {
  margin: clamp(22px, 5vw, 40px) auto 0;
  max-width: 560px;
}
.lead {
  margin: 0 0 0.9em;
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  line-height: 1.6;
}
.cta { margin: 1.2em 0 0; }

/* ribbon-style button, same shape as the Ham Rodeo ribbon */
.ribbon-link {
  display: inline-block;
  position: relative;
  padding: 0 clamp(16px, 4vw, 30px);
  max-width: 100%;
  text-decoration: none;
}
.ribbon-link > span {
  display: block;
  padding: 0.45em clamp(14px, 4vw, 28px) 0.42em;
  font-family: var(--slab);
  font-size: clamp(0.8rem, 3.6vw, 1.25rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--rust);
  box-shadow:
    inset 0 0 0 2px var(--rust),
    inset 0 0 0 3px var(--cream),
    0 6px 14px -8px rgba(59, 36, 22, 0.7);
  transition: background 150ms ease;
}
.ribbon-link:hover > span,
.ribbon-link:focus-visible > span { background: var(--rust-deep); }
.ribbon-link::before,
.ribbon-link::after {
  content: "";
  position: absolute;
  top: 0.45em;
  bottom: -0.45em;
  width: clamp(16px, 4vw, 30px);
  background: var(--rust-deep);
  z-index: -1;
}
.ribbon-link::before { left: 0;  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 45% 50%); }
.ribbon-link::after  { right: 0; clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%); }

/* ---------- gallery ---------- */

.gallery { max-width: 680px; margin: 0 auto; }
.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(12px, 3vw, 22px);
}
.shot {
  margin: 0;
  flex: 0 1 auto;
}
.shot img {
  border: 2px solid var(--ink);
  outline: 1px solid var(--paper-edge);
  outline-offset: 3px;
  box-shadow: 0 10px 24px -14px rgba(59, 36, 22, 0.6);
  background: var(--paper-deep);
}
.shot img { width: 100%; }
.shot.tall { width: min(100%, 300px); }
.shot.portrait { width: 150px; }   /* source is 189px wide: never upscaled */

/* ---------- contact ---------- */

.contact { max-width: 560px; margin: 0 auto; }
.contact-line {
  margin: 0 0 0.35em;
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.contact-line a { font-family: var(--slab); letter-spacing: 0.02em; }
.contact-line[hidden] { display: none; }
.contact-block {
  display: grid;
  gap: 0.2em;
  font-style: normal;
  font-size: clamp(1rem, 3.4vw, 1.18rem);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.contact-block[hidden] { display: none; }
.contact-name {
  font-family: var(--slab);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2em;
}
.contact-block a { font-family: var(--slab); letter-spacing: 0.02em; }

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

.footer {
  margin-top: clamp(22px, 5vw, 44px);
  min-height: 1.2em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.footer p { margin: 0; }
.footer:empty { min-height: 0.6em; }

/* ---------- misc ---------- */

@media (prefers-reduced-motion: no-preference) {
  .poster { animation: settle 700ms ease-out both; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

@media print {
  body { background: #fff; padding: 0; }
  .poster { box-shadow: none; }
}
