:root {
  color-scheme: dark;
  --bg: #050506;
  --panel: rgba(16, 16, 18, 0.82);
  --panel-strong: rgba(23, 22, 22, 0.94);
  --line: rgba(232, 199, 119, 0.2);
  --line-strong: rgba(232, 199, 119, 0.38);
  --gold: #e8c777;
  --gold-strong: #f3d98f;
  --text: #f7f2e6;
  --muted: #bfb5a0;
  --muted-2: #8e8778;
  --danger: #ff8f79;
  --win: #9fe2bc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(232, 199, 119, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 0%, rgba(255, 143, 121, 0.08), transparent 26rem),
    linear-gradient(180deg, #070707 0%, var(--bg) 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: clamp(500px, 74vh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.24rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #15120b;
}

.button.secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.controls-band {
  margin-top: -38px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: 0 14px;
  outline: none;
}

.search-field input:focus {
  border-color: var(--gold);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0 14px;
}

.filter-button.is-active {
  border-color: var(--line-strong);
  background: rgba(232, 199, 119, 0.15);
  color: var(--gold-strong);
}

.posts-section {
  padding: 84px 0 72px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

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

.post-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.post-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
  text-decoration: none;
}

.post-card a:hover h3,
.post-card a:focus-visible h3 {
  color: var(--gold-strong);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 9px;
}

.pill.win {
  border-color: rgba(159, 226, 188, 0.28);
  color: var(--win);
}

.pill.failure {
  border-color: rgba(255, 143, 121, 0.32);
  color: var(--danger);
}

.post-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.28rem;
  line-height: 1.18;
}

.post-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.post-foot {
  margin-top: auto;
  padding-top: 24px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.empty-state {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.article {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 0 84px;
}

.article h1 {
  font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.article-subheadline {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}

.article-body {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  color: #e7decc;
  font-size: 1.06rem;
  line-height: 1.84;
}

.article-body p {
  margin: 0 0 22px;
}

.source-box {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(232, 199, 119, 0.07);
}

.source-box p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-box a {
  color: var(--text);
  word-break: break-word;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 28px 0 38px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

@media (max-width: 860px) {
  .section-heading,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .filter-group {
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 54px 0 82px;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .hero-actions,
  .filter-group {
    width: 100%;
  }

  .post-card a {
    padding: 18px;
  }
}
