:root {
    --fll-blue: #000082;
    --fll-red: #ff0000;
    --fll-white: #ffffff;
    --fll-cream: #f7f4ea;
    --fll-dark: #141414;
    --button-red: #bd0000;
    --max-width: 1200px;
    --radius: 14px;
    --shadow: 0 4px 20px rgb(0 0 30 / 9%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    color: var(--fll-dark);
    background: var(--fll-cream);
    font: 1rem/1.6 system-ui, "Segoe UI", sans-serif;
    overflow-wrap: anywhere;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--fll-blue); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
main:focus-visible { outline-offset: -3px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 1rem; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 7vw, 4.75rem); }
h2 { font-size: clamp(1.65rem, 4vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { width: min(92%, var(--max-width)); margin-inline: auto; }
.skip-link {
    position: absolute;
    z-index: 5;
    top: .5rem;
    left: .5rem;
    padding: .65rem 1rem;
    background: white;
    clip-path: inset(50%);
}
.skip-link:focus { clip-path: none; }

.site-header, .site-footer { background: var(--fll-blue); color: white; }
.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding-block: .65rem;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: white;
    font-size: clamp(.9rem, 4vw, 1.15rem);
    font-weight: 750;
    text-decoration: none;
}

.logo-container img { width: auto; height: 42px; }

#mobile-menu-button {
    background: transparent;
    color: white;
    border: 1px solid currentColor;
    border-radius: .5rem;
    font: inherit;
    min-height: 44px;
    padding-inline: .7rem;
    cursor: pointer;
}

#nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem;
    width: 100%;
}

#nav-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .65rem;
    color: white;
    font-weight: 650;
    text-decoration: none;
    border-radius: .4rem;
}

#nav-menu a:hover, #nav-menu a[aria-current="page"] {
    background: rgb(255 255 255 / 16%);
    text-decoration: underline;
}

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: clamp(16rem, 48vw, 31rem);
    padding-block: clamp(2rem, 6vw, 4rem);
    background: var(--fll-blue);
    color: white;
    text-align: center;
}

.hero-image, .hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image { object-fit: cover; }

.hero::after {
    content: "";
    background: linear-gradient(rgb(5 9 30 / 64%), rgb(5 9 30 / 70%));
    pointer-events: none;
}

.hero-home { min-height: clamp(23rem, 60svh, 40rem); }
.hero-overlay { position: relative; z-index: 1; width: min(92%, 860px); }
.hero p { margin-inline: auto; max-width: 64ch; font-size: clamp(1rem, 3vw, 1.2rem); }
.hero .hero-tagline { font-size: clamp(1.35rem, 4vw, 2.25rem); font-weight: 700; }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

.btn-primary, .btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: .65rem 1.15rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    color: white;
    text-align: center;
    text-decoration: none;
}

.btn-primary { background: var(--button-red); }
.btn-secondary { border-color: currentColor; }
.btn-primary:hover, .btn-secondary:hover { text-decoration: underline; }
.btn-primary:focus-visible, .btn-secondary:focus-visible {
    outline-color: var(--fll-blue);
    box-shadow: 0 0 0 4px white;
}

.section, .program-section, .registration-section { padding-block: clamp(2.75rem, 7vw, 5rem); }
.section h2, .program-section h2, .registration-section h2 { text-align: center; color: var(--fll-blue); }
.two-column, .program-grid, .division-grid, .board-grid, .season-details, .sponsor-grid, .footer-grid {
    display: grid;
    gap: 1.25rem;
}

.two-column { align-items: center; margin-top: 1.5rem; }
.two-column img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.two-column h2 { text-align: start; }
.section-intro, .section-action { max-width: 72ch; margin: 0 auto 1.1rem; text-align: center; }

.program-grid, .division-grid, .board-grid, .season-details {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.program-section, .local-program { background: white; }
.program-card, .division-card, .board-grid > div, .season-details > div, .sponsor-card, .announcement-box {
    background: white;
    border: 1px solid #dddde7;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
.program-card { text-decoration: none; }
.program-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; margin-bottom: 1rem; }
.program-card h3, .division-card h3, .board-grid dt, .season-details h3 { color: var(--fll-blue); }
.program-card p { color: var(--fll-dark); }
.program-card span { font-weight: 700; text-decoration: underline; }

.division-card { display: flex; flex-direction: column; align-items: flex-start; }
.division-card h3 { margin-bottom: .4rem; }
.division-card .btn-primary { margin-top: auto; }
.division-meta { font-weight: 700; color: var(--fll-blue); }
.season-details { margin-block: 1.5rem; }
.board-grid dt { font-weight: 750; }
.board-grid dd { margin: .25rem 0 0; }

.sponsor-grid {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
}
.sponsor-card {
    display: grid;
    align-content: start;
    gap: .75rem;
    padding: .85rem;
    text-align: center;
}
.sponsor-card a { display: grid; gap: .75rem; }
.sponsor-card img { width: 100%; height: 100px; object-fit: contain; }
.sponsor-card h3 { font-size: 1rem; margin: 0; }
.sponsor-card img[src$="21-t-mobile.png"] { background: #171717; border-radius: .35rem; padding: .4rem; }

.registration-section, .dark-section { background: var(--fll-blue); color: white; text-align: center; }
.registration-section h2, .dark-section h2 { color: white; }
.announcement-box { color: var(--fll-dark); max-width: 48rem; margin: 1.5rem auto 0; text-align: center; }
.announcement-box h3 { margin-bottom: .35rem; }

.site-footer {
    border-top: 4px solid var(--fll-red);
    padding-block: 2.5rem;
}
.footer-grid { gap: 2rem; }
.site-footer a { color: white; overflow-wrap: anywhere; }
.footer-brand { font-size: 1.4rem; font-weight: 750; }
.site-footer h2 { font-size: 1.15rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
.footer-links a, .site-footer address a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }

@media (min-width: 44rem) {
    .two-column { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 67.5rem) {
    #nav-menu { width: auto; }
}

@media (width < 44rem) {
    #nav-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-buttons > a { max-width: 100%; }
}

.family-guide { max-width: 72ch; }
.family-guide h2 { text-align: start; }
.family-guide h2:not(:first-child) { margin-top: 2.5rem; }
.family-guide h3 { margin: 1.25rem 0 .5rem; }

.history-chapter:nth-of-type(odd) { background: white; }
.history-chapter .two-column { margin-top: 0; }
.history-chapter figure { margin: 0; }
.history-chapter figcaption { margin-top: .75rem; }
.history-jump { padding-inline-start: 1.25rem; }
.history-jump a, .footer-social a { display: inline-flex; align-items: center; min-height: 44px; }
.history-chapter summary { cursor: pointer; font-weight: 700; padding-block: .65rem; }

.footer-social { display: flex; flex-wrap: wrap; gap: 0 1rem; }

.park-map { margin: 0; }
.park-map figcaption { margin-top: .75rem; }

.division-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    align-items: start;
    gap: 1.5rem;
}

.division-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    text-align: left;
}

.division-table caption {
    padding: .75rem;
    font-weight: 700;
}

.division-table th,
.division-table td {
    padding: .65rem .75rem;
    border-bottom: 1px solid #d6dbe2;
}

.clinic-photos {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.clinic-photos img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--radius);
}

.registration-policy-row {
    grid-template-columns: minmax(0, 1fr);
    max-width: 62.5rem;
    margin-inline: auto;
}

.registration-policy-row > * {
    width: min(100%, 20rem);
    justify-self: center;
}

.registration-program,
.registration-links nav {
    padding: 1rem;
    background: #fff;
    border: 1px solid #d6dbe2;
    border-radius: var(--radius);
    text-align: center;
}

.registration-links {
    width: min(100%, 32rem);
    margin: 1.5rem auto 0;
}

.registration-links h3 { color: var(--fll-blue); }

.registration-program-links,
.registration-help-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registration-program-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1rem;
    margin-top: .25rem;
}

.registration-program-links a,
.registration-help-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

@media (min-width: 58rem) {
    .registration-policy-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.registration-help-links li + li { border-top: 1px solid #d6dbe2; }
