/* The Joy of Living
   Warm and calm rather than clinical: a paper-cream ground, deep ink text, and
   a single amber accent that keeps the sun from the group's old flyers without
   the clip art. Serif headings, generous measure, nothing shouting. */

:root {
  --ink:      #16191d;
  --ink-2:    #232830;
  --ink-soft: #3d454f;
  --muted:    #6b7480;

  --paper:   #fdfaf5;
  --paper-2: #f6f1e8;
  --paper-3: #efe8dc;
  --white:   #ffffff;
  --line:    #e3dbcd;

  --amber:      #c8860d;
  --amber-deep: #9c6606;
  --amber-soft: #f7ecd6;
  --sage:       #3f6b5c;
  --sage-soft:  #e6efea;

  --wrap: 1120px;
  --pad: clamp(1.15rem, 4vw, 2.25rem);
  --r: 10px;

  --shadow: 0 1px 2px rgba(30, 22, 8, .05), 0 8px 26px rgba(30, 22, 8, .07);
  --shadow-lg: 0 2px 6px rgba(30, 22, 8, .07), 0 20px 50px rgba(30, 22, 8, .13);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: clamp(1rem, .97rem + .2vw, 1.075rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* height:auto keeps width/height attributes from stretching an image once CSS
   sets one dimension. */
img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 1.08rem + .45vw, 1.42rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

.wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100%, 66ch); }
.lede { font-size: clamp(1.08rem, 1.02rem + .4vw, 1.3rem); color: var(--muted); line-height: 1.62; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: .8rem 1.2rem; }
.skip:focus { left: 0; }
:where(a, button, input, textarea, summary):focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

.kicker {
  font-family: var(--sans); font-size: .76rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--amber-deep);
  margin: 0 0 .8rem; display: flex; align-items: center; gap: .7rem;
}
.kicker::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.kicker.center { justify-content: center; }
.kicker.center::after { display: none; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .95rem; font-weight: 600;
  padding: .82rem 1.5rem; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: #fff; }
.btn.amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn.amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn.quiet { background: transparent; color: var(--ink); }
.btn.quiet:hover { background: var(--ink); color: var(--paper); }
.btn.sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.head-in { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--amber); }
.brand b { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.1; }
.brand span { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; align-items: center; gap: .1rem; }
.nav a {
  font-size: .93rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
  padding: .5rem .75rem; border-radius: 6px; white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--amber-deep); font-weight: 600; }
.nav a.quiet { color: var(--muted); }
.nav .join { margin-left: .6rem; }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: .5rem .65rem; cursor: pointer; line-height: 0; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }
.nav-toggle[aria-expanded="true"] .bars { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; inset: 76px 0 auto; z-index: 99; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .4rem var(--pad) 1.2rem;
    box-shadow: var(--shadow-lg);
  }
  .nav:not(.open) { display: none; }
  .nav a { padding: .9rem .3rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav .join { margin: 1rem 0 0; justify-content: center; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--paper-2); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; top: -28vw; right: -12vw; width: 58vw; height: 58vw;
  border-radius: 50%; background: radial-gradient(circle, rgba(200,134,13,.16), rgba(200,134,13,0) 62%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 54ch; margin-top: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-deep); background: var(--amber-soft); border-radius: 999px;
  padding: .42rem .95rem; margin-bottom: 1.4rem;
}
.eyebrow svg { width: 14px; height: 14px; }

/* ── Page banner ─────────────────────────────────────────────────────────── */
.page-head { background: var(--paper-2); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-head .lede { max-width: 62ch; }
.crumbs { font-size: .84rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { padding: 0 .4rem; opacity: .55; }

/* ── Sections ────────────────────────────────────────────────────────────── */
section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.alt { background: var(--paper-2); }
.ink { background: var(--ink); color: rgba(255,255,255,.78); }
.ink h2, .ink h3 { color: #fff; }
.ink .kicker { color: #e5b455; }
.ink .kicker::after { background: rgba(255,255,255,.18); }
.ink .lede { color: rgba(255,255,255,.74); }
.ink a { color: #f0c877; }

.head { max-width: 60ch; margin-bottom: clamp(1.75rem, 3.5vw, 2.6rem); }
.head.center { margin-inline: auto; text-align: center; }

/* ── Meeting cards ───────────────────────────────────────────────────────── */
.meets { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.meet {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column;
  border-top: 3px solid var(--amber);
}
.meet .when { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: .55rem; }
.meet h3 { margin-bottom: .5rem; }
.meet .time { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: .3rem; }
.meet .time em { font-style: normal; font-size: .95rem; color: var(--muted); margin-left: .35rem; }
.meet .also { font-size: .84rem; color: var(--muted); margin-bottom: 1rem; }
.meet p { font-size: .95rem; }
.meet .foot { margin-top: auto; padding-top: 1.25rem; }
.meet .zid { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.meet .zid b { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Anything that must be copied by hand gets a copy button. */
.copy {
  display: inline-flex; align-items: center; gap: .35rem; margin-left: .45rem;
  font: inherit; font-size: .78rem; padding: .12rem .5rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px;
  color: var(--ink-2); cursor: pointer;
}
.copy:hover { background: var(--amber-soft); border-color: var(--amber); }
.copy svg { width: 12px; height: 12px; }

/* ── Generic cards / lists ───────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 1.45rem 1.4rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* Link list — a row per resource, quiet until hovered. */
.links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a {
  display: flex; align-items: baseline; gap: 1rem; padding: 1rem .3rem;
  text-decoration: none; color: var(--ink); transition: background .14s ease, padding-left .14s ease;
}
.links a:hover { background: var(--paper-2); padding-left: .8rem; }
.links b { font-weight: 600; font-size: 1rem; flex: none; max-width: 26rem; }
.links span { color: var(--muted); font-size: .9rem; }
.links .go { margin-left: auto; color: var(--amber-deep); flex: none; }
.links .go svg { width: 15px; height: 15px; }
@media (max-width: 620px) {
  .links a { flex-wrap: wrap; gap: .25rem; }
  .links b { max-width: none; width: 100%; }
  .links .go { margin-left: 0; }
}

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checks.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.checks li { position: relative; padding-left: 1.8rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--amber);
}

/* ── Steps / expectations ────────────────────────────────────────────────── */
.expect { display: grid; gap: 1.6rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.expect h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.expect p { font-size: .95rem; color: var(--muted); margin: 0; }
.expect .n { font-family: var(--serif); font-size: 1.05rem; color: var(--amber); margin-bottom: .5rem; display: block; }

/* ── Pull quote ──────────────────────────────────────────────────────────── */
.quote { text-align: center; max-width: 44ch; margin-inline: auto; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); line-height: 1.42; color: #fff; }
.quote cite { display: block; margin-top: 1.4rem; font-family: var(--sans); font-style: normal; font-size: .82rem; letter-spacing: .06em; color: rgba(255,255,255,.55); }

/* ── Help now ────────────────────────────────────────────────────────────── */
.help { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.help-item { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--sage); border-radius: var(--r); padding: 1.3rem 1.35rem; }
.help-item .t { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); margin-bottom: .4rem; }
.help-item .v { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-block; margin-bottom: .3rem; word-break: break-word; }
.help-item .v:hover { color: var(--sage); }
.help-item p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ── Members ─────────────────────────────────────────────────────────────── */
.gate { max-width: 30rem; margin-inline: auto; }
.gate .card { padding: 2rem 1.9rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
label { font-size: .85rem; font-weight: 600; color: var(--ink); }
input[type="email"] {
  font: inherit; padding: .8rem .9rem; border: 1px solid var(--line);
  border-radius: 7px; background: var(--white); width: 100%; color: var(--ink);
}
input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(200,134,13,.16); }
.msg { padding: .9rem 1.05rem; border-radius: 7px; font-size: .93rem; display: none; margin-bottom: 1rem; }
.msg.show { display: block; }
.msg.ok { background: var(--sage-soft); border: 1px solid #b9d3c8; color: #1f4438; }
.msg.err { background: #fbeaea; border: 1px solid #eec2c2; color: #7a1f1f; }
.note { font-size: .86rem; color: var(--muted); }
button[disabled] { opacity: .6; cursor: progress; }

.mrow { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow .badge {
  flex: none; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .28rem .6rem; border-radius: 999px; margin-top: .2rem;
}
.mrow .badge.on { background: var(--sage-soft); color: var(--sage); }
.mrow .badge.off { background: var(--paper-3); color: var(--muted); }
.mrow h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.mrow p { font-size: .93rem; color: var(--muted); margin: 0 0 .7rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-foot { background: var(--ink); color: rgba(255,255,255,.6); padding: clamp(2.5rem, 5vw, 3.75rem) 0 1.75rem; font-size: .93rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 880px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } .foot-brand { grid-column: auto; } }
.foot-brand .b { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.foot-brand .mark { width: 30px; height: 30px; color: #e5b455; }
.foot-brand strong { font-family: var(--serif); font-size: 1.15rem; color: #fff; font-weight: 600; }
.foot-brand p { max-width: 34ch; }
.site-foot h4 { color: #fff; font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .95rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-foot a { color: rgba(255,255,255,.68); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: rgba(255,255,255,.42);
}
.foot-bottom em { font-style: italic; }

/* ── Reveal ──────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ── Schedule table ──────────────────────────────────────────────────────── */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sched { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sched th {
  text-align: left; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .11em; text-transform: uppercase; color: var(--muted);
  padding: .95rem 1.1rem; background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.sched td { padding: 1.05rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sched tr:last-child td { border-bottom: 0; }
.sched .d { font-weight: 600; color: var(--ink); white-space: nowrap; }
.sched .t { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.sched td a { color: var(--ink); text-decoration: none; font-weight: 500; }
.sched td a:hover { color: var(--amber-deep); text-decoration: underline; }
.sched .j { text-align: right; }
.sched .j a { color: #fff; }
/* A four-column table cannot shrink to a phone; stack each row into a card. */
@media (max-width: 700px) {
  .sched, .sched tbody, .sched tr, .sched td { display: block; width: 100%; }
  .sched thead { display: none; }
  .sched tr { border-bottom: 1px solid var(--line); padding: 1.1rem; }
  .sched tr:last-child { border-bottom: 0; }
  .sched td { border-bottom: 0; padding: 0 0 .35rem; }
  .sched .j { text-align: left; padding-top: .8rem; }
}

/* `.nav a` (0,0,1,1) out-specifies `.btn` (0,0,1,0), which left the header
   call to action rendering dark text on its dark fill. */
.nav a.btn { color: var(--paper); }
.nav a.btn:hover { color: #fff; }

/* Four meetings sit as 3+1 in a three-column grid; a wider minimum gives a
   balanced 2x2 instead. */
.meets { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
