/* Los Parras — shared styles. Colors come from channels.js (set as CSS variables by app.js). */
:root {
  --bg: #FFF6DD;
  --text: #2B2118;
  --accent: #0E2A44;
  --on-accent: #FFF6DD;
  --highlight: #F7B23B;
  --font-head: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wobble: 18px 6px 16px 8px / 8px 16px 6px 18px;
  --wobble-2: 8px 18px 6px 16px / 16px 6px 18px 8px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  background-color: var(--bg);
  /* soft paper texture: faint speckles + a gentle vignette */
  background-image:
    radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1.6px),
    radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1.6px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .45), transparent 70%),
    linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .05));
  background-size: 19px 19px, 29px 29px, 100% 100%, 100% 100%;
  background-position: 0 0, 11px 7px, 0 0, 0 0;
  background-attachment: scroll;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 9vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 40rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.wrap.wide { max-width: 64rem; }

.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 10;
  background: var(--accent); color: var(--on-accent);
  padding: .6rem 1rem; border-radius: var(--wobble);
}
.skip:focus { top: .5rem; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

.hero { text-align: center; padding: 1rem 0 1.5rem; }
.hero .brand {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 .3em;
  display: inline-block;
  background-image: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%);
  padding: 0 .25em;
}
.hero p { font-size: 1.2rem; max-width: 32rem; margin-inline: auto; }
.kicker { font-family: var(--font-head); font-size: 1.25rem; margin: 0 0 .5rem; }

/* Buttons (real <a> / <button>) */
.btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 3.5rem;
  padding: .75rem 1.25rem;
  font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1;
  text-decoration: none; text-align: center; cursor: pointer;
  color: var(--on-accent); background: var(--accent);
  border: 3px solid var(--text); border-radius: var(--wobble);
  box-shadow: 3px 4px 0 var(--text);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:nth-child(even) { border-radius: var(--wobble-2); }
.btn:hover { transform: translate(-1px, -1px) rotate(-.4deg); box-shadow: 4px 5px 0 var(--text); }
.btn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--text); }
.btn.alt { background: var(--highlight); color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; }
.btn.inline { width: auto; display: inline-flex; }

.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.stack > li { display: contents; }

/* Channel cards on the hub */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  height: 100%;
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.25rem;
  background-color: var(--c-bg); color: var(--c-text);
  border: 3px solid var(--c-text); border-radius: var(--wobble);
  box-shadow: 4px 5px 0 var(--c-text);
}
.cards > li:nth-child(even) .card { border-radius: var(--wobble-2); }
.card h3 { margin: 0; font-size: 1.9rem; }
.card h3 span {
  background-image: linear-gradient(transparent 62%, var(--c-highlight) 62%, var(--c-highlight) 92%, transparent 92%);
}
.card p { flex: 1; margin: 0 0 .5rem; }
.card .btn { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-text); box-shadow: 2px 3px 0 var(--c-text); }

@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* Channel page */
.more { margin-top: 2.5rem; text-align: center; }
.more h2 { font-size: 1.35rem; }
.more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; justify-content: center; }
.more a { display: inline-block; padding: .55rem .4rem; font-size: 1.05rem; text-underline-offset: 4px; }
.empty { text-align: center; font-size: .95rem; opacity: .85; }

/* Contact form */
.contact {
  margin-top: 3rem; padding: 1.25rem;
  background: rgba(255, 255, 255, .55);
  border: 3px solid var(--text); border-radius: var(--wobble);
}
.contact form { display: grid; gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; min-height: 3rem; padding: .6rem .8rem;
  font: inherit; color: var(--text); background: #fff;
  border: 2px solid var(--text); border-radius: 10px 4px 9px 5px / 5px 9px 4px 10px;
}
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; padding: .75rem 1rem; border-radius: 8px; border: 2px solid var(--text); background: #fff; }
.msg[hidden] { display: none; }

footer { text-align: center; font-size: .95rem; padding-top: 2rem; }
.center { text-align: center; }
noscript p { text-align: center; padding: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover, .btn:active { transform: none; }
}
