/* Shared stylesheet for the four local-brand starter sites (KingstonSEO, KingstonWebDesigner,
   NiagaraSEO, NiagaraWebDesigner). One file, copied into each site's dist/ at deploy time.

   Design register: established local professional-services letterhead, not a SaaS landing
   page — sharp corners, hairlines, printed-price-list numerals, no shadows/badges/gradients-
   as-hype. The buyer here (see persona-rick, persona-diane) actively distrusts anything that
   reads as a template; polish that reads as "not from here" is a bounce trigger, not a win. */

:root {
  --navy: #123456;              /* fixed brand anchor, never change — background use only */
  --navy-ink: #0d2740;          /* fixed brand anchor, never change — background use only */
  --paper: #fbf8f2;
  --paper-raised: #ffffff;      /* cards sit whiter than the page, like paper stock on a desk */
  --ink: #1c1c1c;
  --ink-muted: #55524a;
  --line: #ded6c8;
  --accent: #b5651d;
  --accent-deep: #8f4f16;
  --gold-hairline: #c9a54a;     /* scarce — a rule, never a fill. Used in exactly 3 places. */
  --max-width: 42rem;
  /* text-on-paper roles, separate from the navy background tokens above: navy
     text on dark-mode paper computes to ~1.1-1.4:1, failing WCAG AA (4.5:1) —
     these stay navy in light mode and lighten in dark mode instead. */
  --link: var(--navy);
  --link-strong: var(--navy-ink);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

header.site-header {
  background: var(--navy);
  color: #fff;
  padding: 1rem 1.25rem;
}
header.site-header .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
header.site-header a.brand {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.2rem;
  text-decoration: none;
}
header.site-header a.phone {
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  white-space: nowrap;
}
header.site-header a.phone:hover, header.site-header a.phone:focus {
  background: #fff;
  color: var(--navy);
}

nav.site-nav {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
}
nav.site-nav .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  gap: 1.5rem;
}
nav.site-nav a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-decoration: none;
}
nav.site-nav a:hover, nav.site-nav a:focus { color: var(--accent); }
nav.site-nav a[aria-current="page"] {
  color: var(--link-strong);
  font-weight: 700;
  border-bottom: 2px solid var(--gold-hairline);
  padding-bottom: 2px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4.5rem;
}

.dek {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--ink-muted);
  margin-top: -0.25rem;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
main > h2:first-of-type { border-top: none; padding-top: 0; }

.faq dt {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.375rem;
  margin-top: 2rem;
}
.faq dd {
  margin-left: 0;
}

main ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}
main ul li {
  margin-bottom: 0.4rem;
}

.price-callout {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-hairline);
  border-radius: 2px;
  box-shadow: none;
  padding: 2rem 2rem 2.25rem;
  margin: 2rem 0;
}
.price-callout.tier-better {
  border-bottom: 3px solid var(--gold-hairline);
}
.price-callout .tier-label {
  font-family: Georgia, "Times New Roman", serif;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-muted);
  margin: 0;
}
.price-callout .tier-price {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--link-strong);
  margin: 0.2rem 0 1.1rem;
}
.price-callout ul {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0.25rem;
}
.price-callout ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.price-callout ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--link);
  font-weight: 700;
}

.area-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin: 1.25rem 0;
}
.area-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.area-card h3 a { text-decoration: none; }
.area-card h3 a:hover, .area-card h3 a:focus { text-decoration: underline; }
.area-card p {
  margin: 0;
  color: var(--ink-muted);
}

.about-figure {
  float: right;
  shape-outside: margin-box;
  width: 176px;
  margin: 0 0 1.5rem 1.75rem;
}
.about-photo {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: cover;
  border: 1.5px solid var(--line);
  border-top: 3px solid var(--gold-hairline);
  border-radius: 2px;
}
.about-figure figcaption {
  font-family: Georgia, "Times New Roman", serif;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 0.6rem;
}

@media (max-width: 600px) {
  .about-figure {
    float: none;
    width: auto;
    margin: 0 auto 1.5rem;
  }
  .about-photo { margin: 0 auto; }
}

.about-thesis {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.375rem;
  line-height: 1.4;
  color: var(--link-strong);
  border-left: 3px solid var(--gold-hairline);
  padding-left: 1.25rem;
  margin: 2rem 0;
}

.own-band {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-ink) 100%);
  color: #fff;
  border-top: 3px solid var(--gold-hairline);
  border-radius: 2px;
  padding: 2rem 2.25rem 2.25rem;
  margin: 3rem 0;
}
.own-band .own-mark {
  margin-bottom: 0.75rem;
}
.own-band p {
  margin: 0.5rem 0;
}
.own-band a { color: #fff; text-decoration-thickness: 1px; }
.own-band a:hover, .own-band a:focus { color: #ffd9b0; }

.cta-band {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.cta-band a.tel {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--navy);
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 2px;
  text-decoration: none;
  margin-top: 0.75rem;
}
.cta-band a.tel:hover, .cta-band a.tel:focus {
  background: var(--navy-ink);
  box-shadow: inset 0 -3px 0 var(--gold-hairline);
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.5rem;
}
footer.site-footer .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
footer.site-footer a { color: var(--ink-muted); }

/* Never let a wide element (a code sample, a long URL) force horizontal scroll on the body */
img, table { max-width: 100%; }

/* Dark mode: same content, dark ground, same navy accent per brand rule (never change the navy) */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181d;
    --paper-raised: #1e1a15;
    --ink: #ece7dd;
    --ink-muted: #b8ae9c;
    --line: #3a342a;
    /* verified against dark --paper/#14181d (8.00:1) and --paper-raised/#1e1a15
       (9.73:1) — navy itself stays fixed as a background-only brand anchor */
    --link: #7fb3e0;
    --link-strong: #9fc7e8;
  }
  body { background-image: none; }  /* grain over dark navy reads muddy; flat ground instead */
  header.site-header { background: var(--navy); }
  .price-callout { background: var(--paper-raised); }
}
