:root {
  --page-bg: #edf0e8;
  --paper: #fffdf7;
  --forest: #214f37;
  --forest-dark: #173c29;
  --gold: #bd8427;
  --red: #9b4a3f;
  --blue: #486b78;
  --ink: #1f2a23;
  --muted: #5e6b62;
  --line: #d3dbd2;
  --soft-green: #e2e9df;
  --shadow: 0 12px 28px rgba(31, 42, 35, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--page-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(189, 132, 39, 0.55);
  outline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--forest-dark);
  line-height: 1.12;
}

.page-shell,
.footer-inner {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.brand-lockup img {
  width: min(278px, 40vw);
  height: auto;
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--forest-dark);
  background: var(--paper);
  cursor: pointer;
}

.site-menu-toggle:hover {
  background: var(--soft-green);
}

.site-menu-toggle:focus-visible {
  outline: 3px solid rgba(189, 132, 39, 0.55);
  outline-offset: 3px;
}

.menu-icon {
  width: 20px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.menu-open .menu-icon span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-icon span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.site-nav a,
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--forest-dark);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--soft-green);
}

.home-hero {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  align-items: center;
  gap: clamp(36px, 6vw, 78px);
  padding: 48px 0 54px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow,
.feature-tag,
.directory-card > span {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2.7rem, 4.7vw, 4.55rem);
}

.lead {
  max-width: 57ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--forest);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--forest);
}

.secondary-button {
  color: var(--forest-dark);
  background: transparent;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background: var(--forest-dark);
}

.secondary-button:hover {
  color: #fff;
  background: var(--forest);
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  min-height: 300px;
  border-radius: 8px;
  background: var(--forest);
  box-shadow: 0 22px 46px rgba(23, 60, 41, 0.2);
  text-decoration: none;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(10, 31, 20, 0.84));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.hero-media:hover img {
  transform: scale(1.018);
}

.hero-media span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  left: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
}

.hero-media small {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-media strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.pause-picker {
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2.28fr);
  gap: 28px;
  align-items: center;
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pause-copy h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.pause-copy .feature-tag {
  margin-bottom: 4px;
}

.pause-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.pause-option {
  min-height: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.7);
  text-decoration: none;
}

.pause-option span {
  color: var(--muted);
  font-size: 0.73rem;
}

.pause-option strong {
  color: var(--forest-dark);
  font-size: 0.94rem;
}

.pause-option:hover {
  border-color: var(--gold);
  background: var(--paper);
}

.featured-games,
.game-directory,
.support-section {
  padding: 76px 0 0;
}

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

.section-heading h2,
.support-intro h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.section-link:hover {
  color: var(--gold);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.featured-game {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 20px rgba(31, 42, 35, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.featured-game:hover,
.featured-game:focus-within {
  border-color: #9fac9f;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.featured-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 8 / 5;
  background: var(--soft-green);
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.featured-game:hover .featured-image img {
  transform: scale(1.025);
}

.featured-copy {
  padding: 20px 20px 22px;
}

.featured-copy .feature-tag {
  margin-bottom: 6px;
}

.featured-copy h3 {
  margin-bottom: 8px;
  font-size: 1.42rem;
}

.featured-copy h3 a {
  text-decoration: none;
}

.featured-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.game-directory {
  padding-bottom: 18px;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.directory-card {
  min-width: 0;
  min-height: 154px;
  padding: 19px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.48);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.directory-card:hover,
.directory-card:focus-visible {
  background: var(--paper);
}

.directory-card > span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
}

.directory-card > strong {
  display: block;
  margin-bottom: 5px;
  color: var(--forest-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.directory-card > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.directory-card-accent {
  background: #e7ece3;
}

.directory-card-accent > span {
  color: var(--red);
}

.support-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(50px, 8vw, 108px);
  margin-top: 70px;
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.support-intro > p:last-child {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--muted);
}

.support-points {
  display: grid;
  gap: 0;
}

.support-points article {
  padding: 0 0 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.support-points article:last-child {
  margin-bottom: 0;
}

.support-points h3 {
  margin-bottom: 7px;
  font-size: 1.18rem;
}

.support-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.support-points a {
  color: var(--forest);
  font-weight: 700;
}

.editorial-elsewhere {
  margin-top: 48px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
}

.editorial-elsewhere > h2 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.editorial-elsewhere-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editorial-destination {
  min-width: 0;
  padding-right: clamp(22px, 4vw, 52px);
}

.editorial-destination + .editorial-destination {
  padding-right: 0;
  padding-left: clamp(22px, 4vw, 52px);
  border-left: 1px solid var(--line);
}

.editorial-destination h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.editorial-destination p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.editorial-destination a {
  color: var(--forest);
  font-weight: 700;
}

.daily-joke-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.daily-joke-copy {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.daily-joke-label {
  color: var(--red);
  font-weight: 800;
}

.daily-joke-bar.is-enhanced:not(.is-expanded) .daily-joke-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.daily-joke-toggle {
  min-height: 28px;
  margin: -4px 0;
  padding: 4px 0 4px 6px;
  border: 0;
  color: var(--forest);
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.daily-joke-toggle:hover {
  color: var(--forest-dark);
}

.daily-joke-toggle:focus-visible {
  outline: 3px solid rgba(189, 132, 39, 0.34);
  outline-offset: 2px;
}

.daily-joke-toggle[hidden] {
  display: none;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--forest-dark);
}

.footer-inner {
  min-height: 172px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 30px;
  padding-block: 34px;
}

.footer-brand {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer nav a {
  color: #fff;
}

.site-footer nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer p {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
    gap: 34px;
  }

  .hero-media {
    min-height: 0;
  }

  .pause-picker {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pause-options {
    grid-template-columns: repeat(5, minmax(112px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .directory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .support-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}

@media (max-width: 760px) {
  .page-shell,
  .footer-inner {
    width: min(100% - 28px, 620px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand-lockup img {
    width: min(238px, 54vw);
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding-inline: 9px;
    font-size: 0.86rem;
  }

  .home-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 38px 0 44px;
  }

  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: 13ch;
    font-size: 3rem;
  }

  .hero-media {
    min-height: 0;
  }

  .featured-games,
  .game-directory,
  .support-section {
    padding-top: 60px;
  }

  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell,
  .footer-inner {
    width: min(100% - 24px, 430px);
  }

  .site-header {
    min-height: 66px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-lockup img {
    width: min(220px, 59vw);
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .site-nav a {
    justify-content: center;
  }

  .site-header.nav-enhanced {
    flex-wrap: nowrap;
  }

  .site-header.nav-enhanced .site-menu-toggle {
    display: inline-flex;
  }

  .site-header.nav-enhanced .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: min(270px, calc(100vw - 24px));
    display: none;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .site-header.nav-enhanced .site-nav.is-open {
    display: grid;
  }

  .site-header.nav-enhanced .site-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .home-hero {
    gap: 22px;
    padding: 30px 0;
  }

  h1 {
    font-size: 2.45rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-media span {
    right: 17px;
    bottom: 15px;
    left: 17px;
  }

  .hero-media {
    aspect-ratio: 16 / 8.5;
  }

  .hero-media strong {
    font-size: 1.35rem;
  }

  .pause-picker {
    padding: 18px 0;
  }

  .pause-options {
    margin-right: -12px;
  }

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

  .featured-grid,
  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: 0;
    padding: 17px;
  }

  .support-section {
    margin-top: 48px;
    padding-top: 48px;
  }

  .editorial-elsewhere {
    margin-top: 38px;
    padding: 24px 0 28px;
  }

  .editorial-elsewhere > h2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
  }

  .editorial-elsewhere-grid {
    grid-template-columns: 1fr;
  }

  .editorial-destination {
    padding-right: 0;
  }

  .editorial-destination + .editorial-destination {
    margin-top: 18px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .daily-joke-bar {
    gap: 7px;
    padding: 8px 0;
  }

  .daily-joke-copy {
    font-size: 0.84rem;
  }

  .daily-joke-bar.is-enhanced:not(.is-expanded) .daily-joke-copy {
    -webkit-line-clamp: 2;
  }

  .daily-joke-toggle {
    font-size: 0.8rem;
  }

  .footer-inner {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    margin-left: -9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
