
/* ============================================================
   Effective AI Tools — Direct Static Design System
   Premium editorial publication · Warm · Magazine-feel
   Mobile-first · Strong typography · No card grids
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Warm editorial palette */
  --ink: #1a1614;
  --ink-secondary: #4a4440;
  --ink-muted: #8a8480;
  --ink-faint: #b8b2ad;
  
  --paper: #faf8f5;
  --paper-warm: #f5f0ea;
  --paper-deep: #ede7df;
  --white: #ffffff;
  
  /* Accent: warm coral-vermillion */
  --accent: #e05a33;
  --accent-hover: #c94a26;
  --accent-light: #fef0eb;
  --accent-glow: rgba(224, 90, 51, 0.08);
  
  /* Secondary: deep teal */
  --teal: #1a7a6d;
  --teal-light: #e8f5f2;
  
  /* Neutral charcoal (not navy) */
  --charcoal: #2a2521;
  --charcoal-soft: #3d3731;
  
  /* System */
  --rule: #ddd5cc;
  --rule-light: #ebe5dd;
  --shadow-subtle: 0 1px 2px rgba(26,22,20,0.04);
  --shadow-card: 0 2px 8px rgba(26,22,20,0.06), 0 0 1px rgba(26,22,20,0.08);
  --shadow-lifted: 0 8px 30px rgba(26,22,20,0.1), 0 0 1px rgba(26,22,20,0.1);
  
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  
  --max-w: 1140px;
  --content-w: 720px;
  --gap: clamp(1rem, 3vw, 2rem);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }
ul, ol { padding-left: 1.25em; }
hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 400; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.25; }
h4 { font-size: 1.1rem; line-height: 1.35; }

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.label--teal { color: var(--teal); }
.label--muted { color: var(--ink-muted); }

/* === Layout containers === */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }
.wrap--narrow { max-width: var(--content-w); }

/* === Top banner === */
.banner {
  background: var(--charcoal);
  color: var(--paper-warm);
  font-size: 0.8rem;
  padding: 0.45rem var(--gap);
  text-align: center;
  letter-spacing: 0.01em;
}
.banner a { color: var(--accent-light); }
.banner strong { font-weight: 600; }

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.site-logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  border-radius: 8px;
}
.site-logo__text {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.site-logo__text small {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: -2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-secondary);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover {
  background: var(--paper-warm);
  color: var(--ink);
  text-decoration: none;
}
.site-nav a.active {
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: var(--shadow-lifted);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.75rem var(--gap);
    border-radius: 0;
  }
}

/* === Hero — editorial magazine style === */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.hero__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.hero__kicker .label { margin: 0; }
.hero__kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.hero h1 {
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-secondary);
  max-width: 52ch;
  line-height: 1.6;
  margin-top: 1rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.3;
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 90, 51, 0.25);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn--ghost:hover {
  background: var(--paper-warm);
  border-color: var(--ink-faint);
  text-decoration: none;
  color: var(--ink);
}

/* === Section rhythm === */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.section--ruled {
  border-top: 1px solid var(--rule);
}
.section--warm {
  background: var(--paper-warm);
}
.section--charcoal {
  background: var(--charcoal);
  color: var(--paper-warm);
}
.section--charcoal h2, .section--charcoal h3 { color: var(--paper); }
.section--charcoal .label { color: var(--accent); opacity: 0.9; }
.section--charcoal a { color: var(--accent-light); }

.section__header {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.section__header .label {
  margin-bottom: 0.5rem;
  display: block;
}
.section__header p {
  color: var(--ink-secondary);
  max-width: 55ch;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* === Use-case blocks (editorial, not cards) === */
.use-cases {
  display: grid;
  gap: 0;
}
.use-case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: start;
}
.use-case:last-child { border-bottom: none; }
.use-case__icon {
  font-size: 1.8rem;
  line-height: 1;
  padding-top: 0.1rem;
}
.use-case__body h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.use-case__body p {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.6rem;
}
.use-case__link {
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.use-case__link::after { content: ' →'; }

/* === Editorial article listing (not card grid) === */
.story-list {
  display: grid;
  gap: 0;
}
.story {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule-light);
  align-items: start;
}
.story:first-child { padding-top: 0; }
.story:last-child { border-bottom: none; }
.story__content h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin-bottom: 0.35rem;
}
.story__content h3 a {
  color: var(--ink);
  transition: color 0.15s;
}
.story__content h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}
.story__content p {
  color: var(--ink-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.story__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}
.story__meta .cat-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.story__reading-time {
  font-size: 0.8rem;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 0.2rem;
}

@media (max-width: 640px) {
  .story {
    grid-template-columns: 1fr;
  }
  .story__reading-time { display: none; }
}

/* === Featured article — large editorial treatment === */
.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2.5rem 0 2rem;
  align-items: center;
}
.featured__visual {
  aspect-ratio: 16/10;
  background: var(--paper-deep);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured__body .label { margin-bottom: 0.75rem; display: block; }
.featured__body h2 {
  margin-bottom: 0.75rem;
}
.featured__body h2 a { color: var(--ink); }
.featured__body h2 a:hover { color: var(--accent); text-decoration: none; }
.featured__body p {
  color: var(--ink-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.featured__meta {
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .featured {
    grid-template-columns: 1fr;
  }
  .featured__visual {
    aspect-ratio: 16/9;
  }
}

/* === Two-column split === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

/* === Trust strip === */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  padding: 2rem 0;
}
.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  max-width: 28ch;
}
.trust-strip__check {
  color: var(--teal);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* === Newsletter form === */
.newsletter {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.newsletter h3 {
  margin-bottom: 0.5rem;
}
.newsletter p {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.newsletter__form {
  display: flex;
  gap: 0.5rem;
}
.newsletter__form input[type="email"] {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter__form input[type="email"]:focus {
  border-color: var(--accent);
}
.newsletter__form button {
  white-space: nowrap;
}
.newsletter__fine {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.6rem;
}
.newsletter__msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
@media (max-width: 480px) {
  .newsletter__form {
    flex-direction: column;
  }
}

/* === Ad slot === */
.ad-slot {
  border: 1px dashed var(--rule);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.78rem;
  background: var(--paper-warm);
}
.ad-slot span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === Article page === */
.article-header {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.article-header .label { margin-bottom: 0.75rem; display: block; }
.article-header h1 { margin-bottom: 1rem; max-width: 22ch; }
.article-header__desc {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-secondary);
  max-width: 60ch;
  line-height: 1.55;
}
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.article-header__meta strong { color: var(--ink-secondary); font-weight: 600; }

.article-body {
  padding: clamp(2rem, 4vw, 3rem) 0;
  max-width: var(--content-w);
  margin: 0 auto;
}
.article-body h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 2.5rem 0 1rem; }
.article-body h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--rule-light); }
.article-body h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 2rem 0 0.5rem; }
.article-body p { margin-bottom: 1.15rem; font-size: 1.02rem; line-height: 1.72; }
.article-body ul, .article-body ol { margin-bottom: 1.15rem; }
.article-body li { margin-bottom: 0.4rem; line-height: 1.65; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  background: var(--accent-glow);
  border-radius: 0 8px 8px 0;
  color: var(--ink-secondary);
}
.article-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-warm);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.article-body pre {
  background: var(--charcoal);
  color: var(--paper-warm);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.88rem;
  line-height: 1.55;
}
.article-body pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.article-body hr {
  margin: 2.5rem 0;
}
.article-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body img {
  border-radius: 10px;
  margin: 1.5rem 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule-light);
}
.article-body th {
  font-weight: 600;
  color: var(--ink);
  border-bottom-color: var(--rule);
}

/* Affiliate disclosure inline */
.affiliate-notice {
  background: var(--teal-light);
  border-left: 3px solid var(--teal);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--ink-secondary);
  margin-bottom: 1.5rem;
}

/* === Category page === */
.category-header {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--rule);
}

/* === Footer === */
.site-footer {
  background: var(--charcoal);
  color: var(--paper-warm);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.footer__brand p {
  font-size: 0.92rem;
  color: rgba(245,240,234,0.7);
  max-width: 30ch;
  line-height: 1.55;
  margin-top: 0.75rem;
}
.footer__brand h2 {
  font-size: 1.3rem;
  color: var(--paper);
}
.footer__col h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245,240,234,0.5);
  margin-bottom: 1rem;
}
.footer__col ul {
  list-style: none;
  padding: 0;
}
.footer__col li { margin-bottom: 0.55rem; }
.footer__col a {
  color: rgba(245,240,234,0.8);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer__col a:hover { color: var(--paper); text-decoration: none; }

.footer__bottom {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.25rem 0;
  border-top: 1px solid rgba(245,240,234,0.1);
  font-size: 0.78rem;
  color: rgba(245,240,234,0.45);
}
.footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer__badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(245,240,234,0.15);
  border-radius: 4px;
  font-size: 0.7rem;
  color: rgba(245,240,234,0.6);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* === Page transitions & micro-interactions === */
@media (prefers-reduced-motion: no-preference) {
  .story { transition: background 0.15s ease; }
  .story:hover { background: var(--accent-glow); margin-left: -1rem; margin-right: -1rem; padding-left: 1rem; padding-right: 1rem; border-radius: 8px; }
}

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* === Print === */
@media print {
  .site-header, .site-footer, .banner, .newsletter, .ad-slot, .nav-toggle { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .article-body { max-width: 100%; }
}
