/* ============================================================
   Handled Tax. Brand Tokens and Typography
   Accountability Tax Services PLLC
   ============================================================ */

:root {
  /* Primary brand */
  --brand-teal-deep: #2D4A52;
  --brand-teal: #3B6670;
  --brand-teal-light: #5C8591;

  /* Warm tones */
  --brand-cream: #F5E6C8;
  --brand-cream-light: #FAF3E3;
  --brand-paper: #FDFBF5;

  /* Accents */
  --brand-burgundy: #8B3545;
  --brand-burgundy-dark: #6B2635;
  --brand-gold: #D4A574;
  --brand-gold-light: #E8C590;

  /* Neutrals */
  --brand-ink: #1C2B30;
  --brand-stone-50: #FAFAF7;
  --brand-stone-200: #E7E5DD;
  --brand-stone-400: #A8A89F;
  --brand-stone-600: #5A5C55;
  --brand-stone-800: #2E3330;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;

  /* Spacing / motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(28, 43, 48, 0.04), 0 8px 24px rgba(28, 43, 48, 0.06);
  --shadow-raised: 0 2px 6px rgba(28, 43, 48, 0.06), 0 20px 48px rgba(28, 43, 48, 0.10);
}

/* ---------- base ---------- */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--brand-ink);
  background: var(--brand-paper);
  font-weight: 400;
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--brand-teal-deep);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4.25rem); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }

p { margin: 0 0 1em 0; color: var(--brand-stone-800); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-teal-deep); text-decoration: none; transition: color 180ms var(--ease-out); }
a:hover { color: var(--brand-burgundy); }

em, .accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
}

/* ---------- selection ---------- */
::selection { background: var(--brand-gold); color: var(--brand-teal-deep); }

/* ---------- focus ---------- */
:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- container ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

/* ---------- surfaces ---------- */
.surface-paper { background: var(--brand-paper); }
.surface-cream { background: var(--brand-cream-light); }
.surface-teal  { background: var(--brand-teal); color: var(--brand-cream-light); }
.surface-teal-deep { background: var(--brand-teal-deep); color: var(--brand-cream-light); }
.surface-teal  h1, .surface-teal  h2, .surface-teal  h3,
.surface-teal-deep h1, .surface-teal-deep h2, .surface-teal-deep h3 { color: var(--brand-cream-light); }

/* ---------- sunburst + noise ---------- */
.bg-sunburst {
  background-color: var(--brand-cream-light);
  background-image:
    repeating-conic-gradient(
      from 0deg at 50% 0%,
      rgba(59, 102, 112, 0.05) 0deg 6deg,
      transparent 6deg 12deg
    );
}

.bg-noise {
  position: relative;
}
.bg-noise::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.17 0 0 0 0 0.19 0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
}

/* ---------- utility: divider ---------- */
.rule-gold {
  display: inline-block; width: 3rem; height: 2px;
  background: var(--brand-gold);
  margin: 0 0 1rem 0;
}

/* ---------- eyebrow ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-burgundy);
}
.surface-teal .eyebrow, .surface-teal-deep .eyebrow { color: var(--brand-gold); }

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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