﻿/* Experiment-only surfaces. Shared site and article tokens are untouched. */
.workbook-home { --workbook-paper: #fafaf7; --workbook-rail: 112px; background: var(--workbook-paper); }
.workbook-home main { margin-left: var(--workbook-rail); overflow: clip; }
.workbook-home :is(a, summary):focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.workbook-home :is(section, main) { scroll-margin-top: 24px; }
.workbook-home .workbook-rail { position: fixed; inset: 0 auto 0 0; z-index: 10; isolation: isolate; transform: translateZ(0); width: var(--workbook-rail); background: var(--workbook-paper); border-right: 3px solid var(--orange); display: flex; flex-direction: column; align-items: center; padding-top: 28px; }
.workbook-brand { display: block; width: 76px; height: 76px; }
.workbook-brand img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.workbook-rail nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: 16px; }
.workbook-rail nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; min-height: 64px; gap: 5px; font-size: 13px; text-decoration: none; }
.workbook-rail nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.workbook-rail nav a:is(:hover,[aria-current]) span { text-decoration: underline; text-decoration-thickness: 2px; }
.workbook-rail nav a[aria-current]::after { content: ''; position: absolute; right: -11px; top: calc(50% - 9px); height: 18px; width: 2px; background: var(--orange); }
.workbook-holes { --hole-inset: 130px; --hole-size: 20px; position: absolute; inset: 0 0 0 0; pointer-events: none; }
.workbook-holes i { position: absolute; left: 50%; transform: translateX(-50%); width: var(--hole-size); height: var(--hole-size); border-radius: 50%; background: #d5d5ce; border: 1px solid #bdbdb5; box-shadow: inset 0 2px 3px #11182726, inset 0 -1px 1px #ffffffe0; }
.workbook-holes i:first-child { top: var(--hole-inset); }
.workbook-holes i:last-child { bottom: var(--hole-inset); }
/* Page 1: preserve the approved hero composition and type. */
.workbook-hero { position: relative; z-index: 2; }
.workbook-hero.workbook-enhanced { height: calc(max(100svh,650px) + 52svh); }
.workbook-spread { --page-angle: 6.5deg; --page-tilt: -.55deg; position: relative; min-height: 650px; height: 100svh; max-width: 1600px; margin: auto; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; padding: 64px clamp(32px,5vw,88px) 110px; gap: 12px; background-color: var(--workbook-paper); background-image: linear-gradient(#11182708 1px,transparent 1px),linear-gradient(90deg,#11182708 1px,transparent 1px); background-size: 28px 28px; }
.workbook-enhanced .workbook-spread { position: sticky; top: 0; transform-origin: left center; transform: perspective(2400px) rotateY(calc(var(--page-turn,0) * var(--page-angle))) rotateZ(calc(var(--page-turn,0) * var(--page-tilt))); box-shadow: 8px 12px 22px rgb(17 24 39 / var(--page-shadow,0)); }
/* A keyboard focus target always keeps its ordinary, unrotated surface. */
.workbook-enhanced .workbook-spread:focus-within { transform: none; box-shadow: none; }
.workbook-home h1 { font-family: var(--sans); font-weight: 750; letter-spacing: -.035em; line-height: 1.06; position: relative; z-index: 1; text-transform: none; text-align: left; max-width: none; }
.workbook-setup { display: block; font: 400 clamp(25px,2.7vw,40px)/1.18 var(--serif); letter-spacing: -.015em; margin-bottom: 32px; }
.workbook-payoff { display: block; font-size: clamp(44px,5.15vw,76px); }
.workbook-highlight { position: relative; white-space: nowrap; }
.workbook-highlight::before { content: ''; position: absolute; inset: 12% -5% -3%; background: var(--orange); mask: var(--marker) center / 100% 100% no-repeat; z-index: -1; }
.workbook-drawing { margin: 0; width: 100%; transform: rotate(-3deg); }
.workbook-home .story-diagram { width: 100%; height: auto; display: block; overflow: visible; }
.workbook-home .story-shape { transform: none; }
.workbook-home .school-notations { opacity: 0; }
.workbook-home :is(.adult-notations,.roof-texture,.home-details,.house-windows,.house-door,.loan-document) { opacity: 1; }
.workbook-home .house-wall { stroke-dasharray: 1; stroke-dashoffset: 0; }
.workbook-home .workbook-enhanced .school-notations { opacity: var(--school-opacity,1); }
.workbook-home .workbook-enhanced .house-wall { stroke-dashoffset: var(--wall-offset,1); }
.workbook-home .workbook-enhanced .home-details { opacity: var(--home-opacity,0); }
.workbook-home .workbook-enhanced .roof-texture { opacity: var(--roof-opacity,0); }
.workbook-home .workbook-enhanced .house-windows { opacity: var(--window-opacity,0); }
.workbook-home .workbook-enhanced .house-door { opacity: var(--door-opacity,0); }
.workbook-home .workbook-enhanced .loan-document { opacity: var(--loan-opacity,0); }
.workbook-continue { position: absolute; bottom: 42px; left: clamp(32px,5vw,88px); display: inline-flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; text-decoration: none; }
.workbook-continue svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* Page 2: a complete editorial spread, revealed under the opening sheet. */
.workbook-home .workbook-promise { position: relative; z-index: 1; margin: -32px auto 0; min-height: calc(100svh + 32px); display: flex; align-items: center; padding: 80px clamp(32px,7vw,112px) 48px; background: var(--workbook-paper); }
.workbook-note { width: 100%; max-width: 1024px; margin: auto; }
.workbook-home .workbook-promise h2 { max-width: 24ch; font: 450 clamp(38px,4.6vw,64px)/1.06 var(--serif); letter-spacing: -.025em; text-wrap: balance; }
.workbook-note-body { display: flex; align-items: center; gap: 64px; margin: 56px 0 0; }
.workbook-clarity { flex: 0 0 300px; width: 300px; height: auto; transform: rotate(-3deg); }
.workbook-clarity.clarity-ready [data-clarity-stroke] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.workbook-clarity.is-drawing [data-clarity-stroke] { animation: workbook-clarity-draw var(--draw-duration) linear var(--draw-delay) both; }
@keyframes workbook-clarity-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.workbook-promise p { max-width: 43ch; font-size: 20px; line-height: 1.6; }
/* Page 3: contents can grow; the published-only listing remains in normal flow. */
.workbook-home .workbook-articles { position: relative; max-width: 1320px; margin: auto; padding: 96px clamp(32px,5vw,88px) 104px; background-color: var(--workbook-paper); background-image: linear-gradient(#11182702 1px,transparent 1px),linear-gradient(90deg,#11182702 1px,transparent 1px); background-size: 28px 28px; }
.workbook-home .workbook-articles h2 { max-width: 900px; font-size: clamp(32px,3.7vw,52px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.workbook-section-intro { margin-top: 24px; max-width: 55ch; font-size: 18px; }
.workbook-empty { margin-top: 48px; font-family: var(--serif); font-size: 23px; }
.workbook-library { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 24px; font-weight: 600; }
.workbook-article { display: grid; grid-template-columns: 190px 1fr 32px; gap: 32px; align-items: center; padding: 32px 0; border-bottom: 1px solid #11182725; }
.workbook-article-list { margin-top: 32px; }
.workbook-article-art svg { display: block; width: 100%; height: auto; max-height: 180px; }
.workbook-article-art img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.workbook-category { font-size: 13px; margin-bottom: 8px; }
.workbook-article h3 { font-size: 28px; line-height: 1.2; margin-bottom: 12px; }
.workbook-article h3 a { text-decoration-thickness: 1px; }
.workbook-article h3 a:hover { text-decoration-thickness: 3px; }
.workbook-article p { max-width: 60ch; }
.workbook-article-arrow { font-size: 28px; }
/* Page 4: keep the personal story, with the existing portrait as its only art. */
.workbook-home .author-section { position: relative; max-width: 1320px; margin: auto; padding: 88px clamp(32px,5vw,88px) 112px; border: 0; grid-template-columns: 1fr 1.2fr; gap: 10%; background: var(--workbook-paper); }
.workbook-home .author-section h2 { font-size: clamp(38px,4vw,52px); }
.workbook-home .author-photo { mix-blend-mode: multiply; max-width: 300px; }
.workbook-home .author-copy { font-size: 18px; }
.workbook-home .author-story summary { min-height: 44px; }
.workbook-home footer { margin-left: var(--workbook-rail); background: var(--workbook-paper); padding-inline: clamp(32px,5vw,88px); }
@media (max-width: 1050px) {
  .workbook-home { --workbook-rail: 96px; }
  .workbook-spread { grid-template-columns: 1.2fr 1fr; padding-inline: 32px; }
  .workbook-payoff { font-size: clamp(44px,5.5vw,58px); }
  .workbook-setup { font-size: 30px; }
  .workbook-note-body { gap: 40px; }
  .workbook-clarity { flex-basis: 230px; width: 230px; }
}
@media (max-width: 800px) {
  .workbook-home { --workbook-rail: 56px; }
  .workbook-home .workbook-rail { padding-top: 16px; }
  .workbook-brand { width: 44px; height: 44px; }
  .workbook-rail nav { gap: 16px; }
  .workbook-rail nav a { min-width: 50px; min-height: 56px; font-size: 10px; gap: 2px; }
  .workbook-rail nav a[aria-current]::after { right: 1px; height: 14px; top: calc(50% - 7px); }
  .workbook-holes { --hole-inset: 73px; --hole-size: 14px; }
  .workbook-spread { grid-template-columns: 1fr 1fr; gap: 0; padding: 48px 32px 90px; }
  .workbook-payoff { font-size: clamp(40px,6vw,52px); }
  .workbook-setup { font-size: 28px; }
  .workbook-home .workbook-promise { padding: 80px 48px 48px; }
  .workbook-home .workbook-promise h2 { font-size: 48px; }
  .workbook-home .workbook-articles { padding: 72px 32px 80px; }
  .workbook-home .author-section { padding: 64px 32px 80px; grid-template-columns: 1fr; gap: 28px; }
  .workbook-home .author-identity { max-width: 480px; }
}
@media (max-width: 600px) {
  .workbook-home { --workbook-rail: 50px; }
  .workbook-rail nav a { min-width: 44px; }
  .workbook-brand { width: 42px; height: 44px; }
  .workbook-hero.workbook-enhanced { height: calc(max(100svh,560px) + 38svh); }
  .workbook-spread { --page-angle: 0deg; --page-tilt: -.35deg; height: max(100svh,560px); min-height: 0; padding: 32px 22px 62px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; background-size: 24px 24px; }
  .workbook-setup { font-size: 25px; line-height: 1.12; margin-bottom: 22px; max-width: 16ch; }
  .desktop-break { display: none; }
  .workbook-payoff { font-size: clamp(39px,10.7vw,54px); line-height: 1.06; }
  .workbook-drawing { width: 88%; max-width: 310px; margin: 0 0 0 auto; }
  .workbook-continue { left: calc(50% - 22px); bottom: 18px; }
  .workbook-home .workbook-promise { margin-top: -16px; min-height: calc(100svh + 16px); padding: 72px 24px 56px; }
  .workbook-home .workbook-promise h2 { font-size: clamp(34px,9.4vw,40px); max-width: 16ch; }
  .workbook-note-body { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin: 32px 0 0; }
  .workbook-clarity { flex-basis: auto; width: min(100%,240px); align-self: center; }
  .workbook-promise p { font-size: 18px; max-width: 34ch; }
  .workbook-home .workbook-articles { padding: 64px 22px 72px; }
  .workbook-home .workbook-articles h2 { font-size: 32px; }
  .workbook-section-intro,.workbook-home .author-copy { font-size: 17px; }
  .workbook-empty { font-size: 22px; margin-top: 32px; }
  .workbook-article { grid-template-columns: 1fr; gap: 16px; position: relative; }
  .workbook-article-art { max-width: 200px; }
  .workbook-article h3 { font-size: 25px; }
  .workbook-article-arrow { display: none; }
  .workbook-home .author-section { padding: 56px 22px 72px; }
  .workbook-home .author-photo { width: 80%; max-width: 240px; margin-left: auto; }
  .workbook-home footer { padding: 24px 22px; }
}
@media (max-width: 350px) {
  .workbook-home { --workbook-rail: 48px; }
  .workbook-spread { padding-inline: 18px; }
  .workbook-payoff { font-size: 39px; }
  .workbook-setup { font-size: 23px; }
  .workbook-drawing { width: 94%; }
  .workbook-home :is(.workbook-promise,.workbook-articles,.author-section) { padding-inline: 18px; }

}
/* Keep the central controls clear of the holes on short desktop windows. */
@media (max-height: 540px) and (min-width: 801px) {
  .workbook-holes { --hole-inset: 112px; }
  .workbook-rail nav { gap: 8px; }
  .workbook-rail nav a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .workbook-home .workbook-hero.workbook-enhanced { height: auto; }
  .workbook-home .workbook-spread { position: relative; transform: none; box-shadow: none; }
  .workbook-home .workbook-enhanced .school-notations { opacity: 0; }
  .workbook-home .workbook-enhanced :is(.home-details,.roof-texture,.house-windows,.house-door,.loan-document) { opacity: 1; }
  .workbook-home .workbook-enhanced .house-wall { stroke-dashoffset: 0; }
  .workbook-clarity [data-clarity-stroke] { animation: none !important; stroke-dashoffset: 0 !important; }
}
