/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
::before,
::after {
  box-sizing: border-box;
}

/**
Use a more readable tab size (opinionated).
*/
html {
  -moz-tab-size: 4;
  -o-tab-size: 4;
     tab-size: 4;
}

/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/*
Sections
========
*/
/**
Remove the margin in all browsers.
*/
body {
  margin: 0;
}

/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/*
Grouping content
================
*/
/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/
hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
}

/*
Text-level semantics
====================
*/
/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr[title] {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/
b,
strong {
  font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
Tabular data
============
*/
/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
}

/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/
button,
select {
  /* 1 */
  text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/
::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/
:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/
:-moz-ui-invalid {
  box-shadow: none;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
  padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
  vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
  display: list-item;
}

.emoji {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 1.4em;
  margin: 0;
  text-align: center;
  position: relative;
}
@media (max-width: 600px) {
  .emoji {
    min-width: 0.8rem;
  }
}

.ball {
  animation-name: spin;
  animation-duration: 5s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  position: absolute;
  font-size: 2rem;
  margin-top: 30px;
  mix-blend-mode: color-burn;
  filter: contrast(1.5);
}
@media (max-width: 600px) {
  .ball {
    font-size: 1.5em;
    margin-top: 20px;
  }
}

.fire {
  font-size: 4rem;
}
@media (max-width: 600px) {
  .fire {
    font-size: 3em;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
:root {
  --green: #5d9634;
  --altgreen: #5d9634;
  --darkyellow: #968f35;
  --accentyellow: #e4fa73;
  --red: #fa7f73;
  --blue: #73b0fa;
}

body {
  background: linear-gradient(to bottom, #5d9634, #5d9634 50%, #538c2b 50%, #538c2b);
  background-size: 100% 60px;
}

h1 {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 1000;
  font-style: italic;
  font-size: 2rem;
  text-align: center;
  align-self: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--accentyellow);
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }
}

.subhead {
  flex: 0 0 100%;
}
.subhead h2,
.subhead p {
  font-family: "Lora", Times, serif;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin: 0 auto 1rem auto;
  font-size: 1.4rem;
  color: var(--accentyellow);
}
@media (max-width: 600px) {
  .subhead h2,
  .subhead p {
    font-size: 1.2rem;
  }
}

a {
  color: var(--blue);
}

span.red-card {
  height: 1em;
  aspect-ratio: 3/4;
  border-radius: 25%;
  background-color: var(--red);
  display: inline-block;
  vertical-align: middle;
}

.main header {
  margin-bottom: 5em;
}
.main header .pitch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  border: 2px solid white;
  border-top: none;
  padding: 0 15px 15px 15px;
  aspect-ratio: 44/18;
  position: relative;
  max-width: 630px;
}
@media (max-width: 600px) {
  .main header .pitch {
    max-width: 90%;
  }
}
.main header .pitch .inner {
  position: absolute;
  width: 60%;
  height: 33%;
  margin-top: 0 !important;
  border-top: none !important;
  border: 2px solid white;
}
.main header .pitch .penalty-spot {
  position: absolute;
  top: 58%;
}
@media (max-width: 480px) {
  .main header .pitch .penalty-spot {
    top: 48%;
  }
}
.main header .pitch .semi-circle {
  position: absolute;
  bottom: -40px;
  height: 100px;
  width: 200px;
  border-radius: 0 0 150px 150px;
  border: 2px solid white;
  margin-top: -2px;
  -webkit-clip-path: inset(60px 0 0 0);
          clip-path: inset(60px 0 0 0);
}
.main header .headline-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem auto 0 auto;
}
@media (max-width: 600px) {
  .main header .headline-container {
    margin: 2.4rem auto 0 auto;
  }
}
.main header .headline-container h1 {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-weight: 1000;
  font-style: italic;
  font-size: 2rem;
  text-align: center;
  align-self: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: var(--accentyellow);
}
@media (max-width: 600px) {
  .main header .headline-container h1 {
    font-size: 1.8rem;
  }
}
.main header .headline-container .subhead {
  flex: 0 0 100%;
}
.main header .headline-container .subhead h2 {
  font-family: "Lora", Times, serif;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  margin: 0 auto 1rem auto;
  font-size: 1.4rem;
  color: var(--accentyellow);
}
@media (max-width: 600px) {
  .main header .headline-container .subhead h2 {
    font-size: 1.2rem;
  }
}
.main .container {
  max-width: 630px;
  margin: 30px auto;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .main .container {
    padding: 0 15px;
  }
}
.main p {
  font-family: "Lora", Times, serif;
  font-weight: 400;
}
.main p.byline {
  text-transform: uppercase;
  font-size: 14px;
}
.main p.prose {
  margin: 18px 0;
  font-size: 18px;
}
.main .chart-container {
  font-family: "Nunito Sans", Arial, sans-serif;
  margin: 30px auto;
  line-height: 1.4;
  max-width: 840px;
  background: #fff;
  padding: 30px;
  border: 5px outset #e4fa73;
}
.main .chart-container #h2h-chart {
  max-width: 400px;
  margin: 0 auto;
}
.main .chart-container .spacer {
  margin-top: 1.75em;
}
.main .chart-container h2 {
  margin-bottom: 8px;
}
.main .chart-container .chart {
  font-weight: 600;
  /* For Firefox */
}
.main .chart-container .chart .chart-settings {
  max-width: 630px;
  margin: 0 auto;
}
.main .chart-container .chart select {
  /* Remove default arrow */
  border: 1px solid var(--darkyellow);
  background: var(--darkyellow);
  color: var(--accentyellow);
  font-weight: 600;
  /* Add custom arrow */
}
.main .chart-container .chart .datawrapper-embed {
  margin-top: 15px;
}
.main .chart-container .chart input[type=number] {
  border: 1px solid var(--darkyellow);
  background: var(--darkyellow);
  color: var(--accentyellow);
  font-weight: 600;
}
.main .chart-container .chart input[type=range]::-webkit-slider-runnable-track {
  background: var(--darkyellow);
}
.main .chart-container .chart input[type=range]::-moz-range-track {
  background: var(--darkyellow);
}
.main .chart-container .chart input[type=range] {
  accent-color: var(--accentyellow);
}
.main .chart-container .chart input[type=radio] {
  -webkit-appearance: none;
}
.main .chart-container .chart input[type=radio]:after {
  width: 15px;
  height: 15px;
  border-radius: 15px;
  top: -2px;
  left: -1px;
  position: relative;
  background-color: var(--accentyellow);
  content: "";
  display: inline-block;
  visibility: visible;
  border: 2px solid var(--accentyellow);
}
.main .chart-container .chart input[type=radio]:checked:after {
  width: 15px;
  height: 15px;
  border-radius: 15px;
  top: -2px;
  left: -1px;
  position: relative;
  background-color: var(--darkyellow);
  content: "";
  display: inline-block;
  visibility: visible;
  border: 2px solid var(--accentyellow);
}
.main .chart-container .chart .label text {
  font-size: 11px;
}
.main .chart-container .chart *[id^=observablehq-leaguestandings-] {
  background: white;
  border: 2px solid var(--darkyellow);
  margin: 12px auto;
  padding: 5px;
}
.main .chart-container .chart svg .g[aria-label=x-axis] text {
  display: none;
}
.main .outfield {
  position: relative;
}
.main .outfield .center .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 200px;
  width: 200px;
  border-radius: 150px 150px 150px 150px;
  border: 2px solid white;
  margin-top: -2px;
  z-index: -999;
}
.main .outfield .center .line {
  border-top: 2px solid white;
  width: 100%;
  margin-bottom: -100px;
  position: absolute;
  top: 50%;
  z-index: -999;
}
.main footer {
  margin-top: 5em;
}
.main footer .pitch {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
  border: 2px solid white;
  border-bottom: none;
  padding: 15px 15px 0 15px;
  aspect-ratio: 44/18;
  position: relative;
  max-width: 630px;
}
@media (max-width: 600px) {
  .main footer .pitch {
    max-width: 90%;
  }
}
.main footer .pitch .inner {
  position: absolute;
  bottom: 0;
  width: 60%;
  height: 33%;
  margin-bottom: 0 !important;
  border-bottom: none !important;
  border: 2px solid white;
}
.main footer .pitch .penalty-spot {
  position: absolute;
  top: 58%;
}
@media (max-width: 480px) {
  .main footer .pitch .penalty-spot {
    top: 48%;
  }
}
.main footer .pitch .semi-circle {
  position: absolute;
  top: -40px;
  height: 100px;
  width: 200px;
  border-radius: 150px 150px 0 0;
  border: 2px solid white;
  margin-top: -2px;
  -webkit-clip-path: inset(0 0 60px 0);
          clip-path: inset(0 0 60px 0);
}

figure.center {
  margin: 35px auto;
  max-width: 630px;
}
figure img {
  width: 100%;
}