/* ============================================================
   Home page (index.html only).
   One signature moment (the notebook open on the desk), then calm
   editorial sections. Reuses the site's own .thesis, .section-head,
   .track-grid and .ledger-embed components from styles.css.
   Everything here is scoped under .hm or an hm- class.
   ============================================================ */

.hm {
  --rule: #e2ddd0;
  --ink: #23306e;              /* handwriting ink */
  --lav: #a9a4ff;
  --hl: #ffe137;
  --tape: rgba(216, 212, 198, 0.62);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  background: var(--cream);
  overflow-x: clip;
}
.hm-sec { padding: 92px 0; }
.hm-eyebrow { font: 600 0.76rem/1.5 var(--sans); letter-spacing: 0.13em; text-transform: uppercase; color: var(--purple); }
.hm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 30px; }
.hm-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); line-height: 1.15; letter-spacing: -0.01em; margin-top: 6px; }
.hm-more { font: 600 0.9rem/1.4 var(--sans); color: var(--purple); white-space: nowrap; }
.hm-more:hover { color: var(--purple-dark); text-decoration: underline; text-underline-offset: 3px; }
.hm-topic { font: 600 0.7rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.hm :focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* Reveal: a keyframe on `translate`, so it never fights hover transforms */
.hm-js .hm [data-reveal]:not(.is-in) { opacity: 0; }
.hm-js .hm [data-reveal].is-in { animation: hm-rise .8s var(--ease-out) var(--d, 0s) both; }
@keyframes hm-rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* ============================================================
   Hero: the notebook, open on the desk
   ============================================================ */
.hm-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); padding: 66px 0 104px; }
.hm-lamp { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 22% -8%, rgba(255, 214, 150, .18), transparent 62%),
    radial-gradient(ellipse 46% 40% at 50% 60%, rgba(255, 226, 180, .06), transparent 70%),
    radial-gradient(ellipse 50% 60% at 88% 110%, rgba(91, 84, 224, .26), transparent 64%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 7px); }
.hm-desk { perspective: 2200px; }
.hm-book {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  max-width: 1040px; margin: 0 auto;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
/* the hardcover the pages lie on, with a stitched edge */
.hm-cover { position: absolute; inset: -14px -16px -18px; z-index: -1; border-radius: 12px; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 25% 10%, rgba(255, 255, 255, .07), transparent 70%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .014) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #2a2552, #18162f 58%, #0f0e1d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 0 rgba(0, 0, 0, .45),
    0 56px 70px -26px rgba(0, 0, 0, .9), 0 20px 28px -12px rgba(0, 0, 0, .65); }
.hm-cover::before { content: ""; position: absolute; inset: 6px; border-radius: 8px; border: 1px dashed rgba(169, 164, 255, .22); }
/* the pages: warm paper, lamp light from the top left, shade in the fold, a stack of sheets at the outer edges */
.hm-page {
  position: relative; min-height: 560px; background-color: #fbfaf6;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 34px);
  background-position: 0 22px;
}
.hm-left { border-radius: 6px 2px 2px 6px; padding: 34px 46px 40px 96px;
  box-shadow: -1px 1px 0 #ebe8df, -2px 2px 0 #d6d2c7, -3px 3px 0 #ece9e1, -4px 4px 0 #d1cdc2, -5px 5px 0 #e7e4db, -6px 6px 0 #cbc7bc;
  background-image:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(255, 238, 205, .32), transparent 70%),
    linear-gradient(to left, rgba(30, 24, 14, .26) 0, rgba(30, 24, 14, .1) 12px, rgba(30, 24, 14, .03) 40px, rgba(30, 24, 14, 0) 88px),
    linear-gradient(to top, rgba(30, 24, 14, .04), transparent 28%),
    linear-gradient(to right, transparent 66px, var(--paper-margin) 66px, var(--paper-margin) 67px, transparent 67px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 34px);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 22px; }
.hm-right { border-radius: 2px 6px 6px 2px; padding: 34px 48px 40px 52px;
  box-shadow: 1px 1px 0 #ebe8df, 2px 2px 0 #d6d2c7, 3px 3px 0 #ece9e1, 4px 4px 0 #d1cdc2, 5px 5px 0 #e7e4db, 6px 6px 0 #cbc7bc;
  background-image:
    linear-gradient(to right, rgba(30, 24, 14, .26) 0, rgba(30, 24, 14, .1) 12px, rgba(30, 24, 14, .03) 40px, rgba(30, 24, 14, 0) 88px),
    linear-gradient(to top, rgba(30, 24, 14, .04), transparent 28%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 34px);
  background-position: 0 0, 0 0, 0 22px; }
/* spiral binding: wire loops through punched holes on both pages */
.hm-rings { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; padding: 8px 0; }
.hm-rings i { position: relative; z-index: 0; display: block; width: 68px; height: 7px; border-radius: 999px; transform: rotate(-8deg);
  background: linear-gradient(to bottom, #fdfdff 0%, #c9c9d2 34%, #84848f 72%, #4d4d58 100%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .5), 0 0 0 .5px rgba(0, 0, 0, .3); }
.hm-rings i::before, .hm-rings i::after { content: ""; position: absolute; top: 50%; z-index: -1; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: #1b1930; box-shadow: inset 0 2px 2px rgba(0, 0, 0, .75), 0 1px 0 rgba(255, 255, 255, .7); }
.hm-rings i::before { left: -2px; }
.hm-rings i::after { right: -2px; }

.hm-date { display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; min-height: 1.6em; font: 400 1.3rem/1.6 var(--hand); color: var(--ink); margin-bottom: 18px; }
.hm-date small { font: 600 0.6rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8a90a8; }
.hm-date span { display: inline-block; min-width: 13em; text-align: center; border-bottom: 1px solid #a9b1c8; padding: 0 6px; }
.hm-kicker { font: 600 0.74rem/34px var(--sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--purple); }
.hm-left { display: flex; flex-direction: column; }
.hm-left h1 { font: 600 clamp(1.85rem, 2.75vw, 2.5rem)/1.14 var(--display); color: var(--text-dark); letter-spacing: -0.01em; margin: 4px 0 16px; }
.hm-sub { font: 400 1.14rem/34px var(--serif); color: var(--text-mute); max-width: 34ch; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hm-btn-paper { background: #fff; color: var(--text-dark); border-color: #d4cfc2; }
.hm-btn-paper:hover { border-color: var(--purple); color: var(--purple); }
.hm-margin { margin-top: auto; padding-top: 22px; align-self: flex-end; margin-right: -14px; display: flex; align-items: flex-end; gap: 4px; font: 400 1.32rem/1 var(--hand); color: var(--purple); transform: rotate(-3deg); }
.hm-margin svg { overflow: visible; }
.hm-margin path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hm-entry { font: 400 1.22rem/1.6 var(--hand); color: var(--ink); margin-bottom: 14px; }
.hm-photo { position: relative; margin: 0 0 18px; background: #fff; padding: 9px 9px 9px; box-shadow: 0 2px 3px rgba(0, 0, 0, .14), 0 16px 28px -16px rgba(0, 0, 0, .45); transform: rotate(-1.4deg); }
.hm-photo::before, .hm-photo::after { content: ""; position: absolute; top: -10px; width: 74px; height: 22px; background: var(--tape); z-index: 1; }
.hm-photo::before { left: -16px; transform: rotate(-32deg); }
.hm-photo::after { right: -16px; transform: rotate(30deg); }
.hm-photo img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; object-position: 50% 46%; }
.hm-right .hm-topic { margin-bottom: 4px; }
.hm-right h2 { font: 600 clamp(1.35rem, 2.1vw, 1.65rem)/1.25 var(--serif); margin-bottom: 8px; }
.hm-right h2 a::after { content: ""; position: absolute; inset: 0; }   /* the whole page opens the entry */
.hm-right h2 a:hover { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--purple) 50%, transparent); text-underline-offset: 4px; }
.hm-dek { color: var(--text-mute); font-size: 0.95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-right .hm-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font: 500 0.85rem var(--sans); color: var(--text-mute); }
.hm-right .hm-meta a { position: relative; z-index: 1; font-weight: 600; color: var(--purple); }

/* Entrance: the book settles, the right page falls open, the date is written, the photo is taped down */
.hm-js .hm-book { opacity: 0; translate: 0 26px; transition: opacity .8s ease, translate 1s var(--ease-out), transform .8s var(--ease-out); }
.hm-js .hm-hero.is-in .hm-book { opacity: 1; translate: 0 0; }
.hm-js .hm-right { transform-origin: 0 50%; transform: rotateY(-14deg); transition: transform 1.3s var(--ease-out) .1s; }
.hm-js .hm-hero.is-in .hm-right { transform: none; }
.hm-js .hm-date span { clip-path: inset(-6px 100% -6px 0); transition: clip-path 1.1s cubic-bezier(.55, .1, .35, 1) .55s; }
.hm-js .hm-hero.is-in .hm-date span { clip-path: inset(-6px 0 -6px 0); }
.hm-js .hm-photo { opacity: 0; transform: translateY(-22px) rotate(-7deg); transition: opacity .35s ease .45s, transform .75s var(--ease-spring) .45s; }
.hm-js .hm-hero.is-in .hm-photo { opacity: 1; transform: rotate(-1.4deg); }
.hm-js .hm-margin { opacity: 0; transition: opacity .5s ease 1.3s; }
.hm-js .hm-hero.is-in .hm-margin { opacity: 1; }
.hm-js .hm-margin path { stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .8s ease 1.45s; }
.hm-js .hm-hero.is-in .hm-margin path { stroke-dashoffset: 0; }

/* ============================================================
   Latest paper reviews
   ============================================================ */
.hm-shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hm-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .3s; }
.hm-card:hover, .hm-card:focus-within { transform: translateY(-4px); box-shadow: 0 26px 44px -30px rgba(30, 28, 90, .6); border-color: color-mix(in srgb, var(--purple) 30%, var(--rule)); }
.hm-card-img { overflow: hidden; background: #111; }
.hm-card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .7s var(--ease-out); }
.hm-card:hover .hm-card-img img { transform: scale(1.045); }
.hm-card .hm-topic { padding: 16px 18px 0; }
.hm-card h3 { font: 600 1.1rem/1.3 var(--serif); padding: 6px 18px 0; }
.hm-card h3 a::after { content: ""; position: absolute; inset: 0; }
.hm-card .hm-dek { padding: 8px 18px 0; font-size: 0.9rem; }
.hm-card .hm-meta { margin-top: auto; padding: 14px 18px 16px; font: 500 0.8rem var(--sans); color: var(--text-mute); }

/* ============================================================
   This week's reports
   ============================================================ */
.hm-week { padding-top: 10px; }
.hm-reports { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.hm-report { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.hm-report:hover, .hm-report:focus-within { transform: translateY(-4px); box-shadow: 0 26px 44px -30px rgba(30, 28, 90, .6); }
.hm-report-img { background: #11131f; overflow: hidden; }
.hm-report-img img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .7s var(--ease-out); }
.hm-report:hover .hm-report-img img { transform: scale(1.03); }
.hm-report-body { padding: 18px 22px 22px; }
.hm-report h3 { font: 600 1.3rem/1.25 var(--serif); margin: 6px 0 8px; }
.hm-report h3 a::after { content: ""; position: absolute; inset: 0; }
.hm-earlier { margin-top: 30px; }
.hm-earlier h3 { font: 600 1.1rem/1.3 var(--serif); color: var(--text-dark); margin-bottom: 10px; }
.hm-earlier ul { list-style: none; padding: 0; margin: 0; }
.hm-earlier li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem; }
.hm-earlier li:first-child { border-top: 1px solid var(--rule); }
.hm-earlier li span { font: 500 0.82rem/1.6 var(--sans); color: var(--text-mute); white-space: nowrap; }
.hm-earlier li a { color: var(--text-dark); line-height: 1.45; }
.hm-earlier li a:hover { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.hm-earlier-key { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding-bottom: 8px; font: 600 0.66rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }

/* ============================================================
   The Notebook Ledger band
   ============================================================ */
.hm-ledger { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--text-light); padding: 72px 0; }
.hm-ledger::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 90% at 85% 50%, rgba(91, 84, 224, .25), transparent 70%); }
.hm-ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.hm-ledger .hm-eyebrow { color: var(--lav); }
.hm-ledger h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 8px 0 12px; max-width: 28ch; }
.hm-ledger p { color: var(--text-dim); line-height: 1.65; max-width: 54ch; }
.hm-ledger p a { color: var(--lav); font-weight: 600; white-space: nowrap; }
.hm-ledger p a:hover { color: #fff; }
.hm-ledger-form { background: var(--cream); border-radius: 14px; padding: 18px; box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .9); }
.hm-ledger-form .ledger-embed { min-height: 0; }

/* ============================================================
   The company files
   ============================================================ */
.hm-co-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm .hm-co { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .3s; }
.hm .hm-co:hover, .hm .hm-co:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(30, 28, 90, .6); border-color: color-mix(in srgb, var(--purple) 30%, var(--rule)); }
.hm-co-img { display: block; overflow: hidden; background: #0d0d14; }
.hm-co-img img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; transition: transform .7s var(--ease-out); }
.hm-co:hover .hm-co-img img { transform: scale(1.05); }
.hm-co-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 14px 16px 16px; flex: 1; align-content: flex-start; }
.hm-tick { position: relative; font: 700 0.8rem/1.2 var(--sans); letter-spacing: .03em; color: #155c2a; padding: 2px 6px; isolation: isolate; }
.hm-tick::before { content: ""; position: absolute; inset: 2px -1px 0; z-index: -1; background: color-mix(in srgb, #5dff5a 48%, transparent); transform: rotate(-1.5deg); border-radius: 2px; }
.hm-new { font: 700 0.62rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--purple); border-radius: 999px; padding: 4px 7px; }
.hm-co-body b { flex-basis: 100%; font: 600 0.98rem/1.35 var(--serif); color: var(--text-dark); }
.hm-co-body small { flex-basis: 100%; font: 500 0.78rem var(--sans); color: var(--text-mute); margin-top: auto; padding-top: 4px; }

/* ============================================================
   Start here
   ============================================================ */
.hm-start { padding-top: 20px; }
.hm-start-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 26px; align-items: stretch; }
.hm-howto { position: relative; background-color: var(--paper); border: 1px solid var(--paper-border); border-radius: 10px; padding: 26px 30px 24px 78px; box-shadow: 0 18px 40px -30px rgba(30, 28, 90, .45);
  background-image: linear-gradient(to right, transparent 54px, var(--paper-margin) 54px, var(--paper-margin) 55px, transparent 55px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 40px);
  background-position: 0 0, 0 18px; }
.hm-howto h3 { font: 400 1.85rem/40px var(--hand); color: var(--text-dark); }
.hm-howto ol { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.hm-howto li { position: relative; counter-increment: s; }
.hm-howto li::before { content: counter(s); position: absolute; left: -44px; top: 0; font: 400 1.5rem/40px var(--hand); color: var(--purple); }
.hm-howto h4 { font: 400 1.32rem/40px var(--hand); color: var(--purple); }
.hm-howto p { font: 400 1.14rem/40px var(--hand); color: var(--text-mute); }
.hm-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hm .hm-note { position: relative; display: flex; flex-direction: column; gap: 6px; background-color: #fff; border-radius: 4px; padding: 30px 18px 18px; box-shadow: 0 2px 3px rgba(34, 28, 20, .12), 0 18px 32px -24px rgba(34, 28, 20, .5); transition: transform .35s var(--ease-out), box-shadow .35s;
  background-image: linear-gradient(to bottom, transparent 22px, #e7aaa1 22px, #e7aaa1 23.5px, transparent 23.5px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 25px, #dfe5ee 25px, #dfe5ee 26px);
  background-position: 0 0, 0 23px; }
.hm .hm-note:nth-child(odd) { transform: rotate(-.6deg); }
.hm .hm-note:nth-child(even) { transform: rotate(.5deg); }
.hm .hm-note:hover, .hm .hm-note:focus-visible { transform: translateY(-4px) rotate(0); box-shadow: 0 2px 3px rgba(34, 28, 20, .12), 0 26px 40px -24px rgba(34, 28, 20, .55); }
.hm-note .n { position: absolute; top: 0; right: 14px; font: 400 1.3rem/22px var(--hand); color: #c8329a; }
.hm-note b { font: 600 1.02rem/1.35 var(--serif); color: var(--text-dark); }
.hm-note b span { background: linear-gradient(color-mix(in srgb, #ff4dc4 34%, transparent), color-mix(in srgb, #ff4dc4 34%, transparent)) no-repeat 0 88% / 0% .42em; -webkit-box-decoration-break: slice; box-decoration-break: slice; transition: background-size .6s cubic-bezier(.6, .1, .3, 1); }
.hm-note:hover b span, .hm-note:focus-visible b span { background-size: 100% .42em; }
.hm-note .d { font-size: 0.86rem; line-height: 1.55; color: var(--text-mute); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hm-rabbit { margin-top: 26px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 14px 26px 14px 14px; }
.hm-rabbit img { width: 92px; height: 92px; }
.hm-rabbit h3 { font: 400 1.6rem/1.2 var(--hand); color: var(--text-dark); }
.hm-rabbit p { font: 400 1.12rem/1.4 var(--hand); color: var(--text-mute); }
.hm-rabbit-actions { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hm-rabbit-actions > span { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font: 500 0.86rem var(--sans); }
.hm-rabbit-actions > span a { color: var(--purple); white-space: nowrap; }
.hm-rabbit-actions > span a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hm-rabbit-actions .nav-x-arrow { font-size: .78em; opacity: .65; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hm-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-start-grid, .hm-ledger-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hm-book { grid-template-columns: minmax(0, 1fr); gap: 22px; filter: none; }
  .hm-rings { display: none; }
  .hm-page { min-height: 0; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .7); }
  .hm-left, .hm-right { border-radius: 8px; }
  .hm-left { padding-bottom: 30px; background-image:
    linear-gradient(to right, transparent 46px, var(--paper-margin) 46px, var(--paper-margin) 47px, transparent 47px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 34px);
    background-position: 0 0, 0 22px; padding-left: 66px; }
  .hm-right { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 34px); background-position: 0 22px; }
  .hm-cover { display: none; }
  .hm-left, .hm-right { box-shadow: none; }
  .hm-margin svg { transform: rotate(70deg); transform-origin: 20% 60%; }
  .hm-earlier-key { display: none; }
}
@media (max-width: 700px) {
  .hm-sec { padding: 64px 0; }
  .hm .wrap { padding: 0 18px; }
  .hm-hero { padding: 26px 0 46px; }
  .hm-left { padding: 22px 20px 26px 52px; background-image:
    linear-gradient(to right, transparent 34px, var(--paper-margin) 34px, var(--paper-margin) 35px, transparent 35px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 33px, color-mix(in srgb, var(--paper-line) 70%, transparent) 34px); }
  .hm-right { padding: 22px 20px 24px; }
  .hm-left h1 { font-size: 2rem; }
  .hm-kicker { line-height: 1.6; margin-bottom: 6px; }
  .hm-sub { font-size: 1.04rem; }
  .hm-actions .btn { flex: 1 1 100%; text-align: center; }
  .hm-shelf { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -18px; padding: 4px 18px 18px; scrollbar-width: none; }
  .hm-shelf::-webkit-scrollbar { display: none; }
  .hm-card { flex: 0 0 78%; scroll-snap-align: start; }
  .hm-reports, .hm-notes { grid-template-columns: minmax(0, 1fr); }
  .hm-co-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-co { flex-direction: row !important; }
  .hm-co-img { flex: 0 0 38%; }
  .hm-co-img img { height: 100%; aspect-ratio: auto; }
  .hm-earlier li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hm-earlier li a::before { display: block; font: 600 0.64rem/1.6 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
  .hm-earlier li a:nth-of-type(1)::before { content: "Weekly Publications"; }
  .hm-earlier li a:nth-of-type(2)::before { content: "Weekly News"; }
  .hm-howto { padding: 20px 18px 18px 56px; background-image: linear-gradient(to right, transparent 38px, var(--paper-margin) 38px, var(--paper-margin) 39px, transparent 39px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 39px, color-mix(in srgb, var(--paper-line) 60%, transparent) 40px); }
  .hm-howto li::before { left: -36px; }
  .hm-rabbit { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .hm-rabbit-actions { grid-column: 1 / -1; }
  .hm-ledger { padding: 56px 0; }
  .hm-ledger-form { padding: 14px 12px 8px; }
}

/* Reduced motion: no tilt, everything in its final place */
@media (prefers-reduced-motion: reduce) {
  .hm-js .hm [data-reveal]:not(.is-in) { opacity: 1; }
}

/* ============================================================
   Notebook paper, closer to the Notes pages: ruled lines at full
   Notes strength, a blank head band above the first rule, a 1.5px
   red margin on both pages (the right page's sits by the binding).
   Layer order per page: light/shade, margin, head band, rules.
   ============================================================ */
.hm { --nb-paper: #fbfaf6; --nb-band: 72px;
  --nb-rules: repeating-linear-gradient(to bottom, transparent 0 33px, var(--paper-line) 33px 34px);
  --nb-head: linear-gradient(to bottom, var(--nb-paper) 0 var(--nb-band), transparent var(--nb-band)); }
.hm-left {
  background-image:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(255, 238, 205, .32), transparent 70%),
    linear-gradient(to left, rgba(30, 24, 14, .26) 0, rgba(30, 24, 14, .1) 12px, rgba(30, 24, 14, .03) 40px, rgba(30, 24, 14, 0) 88px),
    linear-gradient(to top, rgba(30, 24, 14, .04), transparent 28%),
    linear-gradient(to right, transparent 66px, var(--paper-margin) 66px 67.5px, transparent 67.5px),
    var(--nb-head), var(--nb-rules);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 22px; }
.hm-right {
  background-image:
    linear-gradient(to right, rgba(30, 24, 14, .26) 0, rgba(30, 24, 14, .1) 12px, rgba(30, 24, 14, .03) 40px, rgba(30, 24, 14, 0) 88px),
    linear-gradient(to top, rgba(30, 24, 14, .04), transparent 28%),
    linear-gradient(to right, transparent 30px, var(--paper-margin) 30px 31.5px, transparent 31.5px),
    var(--nb-head), var(--nb-rules);
  background-position: 0 0, 0 0, 0 0, 0 0, 0 22px; }
@media (max-width: 900px) {
  .hm-left { background-image:
      linear-gradient(to right, transparent 46px, var(--paper-margin) 46px 47.5px, transparent 47.5px),
      var(--nb-head), var(--nb-rules);
    background-position: 0 0, 0 0, 0 22px; }
  .hm-right { background-image:
      linear-gradient(to right, transparent 30px, var(--paper-margin) 30px 31.5px, transparent 31.5px),
      var(--nb-head), var(--nb-rules);
    background-position: 0 0, 0 0, 0 22px; }
}
@media (max-width: 700px) {
  .hm { --nb-band: 56px; }
  .hm-left { background-image:
      linear-gradient(to right, transparent 34px, var(--paper-margin) 34px 35.5px, transparent 35.5px),
      var(--nb-head), var(--nb-rules); }
  .hm-right { background-image: var(--nb-head), var(--nb-rules); background-position: 0 0, 0 22px; }
}
