/* Rabbi — shared styles. The palette is the app's child mode, so the site
   and the product read as one thing. */

:root {
  --cream: #f5f2eb;
  --surface: #fbfaf6;
  --ink: #3b3a34;
  --ink-muted: #8a8577;
  --sage: #6e9a6b;
  --sage-deep: #3d5b3b;
  --sage-soft: #e4ede1;
  --border: #e7e2d5;
  --radius: 16px;
  --measure: 68ch;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  flex-shrink: 0;
}

.brand strong {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
}

nav a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--sage-deep);
  border-bottom-color: var(--sage);
}

/* Hero */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 800;
}

.hero p {
  font-size: clamp(17px, 2.5vw, 20px);
  color: var(--ink-muted);
  margin: 0 auto;
  max-width: 46ch;
}

.hero-mark {
  width: 116px;
  height: 116px;
  border-radius: 29px;
  margin: 0 auto 26px;
  display: block;
}

/* Content */

main {
  padding: 40px 0 64px;
}

h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  font-weight: 700;
  line-height: 1.35;
}

h2:first-child {
  margin-top: 0;
}

h3 {
  font-size: 18px;
  margin: 26px 0 8px;
  font-weight: 700;
}

p,
li {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

a {
  color: var(--sage-deep);
}

strong {
  font-weight: 700;
}

.lede {
  font-size: 18px;
  color: var(--ink-muted);
}

.updated {
  display: inline-block;
  font-size: 14px;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 26px;
}

/* Cards */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin: 34px 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

/* A pulled-out statement — used for the promises that matter most. */
.note {
  background: var(--sage-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
}

.note p:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: var(--surface);
}

/* Wide tables scroll on their own rather than pushing the page sideways. */
.scroll-x {
  overflow-x: auto;
}

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--ink-muted);
}

footer a {
  color: var(--ink-muted);
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  .hero {
    padding: 36px 0 28px;
  }
}
