/* Shared stylesheet for Digital Horizon client blogs.
   Theme per client by overriding --accent and --accent-ink in an
   inline <style> block in base.njk, sourced from site.json. */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Public+Sans:wght@400;500;600&display=swap');

:root {
  --paper: #faf7f1;
  --ink: #211d18;
  --ink-soft: #6b655c;
  --rule: #dedcd2;
  --accent: #35506b;
  --accent-ink: #223547;
  --max-w: 40rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

header.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 1.5rem;
}

header.site-header .wrap,
main.wrap,
footer.site-footer .wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

header.site-header a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

header.site-header a::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: var(--accent);
  flex: none;
}

main.wrap {
  padding: 2.5rem 1.5rem 3.5rem;
}

.byline {
  font-family: 'Public Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  display: inline-block;
  padding: 0.3rem 0.7rem;
  margin: 0 0 2rem;
}

h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.05;
  letter-spacing: 0.005em;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

article h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.55rem;
  color: var(--ink);
  margin: 2.6rem 0 1rem;
  padding-top: 0.9rem;
  background-image: repeating-linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) 10px,
    transparent 10px,
    transparent 22px
  );
  background-position: top left;
  background-size: 100% 4px;
  background-repeat: no-repeat;
}

article p {
  margin: 0 0 1.2rem;
  color: var(--ink);
}

article ul {
  padding-left: 1.2rem;
}

article li {
  margin-bottom: 0.4rem;
}

a { color: var(--accent-ink); }
a:hover { color: var(--ink); }

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

footer.site-footer .legal {
  margin: 0.4rem 0 0;
  letter-spacing: 0.01em;
}

@media (max-width: 30rem) {
  h1 { font-size: 2rem; }
  article h2 { font-size: 1.3rem; }
  body { font-size: 16px; }
}
