/*
Theme Name: Even Keel
Theme URI: https://example.com/
Author: Mubashar Hassan
Author URI: https://example.com/
Description: Editorial WordPress theme for US personal finance publishing. Native custom post types for Insurance, Funds & Investing, Savings and Money Guides, with financial-product schema, an at-a-glance statement layout, YMYL editorial controls and a bundled starter content library. The homepage is a plain chronological index of every article.
Version: 2.1.1
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: evenkeel
Tags: finance, personal-finance, insurance, investing, blog, custom-post-types, seo-optimized
*/

/* ==========================================================================
   Design tokens
   The palette is semantic, not decorative: green marks money gained, rust
   marks money that leaves, amber marks a caution the reader should not skim.
   ========================================================================== */

:root {
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-text: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ink: #16211d;
  --ink-soft: #3d4a45;
  --ink-faint: #6d7873;
  --paper: #fafaf8;
  --paper-sunk: #f2f3ef;
  --surface: #ffffff;
  --rule: #d8dbd4;
  --rule-strong: #b6bcb4;

  --asset: #1b6b4c;
  --asset-wash: #edf5f0;
  --liability: #a33a22;
  --liability-wash: #fbf0ec;
  --flag: #c2872b;
  --flag-wash: #fcf6e9;

  --radius: 3px;
  --radius-lg: 6px;

  --measure: 68ch;
  --shell: 1180px;
  --rail: 300px;

  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  --step-5: clamp(2.4rem, 1.6rem + 3vw, 3.6rem);

  --gap-1: 0.5rem;
  --gap-2: 0.875rem;
  --gap-3: 1.5rem;
  --gap-4: 2.5rem;
  --gap-5: 4rem;
  --gap-6: 6rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

/* Headings ---------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.012em;
}

h1 { font-size: var(--step-4); line-height: 1.12; }
h2 { font-size: var(--step-3); margin-top: 2.2em; }
h3 { font-size: var(--step-2); margin-top: 1.8em; }
h4 { font-size: var(--step-1); margin-top: 1.6em; font-weight: 700; }

p { margin: 0 0 1.15em; }

a {
  color: var(--asset);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(27, 107, 76, 0.4);
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

a:hover { text-decoration-color: currentColor; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--asset);
  outline-offset: 2px;
  border-radius: var(--radius);
}

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

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--gap-4) 0;
}

blockquote {
  margin: 1.8em 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--rule-strong);
  color: var(--ink-soft);
  font-style: normal;
}

code {
  font-size: 0.92em;
  background: var(--paper-sunk);
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
}

ul, ol { margin: 0 0 1.15em; padding-left: 1.25rem; }
li { margin-bottom: 0.4em; }

small { font-size: 0.875rem; color: var(--ink-faint); }

/* Layout shells ----------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.shell-narrow {
  width: 100%;
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }
