/*
 * shulplatform.com
 *
 * Its own stylesheet, not the shul's. A shul's site should look like that
 * shul; the platform should look like a tool. Restrained on purpose — the
 * audience is a gabbai or a treasurer deciding whether this is serious, and
 * a page that shouts reads as a page with something to hide.
 *
 * Outside the Vite build, like the shul site's, because nothing here is
 * Tailwind and the droplet should not need Node to serve a static page.
 */

:root {
  --ink: #16181d;
  --muted: #5c6370;
  --rule: #e2e5ea;
  --rule-soft: #eef0f3;
  --paper: #ffffff;
  --ground: #f7f8fa;
  --accent: #1d3a63;
  --accent-soft: #eaf0f8;
  --measure: 40rem;
  --display: 'Frank Ruhl Libre', Georgia, 'Times New Roman', serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.shell {
  width: min(68rem, 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
}

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

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.masthead__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span { color: var(--accent); }

/* ----------------------------------------------------------------- hero */

.hero {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 22ch;
}
.hero p {
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 2rem;
}

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 0.68rem 1.35rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}
.btn:hover { background: #16304f; border-color: #16304f; }

.btn--quiet {
  background: transparent;
  color: var(--accent);
  border-color: var(--rule);
}
.btn--quiet:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ---------------------------------------------------------------- bands */

.band { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.band--ground { background: var(--ground); border-block: 1px solid var(--rule); }

.band h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.band__lead {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0 0 2.2rem;
}

.grid {
  display: grid;
  gap: 1.6rem 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.feature h3 {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------- callout */

.callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--paper);
  padding: 1.5rem 1.7rem;
  max-width: var(--measure);
}
.callout h3 { margin: 0 0 0.4rem; font-family: var(--display); font-size: 1.2rem; }
.callout p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.callout p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- colophon */

.colophon {
  border-top: 1px solid var(--rule);
  padding: 2.2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.colophon__bar {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}


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

.form { max-width: 44rem; }

.form__row {
  display: grid;
  gap: 0 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.form label {
  display: block;
  margin-bottom: 1.05rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.form__opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  margin-top: 0.32rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: 5px;
  font: inherit;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form textarea { resize: vertical; }

.form__note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 0 1.2rem;
}

.form__error {
  border-left: 3px solid #a8332e;
  background: #fdf3f2;
  color: #7d2723;
  padding: 0.7rem 0.95rem;
  border-radius: 4px;
  font-size: 0.92rem;
  margin: 0 0 1.2rem;
}
