:root {
    --font: Inconsolata, monospace;
    --alternate-font: GoblinOne, Inconsolata, monospace;
    --font-size-base: clamp(1rem,0.96rem + 0.22vw, 1.125rem);
    --width: min(100ch, 100vw - 2rem);
    --background: oklch(0.2246 0.0421 256.39);
    --text: oklch(95.51% 0 0);
    --border-color: oklch(95.51% 0 0);

    --primary-color: oklch(0.2246 0.0421 256.39);
    --secondary-color: oklch(0.7077 0.1331 74.61);
    --tertiary-color: oklch(0.2873 0.0617 250.84);
}

html,
body {
    background: var(--background);
    color: var(--text);
    font-size: var(--font-size-base);
    line-height: 1.5;
    font-family: var(--font);
    padding: 0;
    margin: 0;
}

/* CATCH WHEN I MISS A LABEL OR ALT TEXT */
img:not([alt]),
svg:not([aria-label]) {
    border: 5px solid red;
}

svg[aria-hidden="true"] {
    border: none;
}

main {
    width: var(--width);
    margin: 32px auto;
    max-width: 100%;
}

body.wide main,
body.wide header,
body.wide footer {
    width: var(--wide-width);
}

@media (max-width: 500px) {
    body.wide main,
    body.wide header,
    body.wide footer {
        width: calc(100vw - 2rem);
    }
}

h1 {
    font-weight: 500;
    font-size: 3rem;
    color: var(--secondary-color);
    margin: 0 0 32px 0;
    padding: 0;
}

h2 {
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin: 24px 0;
    padding: 0;
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin: 20px 0;
    padding: 0;
}

h4 {
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--secondary-color);
    margin: 12px 0;
}

h5 {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 12px 0;
    color: var(--text);
}

h6 {
    font-size: 1.25rem;
    font-weight: 400;
    margin: 12px 0;
    color: var(--text);
}

h2.division {
    color: var(--text);
    font-style: italic;
    margin-top: -24px;
    font-size: 1.75rem;
}

@media (max-width: 820px) {
    h1 {
        font-size: 2.25rem;
        margin: 0 0 1.25rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.65rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    h5 {
        font-size: 1.35rem;
    }

    h6 {
        font-size: 1.25rem;
    }
}

@media (max-width: 500px) {
    h1 span.prefix {
        font-size: 1.4rem;
    }
}

p {
    line-height: 32px;
    margin: 0 0 32px 0;
}

ul {
    margin: 0;
    padding: 0;
}

ul li {
    margin-bottom: 8px;
    margin-left: 24px;
}

ul li {
    list-style-type: '- ';
}

a,
a:visited {
    color: var(--text);
    cursor: pointer;
    text-decoration-color: var(--secondary-color);
    text-underline-offset: 3px;
}

a:hover {
	color: var(--secondary-color);
    text-decoration-color: var(--text);
}

a img {
    border: none;
}

button {
    border-radius: 6px;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    cursor: pointer;
}

button:has(svg) {
    display: flex;
    column-gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary svg {
    fill: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-ghost svg {
    fill: var(--primary-color);
}

.btn-ghost:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-ghost:hover svg {
    fill: var(--secondary-color);
}

button.btn-link {
    border: none;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
    text-underline-offset: 3px;
    background-color: transparent;
}

button.btn-link:hover {
    color: var(--secondary-color);
}

hr {
    width: 300px;
    margin: 40px auto;
    border-bottom: 1px solid var(--secondary-color);
    background-color: transparent;
}

.hidden {
    display: none;
}

header {
    background: var(--secondary-color);
    padding: 16px 0;
}

header .content {
    display: flex;
    justify-content: space-between;
    width: var(--width);
    margin: 0 auto;
    align-items: center;
}

header .logo a {
    display: flex;
    font-family: var(--alternate-font);
    gap: 12px;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
}

header .logo a:hover {
    text-decoration: underline;
    text-decoration-color: var(--text);
}

header nav ul {
    display: flex;
    gap: 32px;
    list-style-type: none;
    margin: 0;
}

header nav ul li {
    list-style-type: none;
    display: flex;
    margin: 0;
}

header .content nav ul li a {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}

header .content nav ul li a:hover {
    text-decoration: underline;
    color: var(--primary-color);
    text-decoration-color: var(--text);
}
@media (max-width: 820px) {
	header .logo a {
		font-size: 1.25rem;
	}
}

@media (max-width: 500px) {
	header .content {
		flex-direction: column;
		gap: 16px;
	}
}

footer {
    margin: 64px auto 32px;
    width: var(--width);
    text-align: center;
    font-style: italic;
    font-size: 1rem;
}

section.intro {
	display: flex;
	gap: 64px;
	margin: 128px 0 64px;
}

section.intro img {
	min-width: 400px;
	max-width: 400px;
}

section.intro h1 {
	margin-bottom: 0;
}

section.intro h2 {
	color: var(--text);
	font-size: 1.5rem;
	margin-top: 0;
	font-style: italic;
}

@media (max-width: 768px) {
	section.intro {
		margin: 64px 0;
	}

	section.intro img {
		min-width: 300px;
		max-width: 300px;
	}
}

@media (max-width: 500px) {
	section.intro {
		margin: 64px 0 32px;
		flex-direction: column;
		justify-content: center;
	}

	section.intro img {
		margin: 0 auto;
	}

	section.intro h1 {
		font-size: 2.75rem;
	}
}

section.homepage-schedule {
	margin: 0 0 64px 0;
	width: 100%;
}

section.homepage-schedule h2 {
	margin-bottom: 0;
}

section.homepage-schedule .games {
	display: flex;
	gap: 64px;
	width: 100%;
	justify-content: space-between;
}

section.homepage-schedule .games h3 {
	font-size: 1.5rem;
    color: var(--text);
}

section.homepage-schedule .games .game-col {
	width: 100%;
}

section.homepage-schedule .view-all {
    margin-top: 32px;
    text-align: center;
}

@media (max-width: 500px) {
	section.homepage-schedule .games {
		flex-direction: column;
		gap: 16px;
	}
}

.game {
	border: 1px solid var(--secondary-color);
	border-radius: 6px;
}

.game .time {
	background-color: var(--secondary-color);
	color: var(--primary-color);
	padding: 4px 12px;
}

.game .teams {
	display: flex;
	flex-direction: column;
}

.game .team {
	padding: 8px 12px;
	line-height: 1;
	display: flex;
	gap: 32px;
	justify-content: space-between;
	align-items: center;
}

.game .team.winner {
	background-color: var(--tertiary-color);
}

.game .team.home {
	border-bottom-left-radius: 6px;
	border-bottom-right-radius: 6px;
}

.game:has(div.title) .team.home {
    border-radius: 0;
}

.game .team .name {
	display: flex;
	gap: 2px;
	flex-direction: column;
}

.game .team .name span {
	text-transform: uppercase;
	font-size: 0.5rem;
	color: var(--secondary-color);
}

.game .team .name div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game .team .name div em {
    font-size: 0.75rem;
    font-style: italic;
}

.game .title {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 4px 12px;
    line-height: 1;
    font-size: 1rem;
    font-style: italic;
}

section.current-season .games {
	display: flex;
	gap: 64px;
	width: 100%;
	justify-content: space-between;
}

section.current-season .games h2 {
	font-size: 1.5rem;
	margin-bottom: 0;
	color: var(--text);
	font-weight: 600;
}

section.current-season .games .game-col {
	width: 100%;
	display: flex;
	gap: 32px;
	flex-direction: column;
}

@media (max-width: 500px) {
	section.current-season .games {
		flex-direction: column;
		gap: 16px;
	}
}

section.past-season .games {
	width: 500px;
	margin: 0 auto;
	display: flex;
	gap: 32px;
	flex-direction: column;
}

section.past-season h2 {
	font-size: 1.5rem;
	margin-bottom: 0;
	font-weight: 600;
}

@media (max-width: 500px) {
	section.past-season .games {
		width: 100%;
	}
}

section.seasons-list ul {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    flex-direction: column;
}

section.seasons-list ul li {
    list-style-type: none;
}

section.seasons-list ul li a {
    display: block;
    width: 300px;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    padding: 8px 16px;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
}

section.seasons-list ul li a:hover {
    background: var(--tertiary-color);
}

section.seasons-list ul li a span.current {
    font-size: 0.8rem;
}

.record {
	text-align: center;
	font-size: 1.4rem;
	margin: 32px 0;
}

.record span {
	font-weight: 600;
}

.champions {
    width: 500px;
    margin: 32px auto; 48px;
    font-size: 1.6rem;
    text-align: center;
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    background-color: var(--tertiary-color);
    padding: 8px;
}

@media (max-width: 500px) {
    .champions {
        width: 100%;
    }
}