/* ============================================================
   Home Energy & Independence — Shared Base Styles
   Design tokens + typography shared by the advertorial and the
   small support pages (privacy, terms, disclosure, contact).
   ============================================================ */

:root {
  /* Color tokens */
  --paper:        #ffffff;
  --paper-warm:   #f9f8f4;
  --ink:          #171b20;
  --ink-soft:     #333a42;
  --muted:        #5c646e;
  --rule:         #e7e3da;
  --rule-strong:  #d8d2c4;
  --green:        #1c6b46;
  --green-deep:   #124d31;
  --green-ink:    #0e3a25;
  --amber:        #8a5a00;
  --on-accent:    #ffffff;

  /* Typography */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing rhythm (8px base) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;

  /* Measure / layout */
  --measure:   680px;
  --guttermob: 20px;
  --gutterdst: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

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

a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: rgba(28, 107, 70, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--green-deep);
  text-decoration-color: var(--green-deep);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================
   Shared page frame for support pages
   ============================================================ */

.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

.support-page h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 24px;
  text-wrap: balance;
}

.support-page h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 32px 0 12px;
}

.support-page p,
.support-page li {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.support-page ul {
  padding-left: 22px;
}

.support-page .back-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 0.95rem;
}

.support-page .updated {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
  border-top: 1px solid var(--rule);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 14px;
}

.foot a {
  color: var(--muted);
  font-size: 0.85rem;
}

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