/* Holding page for cantonsecurityandinvestigations.com until the new site launches.
   A middle ground between the three design concepts, so the new site feels familiar when it arrives: Concept A's
   midnight band and brass hairline, Concept B's warm paper and deep-blue ink, Concept C's thin rules and plain grotesk
   type. No JavaScript, no web fonts, no third-party requests.
   Display modes are visual only. With no choice made the page follows the device; the Worker sets
   data-theme="light" or "dark" on <html> when the visitor picks one. Contrast ratios are WCAG 2.x, measured, and every
   text pair passes AA in both modes (dark: 8.7:1 or more). */

:root {
  color-scheme: light;
  --paper: #f6f4ef;          /* warm off-white page */
  --card: #ffffff;
  --ink: #13233f;            /* 15.7:1 on card, 14.3:1 on paper */
  --ink-2: #33425e;          /* 10.1:1 on card */
  --link: #24447c;           /* 9.6:1 on card */
  --band: #0d1a33;           /* midnight header and footer */
  --band-ink: #eef1f7;       /* 15.3:1 on band */
  --band-ink-2: #c9d1e0;     /* 11.3:1 on band */
  --brass: #a8864f;          /* hairlines only */
  --rule: #d9d4c8;
  --focus: #8a6620;          /* focus ring, 5.2:1 on card */
  --button: #0d1a33;
  --button-ink: #eef1f7;
  --font: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
}

/* Dark palette: the device asks for dark and the visitor hasn't chosen light, or the visitor chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0a1224; --card: #121f3a; --ink: #eef1f7; --ink-2: #c9d1e0; --link: #aebde6;
    --band: #070d1a; --rule: #24345a; --brass: #c9ae7c; --focus: #ebcb85; --button: #aebde6; --button-ink: #070d1a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0a1224; --card: #121f3a; --ink: #eef1f7; --ink-2: #c9d1e0; --link: #aebde6;
  --band: #070d1a; --rule: #24345a; --brass: #c9ae7c; --focus: #ebcb85; --button: #aebde6; --button-ink: #070d1a;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.1875rem); /* 17 px phone to 19 px desktop */
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* Header and footer bands */
.band { background: var(--band); color: var(--band-ink); padding: 16px var(--gutter); border-bottom: 3px solid var(--brass); }
.band__inner { max-width: 46rem; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.band--foot { margin-top: auto; border-bottom: 0; border-top: 1px solid var(--brass); color: var(--band-ink-2); font-size: 1rem; }
.band--foot p { margin: 0; }

.brand { display: flex; align-items: center; gap: 16px; }
.brand__badge { width: 56px; height: auto; flex: none; } /* the badge is 1068 x 1241, taller than wide */
.brand__name { margin: 0; display: flex; flex-direction: column; font-size: 1.25rem; font-weight: 600; line-height: 1.15; letter-spacing: .01em; }

/* Display mode switch: plain links; the server marks the current one with aria-current */
.mode { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 1rem; }
.mode__label { color: var(--band-ink-2); margin-right: 4px; }
.mode a { color: var(--band-ink-2); padding: 10px 8px; border-radius: 4px; text-decoration: none; } /* 44 px targets */
.mode a:hover { text-decoration: underline; }
.mode a[aria-current="true"] { color: var(--band-ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* Main notice */
.page { padding: clamp(28px, 6vw, 64px) var(--gutter); }
.notice { max-width: 46rem; margin-inline: auto; background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--brass); border-radius: 8px; padding: clamp(24px, 5vw, 48px); }
.eyebrow { margin: 0 0 8px; color: var(--ink-2); font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0 0 16px; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -.005em; }
.lead { margin: 0 0 28px; color: var(--ink-2); max-width: 38rem; }

.contacts { margin: 0; border-top: 1px solid var(--rule); }
.contacts__row { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
dt { color: var(--ink-2); font-size: 1rem; font-weight: 600; }
dd { margin: 0; }
dd a { display: block; padding: 6px 0; font-size: 1rem; overflow-wrap: anywhere; } /* breaks after the @ (<wbr>) first */
dd a.inline { display: inline; padding: 0; }
address { font-style: normal; }

.button { display: inline-block; padding: 12px 20px; border-radius: 4px; background: var(--button); color: var(--button-ink); font-weight: 600; text-decoration: none; }

@media print {
  .band { background: none; color: #000; border-color: #000; }
  .mode { display: none; }
  .notice { border-color: #000; }
}
