.page-header { padding-top: 7rem; background: #1a1714; }
  .page-header-inner { max-width: var(--max-wide); margin: 0 auto; padding: 3rem var(--col-pad) 3.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; }
  .page-label { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(245,242,238,0.55); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.75rem; opacity: 0; animation: fadeInUp 0.6s ease 0.2s forwards; }
  .page-label::before { content: ""; width: 24px; height: 1px; background: #2b4a6f; flex-shrink: 0; }
  .page-title { font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 400; line-height: 0.95; letter-spacing: -0.03em; color: #f5f2ee; margin-bottom: 2rem; opacity: 0; animation: fadeInUp 0.6s ease 0.35s forwards; }
  .page-title em { font-style: italic; color: #d4cfc9; }
  .page-standfirst { font-family: var(--sans); font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: rgba(245,242,238,0.72); opacity: 0; animation: fadeInUp 0.6s ease 0.5s forwards; }
  .substack-panel { background: rgba(245,242,238,0.06); border: 1px solid rgba(212,207,201,0.2); padding: 2rem; opacity: 0; animation: fadeInUp 0.6s ease 0.55s forwards; }
  .substack-panel-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245,242,238,0.86); margin-bottom: 0.75rem; display: block; }
  .substack-panel-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: #f5f2ee; line-height: 1.2; margin-bottom: 0.75rem; }
  .substack-panel-desc { font-size: 0.9rem; font-weight: 300; line-height: 1.7; color: rgba(245,242,238,0.65); margin-bottom: 1.5rem; }
  .btn-subscribe { display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 0.875rem 1.75rem; min-height: 44px; background: #2b4a6f; color: #f5f2ee; border: 2px solid #2b4a6f; transition: all 0.2s; }
  .btn-subscribe:hover { background: #f5f2ee; color: #2b4a6f; border-color: #f5f2ee; }
  .publication-strip { background: #2b4a6f; padding: 3rem var(--col-pad); }
  .publication-inner { max-width: var(--max-wide); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .pub-stat { text-align: center; }
  .pub-stat-word { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; font-style: italic; color: #f5f2ee; display: block; margin-bottom: 0.35rem; }
  .pub-stat-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,242,238,0.78); }
  .feed-section { background: #f5f2ee; padding: 5rem var(--col-pad); }
  .feed-inner { max-width: var(--max-wide); margin: 0 auto; }
  .section-label { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #5c5652; margin-bottom: 1rem; display: block; }
  .section-heading { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; color: #1a1714; margin-bottom: 1.5rem; }
  .section-rule { width: 48px; height: 2px; background: #2b4a6f; border: none; margin-bottom: 2rem; }
  .library-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; align-items: center; }
  .filter-btn { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; background: transparent; color: #3d3935; border: 1.5px solid #d4cfc9; padding: 0.5rem 1.1rem; cursor: pointer; transition: all 0.2s; min-height: 38px; }
  .filter-btn:hover { border-color: #2b4a6f; color: #2b4a6f; }
  .filter-btn[aria-pressed="true"] { background: #1a1714; color: #f5f2ee; border-color: #1a1714; }
  .library-count { margin-left: auto; font-size: 0.8rem; color: #5c5652; }
  .book-group { margin-bottom: 4rem; }
  .book-group:last-child { margin-bottom: 0; }
  .book-group-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1rem; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid #d4cfc9; }
  .book-group-swatch { width: 13px; height: 13px; flex-shrink: 0; transform: translateY(1px); }
  .book-group-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; color: #1a1714; }
  .book-group-tagline { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #5c5652; }
  .book-group-count { margin-left: auto; font-size: 0.8rem; color: #5c5652; }
  .library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.5rem 2rem; }
  .library-card { display: flex; flex-direction: column; }
  .library-card-imgwrap { display: block; position: relative; aspect-ratio: 210 / 297; background: #ede9e3; border: 1px solid #d4cfc9; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
  .library-card-imgwrap:hover { border-color: #2b4a6f; box-shadow: 0 10px 26px rgba(26,23,20,0.12); }
  .library-card-imgwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
  .library-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-style: italic; color: #5c5652; font-size: 0.95rem; padding: 1.5rem; text-align: center; }
  .library-card-book { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 1rem 0 0.4rem; display: flex; align-items: center; gap: 0.5rem; color: #5c5652; }
  .library-card-book::before { content: ""; width: 10px; height: 10px; flex-shrink: 0; background: var(--dot, #5c5652); }
  .library-card[data-book="I"] { --dot: var(--book-1); }
  .library-card[data-book="II"] { --dot: var(--book-2); }
  .library-card[data-book="III"] { --dot: var(--book-3); }
  .library-card-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; line-height: 1.35; color: #1a1714; text-decoration: none; display: block; margin-bottom: 0.4rem; }
  .library-card-title:hover { color: #2b4a6f; }
  .library-card-date { font-size: 0.75rem; color: #5c5652; margin-bottom: 0.6rem; }
  .library-card-link { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #2b4a6f; text-decoration: none; }
  .library-card-link::after { content: " →"; }
  .library-card-link:hover { color: #1a1714; text-decoration: underline; }
  .feed-loading { text-align: center; padding: 3rem; color: #5c5652; font-size: 0.9rem; }
  .feed-empty { background: #ede9e3; border: 1px solid #d4cfc9; padding: 3rem; text-align: center; }
  .feed-empty-heading { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: #1a1714; margin-bottom: 0.75rem; }
  .feed-empty-body { font-size: 0.95rem; color: #3d3935; line-height: 1.7; max-width: 560px; margin: 0 auto; }
  .tools-section { background: #ede9e3; padding: 5rem var(--col-pad); }
  .tools-inner { max-width: var(--max-wide); margin: 0 auto; }
  .tools-intro { font-size: 1.0625rem; font-weight: 400; line-height: 1.8; color: #3d3935; max-width: 640px; margin-bottom: 3rem; }
  .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .tool-card { background: #f5f2ee; border: 1px solid #d4cfc9; padding: 2.25rem 2rem; display: flex; flex-direction: column; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
  .tool-card--live:hover { border-color: #2b4a6f; box-shadow: 0 10px 26px rgba(26,23,20,0.1); transform: translateY(-2px); }
  .tool-card--soon { border-style: dashed; }
  .tool-card-status { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.45rem; margin-bottom: 1.25rem; color: #2b4a6f; }
  .tool-card-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2b4a6f; flex-shrink: 0; }
  .tool-card--soon .tool-card-status { color: #5c5652; }
  .tool-card--soon .tool-card-status::before { background: #a8a29b; }
  .tool-card-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; line-height: 1.3; color: #1a1714; margin-bottom: 0.75rem; }
  .tool-card--soon .tool-card-title { color: #5c5652; }
  .tool-card-desc { font-size: 0.92rem; line-height: 1.7; color: #3d3935; margin-bottom: 1.75rem; flex-grow: 1; }
  .tool-card--soon .tool-card-desc { color: #5c5652; }
  .tool-card-cta { align-self: flex-start; }
  .about-writing { background: #ede9e3; padding: 5rem var(--col-pad); }
  .about-writing-inner { max-width: var(--max-wide); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .about-writing-heading { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; line-height: 1.2; color: #1a1714; margin-bottom: 1.5rem; }
  .about-writing p { font-size: 1.0625rem; font-weight: 400; line-height: 1.85; color: #1a1714; margin-bottom: 1.25rem; }
  .books-key { margin-top: 0.5rem; }
  .books-key-label { font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: #5c5652; margin-bottom: 1.25rem; display: block; }
  .book-key-item { display: flex; align-items: baseline; gap: 0.85rem; padding: 0.85rem 0; border-bottom: 1px solid #d4cfc9; }
  .book-key-swatch { width: 12px; height: 12px; flex-shrink: 0; transform: translateY(1px); }
  .book-key-title { font-family: var(--serif); font-size: 1.05rem; color: #1a1714; }
  .book-key-note { font-size: 0.8rem; color: #5c5652; margin-left: auto; text-align: right; }
  .subscribe-section { background: #1a1714; padding: 5rem var(--col-pad); text-align: center; }
  .subscribe-inner { max-width: 860px; margin: 0 auto; }
  .subscribe-heading { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 400; color: #f5f2ee; line-height: 1.2; margin-bottom: 1rem; }
  .subscribe-sub { font-size: 1rem; font-weight: 300; color: rgba(245,242,238,0.7); margin-bottom: 2rem; line-height: 1.7; }
  .btn-inverse { background: #f5f2ee; color: #1a1714; border: 2px solid #f5f2ee; }
  .btn-inverse:hover { background: transparent; color: #f5f2ee; }
@media (max-width: 860px) {
  .page-header-inner { grid-template-columns: 1fr; }
  .substack-panel { display: none; }
  .publication-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .pub-stat { text-align: left; }
  .about-writing-inner { grid-template-columns: 1fr; gap: 3rem; }
  .library-count { margin-left: 0; width: 100%; }
  .tools-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .library-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem 1.25rem; }
}
/* Former inline style attributes. Moved out so the CSP can drop
   'unsafe-inline' from style-src — a style="" attribute is blocked
   by that directive just as an inline <style> block is. */
  .x-practice-library-1.x-practice-library-1.x-practice-library-1 { background:var(--book-1); }
  .x-practice-library-2.x-practice-library-2.x-practice-library-2 { background:var(--book-2); }
  .x-practice-library-3.x-practice-library-3.x-practice-library-3 { background:var(--book-3); }
  .x-practice-library-4.x-practice-library-4.x-practice-library-4 { margin-top:1.75rem; }
  .book-group-swatch[data-book="I"]   { background: var(--book-1); }
  .book-group-swatch[data-book="II"]  { background: var(--book-2); }
  .book-group-swatch[data-book="III"] { background: var(--book-3); }
