/* Bandera Ham Rodeo — coming soon
   Rodeo-bill / wanted-poster typographic design. No photos. 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: 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% 40%, 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;
}

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

.poster {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 6vw, 64px) clamp(14px, 5vw, 56px) clamp(18px, 4vw, 40px);
  text-align: center;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 30%, 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);
}

/* 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(2rem, 11vw, 4.6rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  text-shadow: 0 1px 0 var(--cream);
  margin-bottom: 0.08em;
}

.t-ham,
.t-rodeo {
  font-family: var(--display);
  color: var(--rust);
  /* 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);
}
.t-ham {
  font-size: clamp(3.2rem, 20vw, 7.8rem);
  letter-spacing: 0.04em;
}
.t-rodeo {
  font-size: clamp(2.7rem, 17.5vw, 7rem);
  letter-spacing: 0.02em;
  margin-top: 0.02em;
}

/* ---------- ribbon ---------- */

.ribbon {
  margin: 0 auto;
  display: inline-block;
  position: relative;
  padding: 0 clamp(18px, 4vw, 34px);
  max-width: 100%;
}
.ribbon > span {
  display: block;
  padding: 0.42em clamp(16px, 4vw, 34px) 0.4em;
  font-family: var(--slab);
  font-size: clamp(1.15rem, 5.2vw, 2rem);
  letter-spacing: 0.2em;
  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);
}
/* ribbon tails */
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0.45em;
  bottom: -0.45em;
  width: clamp(18px, 4vw, 34px);
  background: var(--rust-deep);
  z-index: -1;
}
.ribbon::before {
  left: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 45% 50%);
}
.ribbon::after {
  right: 0;
  clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%);
}

.note {
  margin: clamp(14px, 3vw, 22px) 0 0;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* ---------- footer slot (intentionally empty) ---------- */

.footer {
  margin-top: clamp(22px, 5vw, 44px);
  min-height: 1.2em;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.footer:empty { min-height: 0.6em; }
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
}
.flink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--slab);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust-deep);
  text-decoration: none;
  padding: 6px 4px;
}
.flink:hover, .flink:focus-visible { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
.flink svg { flex: none; }

/* ---------- 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; }
}
