/* Alan R Ackroyd — site styles
   Calm, readable, mobile-first. No external dependencies. */

:root {
  --bg: #fbf9f5;          /* warm off-white */
  --surface: #ffffff;
  --ink: #2c3539;         /* dark slate */
  --muted: #5d6b70;
  --accent: #5a8a82;      /* soft teal/sage */
  --accent-dark: #426860;
  --line: #e7e2d8;
  --max: 1080px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 600;
}

h1 { font-size: 2.4rem; margin: 0 0 .5rem; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }

p { margin: 0 0 1rem; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .9rem;
  padding-bottom: .9rem;
}
.brand {
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: .02em;
  display: flex;
  align-items: center;
}
.brand .logo {
  height: 46px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  margin-left: 1.4rem;
  font-size: 1rem;
}
.nav a:hover { color: var(--accent-dark); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.hero h1 { font-size: 2.8rem; }
.hero .lede {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
}
.btn.secondary:hover { background: rgba(90,138,130,.08); }

/* Sections */
section { padding: 3rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }

/* Book cards */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.book {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.cover {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  font-family: Georgia, serif;
}
.cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.cover .ct { font-size: 1.4rem; font-weight: 600; }
.cover .cs { font-size: .85rem; opacity: .9; margin-top: .5rem; font-family: inherit; }
.book h3 { margin-top: 0; }
.book p { color: var(--muted); font-size: .98rem; flex-grow: 1; }
.book .buys { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

/* Sign-up */
.signup {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
}
.signup h2 { color: #fff; }
.signup p { color: rgba(255,255,255,.9); }
.signup .embed-note {
  background: rgba(255,255,255,.12);
  border: 1px dashed rgba(255,255,255,.5);
  border-radius: 8px;
  padding: 1rem;
  font-size: .9rem;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  background: var(--surface);
}

/* Quote / testimonial */
.quote {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto;
}
.quote .by { display: block; font-style: normal; font-size: .95rem; color: var(--muted); margin-top: .75rem; }

ul.benefits { padding-left: 1.2rem; }
ul.benefits li { margin-bottom: .5rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 2.1rem; }
  .nav a { margin-left: .9rem; font-size: .95rem; }
  .brand .logo { height: 38px; }
}
