/* Bend Privacy Alliance — front page ("Find Us Online" link hub).
   Consumes the design-system tokens (linked via /styles.css); no hard-coded brand hexes. */

html, body { height: 100%; }

body.home-body {
  margin: 0;
  min-height: 100vh;
}

/* Theme toggle — a quiet circular control, top-right, on the card surface.
   Themed from tokens so it reads correctly in both light and dark. */
.theme-toggle {
  position: fixed;
  top: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-strong);
  background: var(--surface-card);
  border: var(--border-thin) solid var(--border-hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  z-index: 20;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.theme-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}

.theme-toggle__icon { display: none; }
/* Show the icon for the theme you'll switch TO. */
.theme-toggle[data-effective="light"] .theme-toggle__icon--moon { display: block; }
.theme-toggle[data-effective="dark"]  .theme-toggle__icon--sun  { display: block; }

/* ---- Page shell ------------------------------------------------ */
.home-main {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-10);
}

/* ---- Hero -------------------------------------------------------- */
.home-hero {
  text-align: center;
  margin-bottom: var(--space-8);
}
.home-hero__seal {
  width: 96px;
  height: 96px;
  display: block;
  margin: 0 auto var(--space-5);
}
.home-hero .bpa-eyebrow {
  display: block;
  margin: 0 0 var(--space-2);
}
.home-hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: var(--weight-bold);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  color: var(--text-strong);
}

/* ---- Link grid ----------------------------------------------------- */
.linkgrid {
  display: grid;
  gap: var(--space-3);
}
.linkcard {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-4) var(--space-5);
  border: var(--border-thin) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.linkcard:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.linkcard:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
}
.linkcard__label {
  font-family: var(--font-serif);
  font-size: var(--text-h4);
  font-weight: var(--weight-bold);
  color: var(--text-strong);
}
.linkcard__url {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* The two "Website" cards get the inverse (navy) treatment, matching
   the source layout's emphasis on the org's own domains. */
.linkcard--inverse {
  background: var(--surface-inverse);
  border-color: var(--surface-inverse);
}
.linkcard--inverse .linkcard__label { color: var(--text-inverse); }
.linkcard--inverse .linkcard__url { color: var(--text-inverse); opacity: 0.75; }
.linkcard--inverse:hover { box-shadow: var(--shadow-md); }

/* ---- Signal section -------------------------------------------- */
.signal {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6);
  border: var(--border-thin) solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}
.signal__qr {
  display: block;
  line-height: 0;
}
.signal__qr img {
  display: block;
  width: 100%;
  height: auto;
  border: var(--border-thin) solid var(--border-hairline);
  border-radius: var(--radius-sm);
}
.signal__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--text-h3);
  color: var(--text-strong);
}
.signal__lede {
  margin: 0 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-body);
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  text-decoration: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.btn--primary {
  background: var(--surface-inverse);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow-md); }
.btn:focus-visible { outline: none; box-shadow: var(--ring-focus); }

/* ---- Footer ------------------------------------------------------ */
.home-footer {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
  text-align: center;
}
.home-footer__line {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---- Responsive ---------------------------------------------------- */
@media (max-width: 640px) {
  .home-main { padding: var(--space-10) var(--space-4) var(--space-8); }
  .theme-toggle { top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; }
  .home-hero__title { font-size: var(--text-h1); }
  .signal { grid-template-columns: 1fr; text-align: center; }
  .signal__qr { max-width: 200px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
