.ed-page {
  --ed-ink: #121519;
  --ed-paper: #f4f0e8;
  --ed-cream: #fbf8f2;
  --ed-line: #cfc8b9;
  --ed-muted: #59574f;
  --ed-amber: #ecab3d;
  --bs-heading-margin-bottom: 0;
  --bs-heading-font-weight: 700;
  --bs-heading-font-family: var(--display);
  color: var(--ed-ink);
  background: var(--ed-cream);
  font-family: Inter, Arial, sans-serif;
}
.ed-page :is(h1,h2,h3,h4), .ed-chapter-list strong, .ed-book-title, .ed-next strong {
  font-family: Mosk, Arial, sans-serif;
  letter-spacing: -.032em;
}
.ed-page :is(p,ol,ul) { margin: 0; }
.ed-page a { color: inherit; text-underline-offset: .22em; }
.ed-page :focus-visible { outline: 3px solid #8b5708; outline-offset: 4px; }
.ed-hero :focus-visible { outline-color: #ffd689; }
.ed-wrap { width: min(81rem, calc(100% - clamp(2.5rem, 10.4vw, 10rem))); --bs-gutter-x: 0; }
.ed-hero { background: var(--ed-ink); color: var(--ed-cream); }
.ed-crumbs {
  padding-top: clamp(1.5rem, 3vw, 2.75rem);
  gap: .8rem;
  color: #ccc8bf; font-size: .8rem; line-height: 1.55;
}
.ed-crumbs > [aria-hidden] { color: #927f5e; }
.ed-crumbs a { text-decoration: none; }
.ed-crumbs a:hover { text-decoration: underline; }
.ed-cover-grid {
  grid-template-columns: 1.36fr minmax(0, .8fr); gap: clamp(2rem, 8vw, 8rem);
  padding-block: clamp(2.5rem, 6vw, 6.5rem) clamp(3.5rem, 7vw, 7rem);
}
.ed-page h1 { font-weight: 900; line-height: .99; }
.ed-collection h1 { font-size: clamp(3.1rem, 7.3vw, 7rem); }
.ed-collection h1 span { display: block; color: var(--ed-amber); }
.ed-hero .ed-lead { max-width: 52ch; margin-top: 1.35rem; font-size: clamp(1.05rem, 1.65vw, 1.4rem); line-height: 1.55; color: #e0ddd6; }
.ed-book {
  justify-self: center; width: min(100%, 23.5rem); isolation: isolate;
  padding: 0 .55rem .4rem 0; color: var(--ed-ink);
  background: repeating-linear-gradient(to bottom,#d0c4ad 0 1px,#ece3d3 1px 3px);
  border-radius: 2px 7px 7px 2px; box-shadow: 6px 12px 0 #080a0c, 12px 22px 25px #0004;
  transform: rotate(2deg);
  transition: transform .2s ease;
}
.ed-book:hover { transform: rotate(0deg) translateY(-2px); }
.ed-book-inner {
  gap: .65rem; padding: clamp(1.5rem,3.4vw,3rem);
  min-height: 18rem; border-left: .9rem solid #b77c24;
  background: #edb656; color: var(--ed-ink); border-radius: 2px 4px 4px 2px;
  background-image: linear-gradient(90deg,#0001 0,transparent 8px,transparent 13px,#7a4e161c 14px,transparent 17px);
}
.ed-book-series, .ed-eyebrow, .ed-next small {
  font-size: .72rem; letter-spacing: .12em; line-height: 1.5;
}
.ed-book-title { max-width: 8ch; font-size: clamp(2.7rem,4.3vw,4.1rem); font-weight: 900; line-height: .98; }
.ed-book-date { font-size: .86rem; }
.ed-book-read { gap: .65rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #61491d; font-size: .85rem; font-weight: 700; }
.ed-arrow { font-family: Arial, sans-serif; font-size: 1.5rem; line-height: 1; }
.ed-library, .ed-reading { padding-block: clamp(3.2rem, 7vw, 7.5rem); }
.ed-library { grid-template-columns: minmax(0,.74fr) minmax(0,1.25fr); gap: clamp(2.5rem,7vw,7.3rem); }
.ed-library h2 { font-size: clamp(2.25rem,4vw,3.8rem); line-height: .99; font-weight: 900; text-wrap: balance; }
.ed-library > div > p { color: var(--ed-muted); max-width: 34ch; margin-top: 1.1rem; line-height: 1.65; }
.ed-chapter-list li { border-top: 1px solid var(--ed-line); }
.ed-chapter-list li:last-child { border-bottom: 1px solid var(--ed-line); }
.ed-chapter-list a { gap: 1rem; padding: clamp(1.2rem,2.5vw,2.1rem) .3rem; }
.ed-chapter-list strong, .ed-next strong { font-size: clamp(1.5rem,2.3vw,2.1rem); line-height: 1.12; }
.ed-excerpt { max-width: 51ch; font-size: .96rem; line-height: 1.65; color: var(--ed-muted); margin-top: .5rem; }
.ed-chapter-list a:hover strong, .ed-next:hover strong { text-decoration: underline; text-decoration-thickness: 1.5px; }
.ed-chapter-list a .ed-arrow, .ed-next .ed-arrow {
  width: 2.7rem; height: 2.7rem;
  border: 1px solid var(--ed-line); transition: background-color .15s, border-color .15s;
}
.ed-chapter-list a:hover .ed-arrow, .ed-next:hover .ed-arrow { background: var(--ed-amber); border-color: var(--ed-amber); }
.ed-article-head { max-width: 65rem; padding-block: clamp(2.6rem,5vw,5.25rem) clamp(3.2rem,6vw,6.5rem); }
.ed-article-head .ed-eyebrow { color: var(--ed-amber); margin: 0 0 1.1rem; }
.ed-article-head h1 { font-size: clamp(2.85rem,6vw,5.65rem); }
.ed-legal-hero .ed-article-head { max-width: 62rem; }
.ed-author { gap: .65rem; color: #c1bdb6; font-size: .85rem; }
.ed-article-head .ed-author { margin-top: 1.5rem; }
.ed-author a { color: #fff4db; }
.ed-reading { grid-template-columns: minmax(0,45rem) minmax(13rem,21rem); gap: clamp(2rem,6vw,7rem); }
.ed-reading article, .ed-reading aside { min-width: 0; }
.ed-prose { font-size: clamp(1rem,1.35vw,1.115rem); line-height: 1.75; overflow-wrap: anywhere; }
.ed-prose h2 { margin-top: 2.8rem; font-size: clamp(2.15rem,3.9vw,3.7rem); line-height: 1.03; font-weight: 900; text-wrap: balance; }
.ed-prose h3 { margin-top: 2.55rem; font-size: clamp(1.65rem,2.6vw,2.3rem); line-height: 1.12; }
.ed-prose h4 { margin-top: 2.1rem; font-size: clamp(1.38rem,2.1vw,1.8rem); line-height: 1.2; }
.ed-prose > :first-child { margin-top: 0; }
.ed-prose p, .ed-prose :is(ul,ol) { margin-block: 1rem; }
.ed-prose :is(ul,ol) { padding-inline-start: 1.4em; }
.ed-prose li + li { margin-top: .35em; }
.ed-prose a:not(.ed-next) { color: #654515; text-decoration: underline; }
.ed-prose a:not(.ed-next):hover { color: var(--ed-ink); text-decoration-thickness: 2px; }
.ed-prose .footnote-link { text-decoration: none; font-weight: 700; }
.ed-prose :is(sup,sub) { position: static; font-size: smaller; line-height: inherit; }
.ed-prose sup { vertical-align: super; }
.ed-prose sub { vertical-align: sub; }
.ed-prose .footnote-note { font-size: .85rem; line-height: 1.6; color: var(--ed-muted); }
.ed-prose img { margin-block: 1.4rem; background: white; }
.ed-table-scroll { margin-block: 1.65rem; max-width: 100%; border: 1px solid var(--ed-line); overscroll-behavior-inline: contain; }
.ed-prose .table {
  --bs-table-cell-padding-y: .8rem;
  --bs-table-cell-padding-x: 1rem;
  --bs-table-border-color: var(--ed-line);
  --bs-table-bg: #fffdf9;
  --bs-table-color: var(--ed-ink);
  background: var(--bs-table-bg);
  font-size: .9rem; line-height: 1.5;
}
.ed-prose caption { padding: .85rem 1rem; font-weight: 700; color: var(--ed-ink); background: var(--ed-paper); }
.ed-prose :is(td,th) { min-width: 10rem; }
.ed-prose th { --bs-table-bg: var(--ed-paper); }
.ed-prose thead { --bs-table-border-color: #4b4c4d; }
.ed-prose thead th { --bs-table-bg: #232629; --bs-table-color: var(--ed-cream); }
.ed-prose td ul { margin: 0; padding-inline-start: 1em; }
.ed-next { margin-top: 2.5rem; border-top: 1px solid var(--ed-line); padding-top: 1.5rem; gap: 1rem; }
.ed-next small { color: var(--ed-muted); margin-bottom: .6rem; }
.ed-study-nav { position: sticky; top: 7rem; padding: 1.45rem 0 0; border-top: 2px solid var(--ed-ink); }
.ed-study-nav h2 { margin-bottom: .8rem; font-size: 1.65rem; line-height: 1.1; }
.ed-study-nav li { border-bottom: 1px solid var(--ed-line); }
.ed-study-nav a { padding: .85rem .2rem; text-decoration: none; font-size: .94rem; line-height: 1.4; }
.ed-study-nav a:hover { text-decoration: underline; }
.ed-study-nav a[aria-current] { padding-inline-start: .85rem; box-shadow: inset .22rem 0 #aa741b; background: #efe7d9; font-weight: 700; }
@media(max-width: 980px) {
  .ed-reading { grid-template-columns: minmax(0,1fr); }
  .ed-reading .ed-prose { max-width: 44rem; }
  .ed-reading aside { max-width: 42rem; }
  .ed-study-nav { position: static; }
}
@media(max-width: 800px) {
  .ed-cover-grid { grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); gap: 1.65rem; }
  .ed-book-inner { min-height: 15.5rem; }
}
@media(max-width: 620px) {
  .ed-cover-grid,.ed-library { grid-template-columns: minmax(0,1fr); }
  .ed-cover-grid { gap: 2.25rem; }
  .ed-collection h1 { font-size: clamp(3.05rem,13vw,4.5rem); }
  .ed-book { justify-self: start; width: min(91%,23rem); margin-left: .25rem; transform: rotate(1deg); }
  .ed-book-inner { min-height: 0; padding: 1.3rem 1.6rem; grid-template-columns: 1fr auto; }
  .ed-book-series,.ed-book-read { grid-column: 1 / -1; }
  .ed-book-title { max-width: 10ch; font-size: clamp(2.15rem,10vw,3.1rem); }
  .ed-book-date { align-self: end; font-size: .75rem; }
  .ed-book-read { margin: .2rem 0 0; }
  .ed-library { gap: 2rem; }
  .ed-chapter-list a .ed-arrow { width: 2.1rem; height: 2.1rem; font-size: 1.15rem; }
}
@media(prefers-reduced-motion: reduce) {
  .ed-page *, .ed-page ::before, .ed-page ::after { transition: none !important; animation: none !important; }
  .ed-book, .ed-book:hover { transform: none; }
}
