/* Lenny Winnemuller · editorial layout: paper background, serif headlines, thin rules. */
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-normal.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader-italic.woff2) format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-normal.woff2) format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/ibm-plex-sans-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #f6f2ea;
  --ink: #1b1f24;
  --text: #33383e;
  --muted: #6b6f73;
  --rule: #1b1f24;
  --hair: #d8d1c3;
  --accent: #8a2f1d;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16.5px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; font-optical-sizing: auto; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); letter-spacing: -.02em; line-height: 1.03; }
h1 em { font-style: italic; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.75rem); font-weight: 500; }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }
section { padding: 0 0 72px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.kicker { font-size: .84rem; color: var(--accent); font-weight: 600; margin: 0 0 14px; }
.kicker a { text-decoration: none; }
.deck { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.42; color: var(--text); max-width: 32em; margin-bottom: 1.1em; }
.deck.small { font-size: 1.2rem; }

.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 13px 22px; font-weight: 600; font-size: .95rem; border: 0; }
.btn:hover { background: var(--accent); color: #fff; }
.textlink { font-weight: 600; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 26px; }

/* masthead */
.announce { background: var(--ink); color: #e9e4da; font-size: .88rem; text-align: center; padding: 9px 16px; }
.announce a { color: #fff; font-weight: 600; }
.mast { border-bottom: 1px solid var(--rule); }
.mast-top { display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; color: var(--muted); padding: 11px 0; border-bottom: 1px solid var(--hair); }
.mast-top a { text-decoration: none; }
.brand { display: block; text-align: center; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 2.9rem); color: var(--ink); text-decoration: none; margin: 16px 0 4px; letter-spacing: -.01em; line-height: 1.1; }
.brand:hover { color: var(--ink); }
nav.menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 32px; padding: 8px 0 12px; font-size: .92rem; }
nav.menu a { text-decoration: none; color: var(--ink); }
nav.menu a:hover { text-decoration: underline; color: var(--ink); }
nav.menu a[aria-current="page"] { text-decoration: underline; }
nav.menu a.book { color: var(--accent); font-weight: 600; }

/* section headings: title on a rule, link on the right */
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 26px; }
.sec-h h2 { margin: 0; }
.sec-h a { font-size: .9rem; white-space: nowrap; }

/* opening (home and program) */
.opening { padding: 44px 0 0; }
.opening-grid { border-bottom: 3px double var(--rule); padding-bottom: 48px; }
.opening + section { padding-top: 44px; }
.opening-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.opening h1 { margin-bottom: 22px; }

figure { margin: 0; }
figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; border-top: 1px solid var(--hair); padding-top: 7px; }
.figure img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure.tall img { aspect-ratio: 4 / 5; }
.figure.portrait img { aspect-ratio: 3 / 4; object-position: center 20%; }

/* front page of market updates */
.front { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.front article { padding: 0 24px; border-left: 1px solid var(--hair); }
.front article:first-child { padding-left: 0; border-left: 0; }
.front article:last-child { padding-right: 0; }
.front img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 12px; }
.front h3 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 8px; }
.front .lead-story h3 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); }
.front h3 a { text-decoration: none; }
.front h3 a:hover { text-decoration: underline; color: var(--ink); }
.front p { font-size: .95rem; margin: 0; }
.front .story + .story { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); }
p.date { font-size: .78rem; color: var(--muted); margin: 0 0 4px; }

/* about block */
.about-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 40px; align-items: start; }
.about-grid.two { grid-template-columns: 4fr 8fr; }
.about-grid .portrait img { filter: grayscale(1) contrast(1.04); }
.body { font-family: var(--serif); font-size: 1.15rem; line-height: 1.6; }
.body h3 { font-size: 1.6rem; }
.dropcap > p:first-of-type::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: 6px 9px 0 0; color: var(--ink); }
.facts { border-top: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
.facts div { border-bottom: 1px solid var(--hair); padding: 12px 0; }
.facts b { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: var(--ink); }

/* pull quote */
.quote-sec { padding-bottom: 80px; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.3vw, 2.4rem); line-height: 1.25; color: var(--ink); text-align: center; max-width: 24em; margin: 8px auto 0; }
.pull cite { display: block; font: 500 .8rem var(--sans); color: var(--muted); margin-top: 16px; }
.pull.small { font-size: clamp(1.25rem, 2.3vw, 1.6rem); max-width: 30em; }
.pull p { margin: 0; }
.center-title { text-align: center; font-size: .95rem; font-family: var(--sans); font-weight: 600; color: var(--accent); }

/* program on home + deliverables */
.program-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.subhead { font-size: 1.7rem; }
ol.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; }
ol.numbered li { counter-increment: n; display: grid; grid-template-columns: 56px 1fr; border-top: 1px solid var(--hair); padding: 16px 0; color: var(--text); }
ol.numbered li:last-child { border-bottom: 1px solid var(--hair); }
ol.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 1.35rem; color: var(--accent); line-height: 1.2; }
ol.numbered b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); line-height: 1.25; margin-bottom: 3px; }
ol.numbered.two-up { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
ol.numbered.two-up li:last-child { border-bottom: 0; }

/* newspaper columns */
.cols-ruled { display: grid; grid-template-columns: repeat(4, 1fr); }
.cols-ruled.n2 { grid-template-columns: repeat(2, 1fr); }
.cols-ruled.n3 { grid-template-columns: repeat(3, 1fr); }
.cols-ruled .col { padding: 0 22px; border-left: 1px solid var(--hair); }
.cols-ruled .col:first-child { padding-left: 0; border-left: 0; }
.cols-ruled .col:last-child { padding-right: 0; }
.cols-ruled h3 { font-size: 1.3rem; }
.cols-ruled p { font-size: .95rem; margin: 0; }
.col-label { font-size: .8rem; font-weight: 600; color: var(--accent); margin: 0 0 6px !important; }

/* lists with rules */
ul.ruled { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--hair); }
ul.ruled li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--hair); position: relative; }
ul.ruled li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
ul.ruled.yes li::before { content: "✓"; color: #3c6b4a; }
ul.ruled.no li::before { content: "✕"; color: var(--accent); }
.sec-h + ul.ruled { margin-top: 0; border-top: 0; }

.two-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

/* program table */
.modules { margin-top: 30px; border-top: 1px solid var(--hair); padding-top: 14px; }
.modules summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.table-scroll { overflow-x: auto; margin-top: 16px; }
.modules table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .92rem; }
.modules th, .modules td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); }
.modules thead th { font-size: .78rem; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--rule); }
.modules tbody th { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; color: var(--ink); }
.modules tr.review td, .modules tr.review th { color: var(--muted); font-style: italic; }

/* faq */
.faq details { border-bottom: 1px solid var(--hair); padding: 15px 0; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; }

/* call to action */
.cta-band { padding: 24px 0 64px; }
.cta-inner { border-top: 3px double var(--rule); border-bottom: 1px solid var(--rule); padding: 38px 0; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin-bottom: .3em; }
.cta-inner p:last-child { margin: 0; max-width: 36em; }
.cta-inner .btn { flex-shrink: 0; }

/* page heads */
.pagehead { padding: 44px 0 56px; }
.pagehead .deck { margin-bottom: 0; }
.about-head { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.about-head .portrait img { aspect-ratio: 4 / 5; }
.social { font-size: .92rem; margin-top: 16px; }
.social a { font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.gallery.n1 { grid-template-columns: 1fr; }
.gallery.n2 { grid-template-columns: 1fr 1fr; }
.gallery .figure img { aspect-ratio: auto; height: 380px; }
.essay { font-family: var(--serif); font-size: 1.3rem; line-height: 1.55; max-width: 34em; color: var(--ink); }
section.tight { padding-top: 0; }

/* updates list */
.post-list { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px solid var(--rule); }
.post-list li { border-bottom: 1px solid var(--hair); padding: 24px 0; }
.post-list li.has-thumb { display: grid; grid-template-columns: 1fr 260px; gap: 32px; align-items: start; }
.post-list h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 8px; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; color: var(--ink); }
.post-list p { margin: 0; max-width: 40em; }
.post-list .thumb img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* single post */
.prose { max-width: 720px; }
.post-head { padding: 44px 0 0; }
.post-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.byline { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hair); padding: 10px 0; margin: 26px 0 32px; }
.post .prose { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: #2a2e33; }
.post .prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.post .prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.post .prose .figure { margin: 2em 0; }
.post .prose .figure img { aspect-ratio: auto; }
.post .prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--accent); font-style: italic; }
.post .prose .deck { font-size: 1.4rem; color: var(--muted); }
.post-disclaimer { font-family: var(--sans); font-size: .85rem; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 1.2em; margin-top: 2.4em; }
.post .prose .textlink { font-family: var(--sans); }
.post + .cta-band { padding-top: 40px; }

/* footer */
footer { border-top: 1px solid var(--rule); padding: 36px 0 52px; font-size: .86rem; color: var(--muted); }
footer .foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 20px; }
footer .foot-name { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); margin: 0 0 4px; }
footer .fnav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
footer .fnav a { color: var(--ink); text-decoration: none; }
footer .fnav a:hover { text-decoration: underline; }
footer .disclaimer { max-width: 780px; border-top: 1px solid var(--hair); padding-top: 16px; }
footer .social { margin-top: 8px; }

/* forms (Kit) */
.formkit-alert { list-style: none; margin: 0 0 14px; padding: 12px 14px; font-size: .95rem; }
.formkit-alert:empty { display: none; }
.formkit-alert-error { background: #f6dfd7; color: #8a2f1d; }
.formkit-alert-success { background: #e1eee4; color: #2b5d3a; }
.formkit-spinner { display: none; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-grid .facts { grid-column: 1 / -1; }
  .cols-ruled { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .cols-ruled .col:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cols-ruled .col:nth-child(even) { padding-right: 0; }
}
@media (max-width: 800px) {
  .wrap { padding: 0 20px; }
  section { padding-bottom: 56px; }
  .mast-top span:first-child { display: none; }
  .mast-top { justify-content: center; }
  nav.menu { gap: 2px 18px; }
  .opening-grid, .program-grid, .about-grid, .about-grid.two, .about-head, .two-text { grid-template-columns: 1fr; gap: 32px; }
  .opening .figure.tall img { aspect-ratio: 4 / 3; }
  .about-grid .portrait, .about-head .portrait { max-width: 360px; }
  .front { grid-template-columns: 1fr; }
  .front article { padding: 0 0 22px; margin-bottom: 22px; border-left: 0; border-bottom: 1px solid var(--hair); }
  .front article:last-child { border-bottom: 0; margin-bottom: 0; }
  .cols-ruled, .cols-ruled.n2, .cols-ruled.n3 { grid-template-columns: 1fr; }
  .cols-ruled .col { padding: 0 !important; border-left: 0 !important; }
  ol.numbered.two-up { grid-template-columns: 1fr; }
  ol.numbered.two-up li:last-child { border-bottom: 1px solid var(--hair); }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .gallery, .gallery.n2 { grid-template-columns: 1fr 1fr; }
  .gallery .figure:first-child { grid-column: 1 / -1; }
  .gallery .figure img { height: 260px; }
  .post-list li.has-thumb { grid-template-columns: 1fr; gap: 14px; }
  .post-list li.has-thumb .thumb { order: -1; }
  .sec-h { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .gallery, .gallery.n2 { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; text-align: center; }
}
.approach .essay { margin-bottom: 40px; }
.approach .cols-ruled { border-top: 1px solid var(--hair); padding-top: 22px; }
.post .prose .figure.cover { margin: 0 0 2em; }
