/* Enough, the free web edition (Nov 18 2026). The book's home (/enough/), the contents and every lesson page.
   Tokens from main.css; pages written by scripts/build-enough.py, which stamps this file's ?v=. */

/* ── THE BOOK'S HOME ── */
.en-hero { max-width: 1000px; margin: 100px auto 0; padding: 0 28px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: center; }
.en-book img { width: 100%; max-width: 400px; height: auto; margin: 0 auto; filter: drop-shadow(0 26px 34px rgba(20, 17, 13, .28)); }
.en-copy { font-size: 17.5px; line-height: 1.8; color: var(--body-ink); }
.en-copy p { margin: 0 0 22px; }
.en-copy a { color: var(--accent); }
.en-lede { font-size: 19px; }
.en-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.en-facts { font-size: 13px !important; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: -4px !important; }
.en-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.en-cta .sub-btn, .en-cta .sub-btn:hover { text-decoration: none; display: inline-block; color: var(--btn-fg); }
.en-continue { display: inline-flex; flex-direction: column; text-decoration: none; padding: 9px 20px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); line-height: 1.35; max-width: 320px; }
.en-continue[hidden] { display: none; }
.en-continue small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.en-continue span { font-size: 15px; font-weight: 600; color: var(--ink); }
.en-continue:hover { border-color: var(--accent); }
.en-more { margin-top: 22px !important; font-size: 14.5px; color: var(--faint); }
.en-more a { font-weight: 600; text-decoration: none; }
.en-more a:hover { text-decoration: underline; }

.eb-sec-cards { max-width: 1000px; margin: 110px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eb-sec-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; padding: 22px 20px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); transition: transform .15s, border-color .15s; }
.eb-sec-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.eb-sec-card span { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eb-sec-card b { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--ink); }
.eb-sec-card em { font-style: normal; font-size: 13.5px; color: var(--faint); }

.eb-contents { max-width: 1000px; margin: 90px auto 0; padding: 0 28px; scroll-margin-top: 80px; }
.eb-contents-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 30px; }
.eb-contents h2 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 34px; margin: 0; }
.eb-progress { margin: 0; font-size: 14px; color: var(--muted); }
.eb-progress b { color: var(--accent); }
.eb-quiz { text-align: center; margin: 44px 0 0; font-size: 15.5px; }
.eb-quiz a { color: var(--accent); font-weight: 600; }

/* ── THE CONTENTS (the home page and the drawer) ── */
.eb-toc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.eb-toc-front, .eb-toc-back { grid-column: 1 / -1; }
.eb-toc-sec { margin: 0 0 10px; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 22px; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; scroll-margin-top: 90px; }
.eb-toc-sec span { font-family: 'Lora', serif; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eb-toc-sec em { font-family: 'Lora', serif; font-style: normal; font-weight: 400; font-size: 13px; color: var(--faint); margin-left: auto; }
.eb-toc-part { scroll-margin-top: 90px; }
.eb-list { list-style: none; margin: 0; padding: 0; }
.eb-list a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 8px 6px; border-bottom: 1px dotted var(--line); text-decoration: none; color: var(--body-ink); font-size: 16px; line-height: 1.4; border-radius: 4px; }
.eb-list a:hover { background: var(--card); color: var(--ink); }
.eb-list a:hover .eb-t { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.eb-n { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; text-align: right; }
.eb-m { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.eb-list a.is-done .eb-m::before { content: '✓ '; color: var(--accent); font-weight: 700; }
.eb-list a.is-done .eb-t { color: var(--muted); }
.eb-list a[aria-current="page"] { background: var(--card); box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); font-weight: 600; }
.eb-toc-front .eb-list, .eb-toc-back .eb-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 56px; }
.eb-toc-front .eb-list { grid-template-columns: minmax(0, 1fr); max-width: calc(50% - 28px); }

.en-quote { max-width: 720px; margin: 120px auto 0; padding: 0 28px; text-align: center; }
.en-quote-mark { font-family: 'Playfair Display', serif; font-size: 54px; line-height: 1; color: var(--accent); opacity: .55; }
.en-quote blockquote { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: clamp(23px, 3.2vw, 30px); line-height: 1.5; color: var(--ink); margin: 10px 0 0; }
.en-quote figcaption { margin-top: 18px; font-size: 13.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); }
.en-free { max-width: 680px; margin: 110px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px 38px 34px; text-align: center; scroll-margin-top: 90px; }
.en-free-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 25px; margin: 0; }
.en-free-sub { font-size: 15.5px; color: var(--muted); line-height: 1.65; margin: 12px auto 0; max-width: 480px; }
.en-free .sub-form { justify-content: center; margin-top: 24px; }
.en-free .sub-form input { max-width: 300px; }
.en-free .sub-note { font-size: 12px; color: var(--faint); margin-top: 14px; }
.en-downloads { margin-top: 26px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.en-downloads a { display: inline-block; font-size: 15.5px; font-weight: 700; padding: 13px 26px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; transition: background .15s; }
.en-downloads a:hover { background: var(--btn-hover); }
.en-free-done { font-size: 17px; font-weight: 600; color: var(--accent); margin: 0; }
.en-free-formats { font-size: 13px; color: var(--faint); margin: 18px 0 0; }
.en-band { max-width: 680px; margin: 100px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 34px 34px 28px; text-align: center; }
.en-band-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 23px; margin: 0; }
.en-band-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 10px auto 0; max-width: 460px; }
.en-band .sub-form { justify-content: center; margin-top: 20px; }
.en-band .sub-form input { max-width: 300px; }
.en-band .sub-note { font-size: 12px; color: var(--faint); margin-top: 12px; }
.en-back { text-align: center; margin: 72px 24px 0; }
.en-back a { font-size: 15px; font-weight: 600; color: var(--accent); }

/* ── A LESSON ── */
.eb { max-width: 700px; margin: 0 auto; padding: 44px 28px 0; }
.eb-bar { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 64px; }
.eb-home { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 14px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.eb-home:hover { color: var(--accent); }
.eb-pos { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; margin-left: auto; }
.eb-toc-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.eb-toc-btn:hover { border-color: var(--accent); color: var(--accent); }

.eb-opener { text-align: center; margin: 0 0 76px; padding: 34px 0 40px; border-top: 2px solid var(--accent); border-bottom: 1px solid var(--line); }
.eb-opener span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.eb-opener b { display: block; font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(38px, 6.4vw, 60px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); margin-top: 12px; }

.eb-head { text-align: center; margin-bottom: 48px; }
.eb-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); margin: 0; }
.eb-num { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 84px; line-height: 1; color: var(--accent); margin: 18px 0 0; font-variant-numeric: lining-nums; }
.eb-head h1 { font-family: 'Playfair Display', serif; font-weight: 500; font-size: clamp(32px, 5vw, 48px); line-height: 1.12; letter-spacing: -.02em; margin: 16px auto 16px; max-width: 15em; text-wrap: balance; color: var(--ink); }
.eb-meta { font-size: 13.5px; color: var(--faint); margin: 0; }

.eb-text { font-size: 19.5px; line-height: 1.72; }
.eb-text p { margin-bottom: 22px; }
.eb-text h2 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; margin: 64px 0 20px; text-align: center; }
.eb-text h3 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; margin: 40px 0 10px; color: var(--ink); }
.eb-text .eb-bq { border-left: 2px solid var(--accent); padding: 2px 0 2px 24px; margin: 30px 0 30px 4px; font-style: normal; color: var(--body-ink); }
.eb-text .eb-bq p { margin-bottom: 14px; }
.eb-text .eb-bq p:last-child { margin-bottom: 0; }
.eb-quote { margin: 52px auto; max-width: 30em; text-align: center; }
.eb-quote blockquote { border: 0; padding: 0; margin: 0; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: clamp(22px, 3vw, 27px); line-height: 1.45; color: var(--ink); }
.eb-quote blockquote::before { content: ''; display: block; width: 36px; height: 2px; background: var(--accent); margin: 0 auto 22px; }
.eb-quote figcaption { margin-top: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eb-lines { list-style: none; padding: 18px 22px !important; margin: 30px 0 !important; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 16.5px; }
.eb-lines li { margin: 0; padding: 6px 0; border-bottom: 1px dotted var(--line); display: flex; gap: 14px; }
.eb-lines li:last-child { border-bottom: 0; }
.eb-time { flex: 0 0 8.4em; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.eb-table-wrap { margin: 34px 0; overflow-x: auto; }
.eb-table { width: 100%; border-collapse: collapse; font-size: 16.5px; line-height: 1.45; }
.eb-table th { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 21px; text-align: left; padding: 0 14px 12px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.eb-table th:first-child { color: var(--faint); border-bottom-color: var(--line); }
.eb-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.eb-table td:first-child { color: var(--muted); }
.eb-table td:last-child { color: var(--ink); }
.eb-table + .eb-table, .eb-table-wrap + .eb-table-wrap { margin-top: 26px; }
.eb-res { margin: 0 0 26px; }
.eb-res h3 { margin: 0 0 4px !important; font-size: 20px !important; }
.eb-res h3 a { color: var(--ink); text-decoration-color: var(--accent); }
.eb-res p { margin: 0; }
.eb-watch { list-style: none; padding: 0 !important; margin: 0 0 28px !important; }
.eb-watch li { padding: 10px 0; border-bottom: 1px dotted var(--line); margin: 0; }
.eb-watch li::before { content: '▶'; font-size: 11px; color: var(--accent); margin-right: 12px; vertical-align: 2px; }

.eb-front { text-align: center; margin: 0 0 80px; }
.eb-label { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.eb-ded p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 20px; line-height: 1.6; color: var(--body-ink); max-width: 28em; margin: 0 auto 12px; }
.eb-epi { margin: 64px auto 0; padding: 40px 0 0; border-top: 1px solid var(--line); }
.eb-epi blockquote { margin: 0; font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(26px, 4vw, 34px); line-height: 1.25; color: var(--ink); }
.eb-epi figcaption { margin-top: 16px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

.eb-sig { margin: 26px 0 0; }
.eb-sig img { width: 170px; height: auto; opacity: .85; }
html[data-theme="dark"] .eb-sig img { filter: invert(1); opacity: .8; }
.eb-author { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; align-items: start; margin: 64px 0 0; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); font-size: 16.5px; line-height: 1.65; color: var(--body-ink); }
.eb-author img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.eb-author h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; margin: 0 0 10px; }
.eb-author p { margin: 0 0 10px; }
.eb-author a { color: var(--accent); }

.eb-end { text-align: center; color: var(--accent); font-size: 14px; margin: 54px 0 44px; letter-spacing: 1em; }
.eb-pager { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.eb-pager a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; background: var(--card); transition: border-color .15s, transform .15s; }
.eb-pager a:hover { border-color: var(--accent); }
.eb-next { padding: 26px 28px !important; }
.eb-next:hover { transform: translateY(-2px); }
.eb-pl { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eb-pt { font-family: 'Playfair Display', serif; font-weight: 600; color: var(--ink); line-height: 1.25; }
.eb-next .eb-pt { font-size: 26px; }
.eb-prev .eb-pt { font-size: 17px; }
.eb-prev { background: transparent !important; }
.eb-pm { font-size: 13px; color: var(--faint); }
.eb-buy { text-align: center; font-size: 15.5px; color: var(--muted); margin: 30px 0 0; }
.eb-buy a { color: var(--accent); font-weight: 600; }
.eb-sat { margin: 72px 0 0; padding: 30px 30px 24px; border-top: 1px solid var(--line); text-align: center; }
.eb-sat-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 21px; margin: 0; color: var(--ink); }
.eb-sat-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 8px auto 0; max-width: 430px; }
.eb-sat .sub-form { justify-content: center; margin-top: 18px; }
.eb-sat .sub-form input { max-width: 290px; }

/* the contents drawer */
.eb-drawer { position: fixed; inset: 0; z-index: 120; background: rgba(18, 14, 10, .42); display: flex; justify-content: flex-end; }
.eb-drawer[hidden] { display: none; }
.eb-drawer-in { width: min(440px, 92vw); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); box-shadow: -18px 0 40px -20px rgba(0, 0, 0, .4); padding: 0 22px 40px; animation: eb-in .22s ease-out; }
@keyframes eb-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.eb-drawer-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; background: var(--bg); padding: 18px 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.eb-drawer-top a { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; font-size: 14px; color: var(--ink); text-decoration: none; }
.eb-x { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.eb-x:hover { color: var(--ink); }
.eb-drawer .eb-toc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.eb-drawer .eb-toc-front .eb-list, .eb-drawer .eb-toc-back .eb-list { grid-template-columns: minmax(0, 1fr); max-width: none; }
.eb-drawer .eb-toc-sec { font-size: 19px; }
.eb-drawer .eb-list a { font-size: 15px; padding: 7px 4px; }
html.eb-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .eb-drawer-in { animation: none; } .eb-next:hover, .eb-sec-card:hover { transform: none; } }

@media (max-width: 860px) {
  .eb-sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eb-toc-grid { grid-template-columns: minmax(0, 1fr); }
  .eb-toc-front .eb-list { max-width: none; }
  .eb-toc-back .eb-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .en-hero { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; text-align: center; }
  .en-book img { max-width: 270px; }
  .en-cta { justify-content: center; }
  .en-continue { align-items: center; }
  .eb-sec-cards { margin-top: 70px; }
  .eb-contents { margin-top: 64px; }
  .en-quote, .en-free, .en-band { margin-top: 84px; }
}
@media (max-width: 560px) {
  .eb { padding: 26px 20px 0; }
  .eb-bar { margin-bottom: 44px; }
  .eb-pos { display: none; }
  .eb-toc-btn { margin-left: auto; }
  .eb-num { font-size: 68px; }
  .eb-text { font-size: 18.5px; }
  .eb-table { font-size: 15.5px; }
  .eb-table td, .eb-table th { padding-left: 8px; padding-right: 8px; }
  .eb-next .eb-pt { font-size: 22px; }
  .eb-author { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .eb-contents { padding: 0 20px; }
  .eb-sec-cards { padding: 0 20px; }
  .eb-sec-card b { font-size: 19px; }
  .en-free { padding: 32px 22px 28px; margin-left: 16px; margin-right: 16px; }
  .en-band { margin-left: 16px; margin-right: 16px; padding: 30px 22px 24px; }
  .eb-time { flex-basis: 7.6em; }
}
/* a section's first lesson: the opener already names the section, so its eyebrow is for screen readers only */
.eb-opener + .eb-head .eb-eyebrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eb-opener + .eb-head .eb-num { margin-top: 0; }
/* a narrower gap after the drop cap ("I" is slim in Playfair) */
.eb-text .essay-first-p:first-letter { margin-right: 7px; }
