/* Little Lamb's site: the app's own palette and type, nothing loaded from anywhere else. */
:root {
  --background: #f6ebdd;
  --surface: #fffaf2;
  --ledge: #e3cfb5;
  --primary: #b8492a;
  --text: #2b2a4c;
  --muted: #6b5e57;
  --success: #557635;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --book: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 600 1.0625rem/1.6 var(--rounded);
}

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

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

header.site {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
}

header.site img { width: 3rem; height: 3rem; border-radius: 0.75rem; }
header.site a.name { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
header.site nav { margin-left: auto; display: flex; gap: 1rem; }
header.site nav a { color: var(--muted); text-decoration: none; font-weight: 700; }

.hero {
  position: relative;
  height: 15rem;
  background: url("img/meadow.webp") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, var(--background));
}

h1 { font: 800 clamp(2rem, 6vw, 2.75rem)/1.15 var(--rounded); margin: 0.5rem 0 1rem; }
h2 { font: 800 1.5rem/1.25 var(--rounded); margin: 2.5rem 0 0.75rem; }
p.lead { font: 600 1.25rem/1.5 var(--book); color: var(--text); }
.muted { color: var(--muted); }

.books {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.books figure {
  margin: 0;
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 0.5rem 0.5rem 0.75rem;
  box-shadow: 0 6px 0 var(--ledge);
  text-align: center;
}

.books img { width: 100%; border-radius: 1.1rem; display: block; }
.books figcaption { margin-top: 0.5rem; font-weight: 700; }

.promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
  margin: 1rem 0;
}

.promises div { background: var(--surface); border-radius: 1.25rem; padding: 1rem 0.5rem; }
.promises strong { display: block; color: var(--success); font-size: 1.75rem; line-height: 1; }

.card {
  background: var(--surface);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 0 var(--ledge);
  margin: 1.5rem 0;
}

footer.site {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

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

@media (max-width: 30rem) {
  .promises { grid-template-columns: 1fr; }
  header.site nav { gap: 0.75rem; font-size: 0.95rem; }
}
