:root {
  color-scheme: light;
  --paper: #f4f3eb;
  --surface: #faf9f2;
  --ink: #172b22;
  --muted: #506055;
  --line: #cbd2c2;
  --pine: #16422f;
  --forest: #0c2b20;
  --lime: #e1f7a7;
  --stroke: 1px solid var(--line);
  --display: "Arial Narrow", "Aptos Narrow", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  line-height: 1.55;
  scroll-padding-top: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2c7348; outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -.035em; line-height: 1.1; }
p { margin: 0; }
.shell { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.skip-link { position: fixed; inset: .75rem auto auto .75rem; z-index: 8; padding: .75rem 1rem; translate: 0 -180%; color: white; background: var(--pine); }
.skip-link:focus { translate: 0; }

.masthead { border-bottom: var(--stroke); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }
.masthead > .shell > .masthead-row { min-height: 5rem; }
.wordmark { display: inline-flex; align-items: center; align-self: center; gap: .65rem; flex-shrink: 0; min-height: 2.75rem; color: var(--ink); font-weight: 820; font-size: 1.12rem; letter-spacing: -.045em; line-height: 1.15; text-decoration: none; }
.brand-mark { display: inline-block; position: relative; width: 2.05rem; height: 1.6rem; border-radius: .23rem; border: 2px solid currentColor; color: var(--pine); transform: skew(-7deg); }
.brand-mark::before { position: absolute; content: ""; inset: 0 auto 0 50%; border-left: 1px solid currentColor; }
.brand-mark::after { position: absolute; content: ""; width: .59rem; height: .59rem; left: 50%; top: 50%; translate: -50% -50%; border: 1px solid currentColor; border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: .4rem; }
.site-nav a { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding-inline: .9rem; text-decoration: none; font-size: .95rem; font-weight: 650; border-radius: .35rem; white-space: nowrap; }
.site-nav a[aria-current="page"] { background: var(--lime); }
.site-nav a:not([aria-current]):hover { background: #e5eadd; }

.homepage { padding-block: 1.35rem 4.5rem; }
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(33rem, 48vw, 41rem); overflow: hidden; border-radius: .5rem; background: var(--forest); color: #fcfbef; }
.hero-photo, .hero::after { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; }
.hero-photo { object-fit: cover; object-position: center 60%; }
.hero::after { content: ""; background: linear-gradient(90deg, rgb(4 21 16 / .93) 0%, rgb(4 21 16 / .79) 37%, rgb(4 21 16 / .16) 82%), linear-gradient(0deg, rgb(4 21 16 / .64), transparent 45%); }
.hero-content { position: relative; max-width: 49rem; padding: clamp(2rem, 5.6vw, 5rem); }
.display-title { font-size: clamp(2.9rem, 7.1vw, 5.65rem); font-weight: 860; letter-spacing: -.055em; text-wrap: balance; }
.hero-content p { max-width: 34ch; margin-block: 1.35rem 1.55rem; color: #f1f3e6; font-size: clamp(1.05rem, 2vw, 1.26rem); }
.hero a:focus-visible { outline-color: var(--lime); }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 2.9rem; padding: .62rem 1rem; border: 1px solid transparent; border-radius: .25rem; font-size: .95rem; font-weight: 750; text-decoration: none; cursor: pointer; text-align: center; }
.button.primary { color: var(--forest); background: var(--lime); }
.button.primary:hover { background: #d0ed8a; }
.button.secondary { color: var(--pine); background: transparent; border-color: var(--pine); }
.button.secondary:hover { background: #edf4dc; }

.guide-index, .latest-section { margin-block-start: 3.65rem; }
.notes-grid + #published { margin-block-start: 3rem; }
.published-status { color: var(--muted); }
.section-heading { margin-block-end: 1.15rem; }
.section-heading h2, .interior-page h2 { font-size: clamp(1.8rem, 3.65vw, 2.9rem); }
.guide-grid, .notes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.05rem; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(1.15rem, 2.75vw, 2.35rem); min-width: 0; border: var(--stroke); background: var(--surface); }
.guide-card h3, .note-card h2 { font-size: clamp(1.42rem, 3.25vw, 2.35rem); text-wrap: balance; }
.guide-card p { color: var(--muted); max-width: 48ch; }
.guide-card .button { margin-block-start: auto; }
.guide-card-notes { background: #e6eddf; }
.country-strip { display: flex; gap: .27rem; flex-wrap: wrap; }
.country-strip span, .league-code { background: var(--lime); padding: .3rem .45rem; color: var(--forest); font-weight: 780; font-size: .82rem; letter-spacing: .045em; }
.pitch-mark { position: relative; display: inline-block; width: 3.6rem; height: 1.82rem; border: 1px solid var(--pine); }
.pitch-mark::before { position: absolute; content: ""; width: .81rem; height: .81rem; border: 1px solid var(--pine); border-radius: 50%; inset: 50% auto auto 50%; translate: -50% -50%; }
.pitch-mark::after { position: absolute; content: ""; inset: 0 auto 0 50%; border-left: 1px solid var(--pine); }

.interior-page, .article-page { padding-block: clamp(1.75rem, 6vw, 4.8rem) 4.5rem; }
.page-intro { max-width: 52rem; margin-block-end: clamp(1.85rem, 5vw, 3.65rem); }
.page-intro .display-title { font-size: clamp(2.65rem, 6.5vw, 5.15rem); }
.intro-copy { color: var(--muted); max-width: 62ch; margin-block-start: .95rem; font-size: 1.08rem; }
.eyebrow { color: var(--muted); font-weight: 660; font-size: .875rem; }
.league-list { margin: 0; padding: 0; list-style: none; border-top: var(--stroke); }
.league-entry { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: clamp(.75rem, 3.3vw, 2.3rem); padding: clamp(1.25rem, 3vw, 2.35rem) 0; border-bottom: var(--stroke); }
.league-entry .league-code { min-width: 3.25rem; min-height: 2.4rem; display: inline-grid; place-items: center; }
.league-copy h2, .league-copy h3 { margin: 0 0 .6rem; font-size: clamp(1.55rem, 4vw, 2.6rem); }
.league-copy p { max-width: 61ch; color: var(--muted); margin-block: .45rem .7rem; }
.league-copy a, .prose a { display: inline-block; font-weight: 700; color: var(--pine); text-underline-offset: .18em; }
.notes-grid { align-items: stretch; }
.note-card { padding: clamp(1rem, 3vw, 2rem); background: var(--surface); border: var(--stroke); min-width: 0; }
.note-card:nth-child(2) { background: #e6eddf; }
.prose { max-width: 69ch; overflow-wrap: anywhere; }
.prose > * + * { margin-block-start: .95rem; }
.prose h2, .prose h3, .prose h4 { font-weight: 760; margin-block-start: 1.6em; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
.prose h3 { font-size: 1.28rem; }
.prose p { color: var(--ink); }
.prose li + li { margin-block-start: .35rem; }
.prose blockquote { margin-inline: 0; padding-inline-start: 1rem; border-inline-start: 2px solid var(--pine); }
.prose pre { white-space: pre-wrap; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border: var(--stroke); padding: .4rem .6rem; vertical-align: top; }
.article-page .display-title { font-size: clamp(2.35rem, 6vw, 4.6rem); margin-block: .5rem 1.35rem; max-width: 20ch; }
.article-byline { color: var(--muted); margin-block-end: 1.35rem; }
.article-page .prose { padding-block-start: .7rem; border-top: var(--stroke); }
.published-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.published-card { padding: 1.2rem; border: var(--stroke); border-radius: .3rem; background: var(--surface); }
.published-card h3 { font-size: 1.35rem; }
.published-card h3 a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: .18em; }
.published-card p { color: var(--muted); margin-block-start: .45rem; }
.section-status { color: var(--muted); margin-block-start: .5rem; }

.editor { padding-block: 2.15rem 4.5rem; max-width: 48rem; }
.editor h1 { font-size: clamp(2rem, 7vw, 3.75rem); }
.editor h2 { font-size: 1.5rem; }
.editor-panel { margin-block-start: 1.25rem; padding: clamp(1rem, 3vw, 1.75rem); border: var(--stroke); background: var(--surface); }
.editor-form { display: grid; gap: .9rem; margin-block-start: 1rem; }
.editor-form label { font-weight: 680; }
.editor-form label + input { margin-block-start: -.55rem; }
.editor-form input:not([type="hidden"]) { min-height: 2.75rem; width: 100%; max-width: 100%; padding: .45rem .65rem; background: white; color: var(--ink); border: 1px solid #758779; border-radius: .25rem; }
.editor-form input[type="file"] { padding: .55rem; }
.editor-form input::file-selector-button { border: 0; border-radius: .2rem; padding: .3rem .55rem; margin-inline-end: .65rem; background: #e5edda; color: var(--pine); }
.form-note { color: var(--muted); margin-block: .55rem; }
.form-error { padding: .7rem .85rem; border: 1px solid #a34738; color: #812e21; background: #fff3ec; margin-block: .65rem; }
.editor form + form { margin-block-start: 1rem; }

.site-footer { border-top: var(--stroke); }
.footer-row { min-height: 5.5rem; display: flex; justify-content: space-between; align-items: center; gap: .65rem 1.35rem; padding-block: .6rem; }
.footer-row p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .85rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 650; text-underline-offset: .2em; }

@media (max-width: 42rem) {
  .shell { width: min(100% - 1.75rem, 75rem); }
  .masthead-row, .masthead > .shell > .masthead-row { align-items: stretch; min-height: auto; flex-direction: column; gap: .05rem; padding-block: .4rem .42rem; }
  .masthead .wordmark { align-self: flex-start; }
  .site-nav { margin-inline-start: -.25rem; }
  .site-nav a { padding-inline: .62rem; font-size: .875rem; }
  .homepage { padding-block: .8rem 2.8rem; }
  .hero { min-height: clamp(30rem, 122vw, 37rem); }
  .hero-photo { object-position: 63% center; }
  .hero::after { background: linear-gradient(0deg, rgb(4 21 16 / .98) 0%, rgb(4 21 16 / .79) 46%, rgb(4 21 16 / .14) 95%); }
  .hero-content { padding: 1.25rem; }
  .display-title { font-size: clamp(2.55rem, 10vw, 4rem); }
  .hero-content p { margin-block: .95rem 1.2rem; }
  .guide-index, .latest-section { margin-block-start: 2.3rem; }
  .guide-grid, .notes-grid { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .footer-row { align-items: flex-start; justify-content: center; flex-direction: column; }
  .footer-row .wordmark { align-self: flex-start; }
}

@media (max-width: 24rem) {
  .hero-content { padding-inline: 1.1rem; }
  .league-entry { grid-template-columns: minmax(0, 1fr); }
  .league-entry .league-code { justify-self: start; }
}
