/* Engadget-inspired article style — big titles, clean block text, no ads */
:root {
  --eng-ink: #1a1a1a;
  --eng-muted: #555;
  --eng-line: #e5e5e5;
  --eng-accent: #0066cc;
  --eng-bg: #ffffff;
  --eng-card: #f7f7f7;
  --eng-max: 720px;
  --eng-wide: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--eng-bg);
  color: var(--eng-ink);
  font: 18px/1.7 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--eng-wide); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--eng-max); margin: 0 auto; padding: 0 24px; }

/* Big title */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--eng-ink);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--eng-ink);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--eng-ink);
}

/* Block text — clean paragraphs with generous spacing */
p {
  margin: 0 0 20px;
  line-height: 1.75;
  color: var(--eng-ink);
  font-size: 18px;
}

.lede, .deck {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--eng-muted);
  margin: 0 0 24px;
  font-weight: 400;
}

/* Article container — centered, readable width */
article, .article, .post, .postbody, .entry-content, .content {
  max-width: var(--eng-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header bar — clean, sticky */
header {
  border-bottom: 1px solid var(--eng-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
}

/* Hero section */
.hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--eng-line);
  margin-bottom: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--eng-accent);
  margin: 0 0 12px;
}

.byauthor, .byline {
  font-size: 0.9rem;
  color: var(--eng-muted);
  margin: 0 0 24px;
}

/* Blockquote style */
blockquote {
  border-left: 4px solid var(--eng-accent);
  margin: 24px 0;
  padding: 12px 24px;
  background: var(--eng-card);
  font-style: italic;
  color: var(--eng-muted);
}

/* Lists */
ul, ol {
  margin: 0 0 20px;
  padding-left: 24px;
  line-height: 1.75;
}

li { margin: 0 0 8px; }

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

/* Code blocks */
pre, code {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.9rem;
  background: var(--eng-card);
  border-radius: 4px;
  padding: 2px 6px;
}

pre {
  padding: 16px;
  overflow-x: auto;
  line-height: 1.5;
}

/* Footer */
footer {
  border-top: 1px solid var(--eng-line);
  padding: 32px 0;
  margin-top: 48px;
  color: var(--eng-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 1.8rem; }
  .wrap, .narrow { padding: 0 16px; }
  article, .article, .post, .postbody, .entry-content, .content {
    padding: 0 16px;
  }
}

/* Hide any ad-related elements */
.ad, .ads, .advertisement, .ad-container, .ad-banner, .sidebar-ad,
[class*="ad-"], [id*="ad-"], .sponsored, .promo {
  display: none !important;
}

/* Mobile navigation */
@media (max-width: 768px) {
  nav.top { display: none; }
  .hamburger { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--eng-ink); }
  .mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--eng-line); padding: 16px; z-index: 40; }
  .mobile-nav.open { display: block; }
  .mobile-nav a { display: block; padding: 8px 0; color: var(--eng-muted); text-decoration: none; }
  .mobile-nav a:hover { color: var(--eng-accent); }
}
@media (min-width: 769px) {
  .hamburger { display: none; }
  .mobile-nav { display: none !important; }
}
