/*
Theme Name: DataBank 2026
Theme URI:
Author: DataBank
Description: Custom WordPress theme for databank.com, replacing Divi. No Divi, no ACF — hand-built templates and token-driven CSS. See CLAUDE.md and technical-project-plan.md in the project root.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: databank-2026
*/

/* Minimal reset — component styling lives in assets/css/components.css and layouts.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p {
  margin: 0;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
}

/* Inline text links only — always underlined, in the link's own color
   (never colored independently of the text it sits under). Hover shifts
   to accent-ink and thickens the rule; it never appears only on hover. */
a {
  color: var(--text-link);
  text-decoration-thickness: var(--link-underline-weight);
  text-underline-offset: var(--link-underline-offset);
}

a:hover {
  color: var(--accent-ink);
  text-decoration-thickness: calc(var(--link-underline-weight) * 2);
}

/* Dark mode: hovered links read navy-light rather than the remapped
   accent-ink, which is itself navy-light here — kept as an explicit rule
   since nav/footer links use rgba(255,255,255,.72) directly rather than
   var(--text-link), so they need their own hover color named. */
[data-mode="dark"] a:hover {
  color: var(--color-lightblue);
}

/* Dark mode icon stroke bump: "skeleton inverts navy → white, stroke
   steps up a tenth of a point" — keyed on the literal stroke-width each
   icon file already carries as a presentation attribute, so no icon
   markup needs to change for this to apply. */
[data-mode="dark"] svg[stroke-width="1.0"] { stroke-width: 1.1; }
[data-mode="dark"] svg[stroke-width="1.25"] { stroke-width: 1.35; }
[data-mode="dark"] svg[stroke-width="1.5"] { stroke-width: 1.6; }
[data-mode="dark"] svg[stroke-width="1.75"] { stroke-width: 1.85; }
