/*
Theme Name: MGMAC
Description: Single page coming soon theme for the Medical Group Management Association of Canada. No external fonts, no tracking, and no published email address. Built by Systemsaholic.
Author: Systemsaholic
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
License: GPLv2 or later
Text Domain: mgmac
*/

/* Light, airy, and still high contrast. Body text is 14.8:1 on the page
   background and the muted grey is 5.4:1, both comfortably past WCAG AA, so it
   stays readable on a phone in bad light. "Lighter" here is whitespace and
   hairline rules, not weaker ink. */

:root {
  --bg:        #ffffff;
  --surface:   #ffffff;
  --field:     #fcfcfb;
  --ink:       #15181c;
  --muted:     #5c646e;
  --accent:    #145f82;
  --accent-ink:#ffffff;
  --hairline:  #e7e7e3;
  --focus:     #145f82;
  --focus-ring:rgba(20, 95, 130, 0.20);
  --ok-bg:     #f2f8f4;
  --ok-border: #cfe4d6;
  --ok-ink:    #1c4a2a;
  --err-bg:    #fdf4f3;
  --err-border:#f0d3d0;
  --err-ink:   #8c2b22;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #15181b;
    --surface:   #1b1f23;
    --field:     #1f2429;
    --ink:       #eceef0;
    --muted:     #a3acb6;
    --accent:    #8fc4dd;
    --accent-ink:#0f1417;
    --hairline:  #2b3137;
    --focus:     #8fc4dd;
    --focus-ring:rgba(143, 196, 221, 0.26);
    --ok-bg:     #16251a;
    --ok-border: #2c4634;
    --ok-ink:    #aedcba;
    --err-bg:    #2a1817;
    --err-border:#4a2a27;
    --err-ink:   #efb0a9;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 4.5rem;
}

@media (min-width: 40em) {
  .wrap { padding: 6.5rem 2rem 7rem; }
}

@media (max-width: 359px) {
  .wrap { padding-left: 0.625rem; padding-right: 0.625rem; }
}

/* ---- masthead ---- */

.masthead { margin: 0 0 3rem; }

.mark {
  display: block;
  font-size: 1.375rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.625rem;
}

.name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 3rem 0;
}

/* ---- prose ---- */

h1 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 1.25rem;
}

@media (min-width: 40em) {
  h1 { font-size: 1.8125rem; }
}

h2 {
  font-size: 1.0625rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 1.5rem;
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

/* ---- form ---- */

form { margin: 0; }

.field { margin: 0 0 1.375rem; }

label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  margin: 0 0 0.4375rem;
}

.opt { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="email"],
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--hairline);
  border-radius: 7px;
  padding: 0.6875rem 0.8125rem;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }

input[type="text"]:hover,
input[type="email"]:hover,
select:hover,
textarea:hover { border-color: #d6d6d1; }

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* Honeypot: out of sight of people, still a normal field to a bot.
   Deliberately NOT display:none, which many bots skip. position is fixed
   rather than absolute because an absolutely positioned box at -9999px still
   counted toward document scrollWidth and put a horizontal scrollbar on the
   page at 320px. */
.nope {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Turnstile carries a 300px minimum width of its own, so it is never allowed
   to widen the page. */
.cf-turnstile {
  margin: 0 0 1.375rem;
  max-width: 100%;
  overflow: hidden;
}

button {
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: opacity .12s ease;
}

button:hover { opacity: .88; }
button:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.consent {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 1.375rem 0 0;
}

/* ---- notices ---- */

.notice {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.9375rem 1.0625rem;
  margin: 0 0 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.notice-ok  { background: var(--ok-bg);  border-color: var(--ok-border);  color: var(--ok-ink); }
.notice-err { background: var(--err-bg); border-color: var(--err-border); color: var(--err-ink); }
.notice p { margin: 0 0 .5rem; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.notice li { margin: 0 0 .25rem; }

/* ---- footer ---- */

.foot {
  margin: 4rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- accessibility ---- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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