/* ── PasswordGenerator.ca article stylesheet ── */
/* Matches the visual design system of index.html */

:root {
  --red: #C62828;
  --red-hover: #b71c1c;
  --red-glow: rgba(198,40,40,0.18);
  --white: #FFFFFF;
  --page: #F7F6F3;
  --surface: #FFFFFF;
  --border: #E4E2DC;
  --border-strong: #CCCAB8;
  --ink: #18180F;
  --ink-2: #3A3A2E;
  --ink-3: #7A7A68;
  --ink-4: #AEAE9A;
  --green: #1B6B3A;
  --amber: #B45309;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
}
.nav-inner {
  max-width: 780px; margin: 0 auto;
  height: 54px; display: flex;
  align-items: center; justify-content: space-between;
}
.logo {
  font-size: 13px; font-weight: 700;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 26px; height: 26px;
  background: var(--red);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.lang-toggle {
  display: flex; gap: 3px;
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 3px;
}
.lang-btn {
  background: none; border: none;
  border-radius: 5px; padding: 4px 10px;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.lang-btn.active { background: white; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ARTICLE HEADER */
.article-header {
  background: var(--ink);
  padding: 48px 1.25rem 56px;
  color: white;
}
.header-inner {
  max-width: 780px; margin: 0 auto;
}
.crumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  text-decoration: none;
}
.crumb:hover { color: rgba(255,255,255,0.8); }
.crumb-tag {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; padding: 4px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
  display: inline-block;
}
.crumb-tag .accent { color: #fbbf24; }
h1 {
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  font-weight: 700; line-height: 1.18;
  letter-spacing: -0.025em;
  color: white; margin-bottom: 14px;
}
.article-deck {
  font-size: 16px; color: rgba(255,255,255,0.6);
  max-width: 640px; line-height: 1.6;
  font-weight: 400;
}
.article-meta {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: rgba(255,255,255,0.4);
  font-weight: 500;
}
.article-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* TLDR */
.tldr {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 32px 0 28px;
}
.tldr-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
  display: inline-block;
}
.tldr ul { list-style: none; padding: 0; }
.tldr li {
  position: relative;
  padding-left: 18px; margin-bottom: 7px;
  font-size: 14px; color: var(--ink-2);
  line-height: 1.55;
}
.tldr li:last-child { margin-bottom: 0; }
.tldr li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* ARTICLE BODY */
.article-body {
  background: var(--page);
  padding: 8px 1.25rem 56px;
}
.body-inner {
  max-width: 720px; margin: 0 auto;
}
.article-body h2 {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.25; margin: 38px 0 14px; color: var(--ink);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700; letter-spacing: -0.01em;
  margin: 26px 0 10px; color: var(--ink);
}
.article-body p {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-2); margin-bottom: 16px;
}
.article-body p strong { color: var(--ink); font-weight: 600; }
.article-body a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,40,40,0.3);
  transition: border-color 0.15s;
}
.article-body a:hover { border-bottom-color: var(--red); }
.article-body ul, .article-body ol {
  margin: 0 0 18px 0;
  padding-left: 22px;
}
.article-body li {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-2); margin-bottom: 7px;
}
.article-body li::marker { color: var(--ink-4); }
.article-body code {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--ink);
}
.article-body blockquote {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--ink-4);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px; color: var(--ink-2);
  font-style: italic;
}

/* CALLOUT BOX */
.callout {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}
.callout-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.callout p { margin-bottom: 0; font-size: 15px; }
.callout-ca {
  border-left: 3px solid var(--red);
}
.callout-ca .callout-label::before {
  content: "🍁 ";
}

/* STAT BLOCK */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
}
.stat-num {
  font-size: 1.6rem; font-weight: 700;
  color: var(--ink); letter-spacing: -0.02em;
  line-height: 1.05; margin-bottom: 4px;
}
.stat-lbl {
  font-size: 12px; color: var(--ink-3);
  line-height: 1.45;
}

/* TRY GENERATOR CTA */
.try-cta {
  background: var(--ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin: 32px 0 24px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.try-cta-text { flex: 1; min-width: 220px; }
.try-cta-text .lbl {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fbbf24; margin-bottom: 4px;
}
.try-cta-text p {
  color: rgba(255,255,255,0.7); margin: 0; font-size: 14px;
  line-height: 1.5;
}
.try-cta-text strong { color: white; font-weight: 600; }
.try-btn {
  background: var(--red); color: white;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-weight: 600; font-size: 13.5px;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.try-btn:hover { background: var(--red-hover); transform: translateY(-1px); box-shadow: 0 3px 10px var(--red-glow); }

/* RELATED */
.related {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px 1.25rem;
}
.related-inner {
  max-width: 780px; margin: 0 auto;
}
.related-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.related h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.related-card {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  text-decoration: none;
  transition: all 0.15s;
  display: block;
}
.related-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.related-card .num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px;
}
.related-card .ttl {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px; line-height: 1.3;
}
.related-card .desc {
  font-size: 13px; color: var(--ink-3); line-height: 1.55;
}

/* FOOTER */
footer {
  background: var(--ink); color: rgba(255,255,255,0.4);
  text-align: center; padding: 40px 1.25rem 36px;
  font-size: 12.5px;
}
.footer-logo {
  font-size: 13px; font-weight: 700; color: white;
  margin-bottom: 10px; display: flex;
  align-items: center; justify-content: center; gap: 7px;
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 20px; margin: 14px 0 20px;
}
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,0.75); }
.footer-source {
  margin-top: 18px;
  font-size: 11px; color: rgba(255,255,255,0.28);
  max-width: 580px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.footer-source a { color: rgba(255,255,255,0.45); }

/* LANG DISPLAY (article pages are single-language; helper kept for nav) */
[data-show="hidden"] { display: none; }

/* MOBILE */
@media (max-width: 580px) {
  .article-header { padding: 36px 1.25rem 42px; }
  .article-body p, .article-body li { font-size: 15.5px; }
  .body-inner { padding: 0; }
  .try-cta { padding: 20px 18px; }
}
