:root {
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --warm: #FEFCE8;
  --ink: #0F172A;
  --body: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --accent: #1D4ED8;
  --accent-dark: #1E40AF;
  --accent-soft: #EFF6FF;
  --green: #0F766E;
  --green-soft: #F0FDFA;
  --max-w: 1140px;
  --read-w: 760px;
  --font-scale: 1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.76;
  font-size: calc(17.5px * var(--font-scale));
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

#readProgress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #1D4ED8, #0EA5E9); z-index: 100;
  transition: width 0.08s linear;
}

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.read-wrap { width: 100%; max-width: var(--read-w); margin: 0 auto; padding: 0 20px; }

/* Header (Non-sticky so 100% of mobile viewport stays unobstructed while reading) */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none !important; margin-right: auto; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1;
}
.brand-name span { color: var(--accent); }
.brand-tag { font-size: 12px; color: var(--muted); margin-top: 2px; }

.nav-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink); font-size: 14.5px; font-weight: 600; white-space: nowrap; padding: 4px 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); text-decoration: none; }

.font-tools {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface); flex-shrink: 0;
}
.font-tools button {
  border: 0; background: transparent; color: var(--ink); font-size: 12.5px; font-weight: 700;
  padding: 4px 10px; cursor: pointer;
}
.font-tools button:hover { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero-section {
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 34px 0 40px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center;
}
.hero-media img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px;
}
.hero-title {
  font-family: Georgia, "Times New Roman", serif; font-size: 33px; line-height: 1.22;
  color: var(--ink); margin-bottom: 14px;
}
.hero-title a { color: var(--ink); }
.hero-title a:hover { color: var(--accent); text-decoration: none; }
.hero-excerpt { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.meta-line { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-primary {
  display: inline-block; margin-top: 16px; background: var(--accent); color: #FFFFFF !important;
  padding: 11px 22px; border-radius: 8px; font-size: 14.5px; font-weight: 700; text-decoration: none !important;
}
.btn-primary:hover { background: var(--accent-dark); }

/* Sections & Grid */
.section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: none; }
.sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; margin-bottom: 22px; flex-wrap: wrap;
}
.sec-head h2 { font-family: Georgia, serif; font-size: 25px; color: var(--ink); }
.sec-head .sec-more { font-size: 14px; font-weight: 700; white-space: nowrap; }

.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px; color: var(--ink);
}
.cat-box:hover { border-color: var(--accent); text-decoration: none; }
.cat-box strong { font-family: Georgia, serif; font-size: 17px; color: var(--ink); }
.cat-box span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.art-card { display: flex; flex-direction: column; }
.art-thumb { display: block; margin-bottom: 12px; overflow: hidden; border-radius: 10px; }
.art-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.25s ease; }
.art-thumb:hover img { transform: scale(1.02); }
.art-cat {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green); margin-bottom: 5px;
}
.art-card h3 { font-family: Georgia, serif; font-size: 19.5px; line-height: 1.32; margin-bottom: 8px; }
.art-card h3 a { color: var(--ink); }
.art-card h3 a:hover { color: var(--accent); text-decoration: none; }
.art-card p { font-size: 15px; color: var(--muted); line-height: 1.58; margin-bottom: 10px; }
.art-meta { font-size: 12.5px; color: var(--muted); margin-top: auto; }

/* Full-Bleed Clean Editorial Article Page */
.breadcrumb {
  font-size: 13.5px; color: var(--muted); padding: 18px 0 8px; display: flex; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: var(--muted); }
.article-header { padding: 6px 0 20px; }
.article-header h1 {
  font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1.2;
  color: var(--ink); margin: 8px 0 14px; font-weight: 800;
}
.article-lead { font-size: 19px; color: #475569; line-height: 1.62; margin-bottom: 16px; }
.article-cover { margin: 0 0 26px; }
.article-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
.cover-caption {
  font-size: 12.5px; color: var(--muted); line-height: 1.5; padding: 8px 2px 0;
}

.article-body p { margin-bottom: 18px; color: var(--body); }
.article-body h2 {
  font-family: Georgia, serif; font-size: 24px; line-height: 1.3; color: var(--ink);
  margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}

/* Borderless clean takeaways */
.takeaways-box {
  background: var(--green-soft); border-left: 4px solid var(--green);
  padding: 18px 22px; margin: 24px 0 28px; border-radius: 0 10px 10px 0;
}
.takeaways-box h2 {
  font-family: Georgia, serif; font-size: 18.5px; color: var(--green);
  margin: 0 0 10px; border: none; padding: 0;
}
.takeaways-box ul { padding-left: 20px; }
.takeaways-box li { margin-bottom: 8px; font-size: 16px; line-height: 1.55; }

/* Clean Native Ad Slot (Read Subdomain Only) */
.ad-wrap { margin: 28px 0; padding: 12px 0; border-top: 1px solid #F1F5F9; border-bottom: 1px solid #F1F5F9; }
.ad-lbl {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #94A3B8;
  text-align: center; margin-bottom: 8px;
}

/* Amazon Gear Section (Read Subdomain Only - Transparent FTC Disclosure) */
.gear-section {
  margin: 34px 0; padding: 22px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
}
.gear-section h2 { font-family: Georgia, serif; font-size: 22px; color: var(--ink); margin-bottom: 6px; border: none; }
.ftc-note { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; font-style: italic; }
.gear-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.gear-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; background: var(--surface); border-radius: 10px; flex-wrap: wrap;
}
.gear-info strong { display: block; font-size: 16px; color: var(--ink); margin-bottom: 3px; }
.gear-info span { font-size: 14px; color: var(--muted); }
.gear-btn {
  display: inline-block; background: #F59E0B; color: #0F172A !important; font-weight: 800;
  font-size: 13.5px; padding: 9px 16px; border-radius: 8px; text-decoration: none !important; white-space: nowrap;
}
.gear-btn:hover { background: #D97706; }

.faq-section { margin: 32px 0; border-top: 1px solid var(--line); padding-top: 24px; }
.faq-section h2 { font-family: Georgia, serif; font-size: 22px; margin-bottom: 14px; border: none; }
.faq-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-item h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.faq-item p { font-size: 15.5px; color: var(--muted); margin: 0; }

.author-box {
  margin: 32px 0 38px; padding: 20px 22px; background: var(--surface); border-radius: 12px;
}
.author-box strong { display: block; font-size: 16px; color: var(--ink); }
.author-role { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.author-box p { font-size: 14.5px; color: var(--muted); margin: 0; }
.editorial-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.55;
}
.editorial-note strong { display: inline; font-size: 13px; color: var(--ink); }

/* Static Pages & Search */
.prose-page { padding: 34px 0 54px; }
.prose-page h1 { font-family: Georgia, serif; font-size: 32px; color: var(--ink); margin-bottom: 16px; }
.prose-page h2 { font-family: Georgia, serif; font-size: 21px; color: var(--ink); margin: 26px 0 10px; }
.prose-page p { margin-bottom: 15px; }
.prose-page ul { padding-left: 22px; margin-bottom: 16px; }
.prose-page li { margin-bottom: 8px; }

.search-bar { display: flex; gap: 10px; margin: 18px 0 28px; }
.search-bar input {
  flex: 1; padding: 12px 15px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 8px; background: #FFFFFF;
}

/* Footer */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 32px; margin-top: 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.footer-grid h4 { font-family: Georgia, serif; font-size: 16px; margin-bottom: 10px; color: var(--ink); }
.footer-grid p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 14px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cat-strip, .art-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 10px; padding: 12px 0 10px; }
  .brand { order: 1; }
  .font-tools { order: 2; }
  .main-nav {
    order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 14px; padding-bottom: 2px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .art-grid, .cat-strip { grid-template-columns: 1fr; }
  .hero-title, .article-header h1 { font-size: 27px; }
  .article-lead { font-size: 17px; }
  .brand-tag { display: none; }
  /* Full-bleed edge-to-edge hero image on mobile */
  .article-cover { margin-left: -20px; margin-right: -20px; }
  .article-cover img { border-radius: 0; }
  .cover-caption { padding: 8px 20px 0; }
  .takeaways-box { margin-left: -20px; margin-right: -20px; border-radius: 0; }
}