.notebook {
  --paper: #f0eee7;
  --paper-ink: #222b31;
  --focus: #2875ef;
  width: min(100%, 69rem);
  margin-inline: auto;
  font-family: Outfit, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.notebook *, .notebook *::before, .notebook *::after { box-sizing: border-box; }
.notebook :is(h3,h4,p,blockquote,dl,dd,fieldset) { margin: 0; }
.notebook .notebook-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .85rem; padding-bottom: 1.05rem; }
.notebook .notebook-example { color: #b9c9de; font-size: .93rem; }
.notebook .notebook-modes { display: inline-flex; gap: .12rem; padding: .18rem; background: #101722; border: 1px solid #334153; border-radius: 99rem; }
.notebook [hidden] { display: none !important; }
.notebook .notebook-modes label { cursor: pointer; position: relative; }
.notebook .notebook-sr, .notebook .notebook-modes input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notebook .notebook-modes label span { display: grid; place-items: center; min-height: 2.75rem; padding: .4rem 1.12rem; color: #c0cce0; font-size: .95rem; border-radius: 99rem; line-height: 1.2; }
.notebook .notebook-modes input:checked + span { background: #233b5f; color: #e6f1ff; box-shadow: inset 0 0 0 1px #7199d163; }
.notebook .notebook-modes input:focus-visible + span, .notebook summary:focus-visible, .notebook a:focus-visible { outline: 2px solid #2875ef; outline-offset: 2px; }
.notebook .practice-example { display: grid; grid-template-columns: 1.23fr .9fr; overflow: hidden; border: 1px solid #414b58; border-radius: 1.2rem; text-align: left; background: #131b29; box-shadow: 0 .75rem 3rem #02050b38; }
.notebook .practice-example:not([hidden]) ~ .practice-example:not([hidden]) { margin-top: 1.25rem; }
.notebook .notebook-paper, .notebook .notebook-reply { min-width: 0; padding: clamp(1.3rem, 3.3vw, 3rem); }
.notebook .notebook-paper { color: var(--paper-ink); background: linear-gradient(118deg,#f6f4ee,var(--paper)); }
.notebook .notebook-reply { color: #e7effb; background: radial-gradient(ellipse at 103% -30%,#21426a,transparent 69%),linear-gradient(130deg,#1c2839,#101724); }
.notebook .notebook-paperhead, .notebook .notebook-replyhead { display: flex; align-items: center; min-height: 2.15rem; margin-bottom: clamp(1.1rem,2vw,1.65rem); padding-bottom: .72rem; }
.notebook .notebook-paperhead { border-bottom: 1px solid #b4b7b0; font-size: .78rem; line-height: 1.3; letter-spacing: .11em; text-transform: uppercase; font-weight: 640; color: #515e60; }
.notebook h3 { font: 400 clamp(2rem,3.4vw,3.15rem)/1.06 Georgia,serif; letter-spacing: -.05em; text-wrap: balance; }
.notebook .notebook-lede, .notebook .notebook-documents dd { color: #4b5455; font: 400 clamp(1rem,1.2vw,1.1rem)/1.53 Georgia,serif; }
.notebook .notebook-lede { margin: .85rem 0 1.05rem; max-width: 50ch; }
.notebook .notebook-equation { color: #172c46; font: 400 clamp(1.27rem,2.15vw,1.9rem)/1.35 Georgia,serif; margin: 0 0 1.1rem; letter-spacing: -.015em; }
.notebook .notebook-equation small { display: block; font-size: .92rem; margin-top: .25rem; color: #485662; }
.notebook .notebook-excerpt { margin: 0 0 1.1rem; border-left: 2px solid #7895b7; padding-left: .9rem; color: #2b3740; font: 400 clamp(1.03rem,1.3vw,1.17rem)/1.5 Georgia,serif; }
.notebook .notebook-documents { display: grid; gap: .8rem; margin: .95rem 0 1.1rem; }
.notebook .notebook-documents dt { font-weight: 590; color: #324659; margin-bottom: .16rem; }
.notebook .notebook-documents a { color: #264f84; font-family: Outfit,sans-serif; font-size: .93rem; text-underline-offset: .15em; }
.notebook .selected-question { display: inline-block; position: relative; padding: .52rem .66rem; max-width: 100%; border: 1px solid #2875ef88; background: #2875ef11; color: #192b40; font: 400 clamp(1.07rem,1.44vw,1.33rem)/1.44 Georgia,serif; }
.notebook .selected-question::after { content: ''; position: absolute; inset: -2px; pointer-events: none; background: linear-gradient(var(--focus) 0 0) left top/4px 4px no-repeat,linear-gradient(var(--focus) 0 0) right top/4px 4px no-repeat,linear-gradient(var(--focus) 0 0) left bottom/4px 4px no-repeat,linear-gradient(var(--focus) 0 0) right bottom/4px 4px no-repeat; }
.notebook .notebook-replyhead { gap: .42rem; border-bottom: 1px solid #6580a14a; color: #deebff; font-size: 1rem; font-weight: 550; }
.notebook .notebook-mark { width: 1.05rem; height: 1.22rem; background: #8ab9ff; mask: url("media/bolt.svg") center/contain no-repeat; }
.notebook h4 { margin-bottom: .5rem; color: #f2f6ff; font-size: clamp(1.45rem,2.28vw,2.1rem); font-weight: 500; line-height: 1.15; letter-spacing: -.035em; }
.notebook .notebook-reply > p:not(.notebook-replyhead), .notebook .notebook-solution p { color: #c7d5e8; font-size: clamp(1.01rem,1.3vw,1.15rem); line-height: 1.53; }
.notebook details { margin-top: 1.05rem; padding-top: .35rem; border-top: 1px solid #758aa435; }
.notebook summary { cursor: pointer; min-height: 2.75rem; padding: .65rem 0; color: #a6cbff; font-weight: 550; }
.notebook .notebook-solution p + p { margin-top: .75rem; }
.notebook .notebook-solution strong { color: #f1f7ff; font-weight: 620; }
@media(max-width:690px) {
  .notebook .practice-example { grid-template-columns: 1fr; border-radius: .95rem; }
  .notebook .notebook-toolbar { justify-content: center; gap: .43rem; padding-bottom: .9rem; }
  .notebook .notebook-example { width: 100%; text-align: center; }
  .notebook .notebook-paper, .notebook .notebook-reply { padding: 1.25rem 1.2rem 1.4rem; }
  .notebook .notebook-paperhead, .notebook .notebook-replyhead { min-height: 1.8rem; margin-bottom: .86rem; padding-bottom: .5rem; }
  .notebook .notebook-lede { margin: .65rem 0 .8rem; }
}
