.notebook-experience .doodle { pointer-events: none; cursor: default; }
.notebook-experience .doodle-underline { pointer-events: auto; cursor: default; }
.notebook-experience .doodle-yarn,
.notebook-experience .doodle-storm,
.notebook-experience .doodle-cloud,
.notebook-experience .doodle-plane,
.notebook-experience .doodle-envelope { visibility: hidden; }
.notebook-experience .doodle-underline { pointer-events: none; }
.notebook-eyebrow {
    color: var(--sketch-ink); font-size: 10px; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase; line-height: 34px;
    margin: -34px 0 0;
}
.notebook-welcome {
    margin: 0 0 34px; display: flex; gap: 10px 22px;
    align-items: center; flex-wrap: wrap; color: var(--faded);
    font-size: 12px; line-height: 34px; min-height: 68px;
}
.notebook-welcome span { font-style: italic; }
.notebook-experience button { font-family: inherit; }
.notebook-start, .margin-action, .note-button {
    color: var(--sketch-ink); background: transparent; border: 0;
    cursor: pointer; padding: 0; min-height: 44px;
    text-align: left; font-size: 13px;
    text-decoration: underline; text-decoration-style: dotted;
    text-underline-offset: 5px; touch-action: manipulation;
}
.notebook-start::after { content: "  ↗"; }
.notebook-experience button:focus-visible,
.notebook-experience a:focus-visible {
    outline: 1px dashed var(--sketch-ink); outline-offset: 5px;
}
.margin-station { margin: 0 0 34px; }
.margin-action { display: flex; align-items: center; gap: 12px; height: 68px; line-height: 34px; }
.margin-action:hover { color: var(--ink); }
.margin-icon { width: 46px; height: 40px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.margin-action .margin-icon { width: 46px; height: 40px; flex: none; display: block; }
.margin-action[aria-expanded="true"] .margin-icon { transform: rotate(-5deg); }
.margin-icon, .margin-action { transition: color 180ms, transform 250ms; }
.margin-note {
    border-left: 1px solid color-mix(in srgb, var(--sketch-ink) 35%, transparent);
    margin: 0 0 0 23px; padding: 0 0 0 22px;
    color: var(--faded); font-size: 13px; line-height: 34px;
}
.margin-note p { margin: 0 0 0 !important; }
.margin-note [hidden], .margin-note[hidden] { display: none !important; }
.margin-note svg { overflow: visible; }
.thread-sketch, .signal-sketch, .constellation-sketch {
    width: 100%; height: 102px; fill: none; stroke: var(--sketch-ink);
    stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.margin-note .thread-sketch, .margin-note .signal-sketch, .margin-note .constellation-sketch { display: block; height: 102px; }
.signal-sketch text { fill: var(--faded); stroke: none; font-size: 10px; font-family: inherit; }
.constellation-sketch circle { fill: var(--paper); }
.travel-sketch { position: relative; height: 136px; }
.travel-sketch > svg { width: 100%; height: 102px; fill: none; stroke: var(--sketch-ink); stroke-width: 1.2; }
.travel-route { opacity: .3; stroke-dasharray: 3 5; }
.travel-plane { fill: var(--paper); stroke: var(--sketch-ink); stroke-width: 1.2; }
.travel-plane polygon:nth-child(even) { fill: color-mix(in srgb, var(--sketch-ink) 15%, var(--paper)); }
.travel-stops { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 68px; }
.travel-stops button { border: 0; background: transparent; color: var(--faded); padding: 0; min-height: 44px; font: inherit; font-size: 10px; cursor: pointer; }
.travel-stops button[aria-current] { color: var(--sketch-ink); text-decoration: underline; text-underline-offset: 4px; }
.travel-caption { min-height: 34px; font-style: italic; }
.workbench {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px; margin: 0 0 34px;
}
.workbench a {
    min-height: 136px; padding: 10px 12px; border: 1px solid var(--rule-line);
    border-radius: 2px 9px 3px 3px; text-decoration: none !important;
    background: var(--paper);
    transform: rotate(var(--card-turn, -1deg)); transition: transform 220ms, box-shadow 220ms;
    display: flex; flex-direction: column; justify-content: space-between;
    font-size: 12px; line-height: 22px;
}
.workbench a:nth-child(2) { --card-turn: 1deg; }
.workbench a:hover, .workbench a:focus-visible { transform: translateY(-5px) rotate(0); box-shadow: 0 6px 12px rgba(0,0,0,.06); }
.margin-note .workbench small { color: var(--faded); font-size: 10px; opacity: 1; }
.envelope-sketch { width: 92px; height: 58px; margin: 12px 0; fill: var(--paper); stroke: var(--sketch-ink); stroke-width: 1.5; }
.margin-note .envelope-sketch { display: block; height: 68px; margin: 0; }
.note-signature { font-style: italic; color: var(--sketch-ink); }
.reader-rail { position: fixed; right: 26px; top: 35%; width: 88px; z-index: 3; }
.reader-rail a { display: block; font-size: 10px; line-height: 32px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--faded); }
.reader-rail a[aria-current] { color: var(--sketch-ink); opacity: 1; }
.reader-rail a[aria-current]::before { content: "— "; }
.reader-progress { height: 1px; width: 72px; background: var(--rule-line); margin-bottom: 12px; }
.reader-progress span { display: block; height: 1px; background: var(--sketch-ink); width: 0; }
.notebook-ending { margin: 68px 0 0; padding-top: 33px; border-top: 1px solid var(--rule-line); }
.notebook-ending > p { font-size: 13px; color: var(--faded); }
.guest-mark {
    height: 102px; width: 100%; border: 1px dashed var(--rule-line);
    border-radius: 3px; fill: none; stroke: var(--sketch-ink); stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round; touch-action: none;
    cursor: crosshair; display: block; margin: 12px 0;
}
.guest-mark text { fill: var(--faded); stroke: none; font-family: inherit; font-size: 12px; }
.notebook-ending .guest-mark { height: 102px; margin: 34px 0; }
.mark-actions { display: flex; gap: 24px; flex-wrap: wrap; height: 68px; align-items: center; }
.notebook-arrival { animation: notebook-arrive 700ms ease-out both; }
@keyframes notebook-arrive { from { opacity: .3; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 75em) { .reader-rail { display: none; } }
@media (max-width: 40em) {
    .notebook-welcome { display: grid; grid-template-rows: 34px 68px; gap: 0; min-height: 102px; }
    .notebook-welcome span { display: block; }
    .margin-note { margin-left: 0; padding-left: 14px; }
    .workbench { grid-template-columns: 1fr; gap: 34px; }
    .workbench a { min-height: 68px; }
    .travel-stops { gap: 4px; }
    .travel-stops button { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .notebook-arrival { animation: none; }
    .margin-icon, .margin-action, .workbench a { transition: none; }
}
