
/* Cloth-bound journal presentation, adapted from the owner-supplied Tape concept. */
:root {
  --page: #fbfaf3;
  --tab-edge: #b7bca6;
  --cloth: #34454c;
  --band: #b5decc;
  --ground: #111314;
  --glow: rgba(255,255,255,.055);
  --vignette: rgba(0,0,0,.35);
  color-scheme: dark;
  --shade: 25, 51, 35;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .2 0 0 0 0 .14 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  --weave: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.07) 0 1px, transparent 1px 3px);
  --turn: cubic-bezier(.45,.05,.2,1);
  --felt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1 .85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .26 0 0 0 0 .18 0 0 0 .075 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23f)'/%3E%3C/svg%3E");
  --desk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .24 0 0 0 0 .16 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23d)'/%3E%3C/svg%3E");
}
body { background-color: var(--ground); background-image: radial-gradient(ellipse 68% 56% at 50% 42%, var(--glow), transparent 72%), radial-gradient(ellipse 140% 100% at 50% 40%, transparent 60%, var(--vignette)), var(--desk-grain); }
.masthead, .page-nav { --ink: #e9ecdf; color: var(--ink); }
.colophon, .sketch { --ink: #e9ecdf; --quiet: #a3ada2; --rule: #e9ecdf33; --green: #a5d4ab; }
.sketch { font-size: 11.5px; color: var(--quiet); background: rgba(255,255,255,.035); }
.sketch-note { margin: 0; padding: 8px 16px; text-align: center; }
.replay { margin-left: 10px; border: 0; background: none; padding: 0; font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.masthead { min-height: 84px; border-bottom: 0; }
.masthead .brand img { box-shadow: 0 1px 2px rgba(17,38,25,.18); }
.stage { padding-block: 34px 70px; }

/* The book object: cloth board, page block, ribbon tail, cover. */
.journal { position: relative; color-scheme: light; }
.book-wrap { position: relative; margin-right: 132px; }
.board { position: absolute; z-index: 0; inset: -9px -9px -18px -9px; border-radius: 13px; background-color: var(--cloth); background-image: radial-gradient(ellipse at 30% 16%, rgba(255,255,255,.08), transparent 62%), var(--weave); box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 18px 30px -16px rgba(0,0,0,.7); }
.desk-shadow { position: absolute; z-index: 0; left: 3%; right: 3%; bottom: -40px; height: 66px; border-radius: 50%; background: radial-gradient(closest-side, rgba(17,38,25,.3), rgba(17,38,25,.1) 60%, transparent); filter: blur(12px); pointer-events: none; }
.board::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 26px; margin-left: -13px; background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.06) 50%, rgba(0,0,0,.3)); }
/* The bookmark sits in the crease under the gutter shading; only a short tail shows below the book. */
.headband { position: absolute; z-index: 2; top: -5px; left: 50%; width: 20px; height: 10px; margin-left: -10px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(255,255,255,0) 35%, rgba(0,0,0,.24) 70%), repeating-linear-gradient(90deg, var(--band) 0 1.5px, var(--cloth) 1.5px 3px); box-shadow: 0 -1px 1.5px rgba(0,0,0,.28); pointer-events: none; }
.ribbon-page { position: absolute; z-index: 2; top: 0; bottom: 0; left: 50%; width: 7px; margin-left: -3.5px; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--cloth) 78%, #fff), color-mix(in srgb, var(--cloth) 66%, #fff) 50%, color-mix(in srgb, var(--cloth) 79%, #fff)); }
.ribbon-tail { position: absolute; z-index: 5; top: 100%; left: 50%; width: 7px; margin-left: -3.5px; height: 44px; transform: rotate(1deg); transform-origin: 50% 0; pointer-events: none; filter: drop-shadow(1px 1.5px 1px rgba(17,38,25,.24)); transition: margin-left .6s ease; }
.ribbon-tail i { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--cloth) 84%, #fff), color-mix(in srgb, var(--cloth) 72%, #fff) 50%, color-mix(in srgb, var(--cloth) 85%, #fff)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 6px), 0 100%); }
/* The page block: each half thins toward the spine where the pages curve into the gutter. */
.block { position: absolute; z-index: 2; top: calc(100% + 1px); width: 50%; height: var(--h); pointer-events: none; filter: drop-shadow(0 1.5px 1.2px rgba(17,38,25,.3)); transition: height .7s var(--turn); }
.block i { position: absolute; inset: 0; }
.block-left i { background: linear-gradient(270deg, rgba(25,51,35,.2), rgba(25,51,35,0) 22%), repeating-linear-gradient(180deg, #f7f4e8 0 1.3px, #cdc7af 1.3px 1.9px); clip-path: polygon(0 0, 100% 0, 100% 46%, 93% 60%, 80% 80%, 58% 94%, 28% 100%, 0 100%); }
.block-right i { background: linear-gradient(90deg, rgba(25,51,35,.2), rgba(25,51,35,0) 22%), repeating-linear-gradient(180deg, #f7f4e8 0 1.3px, #cdc7af 1.3px 1.9px); clip-path: polygon(0 0, 100% 0, 100% 100%, 72% 100%, 42% 94%, 20% 80%, 7% 60%, 0 46%); }
.block-left { left: 0; --h: var(--left-block, 3px); }
.block-right { left: 50%; --h: var(--right-block, 10.5px); }
.book.open-book { display: block; position: relative; z-index: 30; perspective: none; background-color: var(--page); background-image: var(--grain); border-radius: 6px; box-shadow: none; }
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 740px; outline: none; }
.spread[hidden] { display: none !important; }
.journal .page { position: relative; min-width: 0; padding: 58px 48px 62px; }
.journal .page-left { background: linear-gradient(90deg, transparent 92%, #cccbbc33); }
.journal .page-right { border-left: 1px solid var(--rule); background: linear-gradient(90deg, #c1c5b030, transparent 7%); }
.journal .page::before { content: attr(data-head); position: absolute; top: 25px; left: 48px; right: 48px; font-size: 11.5px; color: var(--quiet); }
.journal .page-right::before { text-align: right; }
.journal .page::after { content: attr(data-folio); position: absolute; bottom: 23px; font: 13px var(--serif); color: var(--quiet); }
.journal .page-left::after { left: 48px; }
.journal .page-right::after { right: 48px; }
.page-center { display: flex; flex-direction: column; justify-content: center; }
.gutter { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 96px; margin-left: -48px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(var(--shade), .05) 36%, rgba(var(--shade), .14) 50%, rgba(var(--shade), .05) 64%, transparent); }
/* Page edges: the block thickens on whichever side you have already read. */
.edge { position: absolute; z-index: 25; top: 3px; pointer-events: none; background: repeating-linear-gradient(90deg, #cfcab2 0 1px, #f6f3e6 1px 3px); transition: width .7s var(--turn), bottom .7s var(--turn); }
.edge-left { right: 100%; bottom: calc(-1 * var(--left-block, 3px)); width: var(--left-edge, 2px); border-radius: 3px 0 0 7px; }
.edge-right { left: 100%; bottom: calc(-1 * var(--right-block, 10.5px)); width: var(--right-edge, 8.6px); border-radius: 0 3px 7px 0; box-shadow: 2px 0 4px -1px rgba(var(--shade), .24); }

/* Divider tabs, stuck to successive pages: each sits one page below the tab above it and comes out from under the page block. The open tab is part of the top page. */
.journal-tabs { position: absolute; top: 40px; right: -14px; width: 186px; display: flex; flex-direction: column; }
.journal-tabs button + button { margin-top: -4px; padding-top: 4px; }
.journal-tabs button { position: relative; z-index: 2; display: flex; align-items: center; min-height: 56px; padding: 0 14px 0 62px; text-align: left; background-color: var(--tab); background-image: var(--grain); border: 1px solid color-mix(in srgb, var(--tab) 78%, #fff); border-left: 0; border-radius: 0 10px 10px 0; font: 14px/1.25 var(--sans); color: var(--tab-ink, var(--ink)); cursor: pointer; transform: translateX(-6px); box-shadow: 0 4px 5px -2px rgba(var(--shade), .3), 3px 5px 9px -6px rgba(var(--shade), .22); transition: transform .5s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, box-shadow .3s ease; }
.journal-tabs button:nth-child(1) { z-index: 20; }
.journal-tabs button:nth-child(2) { z-index: 19; }
.journal-tabs button:nth-child(3) { z-index: 18; }
.journal-tabs button:nth-child(4) { z-index: 17; }
.journal-tabs button:nth-child(5) { z-index: 16; }
.journal-tabs button:nth-child(6) { z-index: 15; }
.journal-tabs button:nth-child(7) { z-index: 14; }
.journal-tabs button:hover { transform: translateX(1px); }
.journal-tabs button[aria-selected="true"] { z-index: 40; background-color: var(--page); border-color: var(--tab-edge); color: var(--ink); font-weight: 600; transform: translateX(6px); clip-path: inset(-30px -40px -30px 33px); box-shadow: 0 4px 5px -2px rgba(var(--shade), .3), 8px 10px 18px -12px rgba(var(--shade), .45); }
.journal-tabs button:focus-visible { outline-offset: -4px; }

/* Dog-eared corners turn to the next or previous spread. */
.corner { position: absolute; z-index: 4; bottom: 0; width: 64px; height: 64px; padding: 0; border: 0; background: none; cursor: pointer; }
.corner[hidden] { display: none; }
.corner-next { right: 0; }
.corner-prev { left: 0; }
.corner i { position: absolute; bottom: 0; width: 22px; height: 22px; transition: width .35s cubic-bezier(.34,1.56,.64,1), height .35s cubic-bezier(.34,1.56,.64,1); }
.corner-next i { right: 0; border-radius: 0 0 6px 0; background: linear-gradient(315deg, transparent 50%, rgba(var(--shade), .16) 50%, transparent 64%), linear-gradient(315deg, #e2ddc9 0 49.6%, #bdb69c 50%, #e9e6d9 51%, #f6f4ec 72%, #fdfcf8); }
.corner-prev i { left: 0; border-radius: 0 0 0 6px; background: linear-gradient(45deg, transparent 50%, rgba(var(--shade), .16) 50%, transparent 64%), linear-gradient(45deg, #e2ddc9 0 49.6%, #bdb69c 50%, #e9e6d9 51%, #f6f4ec 72%, #fdfcf8); }
.corner:hover i, .corner:focus-visible i { width: 38px; height: 38px; }
.corner span { position: absolute; bottom: 16px; white-space: nowrap; font-size: 12px; color: var(--quiet); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.corner-next span { right: 50px; transform: translateX(6px); }
.corner-prev span { left: 50px; transform: translateX(-6px); }
.corner:hover span, .corner:focus-visible span { opacity: 1; transform: none; }
.corner:focus-visible { outline-offset: -6px; }
.page-nav { display: none; }

/* Turning pages: two-faced leaves, shading, and the shadow a lifted page casts. */
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; pointer-events: none; will-change: transform; }
.leaf-right { left: 50%; transform-origin: 0 50%; }
.leaf-left { left: 0; transform-origin: 100% 50%; }
.leaf-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: var(--page); background-image: var(--grain); }
.leaf-face.is-back { transform: rotateY(180deg); }
.leaf-right .leaf-face:not(.is-back), .leaf-left .leaf-face.is-back { border-radius: 0 10px 10px 0; }
.leaf-right .leaf-face.is-back, .leaf-left .leaf-face:not(.is-back) { border-radius: 3px 0 0 3px; }
.journal .snap { position: absolute; inset: 0; }
.leaf-shade, .cover-shade { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.leaf-right .leaf-face:not(.is-back) .leaf-shade, .leaf-left .leaf-face.is-back .leaf-shade, .cover-front .cover-shade { background: linear-gradient(90deg, rgba(var(--shade), .36), rgba(var(--shade), .1) 40%, rgba(255,255,255,.1) 78%, transparent); }
.leaf-right .leaf-face.is-back .leaf-shade, .leaf-left .leaf-face:not(.is-back) .leaf-shade, .cover-back .cover-shade { background: linear-gradient(270deg, rgba(var(--shade), .36), rgba(var(--shade), .1) 40%, rgba(255,255,255,.1) 78%, transparent); }
.journal .underlay { position: absolute; z-index: 4; top: 0; bottom: 0; width: 50%; background-color: var(--page); background-image: var(--grain); }
.journal .underlay.page-left { left: 0; background-image: linear-gradient(90deg, transparent 92%, #cccbbc33), var(--grain); }
.journal .underlay.page-right { left: 50%; background-image: linear-gradient(90deg, #c1c5b030, transparent 7%), var(--grain); }
.cast { position: absolute; z-index: 6; top: 0; bottom: 0; width: 50%; opacity: 0; pointer-events: none; }
.cast-right { left: 50%; transform-origin: 0 50%; background: linear-gradient(90deg, rgba(var(--shade), .3), rgba(var(--shade), .1) 32%, transparent 72%); }
.cast-left { left: 0; transform-origin: 100% 50%; background: linear-gradient(270deg, rgba(var(--shade), .3), rgba(var(--shade), .1) 32%, transparent 72%); }
.journal .stack-snap { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; transform-origin: 0 50%; background-color: var(--page); background-image: var(--grain); }

/* The cover, closed on first visit and swung open around the spine. */
.cover { display: none; position: absolute; z-index: 60; top: -9px; bottom: -18px; left: 50%; width: calc(50% + 9px); transform-origin: 0 50%; transform-style: preserve-3d; pointer-events: none; }
.cover-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background-color: var(--cloth); background-image: radial-gradient(ellipse at 34% 24%, rgba(255,255,255,.09), transparent 60%), var(--weave); }
.cover-front { border-radius: 4px 14px 14px 4px; box-shadow: inset 16px 0 14px -12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.07), 0 24px 40px -24px rgba(0,0,0,.8); }
.cover-front::before { content: ""; position: absolute; inset: 18px 18px 18px 30px; border: 1px solid rgba(255,255,255,.08); border-radius: 4px 10px 10px 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.cover-label { position: absolute; left: calc(50% + 6px); top: 40%; transform: translate(-50%, -50%); width: min(300px, 62%); padding: 30px 22px 24px; text-align: center; background-color: #f2ecda; background-image: var(--grain); border-radius: 6px; box-shadow: inset 0 1px 2px rgba(0,0,0,.28), 0 1px 0 rgba(255,255,255,.12); }
.cover-label::before { content: ""; position: absolute; inset: 7px; border: 1px solid #cbbf9b; border-radius: 4px; }
.cover-label img { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 10px; mix-blend-mode: multiply; }
.cover-label p { margin: 0; }
.cover-title { font: 400 31px/1.1 var(--serif); letter-spacing: -.8px; color: var(--ink); }
.cover-sub { font-size: 12.5px; color: var(--quiet); margin-top: 6px !important; }
.cover-foot { position: absolute; left: 30px; right: 0; bottom: 40px; text-align: center; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(242,236,218,.42); }
.cover-band { position: absolute; z-index: 2; top: 0; bottom: 0; right: 40px; width: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--cloth) 70%, #000), color-mix(in srgb, var(--cloth) 86%, #fff) 45%, color-mix(in srgb, var(--cloth) 70%, #000)); box-shadow: 0 0 0 1px rgba(0,0,0,.18), 3px 0 6px rgba(0,0,0,.25); }
.cover-back { transform: rotateY(180deg); border-radius: 14px 4px 4px 14px; }
.cover-page { position: absolute; top: 9px; bottom: 18px; left: 9px; right: 0; background-color: var(--page); background-image: var(--grain); border-radius: 3px 0 0 3px; }
.cover-page::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 48px; background: linear-gradient(90deg, transparent, rgba(var(--shade), .05) 72%, rgba(var(--shade), .14)); }
.journal.is-closed { transform: translateX(var(--shift, 0px)); }
.journal.is-closed .cover { display: block; }
.journal.is-closed .book { clip-path: inset(-40px -40px -120px 50%); }
.journal.is-closed .board { clip-path: inset(-60px -60px -60px 50%); }
.journal.is-closed .journal-tabs, .journal.is-closed .edge-left, .journal.is-closed .headband { opacity: 0; pointer-events: none; }
.journal.is-closed .desk-shadow { left: 51%; }
.journal.is-closed .ribbon-tail { margin-left: 0; }

/* Start spread */
.page-start .positioning { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.5px; }
.journal h1 { font: 400 clamp(44px, 4.3vw, 62px)/.98 var(--serif); letter-spacing: -.045em; margin: 22px 0 28px; }
.page-start .cover-copy { color: var(--quiet); font-size: 16px; max-width: 30rem; }
.page-start .inline-link { margin-top: 26px; align-self: flex-start; }
.start-roger { padding: 0; margin-bottom: 26px; }
.start-roger img { height: 118px; width: 94px; transform-origin: 50% 92%; cursor: pointer; }
.contents h2 { font: 400 26px/1.2 var(--serif) !important; letter-spacing: -.5px !important; margin: 0 0 10px !important; }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents a { display: flex; align-items: baseline; gap: 10px; padding: 11px 2px; min-height: 44px; text-decoration: none; border-bottom: 1px solid #d9dccc; font-size: 16px; }
.contents a i { flex: 1; border-bottom: 1px dotted #23442e55; transform: translateY(-4px); transition: border-color .25s ease; }
.contents a b { font: 400 15px var(--serif); color: var(--quiet); transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .2s ease; }
.contents a:hover i { border-bottom-color: #23442eaa; }
.contents a:hover b { transform: translateX(3px); color: var(--ink); }
.page-start .smallprint { margin-top: 18px; }

/* Headings inside pages: the site's own faces, sized for a page rather than a full-width section. */
.journal .page h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 3.3vw, 50px); line-height: 1.04; letter-spacing: -1.8px; margin-bottom: 20px; }
.journal .section-kicker { margin-bottom: 14px; }
.spread-title { margin-bottom: 20px; }
.spread-title h2 { font-size: 30px !important; letter-spacing: -.8px !important; margin: 0 !important; }
.spread-title p { font-size: 12px; color: var(--quiet); margin-top: 6px; }

/* Your week */
.journal .book-chart, .journal .book-day { padding: 58px 48px 62px; }
.week-roger { margin-top: 18px; padding: 0; }
.week-roger img { height: 96px; width: 75px; }
.week-roger p { font-size: 17px; }
#week-dot, #demo-dot { transform-box: fill-box; transform-origin: center; }
.journal .week-days { position: relative; }
.journal .week-days button { z-index: 1; transition: color .3s ease .05s; }
.journal .week-days button[aria-pressed="true"] { background: transparent; color: var(--page); }
.journal .week-days button[aria-pressed="true"]::after { display: none; }
.day-pill { position: absolute; z-index: 0; top: 12px; bottom: 0; left: 0; width: calc((100% - 24px) / 7); border-radius: 3px; background: var(--ink); transform: translateX(calc(var(--day, 2) * (100% + 4px))); transition: transform .55s cubic-bezier(.3,.7,.2,1); pointer-events: none; }
.day-pill::after { content: ""; position: absolute; bottom: -7px; left: calc(50% - 4px); width: 8px; height: 8px; transform: rotate(45deg); background: var(--ink); }
.week-roger img { transform-origin: 50% 96%; }

/* Patterns, on paper */
.spread-lede { color: var(--quiet); font-size: 15.5px; max-width: 30rem; margin-bottom: 22px; }
.journal .contribution-page h3 { font-size: 18px; font-weight: 500; }
.journal .contribution-page > p:not(.smallprint) { font-size: 13px; color: var(--quiet); margin-top: 4px; }
.journal .bar-key { color: var(--quiet); margin: 18px 5px 4px 100px; }
.journal .attribution-row { border-bottom: 1px solid var(--rule); min-height: 48px; transition: background-color .2s ease, box-shadow .25s ease; }
.journal .attribution-row:hover { background: #25623f0a; }
.journal .attribution-row[aria-pressed="true"] { background: #25623f10; box-shadow: -3px 0 0 var(--green); }
.journal .attribution-track { background: linear-gradient(90deg, transparent calc(50% - .5px), #23442e55 calc(50% - .5px), #23442e55 calc(50% + .5px), transparent calc(50% + .5px)); }
.journal .attribution-track i { background: #6aa17b; }
.journal .attribution-track i.negative { background: #c98a73; }
.journal .contribution-page > .smallprint { margin-top: 16px; }
.journal .category-page { padding-left: 0; border-left: 0; }
.journal .category-title h3 { font: 400 26px/1.2 var(--serif); letter-spacing: -.5px; }
.journal .category-page ul { min-height: 170px; }
.journal .category-page li { border-bottom: 1px solid #d9dccc; }
.journal .marginal-note { color: #3a5341; min-height: 96px; padding-top: 14px; }
.journal .metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0 0; margin-top: 16px; border-top: 1px solid var(--rule); border-bottom: 0; }
.journal .metric-strip > div { padding: 0 14px; border-left: 1px solid var(--rule); }
.journal .metric-strip > div:first-child { padding-left: 0; border-left: 0; }
.journal .metric-strip dt { font-size: 12px; }
.journal .metric-strip dd:not(.metric-description) { font: 400 28px/1.3 var(--serif); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.journal .metric-strip .metric-description { font-size: 11px; line-height: 1.4; color: var(--quiet); }
.journal .method > p { color: var(--quiet); }

/* Try a day */
.journal .entry-intro > p:not(.section-kicker) { max-width: 26rem; }
.journal .daily-tools { margin-top: 30px; }
.journal .entry-paper { margin-top: 22px; }
.journal .demo-chart { height: 104px; }
.journal .demo-explanation { min-height: 64px; }
#demo-price, #demo-return { transition: color .9s ease; font-variant-numeric: tabular-nums; }
#demo-price.flash-up { color: var(--green); transition: none; }
#demo-price.flash-down { color: var(--down); transition: none; }
.journal .entry-choices button { transition: background-color .2s ease, padding-left .25s ease; }
.journal .entry-choices button:hover:not(:disabled) { padding-left: 8px; }

/* The desk */
.journal .desk-copy > p:not(.section-kicker) { margin-top: 16px; }
.journal .strategy-sheet { margin: 10px 4px 0; padding: 26px; transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease; }
.journal .strategy-sheet:hover { transform: rotate(.4deg) translateY(-3px); box-shadow: 12px 16px 0 #c1c2ac66; }
.journal .strategy-title h3 { font-size: 28px; }

/* Roger, and his tree */
.roger-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.roger-head img { width: 118px; height: auto; flex: none; }
.roger-head h2 { margin-bottom: 6px !important; }
.roger-name { font: 22px/1.2 var(--serif); }
.roger-name span { display: block; font: 12px var(--sans); color: var(--quiet); margin-top: 2px; }
.journal .roger-letter > p { font-size: 15.5px; color: var(--quiet); margin-bottom: 12px; }
.journal .roger-letter blockquote { min-height: 150px; font-size: 18px; padding-top: 18px; }
.journal .page-garden { background: radial-gradient(ellipse at 72% 38%, #eee4c7b0, #eee4c740 45%, transparent 70%), linear-gradient(90deg, #c1c5b030, transparent 7%); }
.journal .garden-copy h2 { color: #4b572f; }
.garden-art { display: flex; gap: 20px; align-items: center; margin: 4px 0 6px; }
.garden-art img { width: 168px; height: auto; mix-blend-mode: multiply; flex: none; }
.garden-art p { font-size: 15px; line-height: 1.7; color: #656249; }
.journal .garden-copy > p:not(.garden-lede):not(.section-kicker) { margin-bottom: 12px; }
.journal .garden-lede { font-size: 18px; margin-bottom: 14px; }

/* Join */
.join-roger { position: relative; z-index: 0; width: 124px; margin: 0 0 18px -6px; }
.join-roger img { position: relative; width: 124px; height: auto; transform-origin: 50% 96%; cursor: pointer; }
.join-roger::after { content: ""; position: absolute; z-index: -1; left: 22px; right: 26px; bottom: 3px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--shade), .24), transparent); }
.journal .invitation > p:not(.section-kicker) { color: var(--quiet); }
.journal .invitation .smallprint { margin-top: 4px; }
.journal .join-button { align-self: flex-start; transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s ease; }
.journal .join-button:hover { transform: translateY(-2px); }

.colophon { width: min(680px, 100% - 32px); margin: 0 auto; padding-block: 64px 70px; text-align: center; color: var(--quiet); }
.colophon .sprig { display: block; width: 44px; height: 22px; margin: 0 auto 16px; color: var(--green); opacity: .55; }
.colophon-line { font: 17px/1.5 var(--serif); color: var(--ink); margin: 0; }
.colophon-line em { font-style: italic; color: var(--quiet); }
.colophon nav { display: flex; justify-content: center; gap: 24px; margin: 12px 0 20px; font-size: 13px; }
.colophon nav a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px; }
.colophon nav a:hover { border-bottom-color: var(--ink); }
.colophon-fine { font-size: 11.5px; line-height: 1.75; margin: 0; }

@media (max-width: 1100px) {
  .book-wrap { margin-right: 0; }
  .journal-tabs { position: relative; z-index: 35; top: auto; right: auto; width: auto; flex-direction: row; gap: 4px; padding: 0 14px; margin-bottom: 9px; overflow-x: auto; scrollbar-width: none; }
  .journal-tabs::-webkit-scrollbar { display: none; }
  .journal-tabs button, .journal-tabs button + button { flex: none; min-height: 44px; margin-top: 0; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--tab) 78%, #fff); border-bottom: 0; border-radius: 10px 10px 0 0; white-space: nowrap; transform: translateY(4px); clip-path: none; box-shadow: inset 0 -10px 10px -10px rgba(var(--shade), .3), 3px 0 4px -2px rgba(var(--shade), .24); }
  .journal-tabs button:hover { transform: translateY(1px); }
  .journal-tabs button[aria-selected="true"] { transform: translateY(-1px); clip-path: none; box-shadow: 3px 0 4px -2px rgba(var(--shade), .24); }
  .edge { display: none; }
}
@media (max-width: 760px) {
  .spread { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .journal .page, .journal .book-chart, .journal .book-day { padding: 48px 22px 52px; }
  .journal .page::before { left: 22px; right: 22px; }
  .journal .page-left::after { left: 22px; }
  .journal .page-right::after { right: 22px; }
  .journal .page-right { border-left: 0; border-top: 1px solid var(--rule); background: linear-gradient(#c1c5b018, transparent 10%); }
  .page-center { display: block; }
  .journal h1 { font-size: clamp(46px, 13vw, 64px); }
  .journal .page h2 { font-size: 38px; letter-spacing: -1.4px; }
  .journal .bar-key { margin-left: 76px; }
  .journal .metric-strip { grid-template-columns: minmax(0, 1fr); }
  .journal .metric-strip > div, .journal .metric-strip > div:first-child { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 10px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .journal .metric-strip dd:not(.metric-description) { grid-column: 2; grid-row: 1 / 3; }
  .garden-art { flex-direction: column; align-items: flex-start; }
  .journal .strategy-sheet { transform: none; }
  .gutter, .corner, .ribbon-page, .ribbon-tail, .headband, .replay, .block-left { display: none; }
  .block-right { left: 0; width: 100%; }
  .page-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
  .colophon { padding-block: 36px 56px; }
  .page-nav button { border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
  .page-nav #nav-next { margin-left: auto; }
  .stage { padding-block: 22px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .journal-tabs button, .corner i, .corner span, .edge, .block, .ribbon-tail, .contents a b, .journal .strategy-sheet, .journal .join-button, .day-pill, .journal .week-days button { transition: none; }
  .journal.is-closed { transform: none; }
  .replay { display: none; }
}

/* Production layout: centre the paper itself, not the paper plus its tabs. */
.stage.wrap { width: min(1360px, calc(100% - 64px)); padding-inline: 100px; }
.journal { max-width: 1080px; margin-inline: auto; scroll-margin-top: 18px; }
.book-wrap { margin: 0; }
.book-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 16px; color: #bdc7bd; font-size: 12px; }
.book-toolbar .replay { margin: 0; min-height: 44px; padding: 0 2px; color: #e9ecdf; }
.book-toolbar > span { align-self: center; }
.fallback-note { color: #e9ecdf; margin-bottom: 20px; }
.journal-tabs { z-index: 20; top: 30px; left: calc(100% - 3px); right: auto; width: 104px; }
.journal-tabs button, .journal-tabs button + button { flex: none; min-height: 52px; margin: 0; padding: 8px 10px 8px 12px; transform: none; clip-path: none; white-space: normal; border-radius: 0 8px 8px 0; }
.journal-tabs button:hover, .journal-tabs button[aria-selected=true] { transform: none; clip-path: none; }
.journal-tabs button[aria-selected=true] { width: calc(100% + 4px); }
.spread { min-height: clamp(560px, calc(100svh - 180px), 720px); }
.journal .page, .journal .book-chart, .journal .book-day { padding: 52px 36px 58px; }
.journal .page::before { left: 36px; right: 36px; top: 22px; }
.journal .page-left::after { left: 36px; }
.journal .page-right::after { right: 36px; }
.journal .page h2 { font-size: clamp(34px, 3vw, 44px); }
.journal h1 { font-size: clamp(42px, 4.1vw, 58px); }
.journal .week-days button[aria-pressed=true] { background: var(--ink); color: var(--page); }
.journal .attribution-track i { background: #25623f; }
.journal .attribution-track i.negative { background: #9d4338; }
.journal .cursor { stroke: #546453; }
.journal .bar-key { font-size: 11px; }
.journal .chart-key { font-size: 11px; }
.journal .attribution-row { grid-template-columns: 80px minmax(0,1fr) 75px; }
.journal .roger-head { flex-wrap: wrap; gap: 12px; }
.journal .roger-head img { width: 100px; }
.journal .memory p { min-height: 90px; }
.journal .roger-letter blockquote { min-height: 0; }
.journal .strategy-sheet { padding: 22px; }
.journal .garden-art { gap: 12px; flex-wrap: wrap; }
.journal .garden-art img { width: 128px; }
.journal .garden-art p { flex: 1 1 130px; }
.cover { padding: 0; }
.cover-foot { color: #dedfce; }
.start-roger img, .join-roger img { cursor: default; }
.folio-number { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { z-index: 100; }
:focus-visible { outline: 3px solid #b04b17; outline-offset: 4px; }
.book-toolbar :focus-visible, .masthead :focus-visible, .colophon :focus-visible, .page-nav :focus-visible { outline-color: #eabb79; }
.page-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 34px; }
.page-nav button { min-height: 44px; border: 0; padding: 8px 0; background: none; color: #e9ecdf; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.page-nav #nav-next { margin-left: auto; }
.corner span { opacity: 0; font-size: 11px; }
.journal:not(.is-ready) .journal-tabs, .journal:not(.is-ready) .book-toolbar, .journal:not(.is-ready) .page-nav, .journal:not(.is-ready) .corner { display: none; }
.journal:not(.is-ready) .spread + .spread { border-top: 1px solid #546453; }
.journal:not(.is-ready) .gutter { display: none; }
@media(max-width:1200px) {
  .stage.wrap { width: calc(100% - 48px); padding-inline: 90px; }
  .journal-tabs { position: absolute; z-index: 20; top: 30px; left: calc(100% - 3px); right: auto; width: 104px; padding: 0; margin: 0; flex-flow: column nowrap; gap: 0; overflow: visible; }
  .journal-tabs button, .journal-tabs button + button { flex: none; min-height: 52px; padding: 8px 10px 8px 12px; margin: 0; border: 1px solid #b7bca6; border-left: 0; border-radius: 0 8px 8px 0; transform: none; white-space: normal; }
}
@media(max-width:900px) {
  .stage.wrap { width: min(620px, calc(100% - 32px)); padding: 12px 0 30px; }
  .masthead.wrap { width: calc(100% - 40px); min-height: 76px; }
  .spread { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .book-wrap { margin: 0 48px 0 12px; touch-action: pan-y pinch-zoom; }
  .board { inset: -9px -8px -16px -23px; border-radius: 8px 11px 11px 8px; }
  .board::before { left: 0; margin: 0; width: 25px; background: linear-gradient(90deg,#1d2b2e99,#60707744 42%,#14212377); border-radius: 7px 0 0 7px; }
  .book-wrap::before { content: ''; position: absolute; z-index: 32; top: -4px; bottom: -10px; left: -13px; width: 6px; border-inline: 1px solid #d2d9cf55; background: repeating-linear-gradient(180deg,#cfdbcf66 0 2px,transparent 2px 9px); border-radius: 4px; pointer-events: none; }
  .book.open-book { border: 0; border-radius: 2px 6px 7px 2px; box-shadow: 2px 4px 0 #d0ccb7,4px 7px 0 #f0ede1,5px 8px 0 #a9ae98; }
  .book.open-book::before { content: ''; position: absolute; z-index: 3; inset: 0 auto 0 0; width: 20px; background: linear-gradient(90deg,#193d2b25,transparent); pointer-events: none; }
  .journal .page, .journal .book-chart, .journal .book-day { padding: 48px 20px 78px 24px; min-height: clamp(550px,calc(100svh - 170px),700px); }
  .journal .page-left, .journal .page-right { border: 0; background: linear-gradient(90deg,#c1c5b025,transparent 12%); }
  .page-center { display: block; }
  .journal h1 { font-size: clamp(36px,10vw,56px); }
  .journal .page h2 { font-size: clamp(28px,8vw,38px); }
  .journal .page::before { left: 24px; right: 20px; font-size: 10px; }
  .journal .page-right::before { text-align: left; }
  .journal .page::after { display: none; }
  .gutter, .ribbon-page, .ribbon-tail, .headband, .replay, .block-left { display: none; }
  .block-right { left: 0; width: 100%; }
  .journal-tabs { top: 30px; width: 52px; }
  .journal-tabs button, .journal-tabs button + button { min-height: 50px; padding: 7px 5px 7px 8px; font-size: 11px; text-align: center; justify-content: center; }
  .journal-tabs button[aria-selected=true] { box-shadow: 2px 3px 5px #0003; }
  .book-toolbar { margin-bottom: 18px; font-size: 11px; padding-left: 1px; }
  .folio-number { display: block; position: absolute; z-index: 4; left: 51px; right: 51px; bottom: 18px; font-size: 10px; line-height: 1.4; color: var(--quiet); text-align: center; pointer-events: none; }
  .corner { display: block; z-index: 5; width: 52px; height: 58px; }
  .corner i { width: 32px; height: 32px; }
  .corner span { display: none; }
  .corner::after { content: '›'; position: absolute; bottom: 8px; right: 10px; font: 22px var(--serif); color: var(--ink); }
  .corner-prev::after { content: '‹'; left: 10px; right: auto; }
  .page-nav { display: none; }
  .journal .stack-snap { border-radius: 2px 6px 7px 2px; transform-origin: 0 50%; will-change: transform; background-color: var(--page); background-image: linear-gradient(90deg,#c1c5b025,transparent 12%),var(--grain); }
  .stack-snap > .leaf-shade { background: linear-gradient(90deg,#193d2b44,#193d2b18 40%,#ffffff20 78%,transparent); border-radius: inherit; }
  .cast-notebook { left: 0; width: 100%; transform-origin: 0 50%; background: linear-gradient(90deg,#193d2b44,#193d2b18 32%,transparent 72%); }
  .journal .start-roger { margin-bottom: 16px; }
  .journal .strategy-sheet { margin-inline: 0; padding: 12px; }
  .journal .category-page ul { min-height: 0; }
  .journal .attribution-row { grid-template-columns: 59px minmax(0,1fr) 60px; gap: 4px; font-size: 11px; }
  .journal .attribution-row > b { font-size: 10px; }
  .journal .bar-key { margin-left: 0; gap: 8px; }
  .journal .bar-key span { flex: 1; min-width: 0; }
  .journal .bar-key span:last-child { text-align: right; }
  .journal .metric-strip { grid-template-columns: minmax(0,1fr); }
  .journal .metric-strip > div, .journal .metric-strip > div:first-child { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 0 14px; padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .journal .metric-strip dd:not(.metric-description) { grid-column: 2; grid-row: 1 / 3; }
  .journal .garden-art { flex-direction: row; }
  .colophon { padding-block: 28px 40px; }
}
@media(max-width:360px) {
  .brand { font-size: 20px; }
  .masthead { gap: 10px; }
  .beta-link { font-size: 11px; }
  .journal .book-heading { flex-wrap: wrap; }
  .journal .chart-key { flex-wrap: wrap; font-size: 10px; }
  .journal .page, .journal .book-chart, .journal .book-day { padding-left: 21px; padding-right: 16px; }
  .journal .week-days { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .journal .entry-paper { padding: 14px 12px; }
  .journal .entry-result { flex-wrap: wrap; gap: 8px 12px; }
  .journal .entry-result strong { font-size: 28px; }
  .journal .roger-aside { flex-wrap: wrap; }
}
@media(max-width:480px) {
  /* Seven 44px date targets cannot fit a narrow paper page. Keep every day visible. */
  .journal .week-days { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .journal .week-days button { min-width: 44px; min-height: 52px; }
}
@media(max-width:360px) { .journal .week-days { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .leaf, .stack-snap, .cover, .turning-sheet { display: none !important; }
}
@media(forced-colors:active) {
  .board, .gutter, .ribbon-page, .ribbon-tail, .block, .edge { display: none; }
  .journal-tabs button[aria-selected=true], .week-days button[aria-pressed=true] { border: 2px solid Highlight; text-decoration: underline; }
}
