/* ---------------------------------------------------------------------------
   Connect Utah STG

   Mobile-first. Every rule below the base applies at a wider breakpoint, so a
   phone gets the simplest layout and the least work.

   Palette: the supplied logo is black and white, so colour is a Southern Utah
   accent rather than a brand claim -- red rock, sandstone, canyon shade. Every
   text/background pair here meets WCAG AA at its size.
   --------------------------------------------------------------------------- */

:root {
    --ink: #1c1917;
    --ink-soft: #57534e;
    --ink-faint: #78716c;
    --paper: #ffffff;
    --sand: #faf7f2;
    --sand-line: #e7e0d6;

    --rock: #9a3b2f;          /* red rock, 5.9:1 on paper */
    --rock-dark: #7a2e24;     /* hover/active */
    --rock-wash: #fdf3f1;

    --sky: #2f5d7a;           /* canyon shade, 6.4:1 on paper */
    --draft: #8a6a12;         /* draft notices, 4.8:1 on its wash */
    --draft-wash: #fdf8e7;
    --draft-line: #e8d9a4;

    --radius: 10px;
    --tap: 44px;              /* minimum touch target */
    --measure: 68ch;          /* readable line length */
}

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

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--sand);
}

/* Visible focus for keyboard users, on every interactive element. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
    border-radius: 4px;
}

a { color: var(--rock); }
a:hover { color: var(--rock-dark); }

/* Skip link: first thing a keyboard or screen reader user meets. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 100;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --- Header ------------------------------------------------------------- */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--sand-line);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--ink);
    min-height: var(--tap);
}

/* Logo keeps its proportions; only the height is constrained. */
.brand img {
    height: 42px;
    width: auto;
    display: block;
}

.brand__name {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 0.85rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink-soft);
    font-weight: 600;
}

.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--rock-wash); color: var(--rock-dark); }

/* --- Draft banner ------------------------------------------------------- */

.banner-draft {
    background: var(--draft-wash);
    border-bottom: 1px solid var(--draft-line);
    color: var(--draft);
}

.banner-draft p {
    margin: 0;
    padding: 0.7rem 0;
    font-size: 0.925rem;
    max-width: var(--measure);
}

.banner-draft strong { color: #6d530e; }

/* --- Page shell --------------------------------------------------------- */

main { padding: 1.75rem 0 3rem; }

h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 0.5rem; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }

p { max-width: var(--measure); }

.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: var(--measure); }

/* --- Hero / meeting facts ----------------------------------------------- */

.hero {
    background: var(--paper);
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.facts {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.facts dt { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.facts dd { margin: 0.15rem 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap);
    padding: 0 1.25rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn--primary { background: var(--rock); color: #fff; }
.btn--primary:hover { background: var(--rock-dark); color: #fff; }
.btn--quiet { background: var(--paper); color: var(--ink); border-color: var(--sand-line); }
.btn--quiet:hover { background: var(--sand); color: var(--ink); }

/* --- Search / filters --------------------------------------------------- */

.filters {
    background: var(--paper);
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filters__row { display: grid; gap: 0.75rem; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.3rem; }

input[type="search"], select {
    width: 100%;
    min-height: var(--tap);
    padding: 0 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid #c9c1b5;
    border-radius: var(--radius);
}

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }

.chip {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 0.75rem;
    border-radius: 999px;
    background: var(--sand);
    border: 1px solid var(--sand-line);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.875rem;
}

.chip:hover { background: var(--rock-wash); color: var(--rock-dark); }
.chip[aria-current="true"] { background: var(--rock); border-color: var(--rock); color: #fff; }

/* --- Cards -------------------------------------------------------------- */

.card-grid { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }

.card {
    background: var(--paper);
    border: 1px solid var(--sand-line);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
}

.card__title { margin: 0; font-size: 1.1rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; }

.card__meta { margin: 0.3rem 0 0; font-size: 0.85rem; color: var(--ink-faint); }
.card__body { margin: 0.7rem 0 0; color: var(--ink-soft); }

.people { margin: 0.9rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.people li { margin: 0; }

.person-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: var(--tap);
    padding: 0 0.7rem;
    border-radius: 999px;
    background: var(--sand);
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--ink-soft);
}
.person-link:hover { background: var(--rock-wash); color: var(--rock-dark); }

/* A proposed, unconfirmed association must never look like a confirmed one. */
.tag-unconfirmed {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--draft);
    background: var(--draft-wash);
    border: 1px solid var(--draft-line);
    border-radius: 4px;
    padding: 0.05rem 0.3rem;
}

.tag-draft {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--draft);
    background: var(--draft-wash);
    border: 1px solid var(--draft-line);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
}

/* --- Profile ------------------------------------------------------------ */

.profile { background: var(--paper); border: 1px solid var(--sand-line); border-radius: var(--radius); padding: 1.5rem; }
.profile__kicker { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin: 0 0 0.3rem; }

.detail-list { display: grid; gap: 0.85rem; margin: 1.25rem 0 0; }
.detail-list dt { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.detail-list dd { margin: 0.15rem 0 0; }
.detail-list a { overflow-wrap: anywhere; }

.notice {
    background: var(--sand);
    border: 1px solid var(--sand-line);
    border-left: 3px solid var(--sky);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    margin: 1.5rem 0 0;
    color: var(--ink-soft);
    font-size: 0.925rem;
}
.notice p { margin: 0; }

.empty {
    background: var(--paper);
    border: 1px dashed var(--sand-line);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--ink-soft);
}
.empty h2 { margin-top: 0; }
.empty p { margin-left: auto; margin-right: auto; }

/* Standalone back-navigation, so it gets a real tap target rather than the
   line-height of its text. */
.breadcrumb { font-size: 0.9rem; margin: 0 0 0.5rem; color: var(--ink-faint); }
.breadcrumb a {
    color: var(--sky);
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding-right: 0.5rem;
}

.count { color: var(--ink-faint); font-size: 0.9rem; margin: 0 0 1rem; }

/* --- Footer ------------------------------------------------------------- */

.site-footer {
    background: var(--paper);
    border-top: 1px solid var(--sand-line);
    padding: 1.75rem 0;
    font-size: 0.9rem;
    color: var(--ink-faint);
}
.site-footer p { margin: 0 0 0.4rem; }

/* --- Breakpoints -------------------------------------------------------- */

@media (min-width: 600px) {
    h1 { font-size: 2.05rem; }
    .facts { grid-template-columns: repeat(2, 1fr); }
    .filters__row { grid-template-columns: 2fr 1fr; align-items: end; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .hero { padding: 2rem; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Respect a user's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* A field no person sees and no person fills in. Positioned off-screen rather
   than display:none, because some automated form fillers skip hidden inputs
   and the point is that they do fill this one in. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   The printable check-in card.

   Sized for a table card rather than a sheet of A4: the QR is the only thing
   that must be legible from arm's length, so it gets the space and everything
   else stays out of its way.
   --------------------------------------------------------------------------- */
.print-card {
  max-width: 30rem;
  margin: 2rem auto;
  padding: 2rem;
  border: 2px solid currentColor;
  border-radius: 0.5rem;
  text-align: center;
}

.print-card__title { margin: 0; font-size: 1.5rem; }
.print-card__lead { margin: 0.25rem 0 1.5rem; font-size: 1.125rem; }

.print-card__qr { margin: 0 auto; max-width: 18rem; }
.print-card__qr svg { width: 100%; height: auto; display: block; }

.print-card__steps {
  margin: 1.5rem auto 0;
  padding-left: 1.25rem;
  max-width: 22rem;
  text-align: left;
  line-height: 1.6;
}

.print-card__url {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  word-break: break-all;
}

@media print {
  /* Only the card reaches the paper. Navigation, the draft banner and the
     footer are chrome for a screen and waste a page if they print. */
  .site-header,
  .site-footer,
  .banner-draft,
  .skip-link,
  .breadcrumb,
  .no-print { display: none !important; }

  .print-card {
    margin: 0;
    border-width: 1px;
    page-break-inside: avoid;
  }

  /* Force the QR to pure black on white regardless of the viewer's theme or
     a browser's "don't print backgrounds" default. A grey QR on grey paper
     does not scan. */
  .print-card__qr svg { filter: none; }
}

/* ---------------------------------------------------------------------------
   The public testimonial feed. Set as readable prose rather than as cards:
   these are things people wrote about each other, and the point is that they
   get read.
   --------------------------------------------------------------------------- */
.testimonials { margin: 2rem 0; }

.testimonial {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.25);
}

.testimonial:last-child { border-bottom: 0; }

.testimonial__title { margin: 0 0 0.5rem; font-size: 1.125rem; }

.testimonial__quote {
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid currentColor;
}

.testimonial__quote p { margin: 0; line-height: 1.65; }

.testimonial__meta {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.testimonial__meta time { opacity: 0.75; }

/* Sponsor credit. Quieter than the rest of the footer: a credit, not an ad. */
.site-footer__credit {
  margin-top: 1rem;
  font-size: 0.8125rem;
  opacity: 0.75;
  line-height: 1.5;
}
