/* Cincinnati Widows: calm, large and easy to read on any phone, tablet or computer. */

:root {
  --mist: #F3F2F7;      /* page background */
  --paper: #FFFFFF;     /* panels */
  --ink: #2A2733;       /* text */
  --ink-soft: #5C5868;  /* hints, captions */
  --phlox: #6E5A8C;     /* the one accent: links, buttons */
  --phlox-deep: #57466F;
  --petal: #E8E3F1;     /* soft panels */
  --line: #D9D4E3;
  --sage: #4F6B5C;      /* confirmations */
  --rose: #8E3B4C;      /* "this is important" */
  --rose-soft: #F6E9EC;
  --focus: #1F6FB2;

  --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --measure: 42rem;     /* comfortable line length */
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mist: #1E1C24;
    --paper: #28252F;
    --ink: #ECE9F2;
    --ink-soft: #B4AFC0;
    --phlox: #B9A6DA;
    --phlox-deep: #D2C5E9;
    --petal: #322E3B;
    --line: #45404F;
    --sage: #9CC2AC;
    --rose: #E7A3B1;
    --rose-soft: #3A2A30;
    --focus: #8CC4F5;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.25rem;              /* 20px: easy to read */
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }   /* no picture can be wider than the screen */

a { color: var(--phlox); text-underline-offset: 0.18em; }
a:hover { color: var(--phlox-deep); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: relative; z-index: 5;
  background: color-mix(in srgb, var(--mist) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) and (min-height: 500px) {
  .topbar { position: sticky; top: 0; }   /* phones keep the screen for reading */
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar { background: var(--mist); }
}
.topbar-inner {
  max-width: 62rem; margin: 0 auto; padding: 0.55rem 1rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem;
}
.brand {
  font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.topbar ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; flex-wrap: wrap;
}
.topbar nav a {
  display: inline-block; padding: 0.55rem 0.85rem; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 1.125rem;
}
.topbar nav a:hover { background: var(--petal); color: var(--ink); }
.topbar nav a[aria-current="page"] { background: var(--petal); font-weight: 700; }
.topbar nav a.nav-join { background: var(--phlox); color: #fff; font-weight: 700; }
.topbar nav a.nav-join:hover { background: var(--phlox-deep); color: #fff; }
@media (prefers-color-scheme: dark) {
  .topbar nav a.nav-join, .topbar nav a.nav-join:hover { color: #1E1C24; }
}

/* ---------------------------------------------------------------- the phlox band */
.phlox {
  height: clamp(130px, 26vw, 260px);
  background:
    linear-gradient(180deg, rgba(243,242,247,0) 55%, var(--mist) 100%),
    url("flowers2-web.jpg") center 40% / cover no-repeat,
    linear-gradient(120deg, #CFC3E2, #E9E4F2 60%, #D7E3DA);
}
@media (prefers-color-scheme: dark) {
  .phlox {
    background:
      linear-gradient(180deg, rgba(30,28,36,0.35) 0%, rgba(30,28,36,0.35) 50%, var(--mist) 100%),
      url("flowers2-web.jpg") center 40% / cover no-repeat,
      linear-gradient(120deg, #3B3150, #2E2A3A 60%, #2D3A33);
  }
}

/* ---------------------------------------------------------------- pages */
main { padding: 0 1rem 3rem; }
.page { max-width: var(--measure); margin: 0 auto; }
.page[hidden] { display: none; }

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em;
  margin: 1.6rem 0 0.6rem;
}
h1:focus { outline: none; }
h2 { font-size: 1.4rem; line-height: 1.25; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1em; }
.intro { color: var(--ink-soft); }

/* The welcome sits on the flowers like a place card at a dinner table. */
.placecard {
  position: relative;
  margin: calc(-1 * clamp(70px, 13vw, 140px)) auto 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem clamp(1.1rem, 4vw, 2.2rem) 1.4rem;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(42, 39, 51, 0.45);
}
.placecard::before {              /* the fold line of a folded place card */
  content: ""; position: absolute; left: 0; right: 0; top: 0.55rem;
  border-top: 1px dashed var(--line);
}
.placecard h1 { margin-top: 0.4rem; }
.placecard .lede { font-size: 1.25rem; margin: 0; }

.prose { margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem;
  padding: 0.7rem 1.4rem; border-radius: 999px; border: 2px solid var(--phlox);
  background: var(--phlox); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--phlox-deep); border-color: var(--phlox-deep); color: #fff; }
.button-quiet { background: transparent; color: var(--phlox); }
.button-quiet:hover { background: var(--petal); color: var(--phlox-deep); border-color: var(--phlox-deep); }
@media (prefers-color-scheme: dark) {
  .button, .button:hover { color: #1E1C24; }
  .button-quiet, .button-quiet:hover { color: var(--phlox); }
}
.button[disabled] { opacity: 0.6; cursor: wait; }
.join-row { margin: 2rem 0 0; }
.two-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 0; }

/* ---------------------------------------------------------------- notices */
.notice {
  background: var(--rose-soft); border-left: 4px solid var(--rose);
  padding: 0.85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 0.95rem 2.6rem 0.95rem 0; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {              /* plus / minus */
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 1.1rem; height: 1.1rem; margin-top: -0.55rem;
  background:
    linear-gradient(var(--phlox), var(--phlox)) center / 100% 2px no-repeat,
    linear-gradient(var(--phlox), var(--phlox)) center / 2px 100% no-repeat;
}
.faq details[open] > summary::after {
  background: linear-gradient(var(--phlox), var(--phlox)) center / 100% 2px no-repeat;
}
.faq summary:hover { color: var(--phlox); }
.faq .answer { padding: 0 0 1rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq details.important .answer p {
  background: var(--rose-soft); border-left: 4px solid var(--rose);
  padding: 0.85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
}
.faq-tools { margin: 1rem 0 0; }

/* ---------------------------------------------------------------- email addresses */
.addr-shown { font-weight: 700; overflow-wrap: anywhere; }
.addr-not { text-decoration: line-through; text-decoration-color: var(--rose); color: var(--ink-soft); }
.group-addr { font-weight: 700; }
@media (min-width: 480px) { .group-addr { white-space: nowrap; } }

/* ---------------------------------------------------------------- COVID list */
.checklist { margin: 0 0 1rem; padding: 0; list-style: none; columns: 1; }
@media (min-width: 640px) { .checklist { columns: 2; column-gap: 2rem; } }
.checklist li { padding: 0.3rem 0 0.3rem 1.6rem; position: relative; break-inside: avoid; }
.checklist li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.75em; width: 0.6rem; height: 0.6rem;
  border-radius: 50%; border: 2px solid var(--phlox);
}

/* ---------------------------------------------------------------- sample email */
.sample { margin: 1.5rem 0; }
.sample img { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sample figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------------------------------------------------------------- form */
form { margin-top: 0.5rem; }
.field { margin: 0 0 1.6rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 0.3rem; padding: 0; line-height: 1.4; }
.hint { font-size: 1.0625rem; color: var(--ink-soft); margin: 0 0 0.5rem; line-height: 1.5; }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.85rem; min-height: 3rem;
}
textarea { resize: vertical; min-height: 5.5rem; }
input:focus-visible, textarea:focus-visible { border-color: var(--focus); outline-offset: 1px; }
.field.has-error input, .field.has-error textarea { border-color: var(--rose); }
.error { color: var(--rose); font-size: 1.0625rem; font-weight: 700; margin: 0.35rem 0 0; min-height: 0; }
.error:empty { display: none; }

.choices-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.choices-row label {
  display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer;
  padding: 0.6rem 1.1rem; min-height: 3rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper);
}
.choices-row input { width: 1.25rem; height: 1.25rem; accent-color: var(--phlox); margin: 0; }
.choices-row label:has(input:checked) { border-color: var(--phlox); background: var(--petal); font-weight: 700; }
.field.has-error .choices-row label { border-color: var(--rose); }

.statusline:empty { display: none; }
.statusline {
  background: var(--rose-soft); border-left: 4px solid var(--rose); color: var(--ink);
  padding: 0.85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700;
}
.statusline.ok { background: color-mix(in srgb, var(--sage) 14%, var(--paper)); border-left-color: var(--sage); }

.done {
  background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--sage);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin-top: 1rem;
}
.done h2 { margin-top: 0; color: var(--sage); }

/* ---------------------------------------------------------------- footer */
.footer {
  border-top: 1px solid var(--line); padding: 1.5rem 1rem 2.5rem; color: var(--ink-soft); font-size: 1rem;
}
.footer p { max-width: var(--measure); margin: 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .topbar, .phlox, .skip, .two-buttons, .join-row, .faq-tools { display: none; }
  .page[hidden] { display: block; }
  .faq .answer { display: block; }
}

/* ---------------------------------------------------------------- additions for the PHP site */
/* The three steps on the main page: they really are done in order, so they are numbered. */
.steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.85rem; }
.step {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.05rem 1.15rem;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.step:hover { border-color: var(--phlox); color: var(--ink); }
.step-num {
  flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--phlox); color: #fff; font-weight: 700; font-size: 1.25rem;
}
@media (prefers-color-scheme: dark) { .step-num { color: #1E1C24; } }
.step-title { display: block; font-weight: 700; color: var(--phlox); font-size: 1.3rem; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
.step-text { display: block; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.5; margin-top: 0.2rem; }

.next { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.next > p:first-child { margin: 0; font-weight: 700; }
.next .two-buttons { margin-top: 0.75rem; }

.button-small { min-height: 2.75rem; padding: 0.45rem 1.1rem; font-size: 1.0625rem; }
.button-big { min-height: 3.5rem; padding: 0.8rem 1.8rem; font-size: 1.3rem; }
.faq-tools { margin: 0 0 1rem; }
.faq summary { font-size: 1.25rem; }
.faq summary:focus-visible { outline-offset: 0; }
@media (max-width: 479px) {
  .two-buttons .button { width: 100%; }       /* easy targets on a phone */
}
@media (max-width: 479px) {
  .topbar-inner { padding: 0.5rem 0.75rem; }
  .topbar nav { width: 100%; }
  .topbar ul { justify-content: space-between; flex-wrap: nowrap; gap: 0; }
  .topbar nav a { padding: 0.5rem 0.6rem; font-size: 1.0625rem; }
}
.topbar nav a { white-space: nowrap; }
@media (max-width: 359px) {
  .topbar nav a { padding: 0.5rem 0.45rem; font-size: 1rem; }
}
