/* Hamilton Youth Baseball & Softball League — rebuilt 2026 to match the original Carrd page.
   Every size, colour and breakpoint below comes from the original's stylesheet.
   build.py fills in data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20rect%20%7B%20fill%3A%20rgba(237,215,171,0.58)%3B%20%7D%20%3C%2Fstyle%3E%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2250%25%22%20height%3D%2250%25%22%20%2F%3E%20%3Crect%20x%3D%2250%25%22%20y%3D%2250%25%22%20width%3D%2250%25%22%20height%3D%2250%25%22%20%2F%3E%3C%2Fsvg%3E and data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20line%20%7B%20stroke-linecap%3A%20square%3B%20stroke-width%3A%201.01px%3B%20stroke%3A%20rgba(247,114,72,0.431)%3B%20vector-effect%3A%20non-scaling-stroke%3B%20%7D%20%3C%2Fstyle%3E%20%3Cline%20x1%3D%22256%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%22256%22%20%2F%3E%20%3Cline%20x1%3D%22256%22%20y1%3D%22512%22%20x2%3D%22512%22%20y2%3D%22256%22%20%2F%3E%3C%2Fsvg%3E (the original background patterns). */

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

/* the original sizes everything from the root font size */
html { font-size: 18pt; -webkit-text-size-adjust: none; }
@media (max-width: 1680px) { html { font-size: 13pt; } }
@media (max-width: 980px)  { html { font-size: 11pt; } }
@media (max-width: 736px)  { html { font-size: 12pt; } }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1;
  word-wrap: break-word;
  background-color: #F7E3BC;
}
h1, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #2B261D; outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* checkerboard over a soft cream gradient, fixed behind the page */
body::before {
  content: "";
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20rect%20%7B%20fill%3A%20rgba(237,215,171,0.58)%3B%20%7D%20%3C%2Fstyle%3E%20%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2250%25%22%20height%3D%2250%25%22%20%2F%3E%20%3Crect%20x%3D%2250%25%22%20y%3D%2250%25%22%20width%3D%2250%25%22%20height%3D%2250%25%22%20%2F%3E%3C%2Fsvg%3E"), linear-gradient(0deg, #F7E3BC 0%, #FFF1D6 100%);
  background-size: 697px, auto;
  background-position: center, 0% 0%;
  background-repeat: repeat, repeat;
}

/* page-load fade, as on the original */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-color: #F7E3BC;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
}
.is-loading body::after { opacity: 1; visibility: visible; }

/* ---------- layout ---------- */

.page {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
}

.main {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  max-width: 100%;
  text-align: center;
  transition: opacity 1s ease, transform 1s ease;
}
.is-loading .main { opacity: 0; transform: translateY(0.6375rem); }

.main > .inner {
  --pad-x: 3rem;
  --pad-y: 3rem;
  --spacing: 2rem;
  position: relative; z-index: 1;
  width: 50rem; max-width: 100%;
  padding: var(--pad-y) var(--pad-x);
}

/* ---------- logo ---------- */

.logo { line-height: 0; text-align: center; margin-bottom: 1rem; }
.logo img { display: inline-block; width: 13.75rem; max-width: 100%; height: auto; vertical-align: top; }

/* ---------- photo card (top half) ---------- */

.hero {
  position: relative;
  display: flex; align-items: center; justify-content: flex-start;
  width: 100%;
  min-height: 25rem;
  border-radius: 5rem 5rem 0 0;
  box-shadow: 0 5rem 2rem 0 rgba(43, 38, 29, 0.188);
  background-image:
    linear-gradient(90deg, rgba(43, 38, 29, 0.62) 4%, rgba(43, 38, 29, 0.388) 59%, transparent 100%),
    url("/assets/images/container02.jpg");
  background-position: 0% 0%, 50% 50%;
  background-size: cover, cover;
  background-repeat: repeat, repeat;
  text-align: left;
}
/* dark veil that fades away when the card scrolls into view */
.js .hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background-color: #2B261D;
  transition: background-color 1s ease;
}
.js .hero.is-visible::after { background-color: rgba(0, 0, 0, 0.001); }

.hero-inner { position: relative; z-index: 2; width: 100%; padding: var(--pad-y) var(--pad-x); }
.hero-inner > * + * { margin-top: var(--spacing); }

.title {
  width: 100%;
  text-align: center;
  color: #FFFFFF;
  font-family: "Wix Madefor Display", sans-serif;
  font-size: 1.75em; line-height: 1.125; font-weight: 700; letter-spacing: 0;
}
.intro {
  width: 100%;
  text-align: left;
  color: rgba(255, 255, 255, 0.831);
  font-family: "Wix Madefor Text", sans-serif;
  font-size: 1em; line-height: 1.625; font-weight: 400; letter-spacing: 0;
}

/* ---------- orange sign-up bar (bottom half) ---------- */

.signup {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  border-radius: 0 0 5rem 5rem;
  box-shadow: 0 0.5rem 2rem 0 rgba(43, 38, 29, 0.188);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20preserveAspectRatio%3D%22none%22%3E%20%3Cstyle%3E%20line%20%7B%20stroke-linecap%3A%20square%3B%20stroke-width%3A%201.01px%3B%20stroke%3A%20rgba(247,114,72,0.431)%3B%20vector-effect%3A%20non-scaling-stroke%3B%20%7D%20%3C%2Fstyle%3E%20%3Cline%20x1%3D%22256%22%20y1%3D%220%22%20x2%3D%220%22%20y2%3D%22256%22%20%2F%3E%20%3Cline%20x1%3D%22256%22%20y1%3D%22512%22%20x2%3D%22512%22%20y2%3D%22256%22%20%2F%3E%3C%2Fsvg%3E"), linear-gradient(45deg, #F77248 0%, #FF9D57 60%);
  background-size: 169px, cover;
  background-position: center, 0% 0%;
  background-repeat: repeat, repeat;
}
.signup-inner {
  --gutters: 2rem;
  --pad-x: 2.5rem;
  --pad-y: 2rem;
  display: flex; flex-wrap: wrap; align-items: center;
  width: 100%;
  padding: var(--pad-y) var(--pad-x);
}
.col {
  flex: 0 0 auto;
  max-width: 100%;
  width: calc(50% + (var(--gutters) / 2));
  padding: 0 0 0 var(--gutters);
  text-align: left;
}
.col:first-child { margin-left: calc(var(--gutters) * -1); }
.col-end { text-align: right; }

.ask {
  width: 100%;
  color: rgba(255, 255, 255, 0.831);
  font-family: "Wix Madefor Text", sans-serif;
  font-size: 1.25em; line-height: 1.625; font-weight: 400; letter-spacing: 0;
}

.buttons { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem; cursor: default; }
.col-end .buttons { justify-content: flex-end; }
.buttons li { max-width: 100%; }
.btn {
  display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: center;
  max-width: 100%;
  height: 3.5rem; line-height: 3.5rem;
  padding: 0 1.75rem;
  border: solid 3px #FFFFFF; border-radius: 2.5rem;
  color: #FFFFFF;
  font-family: "Wix Madefor Text", sans-serif; font-size: 1em; font-weight: 400; letter-spacing: 0;
  text-align: center; text-decoration: none; white-space: nowrap; vertical-align: middle;
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: scale(1.0425); }
.btn svg {
  display: block; flex: none;
  width: 1.25em; min-width: 16px; height: 100%;
  margin-left: 0.5rem; margin-right: -0.125em;
  fill: #FFFFFF;
  pointer-events: none;
}
.btn .label { overflow: hidden; }

/* ---------- social icons ---------- */

.icons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1rem; font-size: 1.25em; letter-spacing: 0; }
.icons li { position: relative; z-index: 1; }
.icons a {
  display: flex; align-items: center; justify-content: center;
  width: 2em; height: 2em;
  border: solid 3px #FF9D57; border-radius: 100%;
  transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.icons a:hover { transform: scale(1.1125); }
.icons svg { display: block; width: 60%; height: 60%; fill: #FF9D57; pointer-events: none; }

/* ---------- entrance effects (same distances and timing as the original) ---------- */

.js .reveal { opacity: 0; transition: opacity 1s ease, transform 1s ease; backface-visibility: hidden; }
.js .reveal.from-right-lg { transform: translateX(1.425rem); }
.js .reveal.from-right    { transform: translateX(0.9rem); }
.js .reveal.from-left     { transform: translateX(-0.6375rem); }
.js .reveal.from-below    { transform: translateY(0.375rem); }
.js .icons li:nth-child(2) { transition-delay: 0.125s; }
.js .icons li:nth-child(3) { transition-delay: 0.25s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .main, body::after, .js .hero::after, .js .reveal { transition: none !important; }
}

/* ---------- smaller screens (the original's breakpoints) ---------- */

@media (max-width: 736px) {
  .main > .inner { --pad-x: 1rem; --pad-y: 2rem; --spacing: 2rem; }
  .logo { margin-bottom: 0.75rem; }
  .icons { margin-top: 0.75rem; }
  .hero { min-height: 18.75rem; }
  .signup-inner { --pad-x: 2rem; --pad-y: 2rem; flex-direction: column; flex-wrap: nowrap; }
  .col, .col:first-child { width: 100%; margin-left: 0; padding: calc(var(--gutters) * 0.5) 0; }
  .col:first-child { padding-top: 0; }
  .col:last-child { padding-bottom: 0; }
}
@media (max-width: 480px) {
  .main > .inner { --spacing: 1.75rem; }
  .buttons { flex-direction: column; flex-wrap: nowrap; }
  .btn { width: 100%; max-width: 32rem; }
}
@media (max-width: 360px) {
  .main > .inner { --pad-x: 0.75rem; --pad-y: 1.5rem; --spacing: 1.5rem; }
  .hero { min-height: 12.5rem; }
  .signup-inner { --gutters: 1.5rem; --pad-x: 1.5rem; --pad-y: 1.5rem; }
  .title { font-size: 1.5em; }
  .buttons { gap: 0.5625rem; }
  .icons { gap: 1.125rem; }
}
