:root {
  color-scheme: light;
  --bg: #f2f1ec;
  --ink: #202020;
  --muted: #666666;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0)),
    var(--bg);
  color: var(--ink);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
}

.masthead {
  max-width: 760px;
  margin-bottom: 22px;
}

.crumb {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1;
}

.summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  aspect-ratio: 1 / 1;
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
  color: #ffffff;
  border-radius: 5px;
  box-shadow: 0 16px 32px rgba(30, 30, 30, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: -28px -40px auto auto;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(18deg);
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(30, 30, 30, 0.2);
}

.tile span,
.tile strong,
.tile p {
  position: relative;
  z-index: 1;
}

.tile span {
  margin-bottom: auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  opacity: 0.86;
  text-transform: uppercase;
}

.tile strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.tile p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.9;
}

.large {
  grid-column: auto;
  grid-row: auto;
}

.wide {
  grid-column: auto;
}

.tall {
  grid-row: auto;
}

.tile-players {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #1d428a, #0d2658);
}

.tile-teams {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, #c8102e, #7d0b1e);
}

.tile-seasons {
  grid-column: 4 / 5;
  grid-row: 1 / 2;
  background: linear-gradient(135deg, #f2a900, #ba6f00);
}

.tile-schedule {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  background: linear-gradient(135deg, #008a8a, #00545d);
}

.tile-news {
  grid-column: 4 / 5;
  grid-row: 2 / 3;
  background: linear-gradient(135deg, #ff6b35, #9c2f12);
}

.tile-draft {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
  background: linear-gradient(135deg, #6f4cc3, #3f2f85);
}

.tile-records {
  grid-column: 4 / 5;
  grid-row: 3 / 4;
  background: linear-gradient(135deg, #2f7d32, #15521d);
}

.tile-index {
  grid-column: 1 / 5;
  grid-row: 4 / 5;
  background: linear-gradient(135deg, #30343f, #161920);
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.site-footer span {
  display: inline-block;
  margin: 0 10px;
}

.news-page {
  max-width: 1120px;
}

.news-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.news-toolbar a {
  color: #1d428a;
  font-weight: 800;
}

.text-news-list {
  display: grid;
  gap: 10px;
}

.text-news-item {
  background: #ffffff;
  border-left: 5px solid #1d428a;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(30, 30, 30, 0.10);
}

.text-news-item a {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 15px 16px;
  color: inherit;
}

.news-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ffffff;
  background: #c8102e;
  border-radius: 4px;
  font-weight: 900;
}

.text-news-item h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.3;
}

.text-news-item p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}

.text-news-item small,
.article-meta {
  color: var(--muted);
  font-size: 13px;
}

.article-view {
  max-width: 860px;
  padding: 22px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(30, 30, 30, 0.10);
}

.article-body {
  margin: 22px 0;
  font-size: 17px;
  line-height: 1.9;
}

.article-lead {
  padding: 14px 16px;
  background: #f2f1ec;
  border-left: 5px solid #1d428a;
  border-radius: 4px;
  font-weight: 700;
}

.article-body h2 {
  margin: 24px 0 8px;
  font-size: 22px;
}

.article-body ul {
  margin: 8px 0 18px;
  padding-left: 22px;
}

.article-source {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  background: #f2f1ec;
  border-radius: 6px;
}

.source-link {
  display: inline-block;
  margin-top: 10px;
  color: #1d428a;
  font-size: 13px;
  font-weight: 800;
}

.news-empty {
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .directory {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 142px;
    aspect-ratio: auto;
  }

  .tile-players,
  .tile-teams,
  .tile-seasons,
  .tile-schedule,
  .tile-news,
  .tile-draft,
  .tile-records,
  .tile-index {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .page {
    width: min(100% - 24px, 1120px);
    padding-top: 24px;
  }

  .directory {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 10px;
  }

  .text-news-item a {
    grid-template-columns: 34px 1fr;
  }

  .large,
  .wide,
  .tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .tile {
    padding: 14px;
  }

  .tile strong {
    font-size: 28px;
  }

  .site-footer span {
    display: block;
    margin: 3px 0;
  }
}
