/* HoardAds — shared stylesheet
   Dark theme, subtle gold/amber accent, system font stack, no JS. */

:root {
  --bg: #0b0d10;
  --bg-soft: #10131a;
  --card: #14181f;
  --border: #262d38;
  --text: #ece9e1;
  --muted: #9aa3af;
  --gold: #dfa92c;
  --gold-bright: #f2c14e;
  --gold-dim: rgba(223, 169, 44, 0.14);
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 13, 16, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand span { color: var(--gold); }
.brand:hover { text-decoration: none; }

.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--gold-bright); text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(640px 300px at 50% -60px, var(--gold-dim), transparent 70%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 72px 0 60px;
}

.hero .kicker {
  display: inline-block;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 3px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 10px;
}

.hero .sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Sections & grids ---------- */

.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 1.8rem; }
.section-head p { color: var(--muted); max-width: 680px; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: var(--text);
}
.tile:hover { border-color: var(--gold); text-decoration: none; }
.tile .tile-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.tile h3 { font-size: 1.08rem; margin-bottom: 6px; }
.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-card.empty { border-style: dashed; opacity: 0.75; }

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.tool-card h3 { font-size: 1.15rem; margin: 0; }
.tool-card p { color: var(--muted); font-size: 0.95rem; margin: 0; flex: 1; }

.badge {
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-bright);
  border: 1px solid var(--gold);
  background: var(--gold-dim);
  border-radius: 999px;
  padding: 2px 10px;
}

.badge.sponsored {
  color: #0b0d10;
  background: var(--gold);
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #0b0d10;
  font-weight: 700;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.95rem;
}
.btn:hover { background: var(--gold-bright); text-decoration: none; }

.btn-disabled {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  align-self: flex-start;
}

/* ---------- Page / prose ---------- */

.page-head { padding: 52px 0 8px; }
.page-head h1 { font-size: 2.2rem; }
.page-head .lede { color: var(--muted); font-size: 1.08rem; max-width: 720px; }

.prose { max-width: 760px; padding-bottom: 56px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }

.notice {
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 24px 0;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Newsletter ---------- */

.newsletter-box {
  background:
    radial-gradient(560px 240px at 50% -40px, var(--gold-dim), transparent 70%),
    var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 44px 32px;
  text-align: center;
}

.newsletter-box h2 { font-size: 1.9rem; }
.newsletter-box > p { color: var(--muted); max-width: 560px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 22px auto 12px;
}

.newsletter-form input[type="email"] {
  flex: 1 1 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  padding: 10px 14px;
}
.newsletter-form input[type="email"]:focus { border-color: var(--gold); outline: none; }

.newsletter-form button { border: none; cursor: pointer; font: inherit; }

.newsletter-box .newsletter-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.newsletter-strip {
  border-top: 1px solid var(--border);
  background: var(--gold-dim);
  padding: 16px 0;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.strip-inner p { margin: 0; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 28px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.site-footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 12px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul a { color: var(--text); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero { padding: 52px 0 44px; }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.12rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .strip-inner { justify-content: center; text-align: center; }
  .header-inner { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }
}

@media (max-width: 440px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Tables & ordered lists (article pages) ---------- */

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 0.92rem;
}

.prose th, .prose td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.prose thead th { background: var(--bg-soft); }

.prose ol { padding-left: 1.25em; }
.prose ol li { margin-bottom: 0.4em; }
