/* ═══════════════════════════════════════════════════════
   Vasriya — Global Styles
   System fonts · Mobile-first · Accessible · <30KB
   ═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f0e0b;
  --paper: #faf8f3;
  --muted: #6b6860;
  --accent: #c8410a;
  --accent-hover: #a83608;
  --accent-light: #f4ede6;
  --border: #e5e2da;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w: 1180px;
  --pad: clamp(1rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── HEADER ─── */
header {
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  position: sticky;
  top: 0;
  background: rgba(250,248,243,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 2rem; align-items: center; }

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover { color: var(--ink); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  padding: 0.25rem;
}

/* ─── HERO (homepage) ─── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.8rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.affiliate-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.8rem;
  transition: background 0.2s, opacity 0.2s;
}

.affiliate-btn:hover {
  background: var(--accent-hover);
  opacity: 0.9;
}

/* ─── HERO FEATURED CARD ─── */
.hero-featured {
  background: var(--ink);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.hero-featured-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1a1814 0%, #2d2a24 50%, #1a0f08 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.hero-featured-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-featured h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.hero-featured p {
  font-size: 0.85rem;
  color: rgba(250,248,243,0.6);
}

/* ─── SECTIONS ─── */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── ARTICLE GRID ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.article-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover .card-title { color: var(--accent); }

.card-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 3px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--border);
}

.card-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.3s;
}

.article-card:hover .card-thumb-inner { transform: scale(1.05); }

.card-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.6;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ─── HIGHLIGHT STRIP ─── */
.highlight-strip {
  background: var(--ink);
  padding: 4rem var(--pad);
  margin-bottom: 4rem;
}

.highlight-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.highlight-strip h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--paper);
  line-height: 1.2;
}

.highlight-strip h2 em { color: var(--accent); font-style: italic; }

.highlight-articles { display: flex; flex-direction: column; gap: 1.5rem; }

.highlight-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  text-decoration: none;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.highlight-item:last-child { border-bottom: none; padding-bottom: 0; }

.highlight-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  min-width: 2rem;
}

.highlight-item h3 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--paper);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}

.highlight-item p { font-size: 0.8rem; color: rgba(250,248,243,0.5); font-weight: 400; }

/* ─── TOPICS ─── */
.topics-grid { display: flex; gap: 1rem; flex-wrap: wrap; }

.topic-pill {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--ink);
  transition: all 0.2s;
  background: white;
}

.topic-pill:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ─── AD UNIT PLACEHOLDER ─── */
.ad-unit {
  background: var(--accent-light);
  border: 1px dashed var(--border);
  border-radius: 3px;
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2rem 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── ARTICLE LAYOUT ─── */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem) 5rem;
}

.article-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.article-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ─── ARTICLE BODY ─── */
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 2rem 0 0.6rem;
}

.article-body p {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #2a2820;
  font-weight: 400;
}

.article-body strong { font-weight: 600; color: var(--ink); }

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul, .article-body ol {
  margin: 0.8rem 0 1.2rem 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: 1rem;
  color: #2a2820;
}

/* ─── TOOL CARD ─── */
.tool-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: white;
}

.tool-card-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.tool-icon { font-size: 2rem; }

.tool-name {
  font-family: var(--serif);
  font-size: 1.25rem;
}

.tool-badge {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}

.badge-free { background: #dcfce7; color: #166534; }
.badge-paid { background: #fef3c7; color: #92400e; }
.badge-freemium { background: #ede9fe; color: #5b21b6; }

.tool-verdict {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
}

/* ─── TABLE OF CONTENTS ─── */
.toc {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
}

.toc h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.toc ol { padding-left: 1.2rem; }

.toc li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ─── CALLOUT BOX ─── */
.callout {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.callout strong { color: #0369a1; }

/* ─── COMPARISON TABLE ─── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
}

.compare-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
}

.compare-table th:first-child { width: 35%; }

.compare-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table tr:hover td { background: var(--accent-light); }

.win { color: #166534; font-weight: 500; }
.lose { color: var(--muted); }

/* ─── VERDICT BOX ─── */
.verdict-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.verdict-card {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.verdict-card.winner {
  border-color: var(--accent);
  background: var(--accent-light);
}

.verdict-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.verdict-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
}

.verdict-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* ─── METHOD CARD (earn article) ─── */
.method-card {
  border-left: 3px solid var(--accent);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: white;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.method-num {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.method-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.method-earn {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}

.method-card p { font-size: 0.95rem; }

/* ─── FAQ SECTION ─── */
.faq-section { margin: 3rem 0 2rem; }

.faq-section h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}

.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-q {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.faq-a {
  font-size: 0.95rem;
  color: #2a2820;
  line-height: 1.7;
}

/* ─── AFFILIATE CARD COMPONENT ─── */
.affiliate-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: white;
}

.affiliate-card h4 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.affiliate-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.affiliate-card .disclosure {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem var(--pad);
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

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

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.75rem;
  color: var(--border);
}

/* ─── LEGAL PAGES ─── */
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem clamp(1rem, 4vw, 2rem) 5rem;
}

.legal-wrap h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.legal-wrap h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
}

.legal-wrap p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #2a2820;
  line-height: 1.7;
}

.legal-wrap ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-wrap li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #2a2820;
}

.legal-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text { animation: fadeUp 0.6s ease both; }
.hero-featured { animation: fadeUp 0.6s ease 0.15s both; }
.article-card { animation: fadeUp 0.5s ease both; }
.article-card:nth-child(1) { animation-delay: 0s; }
.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .highlight-strip-inner { grid-template-columns: 1fr; gap: 2rem; }
  .verdict-box { grid-template-columns: 1fr; }
  nav { display: none; }
  .nav-toggle { display: block; }
}

/* Nav open state (toggled via JS) */
@media (max-width: 768px) {
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--pad);
    gap: 1rem;
  }
}
