/* =========================================================================
   OverView — 1930s Art Deco, low-vision-first stylesheet.
   Palette pulled from the app icon: deep midnight navy + champagne gold.
   Accessibility goals: WCAG 2.2 AAA contrast, large scalable type, strong
   focus, respects zoom + reduced motion, no color-only meaning.
   ========================================================================= */

:root {
  /* Icon palette */
  --navy:        #0c1e2a;  /* page background (icon field) */
  --navy-2:      #102734;  /* raised panel */
  --navy-3:      #16303f;  /* cards / hover */
  --ink:         #060f16;  /* deepest shadow */
  --gold:        #e7d4a6;  /* champagne gold — primary text on navy (~12:1) */
  --gold-bright: #f2e6c6;  /* headings / high emphasis */
  --gold-deep:   #c9a961;  /* rules, ornament, accents */
  --gold-muted:  #b8a985;  /* secondary text (still ~7:1 AAA) */

  /* Type scale — generous for low vision; rem so browser zoom works */
  --fs-base: 1.25rem;      /* 20px at default */
  --fs-lg:   1.5rem;
  --fs-xl:   2rem;
  --fs-2xl:  2.75rem;
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);

  --measure: 66ch;         /* readable line length */
  --radius: 14px;
  --focus: 3px solid var(--gold-bright);
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--gold);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Skip link — first stop for keyboard/screen-reader users */
.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--gold-bright); color: var(--ink);
  padding: 0.75rem 1.25rem; font-weight: 700; z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }

a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: #fff; }

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

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.measure { max-width: var(--measure); }

/* ---- Deco ornament: a thin gold rule with stepped/geometric caps ---- */
.deco-rule {
  border: 0; height: 3px; margin: 2.5rem auto;
  max-width: 340px;
  background: linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold-deep) 80%, transparent);
  position: relative;
}
.deco-rule::before, .deco-rule::after {
  content: ""; position: absolute; top: -4px; width: 11px; height: 11px;
  background: var(--gold-deep); transform: rotate(45deg);
}
.deco-rule::before { left: calc(50% - 60px); }
.deco-rule::after  { left: calc(50% + 49px); }

/* =========================== Header / nav =========================== */
.site-header {
  border-bottom: 2px solid var(--gold-deep);
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
}
.site-header .container { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--gold-bright); }
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand .wordmark {
  font-size: 1.6rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
}
.brand .wordmark .over { color: var(--gold-bright); }
.brand .wordmark .view { color: var(--gold-deep); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
  display: inline-block; padding: 0.6rem 0.4rem; min-height: 44px;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 1.05rem; font-weight: 700; color: var(--gold);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-bright); border-bottom: 3px solid var(--gold-deep); }

/* =============================== Hero =============================== */
.hero { text-align: center; padding: clamp(3rem, 8vw, 6rem) 0 2rem; }
.hero-icon {
  width: clamp(140px, 26vw, 240px); height: auto; border-radius: 28px;
  box-shadow: 0 0 0 3px var(--gold-deep), 0 24px 60px rgba(0,0,0,0.55);
  margin-bottom: 2rem;
}
h1.hero-title {
  font-size: var(--fs-hero); line-height: 1.05; margin: 0.5rem 0;
  color: var(--gold-bright); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-tagline { font-size: clamp(1.35rem, 3vw, 1.9rem); color: var(--gold); max-width: 30ch; margin: 1.25rem auto 0; }

/* Sunburst accent behind the hero (decorative; hidden from AT) */
.sunburst {
  position: relative;
}
.sunburst::before {
  content: ""; position: absolute; inset: -10% -50% auto; height: 520px; top: -60px; z-index: -1;
  background:
    repeating-conic-gradient(from 0deg at 50% 42%,
      rgba(201,169,97,0.10) 0deg 1.4deg, transparent 1.4deg 4deg);
  -webkit-mask-image: radial-gradient(closest-side at 50% 42%, #000 55%, transparent 72%);
          mask-image: radial-gradient(closest-side at 50% 42%, #000 55%, transparent 72%);
  pointer-events: none;
}

/* ============================= Buttons ============================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 60px; padding: 0.9rem 1.9rem;
  font-size: 1.25rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 2px solid var(--gold-deep);
  cursor: pointer;
}
.btn-primary { background: var(--gold-bright); color: var(--ink); border-color: var(--gold-bright); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--gold-bright); }
.btn-ghost:hover { background: var(--navy-3); color: #fff; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2.25rem; }

/* ============================= Sections ============================= */
main { padding: 2rem 0 4rem; }
section { padding: 2.5rem 0; }
h2 {
  font-size: var(--fs-2xl); color: var(--gold-bright); margin: 0 0 1rem;
  letter-spacing: 0.05em; text-transform: uppercase; font-weight: 800;
}
h3 { font-size: var(--fs-xl); color: var(--gold-bright); margin: 2rem 0 0.5rem; letter-spacing: 0.02em; }
p { margin: 0 0 1.15rem; }
.lead { font-size: var(--fs-lg); color: var(--gold); }

/* Feature grid — single column on small screens, generous spacing */
.features { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 780px) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--navy-2); border: 2px solid var(--navy-3); border-left: 6px solid var(--gold-deep);
  border-radius: var(--radius); padding: 1.75rem;
}
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; color: var(--gold); }

/* Article / legal pages */
.article { background: var(--navy-2); border: 2px solid var(--navy-3); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); }
.article h2 { font-size: var(--fs-xl); margin-top: 2.25rem; }
.article h2:first-child { margin-top: 0; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin: 0.5rem 0; }
.article a { color: var(--gold-bright); }
.updated { color: var(--gold-muted); font-size: 1.05rem; }

/* Callout / status box (QBO flow pages) */
.callout {
  background: var(--navy-2); border: 2px solid var(--gold-deep); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center; max-width: 40rem; margin: 2rem auto;
}
.callout h1 { font-size: var(--fs-2xl); color: var(--gold-bright); text-transform: uppercase; letter-spacing: 0.05em; }
.status-icon { font-size: 3.5rem; line-height: 1; display: block; margin-bottom: 0.5rem; }

/* =============================== Footer =============================== */
.site-footer {
  border-top: 2px solid var(--gold-deep); background: var(--navy-2);
  padding: 2.5rem 0; margin-top: 3rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.site-footer nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0; padding: 0; }
.site-footer a { color: var(--gold); font-weight: 600; }
.site-footer .copyright { color: var(--gold-muted); margin-left: auto; font-size: 1.05rem; }

/* Visually-hidden but available to screen readers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
