/* What Actually Happened — site styles. No external dependencies. */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

:root {
  --bg: #fbfaf7;
  --bg-card: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b55;
  --accent: #7a2e1c;
  --accent-dark: #5a2014;
  --rule: #e4e0d8;
  --measure: 40rem;
  --wide: 66rem;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { font-size: 18px; -webkit-text-size-adjust: 100%; }
@media (max-width: 600px) { html { font-size: 17px; } }

body {
  font-family: var(--serif);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; padding-bottom: 4rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.header-inner {
  max-width: var(--wide); margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.site-name { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; line-height: 1.2; color: var(--text); text-decoration: none; letter-spacing: 0.01em; }
.site-seal { width: 40px; height: 40px; flex-shrink: 0; }
@media (max-width: 600px) {
  .header-inner { padding: 0.75rem 1rem; }
  .site-seal { width: 32px; height: 32px; }
  .site-name { font-size: 1.05rem; gap: 0.5rem; }
}
.site-name:hover { color: var(--accent); }
nav { display: flex; gap: 1.4rem; }
nav a {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
}
nav a:hover, nav a.active { color: var(--text); }
nav a.active { border-bottom: 2px solid var(--accent); }

/* Hero */
.hero { padding: 4rem 0 2rem; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1.1; font-weight: normal; margin: 0.6rem 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); font-style: italic; max-width: 34rem; margin: 0 auto; }

/* Prose */
.prose p, .prose ul, .prose ol, .prose blockquote { margin-bottom: 1.15em; }
.prose h2 { font-weight: normal; font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { border-left: 3px solid var(--rule); padding-left: 1rem; color: var(--muted); }
.home-intro { padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 2.5rem; }

.page-title { font-weight: normal; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.2; margin: 2.5rem 0 1.5rem; }
.section-title { font-weight: normal; font-size: 1.6rem; margin-bottom: 1.5rem; text-align: center; }
.back-link { display: inline-block; margin-top: 2rem; font-family: var(--sans); font-size: 0.85rem; text-decoration: none; }

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 20rem));
  justify-content: center;
  gap: 2rem;
}
.book-card {
  background: var(--bg-card); border: 1px solid var(--rule); border-radius: 4px;
  display: flex; flex-direction: column; overflow: hidden;
}
.book-card-cover { display: block; background: #efece6; padding: 1.5rem 1.5rem 0; }
.book-card-cover .cover-img, .book-card-cover .cover-placeholder {
  margin: 0 auto; max-height: 22rem; width: auto; box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.book-card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.book-card h3 { font-weight: normal; font-size: 1.3rem; line-height: 1.3; margin: 0.3rem 0 0.6rem; }
.book-card h3 a { color: var(--text); text-decoration: none; }
.book-card h3 a:hover { color: var(--accent); }
.book-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.book-card .more { font-family: var(--sans); font-size: 0.85rem; text-decoration: none; }

/* Cover placeholder */
.cover-placeholder {
  aspect-ratio: 2 / 3; width: 100%; max-width: 16rem;
  background: linear-gradient(160deg, #2b2a33, #4a3a33);
  color: #f3efe7; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.5rem 1.25rem; text-align: center;
}
.book-card-cover .cover-placeholder { height: 22rem; }
.cover-placeholder-series { font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; }
.cover-placeholder-title { font-size: 1.4rem; line-height: 1.25; }
.cover-placeholder-author { font-size: 0.85rem; opacity: 0.85; }

/* Book page */
.book-layout { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: 3rem; margin-top: 1.5rem; align-items: start; }
.book-cover-col .cover-img { width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.book-info-col h1 { font-weight: normal; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.15; margin: 0.4rem 0 0.4rem; }
.book-info-col .prose { max-width: var(--measure); }
.byline { color: var(--muted); font-style: italic; margin-bottom: 1.25rem; }
@media (max-width: 760px) {
  .book-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .book-cover-col { max-width: 15rem; margin: 0 auto; }
}

.buy-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.btn {
  font-family: var(--sans); font-size: 0.85rem; text-decoration: none;
  padding: 0.6rem 1rem; border: 1px solid var(--accent); border-radius: 3px; color: var(--accent);
}
.btn:hover { background: #f3e9e5; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.royalties { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }

/* Essays */
.post-list { list-style: none; }
.post-list li { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.post-list h2 { font-weight: normal; font-size: 1.3rem; }
.post-list h2 a { color: var(--text); text-decoration: none; }
.post-list p { color: var(--muted); }
.badge, .placeholder-banner {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  background: #fff3cd; color: #6b5200; border: 1px solid #e6d28a;
}
.badge { display: inline-block; padding: 0.1rem 0.45rem; border-radius: 3px; }
.placeholder-banner { padding: 0.6rem 0.9rem; margin-top: 1.5rem; border-radius: 3px; }

/* About */
.author-photo { width: 9rem; border-radius: 50%; float: right; margin: 0 0 1rem 1.5rem; }
@media (max-width: 500px) { .author-photo { float: none; margin: 0 0 1rem; } }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 1.75rem 1.25rem; }
.footer-inner {
  max-width: var(--wide); margin: 0 auto; text-align: center;
  font-family: var(--sans); font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere;
}
.footer-inner a { color: var(--muted); }

/* Up next (forthcoming book) */
.up-next { max-width: var(--wide); margin: 3.5rem auto 0; padding: 0 1.25rem; }
.up-next-inner {
  display: grid; grid-template-columns: 14rem 1fr; gap: 2.5rem; align-items: center;
  background: #f1ece3; border: 1px solid var(--rule); border-top: 4px solid var(--accent);
  border-radius: 4px; padding: 2.25rem;
}
.up-next-cover { display: block; }
.up-next-cover .cover-placeholder { max-width: 14rem; box-shadow: 0 8px 22px rgba(0,0,0,0.2); }
.up-next h2 { font-weight: normal; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: 0.4rem 0 0.75rem; }
.up-next h2 a { color: var(--text); text-decoration: none; }
.up-next h2 a:hover { color: var(--accent); }
.up-next-desc { font-size: 1.05rem; margin-bottom: 1.25rem; }
.pull-quote { border-left: 3px solid var(--accent); padding: 0.25rem 0 0.25rem 1.1rem; margin: 0 0 1.5rem; }
.pull-quote p { font-size: 1.2rem; font-style: italic; line-height: 1.5; }
.pull-quote cite { display: block; margin-top: 0.5rem; font-family: var(--sans); font-size: 0.78rem; font-style: normal; color: var(--muted); }
.up-next .btn { display: inline-block; }
@media (max-width: 760px) {
  .up-next-inner { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
  .up-next-cover .cover-placeholder { margin: 0 auto; max-width: 11rem; }
}

/* Forthcoming book page */
.badge-forthcoming { display: inline-block; font-size: 0.8rem; padding: 0.35rem 0.7rem; margin-bottom: 1.5rem; background: #f1ece3; color: var(--accent); border-color: var(--accent); }
.book-cover-col .cover-placeholder { max-width: none; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.excerpt-heading { margin-top: 2.5rem !important; padding-top: 1.75rem; border-top: 1px solid var(--rule); }
.excerpt-source { font-style: italic; color: var(--muted); }
.excerpt { border-left: 3px solid var(--rule); padding-left: 1.25rem; margin: 1.5rem 0; }
.excerpt-notes { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
.excerpt-notes p { margin-bottom: 0.6em; }
.book-card-cover, .up-next-cover { text-decoration: none; }

/* Mailing list signup (mirrors lloydwtaylor.com) */
.subscribe-wrap { margin-top: 3rem; }
.subscribe-block { margin-bottom: 2rem; padding: 1.5rem 1.75rem; background: var(--bg-card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); }
.subscribe-title { font-size: 1.3rem !important; font-weight: normal; margin: 0 0 0.4rem !important; }
.subscribe-block > p { font-size: 0.95rem; color: var(--muted); margin-bottom: 1rem; max-width: 560px; }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; max-width: 560px; }
.subscribe-form label { font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); display: block; width: 100%; margin-bottom: -0.35rem; }
.subscribe-form input[type="email"] { font-family: var(--sans); font-size: 0.95rem; color: var(--text); background: var(--bg); border: 1px solid #d8d6d0; border-radius: 3px; padding: 0.55rem 0.75rem; flex: 1 1 220px; }
.subscribe-form button { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 3px; padding: 0.55rem 1rem; cursor: pointer; }
.subscribe-form button:hover { background: var(--accent-dark); }
.subscribe-block > p.subscribe-note { font-family: var(--sans); font-size: 0.8rem; margin: 0.85rem 0 0; }

/* Buy buttons on book cards */
.card-buy { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.card-buy .btn { flex: 1 1 7rem; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.55rem 0.9rem; text-align: center; white-space: nowrap; }
