:root {
  --paper: #f6f4ee;
  --ink: #21241f;
  --muted: #63685f;
  --line: #d4d6cc;
  --accent: #c63524;
  --pitch: #203c31;
  --sans: "Trebuchet MS", "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
.topline,
.masthead,
.nav,
main,
footer {
  max-width: 1360px;
  margin-inline: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  padding: 14px 40px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 1.5px;
}
.masthead {
  display: flex;
  gap: 30px;
  align-items: center;
  padding: 30px 40px;
}
.wordmark {
  font: bold 69px/0.9 var(--serif);
  letter-spacing: -5px;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span {
  font-style: italic;
  font-weight: normal;
}
.wordmark i {
  color: var(--accent);
}
.masthead p {
  font-size: 13px;
  line-height: 1.4;
  border-left: 1px solid var(--line);
  padding-left: 25px;
  color: var(--muted);
}
.masthead > .outline {
  margin-left: auto;
}
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid currentColor;
  text-decoration: none;
  padding: 11px 17px;
  min-height: 44px;
  font-size: 13px;
  font-weight: bold;
}
.nav {
  display: flex;
  gap: 33px;
  padding: 0 40px;
  border-bottom: 3px solid var(--ink);
  border-top: 1px solid var(--line);
  overflow: auto;
  scrollbar-width: thin;
}
.nav a {
  flex-shrink: 0;
  display: block;
  padding: 15px 0;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}
.nav [aria-current] {
  color: var(--accent);
}
main {
  padding: 0 40px 60px;
  min-height: 55vh;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 50px;
  padding: 46px 0 44px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.eyebrow span {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
}
h1 {
  font: normal clamp(36px, 4.2vw, 61px)/1.04 var(--serif);
  letter-spacing: -1.6px;
  margin: 18px 0 22px;
}
h2 {
  font: normal 31px/1.2 var(--serif);
  letter-spacing: -0.6px;
}
h3 {
  font: normal 25px/1.18 var(--serif);
}
.hero h1 a {
  text-decoration: none;
}
.hero-copy > p {
  color: var(--muted);
  max-width: 470px;
  font-size: 17px;
}
.text-link {
  display: inline-block;
  font-weight: bold;
  font-size: 14px;
  padding-block: 10px;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}
.pitch-art {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: var(--pitch);
  color: var(--paper);
  text-decoration: none;
  min-height: 370px;
  overflow: hidden;
}
.pitch-art:hover {
  color: white;
  background: #244c3b;
}
.pitch-lines {
  position: absolute;
  inset: 24px;
  border: 1px solid #78988766;
}
.pitch-lines:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 1px solid #78988766;
}
.pitch-lines:after {
  content: "";
  position: absolute;
  border: 1px solid #78988766;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.pitch-lines i:before,
.pitch-lines i:after {
  content: "";
  position: absolute;
  top: 30%;
  bottom: 30%;
  width: 13%;
  border: 1px solid #78988766;
}
.pitch-lines i:before {
  left: 0;
  border-left: 0;
}
.pitch-lines i:after {
  right: 0;
  border-right: 0;
}
.pitch-score {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 90%;
  padding: 35px 0;
}
.pitch-score > span {
  font-size: 18px;
  font-weight: bold;
  max-width: 330px;
  line-height: 1.3;
}
.pitch-score strong {
  font: normal 105px/1.1 var(--serif);
  letter-spacing: -6px;
}
.pitch-score strong span {
  color: #93ac9c;
}
.pitch-score small {
  font-size: 11px;
  color: #c6d4c9;
  margin-top: 12px;
}
.art-credit {
  position: absolute;
  left: 16px;
  bottom: 10px;
  font-size: 8px;
  letter-spacing: 1.6px;
  opacity: 0.75;
}
.section {
  padding: 30px 0;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading > a {
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.match-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  padding: 17px;
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s;
}
.match-card:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
}
.card-top {
  padding-bottom: 14px;
}
.card-top > span:first-child {
  color: var(--accent);
  font-weight: bold;
}
.match-teams {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  min-height: 55px;
  align-content: center;
}
.match-teams strong {
  font: normal 22px/1 var(--serif);
}
.card-bottom {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.card-bottom span {
  color: var(--accent);
  font-size: 16px;
}
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr);
  gap: 32px;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}
.split-section .match-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.peru-desk {
  padding: 28px;
  background: #e9eadf;
  align-self: start;
}
.peru-desk h2 {
  font-size: 34px;
  margin: 15px 0;
}
.peru-desk p {
  font-size: 14px;
  color: #4b5145;
}
.peru-desk h3 {
  font-size: 24px;
}
.desk-rule {
  border-top: 1px solid #c7cabd;
  margin: 28px 0;
}
.method-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
  padding: 30px 0;
}
.big-number {
  font: normal 46px/1 var(--serif);
  color: var(--accent);
  white-space: nowrap;
}
.method-strip h2 {
  margin: 0 0 8px;
  font-size: 27px;
}
.method-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.method-strip > .outline {
  margin-left: auto;
  flex-shrink: 0;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  padding: 20px 0;
}
.breadcrumb span {
  padding: 0 10px;
}
.page-intro {
  padding: 25px 0 30px;
  max-width: 900px;
}
.page-intro > p {
  max-width: 690px;
  font-size: 18px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  padding: 24px;
  background: #e9eadf;
  margin-bottom: 25px;
}
.filters label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: bold;
  flex: 1;
  min-width: 160px;
}
.filters select,
.filters input {
  min-height: 45px;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid #b6bdad;
  padding: 8px 12px;
  border-radius: 0;
}
.filters > a {
  padding: 12px 0;
  font-size: 12px;
}
button {
  min-height: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
}
button:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.result-count {
  font-size: 12px;
  color: var(--muted);
}
.pagination {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 0;
}
.label {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--accent);
}
.match-intro {
  padding: 35px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.match-intro h1 {
  font-size: clamp(32px, 3.8vw, 52px);
}
.match-intro > p {
  color: var(--muted);
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 35px;
  align-items: center;
  margin: 35px auto;
  max-width: 820px;
}
.scoreboard > div {
  min-width: 0;
  overflow-wrap: anywhere;
  font: normal 28px/1.2 var(--serif);
}
.scoreboard a {
  text-decoration: none;
}
.scoreboard small {
  display: block;
  font: 11px var(--sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 13px;
  color: var(--muted);
}
.scoreboard > strong {
  font: normal 80px/1 var(--serif);
  white-space: nowrap;
}
.scoreboard strong span {
  color: var(--accent);
}
.status-label {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 8px 15px;
}
.reading-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(240px, 340px);
  gap: 70px;
  padding-top: 40px;
  justify-content: center;
}
.prose {
  font-size: 18px;
  line-height: 1.8;
  min-width: 0;
}
.prose h2 {
  font-size: 30px;
  margin: 30px 0 15px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose > p {
  margin-bottom: 24px;
}
.prose li {
  margin: 10px 0;
}
.prose.narrow {
  max-width: 780px;
  margin: 0 auto;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: normal;
  color: var(--muted);
}
tbody th {
  width: 32%;
}
.form-table td:first-child,
.form-table td:last-child {
  white-space: nowrap;
}
.form-table small {
  color: var(--muted);
}
.form-table th {
  white-space: nowrap;
  font-size: 12px;
}
.source-note {
  border-top: 3px solid var(--accent);
  background: #e9eadf;
  padding: 22px;
  font-size: 13px;
  line-height: 1.65;
}
.source-note strong {
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
}
.source-note p {
  margin-bottom: 12px;
}
.sidebox {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.sidebox h2 {
  font-size: 24px;
  color: var(--ink);
}
.timeline {
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.timeline li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.timeline time {
  color: var(--muted);
}
.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
}
.directory a {
  display: block;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
}
.empty {
  border: 1px solid var(--line);
  padding: 45px;
  background: #eeefe5;
}
.empty p {
  max-width: 650px;
  color: var(--muted);
}
.source-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
}
.source-card,
.story-card {
  border-top: 2px solid var(--ink);
  padding: 25px 0;
}
.source-card h2 {
  font-size: 28px;
  margin: 15px 0;
}
.source-card p,
.story-card p {
  font-size: 15px;
  color: var(--muted);
}
.story-card h3 {
  margin: 15px 0;
}
.story-card h3 a {
  text-decoration: none;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.article-head {
  max-width: 1000px;
  margin: 30px auto 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}
.article-head h1 {
  font-size: clamp(36px, 4.4vw, 62px);
  line-height: 1.07;
}
.lead {
  font-size: 21px;
  color: var(--muted);
  max-width: 850px;
  line-height: 1.5;
}
.byline {
  font-size: 12px;
  color: var(--muted);
}
.preview-label {
  background: #eadcba;
  border: 1px solid #b79e68;
  padding: 15px;
  font-size: 13px;
}
footer {
  border-top: 3px solid var(--ink);
  padding: 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 25px;
}
footer .small {
  font-size: 44px;
  letter-spacing: -3px;
}
footer p {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}
footer > div > a:not(.wordmark) {
  display: block;
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 10px;
  padding: 5px 0;
}
.footer-note {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 5px;
}
.admin {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 25px;
}
.admin h1 {
  font-size: 38px;
}
.admin-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 15px 0;
  margin: 20px 0;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
}
.stat strong {
  font-size: 35px;
  display: block;
  font-family: var(--serif);
}
.admin form {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin: 25px 0;
}
.admin input,
.admin textarea,
.admin select {
  width: 100%;
  padding: 10px;
  border: 1px solid #a8aea2;
  background: #fffefb;
}
.admin textarea {
  min-height: 100px;
}
.admin .wide {
  min-height: 360px;
  font: 13px/1.5 monospace;
}
.admin details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.admin summary {
  cursor: pointer;
  min-height: 35px;
}
.admin pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #e9eadf;
  padding: 16px;
}
.admin .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin .actions form {
  margin: 0;
}
.notice {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: #eee8dd;
  overflow-wrap: anywhere;
}
.admin code {
  overflow-wrap: anywhere;
}
@media (max-width: 1050px) {
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 43px;
  }
  .pitch-art {
    min-height: 340px;
  }
  .masthead p {
    display: none;
  }
  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-section .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reading-grid {
    gap: 35px;
  }
  .nav {
    gap: 25px;
  }
  .method-strip {
    flex-wrap: wrap;
  }
  .method-strip > .outline {
    margin-left: 0;
  }
  .scoreboard {
    gap: 20px;
  }
  .scoreboard > div {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  .topline {
    padding: 10px 20px;
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .masthead {
    padding: 26px 20px;
    gap: 15px;
  }
  .wordmark {
    font-size: 49px;
    letter-spacing: -4px;
  }
  .masthead > .outline {
    font-size: 10px;
    padding: 8px 10px;
    gap: 8px;
    max-width: 125px;
  }
  .nav {
    padding: 0 20px;
    gap: 24px;
  }
  .nav a {
    font-size: 13px;
    padding: 14px 0;
  }
  main {
    padding: 0 20px 35px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 25px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-copy > p {
    font-size: 16px;
  }
  .pitch-art {
    min-height: 300px;
  }
  .pitch-score strong {
    font-size: 85px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading h2 {
    font-size: 27px;
  }
  .section-heading > a {
    font-size: 11px;
    white-space: normal;
    text-align: right;
    max-width: 120px;
  }
  .match-grid {
    gap: 12px;
  }
  .match-card {
    padding: 13px;
  }
  .match-teams {
    font-size: 12px;
  }
  .card-top {
    font-size: 9px;
    flex-direction: column;
    gap: 2px;
  }
  .card-bottom {
    font-size: 9px;
  }
  .split-section {
    grid-template-columns: 1fr;
  }
  .peru-desk {
    padding: 25px;
  }
  .method-strip {
    gap: 20px;
    padding: 25px 0;
  }
  .big-number {
    font-size: 36px;
  }
  .method-strip h2 {
    font-size: 25px;
  }
  .reading-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }
  .prose {
    font-size: 17px;
  }
  .prose h2 {
    font-size: 28px;
  }
  .scoreboard {
    gap: 12px;
    margin: 28px auto;
  }
  .scoreboard > div {
    font-size: 20px;
  }
  .scoreboard > strong {
    font-size: 53px;
  }
  .match-intro {
    padding-top: 18px;
  }
  .match-intro h1 {
    font-size: 35px;
  }
  .match-intro > p {
    font-size: 13px;
  }
  .directory {
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .source-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    padding: 18px;
    gap: 13px;
  }
  .filters label {
    min-width: 100%;
  }
  .filters button {
    flex: 1;
  }
  .page-intro {
    padding-top: 15px;
  }
  .page-intro > p {
    font-size: 16px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .article-head {
    margin-top: 20px;
  }
  .article-head h1 {
    font-size: 40px;
  }
  .lead {
    font-size: 19px;
  }
  .empty {
    padding: 25px;
  }
  .empty h2 {
    font-size: 27px;
  }
  footer {
    padding: 30px 20px;
    grid-template-columns: 1fr 1fr;
  }
  footer > div:first-child {
    grid-column: 1/-1;
  }
  footer .small {
    font-size: 44px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin {
    padding-inline: 18px;
  }
  .table-wrap {
    max-width: 100%;
  }
  td,
  th {
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media (max-width: 380px) {
  .masthead {
    flex-wrap: wrap;
    row-gap: 18px;
  }
  .masthead > .outline {
    margin-left: 0;
    width: 100%;
    max-width: none;
    font-size: 12px;
  }
}
