/* FIN-442 — Finico corporate site (finico.llc).
   Owner-approved comp: design-lab/corporate-site/"Finico Corporate Site.dc.html" (2026-07-09).
   LIGHT = variant 1a "Heritage — paper & ink" (default / no preference).
   DARK  = variant 1b's PALETTE on the 1a layout, via :root[data-theme="dark"] — set by the
   header toggle button (FIN-445); LIGHT is the default, the OS preference is ignored.
   COLORS-ONLY switch (owner 2026-07-10, FIN-446): the dark block overrides no layout —
   text sits in exactly the same place in both themes; 1b's structural deltas are retired.
   One DOM, two schemes through custom properties; no webfonts, no external requests. */

:root {
  color-scheme: light;
  /* 1a Heritage (light) palette */
  --bg: #F7F3EA;
  --ink: #0A1E3E;
  --gold: #C9A227;
  --label: #7A5F0F;
  --body: #55524A;
  --hair: rgba(10, 30, 62, .13);
  --underline: rgba(10, 30, 62, .35);
  --cta-bg: #0A1E3E;
  --cta-ink: #F7F3EA;
  --cta-hover: #1A3457;
  --footer-bg: #0A1E3E;
  --footer-hair: transparent;
  --footer-ink: rgba(247, 243, 234, .72);
  --footer-strong: #F7F3EA;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  border-top: 4px solid var(--gold); /* the comp's 4px gold top bar */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .82; }
::selection { background: rgba(201, 162, 39, .28); }

.serif { font-family: var(--serif); font-weight: 400; }
.wrap { max-width: 1180px; margin-inline: auto; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--hair); }
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  padding: 24px clamp(20px, 4vw, 56px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.wordmark { font-size: 23px; letter-spacing: .01em; }
.logomark circle { stroke: var(--gold); }
.logomark text { fill: var(--label); }
.header-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 14px;
  font-weight: 600;
}
.header-links a { border-bottom: 1px solid var(--underline); padding-bottom: 2px; }
.theme-toggle {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--underline);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
}
.theme-toggle:hover { opacity: .82; }
.theme-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.theme-toggle svg { stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* ---- hero (centered per 1a) ---- */
.hero-inner {
  text-align: center;
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6.5vw, 80px) clamp(56px, 8vw, 96px);
}
.eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--label);
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, calc(23px + 3vw), 58px);
  line-height: 1.14;
  max-width: 760px;
  margin: 26px auto 0;
}
.rule { width: 64px; height: 1px; background: var(--gold); margin: 36px auto; }
.support {
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  max-width: 580px;
  margin: 0 auto;
}
.cta-row { margin-top: 46px; }
.cta {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 16px 36px;
}
.cta:hover { background: var(--cta-hover); }

/* ---- facts grid ---- */
.facts { border-top: 1px solid var(--hair); }
.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 44px;
  padding: 46px clamp(20px, 4vw, 56px);
  text-align: left;
}
.label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--label);
}
.fact p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; }
.inline-link { border-bottom: 1px solid var(--underline); }

/* ---- footer (navy band with wordmark per 1a) ---- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-hair); }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: 32px clamp(20px, 4vw, 56px);
}
.footer-left { display: flex; flex-direction: column; gap: 8px; }
.footer-wordmark { font-size: 18px; color: var(--footer-strong); }
.legal { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--footer-ink); }
.footer-copy {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--footer-ink);
  text-align: right;
  flex-shrink: 0;
}
.footer-copy a { color: var(--footer-strong); }

/* ---- narrow viewports ---- */
@media (max-width: 760px) {
  .facts-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

/* ---- DARK = 1b Ink palette, COLORS ONLY (owner 2026-07-10, FIN-446): layout is identical
   to light — no structural overrides here; the header button sets data-theme (FIN-445). ---- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0C1526;
  --ink: #F2EDE2;
  --label: #C9A227;
  --body: #B3AC9D;
  --hair: rgba(242, 237, 226, .14);
  --underline: rgba(242, 237, 226, .35);
  --cta-bg: #F2EDE2;
  --cta-ink: #0C1526;
  --cta-hover: #FFFFFF;
  --footer-bg: transparent;
  --footer-hair: rgba(242, 237, 226, .14);
  --footer-ink: rgba(242, 237, 226, .6);
}
