
:root {
  --parchment: #f7f2e9;
  --panel: #efe7d8;
  --ink: #2e2438;
  --ink-soft: #5c5170;
  --muted: #8f8397;
  --plum: #6b4a7a;
  --plum-deep: color-mix(in srgb, #6b4a7a 82%, black);
  --lavender: #d8bfd8;
  --gold: #b8934a;
  --gold-ink: #8a6a2e;
  --rule: #ddd2c2;
  --dots: #c9bba5;
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif-body: "EB Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: var(--dots) transparent; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif-body);
}
a { color: var(--plum); text-decoration: none; }
a:hover { color: var(--plum-deep); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 56px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.wordmark:hover { color: var(--plum); }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  align-items: center;
}
.site-header nav a, .site-header nav .buy {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header nav a[aria-current] {
  color: var(--plum);
  border-bottom: 1.5px solid var(--plum);
  padding-bottom: 2px;
}
.site-header nav .buy { color: var(--plum); }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--plum);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 34px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--plum); color: var(--parchment); }
.btn-primary:hover { background: var(--plum-deep); color: var(--parchment); }
.btn-outline { border: 1px solid var(--plum); color: var(--plum); background: transparent; }
.btn-gold { border: 1px solid var(--gold); color: var(--gold-ink); font-size: 13px; padding: 12px 30px; background: transparent; }
.btn.unavailable, .buy.unavailable { opacity: 0.65; pointer-events: none; }
.gold-rule { width: 60px; height: 2px; background: var(--gold); margin: 24px auto 0; }
.hero { text-align: center; padding: 72px 24px 56px; max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-family: var(--serif-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  margin: 18px 0 0;
}
.hero .lede {
  font-size: 20px;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 20px;
  line-height: 1.5;
}
.hero .actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-art { max-width: 860px; margin: 0 auto; padding: 0 24px 64px; }

.hero-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border: 8px solid #fff;
  outline: 1px solid var(--rule);
  box-shadow: 0 12px 30px rgba(46, 36, 56, 0.18);
}

.hero-art figcaption {
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
  margin-top: 12px;
}
.latest { background: var(--panel); padding: 56px 24px; }
.latest .note {
  text-align: center;
  font-style: italic;
  max-width: 36rem;
  margin: 12px auto 0;
}
.index-latest {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.latest h2, .section-title, .contact-band h2 {
  font-family: var(--serif-display);
  font-size: 34px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}
.toc { max-width: 640px; margin: 28px auto 0; list-style: none; padding: 0; }
.toc li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dotted var(--dots);
}
.toc .num {
  font-family: var(--serif-display);
  font-size: 20px;
  color: var(--plum);
  width: 44px;
  flex: none;
}
.toc a {
  color: var(--ink);
  font-size: 20px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.toc a:hover { color: var(--plum); }
.toc .read {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.index-head { text-align: center; padding: 64px 24px 0; }
.index-head h1 {
  font-family: var(--serif-display);
  font-size: 52px;
  font-weight: 500;
  margin: 10px 0 0;
}
.toc-columns {
  columns: 2;
  column-gap: 72px;
  max-width: 860px;
  margin: 44px auto 0;
  padding: 0 24px 80px;
  list-style: none;
}
.toc-columns li {
  break-inside: avoid;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--dots);
}
.toc-columns .num {
  font-family: var(--serif-display);
  font-size: 18px;
  color: var(--plum);
  width: 44px;
  flex: none;
}
.toc-columns a {
  color: var(--ink);
  font-size: 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.toc-columns a:hover { color: var(--plum); }
article.chapter { max-width: 660px; margin: 0 auto; padding: 72px 24px 80px; }
article.chapter > header { text-align: center; }
article.chapter h1 {
  font-family: var(--serif-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 500;
  margin: 12px 0 0;
}
.post-meta { font-size: 15px; color: var(--muted); margin-top: 14px; }
.framed { margin: 36px 0 0; }
.framed img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 8px solid #fff;
  outline: 1px solid var(--rule);
  box-shadow: 0 12px 30px rgba(46, 36, 56, 0.18);
}
.body { font-size: 19.5px; line-height: 1.75; margin-top: 40px; }
.body h2 {
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 500;
  margin: 2.2rem 0 0.8rem;
}
.body p { margin: 0 0 1.15rem; }
.body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif-display);
  font-size: 78px;
  line-height: 0.8;
  color: var(--plum);
  padding: 8px 10px 0 0;
}
blockquote.scripture {
  background: var(--panel);
  border-top: 2px solid var(--gold);
  padding: 24px 30px;
  margin: 28px 0;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
}
.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.chapter-nav .label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.chapter-nav a {
  display: block;
  font-family: var(--serif-display);
  font-size: 20px;
  color: var(--ink);
  margin-top: 4px;
  min-height: 44px;
}
.chapter-nav a:hover { color: var(--plum); }
.chapter-nav .next { text-align: right; margin-left: auto; }
.contact-band { text-align: center; padding: 56px 24px; max-width: 640px; margin: 0 auto; }
.contact-band p { color: var(--ink-soft); font-size: 18px; line-height: 1.5; }
.note { color: var(--muted); }
.write-wrap { max-width: 660px; margin: 0 auto; padding: 64px 24px 80px; }
.write-wrap h1 {
  font-family: var(--serif-display);
  font-size: 52px;
  font-weight: 500;
  text-align: left;
  margin: 10px 0 0;
}
.write-wrap .gold-rule { margin-left: 0; }
.write-wrap h2 {
  font-family: var(--serif-display);
  font-size: 28px;
  font-weight: 500;
  text-align: left;
  margin: 2.5rem 0 0.75rem;
}
.write-wrap .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.write-wrap .toc { max-width: none; margin-left: 0; }
.write-wrap .toc button {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  color: var(--plum);
  cursor: pointer;
  min-height: 44px;
}
form.write label { display: block; font-weight: 600; margin: 1.15rem 0 0.4rem; }
form.write input[type="text"],
form.write textarea {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  min-height: 48px;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--parchment) 55%, white);
  color: var(--ink);
}
form.write textarea { min-height: 18rem; line-height: 1.55; }
form.write textarea#home-copy { min-height: 8rem; }
form.write input[type="file"] { display: block; margin-top: 0.25rem; min-height: 44px; }
form.write .status a { font-weight: 600; }
form.write .home-preview img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0.5rem 0 0;
  border: 8px solid #fff;
  outline: 1px solid var(--rule);
}
form.write fieldset.home-fit {
  border: 1px solid var(--rule);
  margin: 1.15rem 0 0;
  padding: 0.75rem 1rem 1rem;
}
form.write fieldset.home-fit legend { font-weight: 600; padding: 0 0.35rem; }
form.write fieldset.home-fit label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  margin: 0.45rem 0 0;
  min-height: 44px;
}
form.write fieldset.home-fit input { width: auto; min-height: 22px; }
.site-footer { text-align: center; padding: 48px 24px; border-top: 1px solid var(--rule); }
.footer-title { font-family: var(--serif-display); font-size: 26px; }
.footer-sub { font-size: 17px; font-style: italic; color: var(--ink-soft); margin: 8px 0 18px; }
.footer-buy { margin: 18px 0 0; }
.copyright { font-size: 13px; color: var(--muted); margin-top: 40px; }
@media (max-width: 720px) {
  .site-header { padding: 18px 20px; }
  .site-header nav { gap: 12px 20px; }
  .toc-columns { columns: 1; }
  
  .chapter-nav { flex-direction: column; }
  .chapter-nav .next { text-align: left; margin-left: 0; }
}

/* Extra style for asonofman.org
 *
 * You do not need this file for normal writing. Use https://asonofman.org/write
 * for chapters and the home picture.
 *
 * To change layout a little: uncomment a block below (delete the / * and * /),
 * save, wait about a minute, then refresh the public site.
 * If it looks wrong, put the comments back and save again. Text Mike if stuck.
 */

/* Wider home picture
.hero-art { max-width: 1100px; }
*/

/* Page cream and purple
:root {
  --parchment: #f7f2e9;
  --plum: #6b4a7a;
}
*/
