@font-face { font-family: "et-book"; src: url("https://edwardtufte.github.io/tufte-css/et-book/et-book-roman-line-figures/et-book-roman-line-figures.woff") format("woff"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: "et-book"; src: url("https://edwardtufte.github.io/tufte-css/et-book/et-book-bold-line-figures/et-book-bold-line-figures.woff") format("woff"); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: "et-book"; src: url("https://edwardtufte.github.io/tufte-css/et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.woff") format("woff"); font-weight: normal; font-style: italic; font-display: swap; }
@font-face { font-family: "et-book-roman-old-style"; src: url("https://edwardtufte.github.io/tufte-css/et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.woff") format("woff"); font-weight: normal; font-style: normal; font-display: swap; }

html { font-size: 15px; }
body { width: 87.5%; margin-left: auto; margin-right: auto; padding-left: 12.5%; font-family: et-book, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; background-color: #fffff8; color: #111; max-width: 1400px; counter-reset: sidenote-counter; }
h1 { font-weight: 400; margin-top: 4rem; margin-bottom: 1.5rem; font-size: 3.2rem; line-height: 1; }
h2 { font-style: italic; font-weight: 400; margin-top: 2.1rem; margin-bottom: 0; font-size: 2.2rem; line-height: 1; }
h3 { font-style: italic; font-weight: 400; font-size: 1.7rem; margin-top: 2rem; margin-bottom: 0; line-height: 1; }
hr { display: block; height: 1px; width: 55%; border: 0; border-top: 1px solid #ccc; margin: 1em 0; padding: 0; }
p.subtitle { font-style: italic; margin-top: 1rem; margin-bottom: 1rem; font-size: 1.8rem; display: block; line-height: 1.3; }
article { padding: 5rem 0; }
section { padding-top: 1rem; padding-bottom: 1rem; }
p, dl, ol, ul { font-size: 1.4rem; line-height: 2rem; }
p { margin-top: 1.4rem; margin-bottom: 1.4rem; padding-right: 0; vertical-align: baseline; width: 55%; }
div.epigraph { margin: 5em 0; }
div.epigraph > blockquote { margin-top: 3em; margin-bottom: 3em; }
div.epigraph > blockquote, div.epigraph > blockquote > p { font-style: italic; }
div.epigraph > blockquote > footer { font-style: normal; }
div.epigraph > blockquote > footer > cite { font-style: italic; }
blockquote { font-size: 1.4rem; width: 55%; }
blockquote p { width: 100%; margin-right: 40px; }
blockquote footer { width: 55%; font-size: 1.1rem; text-align: right; }
.sidenote, .marginnote { float: right; clear: right; margin-right: -60%; width: 50%; margin-top: 0.3rem; margin-bottom: 0; font-size: 1.1rem; line-height: 1.3; vertical-align: baseline; position: relative; }
.sidenote-number { counter-increment: sidenote-counter; }
.sidenote-number:after, .sidenote:before { font-family: et-book-roman-old-style; position: relative; vertical-align: baseline; }
.sidenote-number:after { content: counter(sidenote-counter); font-size: 1rem; top: -0.5rem; left: 0.1rem; }
.sidenote:before { content: counter(sidenote-counter) " "; font-size: 1rem; top: -0.5rem; }
blockquote .sidenote, blockquote .marginnote { margin-right: -82%; min-width: 59%; text-align: left; }
input.margin-toggle { display: none; }
label.sidenote-number { display: inline-block; max-height: 2rem; }
label.margin-toggle:not(.sidenote-number) { display: none; }
a:link, a:visited { color: inherit; }
.newthought, span.newthought { font-variant: small-caps; font-size: 1.2em; }
ul, ol { width: 45%; -webkit-padding-start: 5%; }
li:not(:first-child) { margin-top: 0.25rem; }
table { width: 55%; border-top: 2px solid #111; border-bottom: 2px solid #111; font-size: 1.1rem; }
th { border-bottom: 1px solid #111; }
.fullwidth { max-width: 90%; clear: both; }
.byline { font-size: 1.1rem; color: #666; margin-top: 0.5rem; margin-bottom: 2rem; display: block; }

/* Site Header */
.site-header { padding: 1.2rem 0; border-bottom: 1px solid #ccc; display: flex; justify-content: space-between; align-items: baseline; width: 87.5%; }
.brand { font-family: et-book, Palatino, serif; font-variant: small-caps; font-size: 1.4rem; letter-spacing: 0.05em; color: #111; text-decoration: none; }
.site-header nav a { font-size: 1.1rem; color: #111; text-decoration: none; margin-left: 1.5rem; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a.active { text-decoration: underline; }

/* Site Footer */
.site-footer { padding: 2rem 0; margin-top: 3rem; border-top: 1px solid #ccc; font-size: 1.1rem; color: #999; width: 55%; display: flex; justify-content: space-between; }
.site-footer a { color: #999; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Commercial: Stats */
.stats-ribbon { width: 55%; display: flex; gap: 2rem; margin: 2rem 0; padding: 1rem 0; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; }
.stat-item { flex: 1; }
.stat-label { font-variant: small-caps; font-size: 1rem; letter-spacing: 0.05em; color: #999; display: block; margin-bottom: 0.2rem; }
.stat-value { font-size: 1.2rem; font-weight: bold; display: block; }
.stat-desc { font-size: 1rem; color: #999; display: block; margin-top: 0.1rem; }

/* Commercial: Takeaway Box */
.takeaway-box { width: 55%; background: #faf9f2; border-left: 3px solid #111; padding: 1.5rem 2rem; margin: 2rem 0; }
.takeaway-box h3 { font-style: normal; font-variant: small-caps; font-size: 1.2rem; letter-spacing: 0.05em; margin-top: 0; margin-bottom: 1rem; }
.takeaway-box ol, .takeaway-box ul { width: 100%; padding-left: 1.5rem; margin: 0; }
.takeaway-box li { margin-bottom: 0.8rem; line-height: 1.6; font-size: 1.3rem; }

/* Commercial: CTA */
.cta-section { width: 55%; margin: 3rem 0; padding: 2rem 2.5rem; background: #faf9f2; border: 1px solid #ccc; }
.cta-section h3 { font-style: normal; font-variant: small-caps; letter-spacing: 0.05em; margin-top: 0; font-size: 1.3rem; }
.cta-section p { width: 100%; margin-top: 0.8rem; font-size: 1.3rem; }
.cta-link { display: inline-block; margin-top: 1rem; font-variant: small-caps; letter-spacing: 0.05em; font-size: 1.2rem; color: #111; text-decoration: none; border-bottom: 1px solid #111; padding-bottom: 2px; }
.cta-link:hover { color: #555; border-color: #555; }

/* Commercial: Buttons */
.buy-btn, .buy-btn-sm { display: inline-block; background: #111; color: #fffff8; font-family: et-book, Palatino, serif; letter-spacing: 0.04em; text-decoration: none; border: none; cursor: pointer; }
.buy-btn { font-size: 1.2rem; padding: 0.7rem 2rem; }
.buy-btn-sm { font-size: 1rem; padding: 0.45rem 1.2rem; }
.buy-btn:hover, .buy-btn-sm:hover { background: #333; color: #fffff8; }

/* Commercial: Bundle */
.bundle-section { padding: 2rem 0; }
.bundle-card { width: 55%; background: #faf9f2; border: 1px solid #ccc; padding: 2rem 2.5rem; position: relative; }
.bundle-badge { position: absolute; top: -0.7rem; left: 2rem; background: #111; color: #fffff8; font-variant: small-caps; font-size: 0.9rem; letter-spacing: 0.08em; padding: 0.2rem 0.8rem; }
.bundle-card h3 { font-weight: 400; font-style: italic; font-size: 1.7rem; margin-bottom: 0.8rem; margin-top: 0.5rem; }
.bundle-card p { font-size: 1.3rem; line-height: 1.8; color: #333; margin-bottom: 1rem; width: 100%; }
.bundle-pricing { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.2rem; }
.bundle-price { font-size: 2rem; font-weight: bold; }
.bundle-compare { font-size: 1.1rem; color: #999; text-decoration: line-through; }
.bundle-savings { font-size: 1rem; color: #666; font-style: italic; }

/* Commercial: Study Cards */
.catalog { padding: 1rem 0 3rem; }
.study-card { width: 55%; padding: 2rem 0; border-bottom: 1px solid #ccc; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.study-card:last-child { border-bottom: none; }
.study-content h3 { font-weight: 400; font-style: italic; font-size: 1.5rem; margin-bottom: 0.2rem; line-height: 1.2; }
.study-meta { font-size: 1rem; color: #999; margin-bottom: 0.8rem; }
.study-content p { font-size: 1.2rem; line-height: 1.7; color: #333; margin-bottom: 0.8rem; width: 100%; }
.study-topics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.topic-tag { font-variant: small-caps; font-size: 0.9rem; letter-spacing: 0.06em; color: #666; background: #f0ede4; padding: 0.15rem 0.6rem; }
.study-preview-link { font-size: 1.1rem; color: #111; text-decoration: none; border-bottom: 1px solid #ccc; padding-bottom: 1px; }
.study-preview-link:hover { border-color: #111; }
.study-action { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; padding-top: 0.2rem; min-width: 100px; }
.study-price { font-size: 1.5rem; font-weight: bold; }

/* Commercial: Proof Bar */
.proof-bar { width: 55%; padding: 1.2rem 0; border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; display: flex; gap: 3rem; margin-bottom: 1rem; }
.proof-item { display: flex; flex-direction: column; }
.proof-value { font-size: 1.4rem; font-weight: bold; }
.proof-label { font-variant: small-caps; font-size: 1rem; letter-spacing: 0.06em; color: #999; margin-top: 0.1rem; }

/* Section Heading */
.section-heading { padding: 3rem 0 1rem; }
.section-heading h2 { font-weight: 400; font-style: italic; font-size: 2.2rem; margin-bottom: 0.3rem; }
.section-heading p { font-size: 1.2rem; color: #666; line-height: 1.7; width: 55%; }
.section-divider { width: 55%; border: none; border-top: 1px solid #ccc; margin: 1em 0; }

/* About */
.about-section { padding: 3rem 0; border-top: 1px solid #ccc; }
.about-inner h2 { font-weight: 400; font-style: italic; font-size: 2.2rem; margin-bottom: 1rem; }
.about-inner p { font-size: 1.4rem; line-height: 2rem; color: #111; margin-bottom: 1.4rem; width: 55%; }

/* Newsletter */
.newsletter { width: 55%; background: #faf9f2; border: 1px solid #ccc; padding: 1.5rem 2rem; margin-top: 1.5rem; }
.newsletter h3 { font-weight: 400; font-style: italic; font-size: 1.4rem; margin-bottom: 0.5rem; }
.newsletter p { font-size: 1.1rem; color: #666; line-height: 1.6; margin-bottom: 1rem; width: 100%; }
.newsletter-form { display: flex; gap: 0.8rem; }
.newsletter-form input[type="email"] { font-family: et-book, Palatino, serif; font-size: 1.1rem; padding: 0.5rem 0.8rem; border: 1px solid #ccc; background: #fffff8; flex: 1; outline: none; }
.newsletter-form input[type="email"]:focus { border-color: #111; }
.newsletter-form button { font-family: et-book, Palatino, serif; font-size: 1.1rem; padding: 0.5rem 1.2rem; background: #111; color: #fffff8; border: none; cursor: pointer; }
.newsletter-form button:hover { background: #333; }

/* Book Notes */
.notes-list { padding: 1rem 0 3rem; }
.note-item { width: 55%; padding: 1.5rem 0; border-bottom: 1px solid #ccc; }
.note-item:last-child { border-bottom: none; }
.note-item h3 { font-weight: 400; font-style: italic; font-size: 1.5rem; margin-bottom: 0.2rem; line-height: 1.2; }
.note-item h3 a { color: #111; text-decoration: none; }
.note-item h3 a:hover { text-decoration: underline; }
.note-meta { font-size: 1rem; color: #999; margin-bottom: 0.5rem; }
.note-item p { font-size: 1.2rem; line-height: 1.6; color: #555; width: 100%; }

/* Footnotes */
.footnotes { width: 55%; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #ccc; }
.footnotes ol { padding-left: 1.5rem; }
.footnotes li { font-size: 1.1rem; line-height: 1.5; color: #666; margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 760px) {
    body { width: 84%; padding-left: 8%; }
    hr, p, footer, table, div.epigraph, blockquote, .stats-ribbon, .takeaway-box, .cta-section, .bundle-card, .study-card, .about-inner p, .newsletter, .note-item, .footnotes, .proof-bar, .section-heading p, ul, ol { width: 100%; }
    .site-header { width: 100%; }
    label.margin-toggle:not(.sidenote-number) { display: inline; }
    .sidenote, .marginnote { display: none; }
    .margin-toggle:checked + .sidenote, .margin-toggle:checked + .marginnote { display: block; float: left; left: 1rem; clear: both; width: 95%; margin: 1rem 2.5%; vertical-align: baseline; position: relative; }
    label { cursor: pointer; }
    .study-card { grid-template-columns: 1fr; gap: 1rem; }
    .study-action { flex-direction: row; align-items: center; }
    .newsletter-form { flex-direction: column; }
}
