*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: #eceae6;
  color: #111;
  font-family: 'Fira Sans', sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border: 1px solid #d4d0c8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  padding: 14px 32px 12px;
  border-bottom: 1px solid #eceae6;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: #444;
  text-decoration: none;
  letter-spacing: 0.01em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #111;
  border-bottom-color: #111;
}

.page {
  width: 100%;
  padding: 24px 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page--home {
  padding-top: 20px;
}

.heading {
  text-align: center;
  margin-bottom: 4px;
}

h1 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #111;
}

h2 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  color: #111;
}

.page-title {
  text-align: center;
  margin-bottom: 6px;
}

.page-intro {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 400;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.subtitle {
  font-family: 'IM Fell English', serif;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: 400;
  color: #333;
  margin-top: 2px;
}

.body {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
  color: #222;
}

.body p + p {
  margin-top: 1em;
}

.body strong {
  font-weight: 600;
}

.body a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #eceae6;
}

.section--flush {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.body--tight {
  margin-top: 12px;
}

.body--tight:first-of-type {
  margin-top: 0;
}

.league-fallback {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.league-fallback a {
  color: #111;
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.league-fallback a:hover {
  border-bottom-color: #111;
}

.league-embed-wrap {
  width: 100%;
  overflow: hidden;
  border: 1px solid #d4d0c8;
  background: #fafafa;
  position: relative;
}

.league-embed {
  display: block;
  width: 940px;
  height: 800px;
  border: none;
  transform-origin: 0 0;
}

@media (max-width: 640px) {
  .league-embed-wrap {
    display: none;
  }

  .league-fallback {
    margin-bottom: 0;
  }
}

.league-note {
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  line-height: 1.5;
}

.league-note a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-bottom: 4px;
}

.page--home .section-heading {
  text-align: center;
}

.section-heading p {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  line-height: 1.45;
}

.news-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  padding: 14px 0;
  border-bottom: 1px solid #eceae6;
}

.news-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.news-item:first-child {
  padding-top: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.news-date {
  font-size: 0.8rem;
  font-weight: 400;
  color: #777;
}

.news-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
}

.news-badge--event {
  background: #111;
  color: #fff;
}

.news-badge--news {
  background: #eceae6;
  color: #333;
}

.news-title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  color: #111;
}

.news-title a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.news-title a:hover {
  border-bottom-color: #111;
}

.news-summary {
  font-size: 0.925rem;
  font-weight: 400;
  line-height: 1.5;
  color: #444;
}

.news-summary a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.news-more:hover {
  border-bottom-color: #111;
}

.chess-wrap {
  display: flex;
  justify-content: center;
  margin: 22px auto 0;
  width: 100%;
  max-width: 300px;
}

.chess-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

footer {
  width: 100%;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 32px 28px 28px;
  margin-top: 0;
}

.footer-label {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: #ddd;
}

.footer-email {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
  word-break: break-all;
}

.footer-email:hover {
  border-color: #fff;
}

.footer-address {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 400;
  color: #aaa;
  line-height: 1.55;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.footer-address:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 520px) {
  body { padding: 0; }
  .card { border: none; }
  .site-nav { padding: 12px 20px 10px; }
  .page { padding: 20px 20px 24px; }
  .page--home { padding-top: 18px; }
}
