/* Myrtle Beach Senior Softball: public site */
:root {
  --ink: #16283a;
  --navy: #14324f;
  --clay: #b8532a;
  --clay-dark: #93401f;
  --sand: #f7f1e5;
  --paper: #fffdf8;
  --line: #e4dccb;
  --muted: #5d6670;
  --ball: #f2d64b;
  --urgent: #b3261e;
  --radius: 14px;
  font-size: 19px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  line-height: 1.55; -webkit-text-size-adjust: 100%;
}
h1, h2, h3, .eyebrow, .chips, .btn, .pill, .next, .card__days, dt, .hours__season, .footer, .notice {
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
h2 { font-size: 1.75rem; margin: 0 0 1rem; color: var(--navy); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; margin: .1rem 0 .4rem; color: var(--navy); }
p { margin: 0 0 .8rem; }
a { color: var(--clay-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
main > section, section.wrap { padding-block: 2.6rem; }
.muted { color: var(--muted); font-size: .92rem; }

/* notices */
.notice { background: #fff4cc; border-bottom: 1px solid #ecd97a; padding: .8rem 0; font-weight: 600; font-size: 1.05rem; }
.notice--urgent { background: var(--urgent); color: #fff; border-color: #8c1c16; font-size: 1.2rem; }

/* hero */
.hero {
  position: relative; color: #fff; background: var(--navy);
  background-image:
    linear-gradient(160deg, #1b4166 0%, #14324f 55%, #0f263c 100%);
  padding: 3.4rem 0 3rem;
}
.hero--photo {
  background-image: linear-gradient(180deg, rgba(10,25,40,.55) 0%, rgba(10,25,40,.82) 100%), var(--hero);
  background-size: cover; background-position: center;
}
.hero::after {  /* infield-dirt edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg, var(--clay) 0 28px, #c9683b 28px 56px);
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--ball); margin: 0 0 .6rem; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; margin: 0 0 .6rem; color: #fff; letter-spacing: -.02em; }
.tagline { font-size: 1.25rem; opacity: .95; max-width: 44ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 1.4rem; }
.chips li { border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; font-weight: 600; }
.next { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .7rem; background: #fff; color: var(--ink);
        border-radius: var(--radius); padding: .75rem 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.next__label { background: var(--ball); color: var(--navy); font-weight: 800; border-radius: 8px; padding: .15rem .6rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.next__text { font-size: 1.05rem; }
.next--off .next__label { background: var(--urgent); color: #fff; }
.next--off .next__text { color: var(--urgent); }

.intro p { font-size: 1.2rem; max-width: 46rem; }
.intro p:last-child { margin: 0; }
main > section.intro { padding-bottom: 0; padding-top: 2.2rem; }

/* location cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.4rem; border-top: 6px solid var(--clay); }
.card__days { font-weight: 800; color: var(--clay-dark); text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; margin: 0; }
.card__addr { color: var(--muted); }

.btn { display: inline-block; background: var(--clay); color: #fff; text-decoration: none; font-weight: 700;
       padding: .75rem 1.2rem; border-radius: 10px; border: 2px solid var(--clay); font-size: 1rem; }
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn--ghost { background: transparent; color: var(--clay-dark); }
.btn--ghost:hover { background: var(--sand); color: var(--clay-dark); }

/* hours */
.hours { margin-top: 1.6rem; background: var(--sand); border-radius: var(--radius); padding: 1.3rem; }
.hours__grid { display: grid; gap: .6rem; margin-bottom: .9rem; }
.hours__row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem 1rem; }
.hours__row.is-now { border: 2px solid var(--navy); }
.hours__season { font-weight: 700; min-width: 7.5rem; }
.hours__time { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.pill { background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; text-transform: uppercase; letter-spacing: .06em; }
.arrive { font-weight: 700; margin: 0; }

.map { margin: 1.6rem 0 0; }
.map img { border-radius: var(--radius); border: 1px solid var(--line); }
.map figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }

/* join band */
.band { background: var(--navy); color: #fff; }
.band h2 { color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: 0; }
.facts div { border-left: 4px solid var(--ball); padding: .2rem 0 .2rem 1rem; }
dt { font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; color: var(--ball); }
dd { margin: .3rem 0 0; font-size: 1.1rem; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: .88rem; color: var(--muted); margin-top: .3rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(0,0,0,.85); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; }
.lightbox__close { position: fixed; top: 10px; right: 14px; background: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }

/* contact */
.contact { text-align: center; }
.contact__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1rem; }
.contact .btn { font-size: 1.1rem; overflow-wrap: anywhere; }

.footer { border-top: 1px solid var(--line); padding: 1.4rem 0; font-size: .85rem; color: var(--muted); }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer a { color: var(--muted); }

@media (max-width: 520px) {
  :root { font-size: 18px; }
  .hero { padding: 2.4rem 0 2.2rem; }
  .next { width: 100%; }
  .chips li { font-size: .78rem; padding: .25rem .7rem; }
  .contact .btn { width: 100%; }
}
