:root {
  color-scheme: dark;
  --background: #12171e;
  --panel: #1b222c;
  --border: #364250;
  --text: #f3f5f7;
  --muted: #b7c3cf;
  --accent: #f7bb70;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--background); }
p, h1, h2 { margin: 0; }
.frame { width: min(calc(100% - 2rem), 54rem); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); }
.brand { padding-block: .8rem; font-size: 1.25rem; font-weight: 800; }
.brand a { color: inherit; text-decoration: none; }
.brand a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand span { color: var(--accent); }
.fight { padding-block: clamp(1.5rem, 5vw, 3rem) 1.5rem; }
.event-name { font-weight: 700; }
.muted, .provenance { color: var(--muted); }

h1 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(.5rem, 3vw, 1.75rem);
  padding-block: 1rem;
  font-size: clamp(1.4rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

h1 span:last-child { text-align: right; }
.versus { color: var(--muted); font-size: .55em; }
.fight-state { border-top: 1px solid var(--border); padding-top: 1rem; }
h2 { font-size: 1.25rem; line-height: 1.3; }
.fight-state h2 { color: var(--accent); }
.outcome { font-size: clamp(1.25rem, 3vw, 1.9rem); font-weight: 750; }
.result-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: .25rem 0 0; list-style: none; color: var(--muted); }
.panel { margin-bottom: 1rem; padding: clamp(.85rem, 3vw, 1.5rem); border: 1px solid var(--border); border-radius: .75rem; background: var(--panel); }
.panel > p { margin-top: .5rem; }
table { table-layout: fixed; width: 100%; border-collapse: collapse; margin-top: .5rem; }
th, td { border-bottom: 1px solid var(--border); padding: .55rem .4rem; vertical-align: top; text-align: left; overflow-wrap: anywhere; }
th:first-child { width: 40%; }
td { font-variant-numeric: tabular-nums; }
td span, th small, td small { display: block; }
small, .provenance { color: var(--muted); font-size: .85rem; font-weight: 400; }
details { margin-top: .55rem; border-top: 1px solid var(--border); }
summary { cursor: pointer; min-height: 2.75rem; padding-block: .6rem; font-weight: 650; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
footer { padding-block: .5rem 2rem; }

.preview-home-intro {
  padding-block: clamp(1.75rem, 6vw, 3.5rem) 1.75rem;
}

.preview-home-intro h1 {
  display: block;
  padding-block: 0 .5rem;
  font-size: clamp(2rem, 6vw, 3.35rem);
}

.preview-home-intro p { max-width: 41rem; }

.preview-home-sections {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.preview-home-list {
  display: grid;
  gap: .65rem;
  margin: .7rem 0 0;
  padding: 0;
  list-style: none;
}

.preview-card {
  display: grid;
  gap: .22rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .75rem;
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.preview-card:hover { border-color: var(--accent); }
.preview-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.preview-card strong { font-size: 1.12rem; line-height: 1.3; }
.preview-card-event, .preview-card-time { color: var(--muted); font-size: .85rem; }
.preview-card-action { margin-top: .23rem; color: var(--accent); font-size: .9rem; font-weight: 650; }
.preview-home-empty { margin-top: .65rem; }

@media (min-width: 42rem) {
  .preview-home-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
