:root {
  --ink: #1b1b1b;
  --body: #4a4a4a;
  --muted: #6f6f6f;
  --panel: #f2f2f2;
  --rule: #dcdcdc;
  --button: #5f5f5f;
  --button-hover: #3f3f3f;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 620px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { text-align: center; padding: 40px 16px 8px; }
.wordmark {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 36px);
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 4px 14px;
  letter-spacing: 0.02em;
}
.site-nav { margin-top: 18px; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px;
}
.site-nav a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--muted); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

main { padding: 40px 0 24px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.25; }
h1 { font-size: clamp(28px, 4.5vw, 36px); margin: 0 0 24px; }
h2 { font-size: clamp(24px, 3.6vw, 30px); margin: 0 0 16px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
blockquote { margin: 0 0 20px; }
blockquote p { margin: 0; }
cite { display: block; font-style: normal; font-weight: 600; margin-top: 4px; }

.button {
  display: inline-block; background: var(--button); color: #fff;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  border: 0; padding: 14px 30px; cursor: pointer; white-space: nowrap;
}
.button:hover { background: var(--button-hover); }

/* Home hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); }
.hero-text {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 40px 32px;
}
.hero-text h1 { margin-bottom: 16px; }
.hero-text blockquote { max-width: 300px; font-size: 15px; }

/* Other books */
.section { margin-top: 64px; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.book-card { background: var(--panel); text-decoration: none; display: flex; flex-direction: column; }
.book-card img { aspect-ratio: 1 / 1; object-fit: cover; object-position: top; width: 100%; }
.book-card blockquote { padding: 20px; text-align: center; font-size: 14px; font-weight: 600; margin: 0; }
.book-card cite { font-weight: 600; }

/* Forms */
.signup { text-align: center; }
.signup form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
input[type="email"], input[type="text"], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--rule); background: transparent;
  padding: 12px 4px;
}
textarea { border: 1px solid var(--rule); min-height: 140px; padding: 12px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--muted); outline-offset: 2px; }
label { display: block; font-size: 14px; color: var(--muted); margin-top: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15px; color: var(--body); }
.check input { margin-top: 5px; }
.hidden { position: absolute; left: -9999px; }

.social { text-align: center; }
.social ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 28px; }
.social a { text-decoration: none; font-weight: 600; color: var(--ink); }
.social a:hover { text-decoration: underline; }

/* Books page */
.book { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--rule); }
.book:first-of-type { border-top: 0; padding-top: 8px; }
.book .accolade { font-weight: 600; color: var(--ink); }
.book blockquote { font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact form .button { margin-top: 24px; }

/* Teaching */
.testimonials blockquote { font-style: italic; margin: 0 0 28px; }
.testimonials cite { font-style: normal; font-weight: 400; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

/* Footer */
.site-footer {
  text-align: center; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 48px 16px 56px;
}

@media (max-width: 760px) {
  .hero, .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .book { grid-template-columns: 1fr; gap: 24px; }
  .book img { max-width: 320px; }
  .book-grid { grid-template-columns: 1fr; }
  .signup form { flex-direction: column; }
}
