/* ═══════════════════════════════════════════════════════════════════════════
   LDR CyberSecurity — all styles. No JavaScript, no external requests.
   Brand colors live in :root below. Change them there, not inline.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy:      #0b1120;   /* headers, hero, footer                     */
  --navy-soft: #16223b;   /* raised surfaces on navy                   */
  --teal:      #00c2a8;   /* primary action + accents                  */
  --teal-ink:  #00705f;   /* teal that passes contrast on white        */
  --red:       #c8102e;   /* Texas red — threat watch only, used spare */
  --ink:       #16202f;   /* body text                                 */
  --muted:     #5b6a80;   /* secondary text                            */
  --line:      #dfe5ee;   /* hairlines                                 */
  --tint:      #f5f7fa;   /* alternating section background             */

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --gap: 84px;            /* vertical rhythm between sections          */
  --radius: 6px;
  --measure: 66ch;        /* comfortable reading width                 */
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -.015em; max-width: 24ch; }
h3 { font-size: 1.1rem; letter-spacing: -.005em; }
p  { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--teal-ink); }
a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px;
}

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px;
  background: #fff; color: var(--ink); padding: 10px 16px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Small type helpers ──────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--teal-ink);
  margin: 0 0 14px;
}
.eyebrow-alert { color: var(--red); }

.link-arrow {
  font-size: .9rem; font-weight: 600; color: var(--teal-ink);
  text-decoration: none; white-space: nowrap;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--teal); color: #04241f;
  font-family: var(--sans); font-size: .95rem; font-weight: 700;
  text-decoration: none; letter-spacing: .01em;
  padding: 13px 26px; border-radius: var(--radius);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: #17d8bd; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 72px;
}
.brand img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: .925rem; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--teal-ink); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(120% 90% at 12% 0%, #1b2b4d 0%, transparent 60%),
    var(--navy);
  color: #eef2f8;
  border-bottom: 3px solid var(--teal);
}
.hero-inner { padding: 84px 24px 56px; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { color: #fff; max-width: 20ch; }
.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.2rem);
  color: #c3cede; max-width: 54ch; margin-bottom: 32px;
}
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; max-width: none; }
.hero .link-arrow { color: var(--teal); }

.facts {
  list-style: none; margin: 52px 0 0; padding: 24px 0 0;
  border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.facts li { font-size: .875rem; color: #93a3ba; line-height: 1.45; }
.facts strong {
  display: block; font-family: var(--serif); font-size: 1.5rem;
  font-weight: 600; color: #fff; margin-bottom: 4px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: var(--gap) 0; }
.section-alt { background: var(--tint); border-block: 1px solid var(--line); }

/* ── Threat watch ────────────────────────────────────────────────────────── */
.watch {
  list-style: none; margin: 40px 0 0; padding: 0;
  max-width: 800px;
}
.watch li {
  padding: 24px 0 24px 26px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--red);
}
.watch li:last-child { border-bottom: 1px solid var(--line); }
.watch-date {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  margin-bottom: 6px;
}
.watch h3 { margin-bottom: .35em; max-width: none; }
.watch p { margin-bottom: .5em; color: #354354; max-width: none; }
.watch-src { font-size: .8rem; color: var(--muted); }

.watch-note {
  margin: 32px 0 0; padding: 18px 22px;
  background: var(--tint); border-left: 3px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem; color: #354354; max-width: 800px;
}
.watch-note em { color: var(--muted); font-style: normal; font-size: .85rem; }

/* ── Card grids ──────────────────────────────────────────────────────────── */
.grid-4, .grid-3, .grid-posts { display: grid; gap: 24px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
/* Posts: as many columns as fit — handles any number of posts. */
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* ── How it works (numbered steps) ───────────────────────────────────────── */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--serif); font-weight: 600;
}
.steps p { font-size: .95rem; color: #46536a; margin: 0; }

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  border-top: 3px solid var(--teal);
}
.card h3 { margin-bottom: .5em; }
.card p { font-size: .95rem; color: #46536a; margin: 0; }

/* ── Security poverty line figure ────────────────────────────────────────── */
.line-fig {
  margin: 56px 0 0; padding: 32px; max-width: 760px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.line-side { padding: 4px 0; }
.line-side p { margin: 0; font-size: 1rem; color: #354354; max-width: 60ch; }
.line-tag {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 6px;
}
.line-tag-low { color: var(--red); }

.line-rule {
  position: relative; margin: 22px 0;
  border-top: 2px dashed var(--navy);
}
.line-rule span {
  position: absolute; left: 0; top: -.8em;
  background: #fff; padding-right: 14px;
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}

.line-fig figcaption {
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.1rem; color: var(--ink);
  max-width: 62ch;
}

/* ── Blog post cards ─────────────────────────────────────────────────────── */
.post {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; text-decoration: none; color: inherit;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
}
.post:hover { border-color: var(--teal); transform: translateY(-2px); }
.post-date {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.post h3 { margin-bottom: .5em; }
.post p { font-size: .95rem; color: #46536a; flex: 1; margin-bottom: 16px; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact { background: var(--navy); color: #eef2f8; padding: var(--gap) 0; }
.contact h2 { color: #fff; }
.contact p { color: #c3cede; max-width: 58ch; }
.contact-alt { font-size: .875rem; color: #93a3ba; margin: 22px 0 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: #060a13; color: #7f8da0; padding: 40px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.footer-mark { height: 34px; width: auto; margin-bottom: 8px; opacity: .9; }
.footer-copy, .footer-tag { margin: 0; font-size: .8rem; max-width: none; }
.footer-tag { color: #5e6b7d; }

/* ── Blog post pages ─────────────────────────────────────────────────────── */
.article { padding: 64px 0 var(--gap); }
.article-inner { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.article h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); max-width: 26ch; }
.article-meta {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}
.article-body { font-size: 1.075rem; }
.article-body h2 {
  font-size: 1.35rem; margin-top: 2em; max-width: none;
}
.article-body ul, .article-body ol { padding-left: 22px; max-width: var(--measure); }
.article-body li { margin-bottom: .5em; }
.article-body blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--teal);
  font-family: var(--serif); font-size: 1.15rem; color: #354354;
}
.article-back { display: inline-block; margin-bottom: 26px; font-size: .9rem; }

.article-cta {
  margin-top: 48px; padding: 28px 30px;
  background: var(--tint); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.article-cta h2 { margin-top: 0; font-size: 1.25rem; }
.article-cta p { font-size: .975rem; }
.article-cta p:last-child { margin-bottom: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gap: 60px; }
  .nav a:not(.btn) { display: none; }      /* mobile: keep only the CTA */
  .brand img { height: 36px; }
  .hero-inner { padding: 60px 24px 52px; }
  .facts { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .line-fig { padding: 24px 22px; }
  .btn, .btn-lg { width: 100%; text-align: center; }
  .btn-sm { width: auto; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-cta .link-arrow { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .post { transition: none; }
  .btn:hover, .post:hover { transform: none; }
}
