/* Ilm Tech — clean, fast, mobile-first stylesheet. No external assets. */

:root {
  --bg: #f7f9fc;
  --card: #ffffff;
  --ink: #1c2433;
  --muted: #5b6b82;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --navy: #0f1f3d;
  --border: #e3e9f2;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 1.1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .5px;
  color: #fff;
  text-decoration: none;
}

.site-name span { color: #7dd3fc; }

.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.site-nav a {
  color: #dbe4f3;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
}

.site-nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main.container { padding-top: 2rem; padding-bottom: 3rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.hero h1 { font-size: 2.4rem; margin-bottom: .4rem; }

.hero .tagline {
  font-size: 1.15rem;
  color: #bfdbfe;
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero p.intro {
  max-width: 640px;
  margin: 0 auto;
  color: #e2e8f0;
  font-size: 1.02rem;
}

/* ---------- Article grid ---------- */
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--brand);
  display: inline-block;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, .12);
}

.card h2 { font-size: 1.1rem; margin-bottom: .5rem; line-height: 1.45; }

.card h2 a { color: var(--ink); text-decoration: none; }

.card h2 a:hover { color: var(--brand); }

.card p { color: var(--muted); font-size: .93rem; flex: 1; }

.card .read-more {
  margin-top: .8rem;
  color: var(--brand);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}

.card .read-more:hover { text-decoration: underline; }

/* ---------- Prose pages ---------- */
.prose {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
  max-width: 800px;
}

.prose h1 { font-size: 1.9rem; margin-bottom: 1rem; }

.prose h2 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; color: var(--navy); }

.prose p, .prose li { margin-bottom: .9rem; color: #334155; }

.prose ul, .prose ol { padding-left: 1.5rem; }

.prose a { color: var(--brand); }

/* ---------- Forms ---------- */
.contact-form { margin-top: 1.5rem; display: grid; gap: 1rem; max-width: 560px; }

.contact-form label { font-weight: 600; font-size: .95rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .8rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}

.contact-form button:hover { background: var(--brand-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }

.footer-links a { color: #94a3b8; text-decoration: none; font-size: .9rem; }

.footer-links a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 2rem 1.25rem; }
  .hero h1 { font-size: 1.8rem; }
  .prose { padding: 1.4rem; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== QA fix 2026-10-02: article-page element + missing class styles ===== */
header:not(.site-header) { background: var(--navy); color: #fff; padding: 1.1rem 1.25rem; }
header:not(.site-header) .site-name a { color: #fff; text-decoration: none; }
header:not(.site-header) nav { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
header:not(.site-header) nav a { color: #cbd5e1; font-size: 0.95rem; text-decoration: none; }
header:not(.site-header) nav a:hover { color: #fff; }
footer:not(.site-footer) { background: var(--navy); color: #cbd5e1; padding: 2rem 1.25rem; margin-top: 2rem; font-size: 0.92rem; }
footer:not(.site-footer) nav { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer:not(.site-footer) nav a { color: #cbd5e1; }
article:not(.card) { max-width: 920px; margin: 0 auto; padding: 2.5rem 1.25rem 1rem; }
.byline { color: var(--muted); font-size: 0.95rem; margin: 0 0 1.25rem; }
.author-bio { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 2.2rem 0 1rem; font-size: 0.95rem; color: var(--muted); }

img { max-width: 100%; height: auto; }

/* ---------- Brand logo (SEO/branding pass 2026-10-02) ---------- */
.site-name.brand { display: inline-flex; align-items: center; gap: .55rem; }
.brand-logo { width: 36px; height: 36px; display: block; flex: none; }

/* Article header logo lockup (QA 2026-10-02) */
header:not(.site-header) .site-name a { display: inline-flex; align-items: center; gap: .55rem; }
header:not(.site-header) .brand-logo { width: 32px; height: 32px; }
