:root {
  --bg: #0a0b0d;
  --panel: #111419;
  --panel-soft: #181d24;
  --text: #f5f6f2;
  --muted: #aab0b8;
  --line: #2a3039;
  --red: #c9332f;
  --blue: #2f73d8;
  --brass: #c4a35a;
  --green: #3e8f67;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  background: #0f1115;
  color: var(--brass);
  font-weight: 900;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a:hover,
.site-footer a:hover,
.post-card a:hover {
  color: var(--brass);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  padding: 32px 0 20px;
}

.featured {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.featured img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  opacity: 0.58;
}

.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 11, 13, 0.94), rgba(10, 11, 13, 0.62), rgba(10, 11, 13, 0.18));
}

.featured-copy {
  position: absolute;
  inset: auto auto 36px 36px;
  width: min(650px, calc(100% - 72px));
  z-index: 1;
}

.eyebrow,
.category {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.15;
}

h3 {
  font-size: 1.07rem;
  line-height: 1.25;
}

.featured-copy p:not(.eyebrow) {
  max-width: 58ch;
  color: #d9dde2;
  font-size: 1.04rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
}

.button.ghost {
  background: rgba(245, 246, 242, 0.08);
}

.button.full {
  width: 100%;
}

.button.full + .button.full {
  margin-top: 10px;
}

.income-panel,
.sidebar > section,
.post-card,
.article-body,
.legal-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.income-panel {
  padding: 24px;
}

.check-list {
  padding-left: 20px;
  color: var(--muted);
}

.check-list li {
  margin-bottom: 10px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--line);
}

.search-box {
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0f1217;
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  padding: 0 12px;
  font-weight: 800;
  cursor: pointer;
}

.topic.active {
  border-color: var(--brass);
  color: var(--text);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
  padding: 28px 0 44px;
}

.section-title {
  margin-bottom: 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  overflow: hidden;
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #090a0c;
}

.post-card div {
  padding: 16px;
}

.post-card p:last-child,
.sidebar p,
.legal-page p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar > section {
  padding: 18px;
}

.ad-slot {
  min-height: 250px;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201, 51, 47, 0.16), transparent 42%),
    linear-gradient(315deg, rgba(47, 115, 216, 0.16), transparent 42%),
    var(--panel);
}

.ad-slot span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.newsletter form {
  display: grid;
  gap: 10px;
}

.newsletter input {
  width: 100%;
}

.form-message {
  min-height: 24px;
  margin: 10px 0 0;
}

.affiliate-box a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--brass);
  font-weight: 800;
}

.article-header {
  max-width: 820px;
  padding: 34px 0 18px;
}

.article-header h1 {
  max-width: 14ch;
}

.article-meta {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 310px;
  gap: 28px;
  align-items: start;
  padding-bottom: 46px;
}

.article-body {
  overflow: hidden;
}

.article-body > img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-content {
  padding: 28px;
}

.article-content h2 {
  margin-top: 30px;
}

.article-content a {
  color: var(--brass);
  font-weight: 800;
}

.callout {
  margin: 24px 0;
  padding: 18px;
  border-left: 4px solid var(--blue);
  background: #101722;
  overflow-wrap: anywhere;
}

.product-table {
  width: 100%;
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 18px 0;
  color: var(--muted);
}

.product-table th,
.product-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.product-table th {
  color: var(--text);
  background: var(--panel-soft);
}

.legal-page {
  max-width: 860px;
  margin: 34px auto 52px;
  padding: 30px;
}

.legal-page h1 {
  max-width: 16ch;
}

.legal-page a {
  color: var(--brass);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.hidden {
  display: none;
}

@media (max-width: 940px) {
  .hero-grid,
  .content-shell,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .site-footer,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  input {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .top-nav,
  .site-footer nav {
    flex-wrap: wrap;
  }

  .featured-copy {
    inset: auto 18px 22px 18px;
    width: auto;
  }

  .featured,
  .featured img {
    min-height: 520px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .article-content,
  .legal-page {
    padding: 20px;
  }
}
