* {
  box-sizing: border-box;
}

:root {
  --ink: #111111;
  --muted: #666666;
  --line: #d8d8d8;
  --soft: #f4f1eb;
  --paper: #ffffff;
  --accent: #b20f1b;
  --dark: #171717;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Libre Franklin", Arial, sans-serif;
}

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

img,
iframe {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.top-strip {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
}

.top-strip-inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edition {
  opacity: 0.72;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand-row {
  min-height: 142px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  text-align: center;
}

.brand-kicker {
  font-size: 10px;
  letter-spacing: 0.26em;
  font-weight: 700;
  color: var(--muted);
}

.brand h1 {
  margin: 10px 0 4px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(33px, 5vw, 59px);
  letter-spacing: -0.05em;
}

.brand-tagline {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
}

.menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
}

.header-actions {
  justify-self: end;
  display: flex;
  gap: 10px;
}

.ghost-button,
.subscribe-button {
  border: 1px solid var(--ink);
  padding: 10px 15px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button {
  background: #fff;
}

.subscribe-button {
  color: #fff;
  background: var(--ink);
}

.main-nav {
  border-top: 1px solid var(--line);
}

.nav-inner {
  height: 45px;
  display: flex;
  align-items: center;
  gap: 28px;
  overflow-x: auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-inner a:hover {
  color: var(--accent);
}

.breaking-news {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.breaking-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.breaking-inner p {
  margin: 0;
  font-size: 13px;
}

.breaking-label {
  color: var(--accent);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.hero-grid {
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 36px;
}

.image-placeholder {
  background:
    linear-gradient(135deg, rgba(255,255,255,.15), rgba(0,0,0,.12)),
    #c9c9c9;
  display: grid;
  place-items: center;
  color: rgba(0,0,0,.48);
  font-weight: 800;
  letter-spacing: 0.13em;
}

.hero-image {
  min-height: 430px;
}

.side-image {
  min-height: 210px;
}

.category,
.eyebrow,
.game-label {
  margin-top: 16px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.main-story h2 {
  margin: 8px 0 10px;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 840px;
  color: #444;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

.byline {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
}

.side-story h3,
.news-strip h3,
.list-story h3 {
  font-family: "Merriweather", Georgia, serif;
  line-height: 1.25;
}

.side-story h3 {
  margin: 7px 0;
  font-size: 22px;
}

.side-story p {
  color: var(--muted);
  line-height: 1.5;
}

.border-top {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.news-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.news-strip article {
  min-height: 138px;
  display: flex;
  gap: 16px;
  padding: 22px 24px 22px 0;
}

.news-strip article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.news-strip .number {
  font-family: "Merriweather", Georgia, serif;
  font-size: 28px;
  color: #a5a5a5;
}

.news-strip h3 {
  margin: 6px 0;
  font-size: 17px;
}

.games-section {
  margin-top: 45px;
  padding: 48px 0 54px;
  background: var(--soft);
  border-top: 1px solid #e3ddd2;
  border-bottom: 1px solid #e3ddd2;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-title-line h2 {
  margin: 5px 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 32px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}

.game-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.game-card-header {
  min-height: 92px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.game-card-header h3 {
  margin: 4px 0 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 25px;
}

.game-label {
  margin: 0;
}

.sponsored {
  color: var(--muted);
  font-size: 11px;
}

.embed-demo {
  min-height: 560px;
  padding: 40px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(255,255,255,.93), rgba(255,255,255,.93)),
    repeating-linear-gradient(45deg, #eee 0, #eee 10px, #fafafa 10px, #fafafa 20px);
}

.demo-icon {
  font-size: 58px;
}

.embed-demo h4 {
  margin: 15px 0 6px;
  font-family: "Merriweather", Georgia, serif;
  font-size: 25px;
}

.embed-demo p {
  margin: 0 0 22px;
  color: var(--muted);
}

.embed-demo button {
  border: 0;
  padding: 12px 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.games-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-box,
.ad-box {
  background: #fff;
  border: 1px solid var(--line);
}

.sidebar-box h4 {
  margin: 0;
  padding: 18px;
  font-family: "Merriweather", Georgia, serif;
  border-bottom: 1px solid var(--line);
}

.sidebar-box a {
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.sidebar-box a:last-child {
  border-bottom: 0;
}

.sidebar-box a:hover {
  color: var(--accent);
}

.ad-box {
  min-height: 250px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #999;
}

.ad-box span {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.lower-grid {
  padding: 50px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 50px;
}

.section-title-line {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.list-story {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.thumb {
  min-height: 140px;
}

.list-story h3 {
  margin: 6px 0;
  font-size: 22px;
}

.list-story p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.most-read {
  margin: 0;
  padding: 0;
  list-style: none;
}

.most-read li {
  min-height: 78px;
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.most-read span {
  font-family: "Merriweather", Georgia, serif;
  font-size: 30px;
  color: #aaa;
}

.most-read a {
  font-family: "Merriweather", Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
}

footer {
  padding: 48px 0 22px;
  color: #fff;
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-grid h2 {
  margin: 0 0 8px;
  font-family: "Merriweather", Georgia, serif;
}

.footer-grid h4 {
  margin: 0 0 12px;
}

.footer-grid p {
  color: #aaa;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #cfcfcf;
  font-size: 13px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #8f8f8f;
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}

.modal-panel {
  position: relative;
  width: min(520px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 30px;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}

.modal-panel h3 {
  margin-top: 0;
  font-family: "Merriweather", Georgia, serif;
}

.modal-panel code {
  display: block;
  padding: 12px;
  background: #f3f3f3;
  overflow-x: auto;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 13px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .brand-row {
    grid-template-columns: auto 1fr auto;
    min-height: 112px;
  }

  .brand-kicker,
  .brand-tagline,
  .ghost-button {
    display: none;
  }

  .brand h1 {
    font-size: clamp(28px, 6vw, 43px);
  }

  .hero-grid,
  .game-layout,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 330px;
  }

  .news-strip {
    grid-template-columns: 1fr;
  }

  .news-strip article + article {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .games-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .top-strip-inner {
    font-size: 10px;
  }

  .subscribe-button {
    padding: 9px 10px;
    font-size: 11px;
  }

  .brand h1 {
    font-size: 25px;
  }

  .hero-grid {
    padding-top: 22px;
  }

  .hero-image {
    min-height: 240px;
  }

  .main-story h2 {
    font-size: 32px;
  }

  .lead {
    font-size: 16px;
  }

  .games-section {
    padding-top: 36px;
  }

  .game-card-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .embed-demo {
    min-height: 430px;
    padding: 25px;
  }

  .games-sidebar {
    grid-template-columns: 1fr;
  }

  .list-story {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-inner {
    height: auto;
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
