body{-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto;font-family:SF Mono,Fira Code,JetBrains Mono,ui-monospace,monospace;font-family:EB Garamond,"Source Serif 4",serif;font-optical-sizing:auto;font-weight:400;font-style:normal;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:48px;min-height:100vh;padding:40px 20px;overflow-x:hidden;transition:background .4s,color .4s;line-height:1.35}html.dark,body.dark{background:#0f1117;color-scheme:dark}body.dark{color:#e2e4e9;--color-contrast: #f1f2f3}html.light,body.light{background:#faf2df;color-scheme:light}body.light{color:#1d1d1f;--color-contrast: #010100}body.dark ::-moz-selection{background:#6eb5f059;color:inherit}body.dark ::selection{background:#6eb5f059;color:inherit}body.light ::-moz-selection{background:#1a6fb538;color:inherit}body.light ::selection{background:#1a6fb538;color:inherit}.container{display:flex;flex-direction:column;align-items:center;gap:28px}.header{display:flex;align-items:center;gap:16px}.language-switcher{position:fixed;top:14px;left:14px;z-index:20;font-size:16px;line-height:1}.language-switcher__trigger{-moz-appearance:none;appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;gap:7px;padding:10px 11px 10px 13px;border:1px solid transparent;border-radius:9px;background:transparent;color:inherit;font:inherit;cursor:pointer;opacity:.82;transition:opacity .2s ease,color .2s ease,border-color .2s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.language-switcher__trigger:focus{outline:none}.language-switcher__trigger:focus-visible{outline:2px solid currentColor;outline-offset:4px;opacity:1}.language-switcher__label{font-style:italic}.language-switcher__chevron{display:inline-flex;align-items:center;justify-content:center;opacity:.72;transform:translateY(1px);transition:opacity .2s ease}.language-switcher__chevron svg{display:block}.language-switcher__panel{position:absolute;top:calc(100% + 8px);left:0;min-width:188px;padding:8px;border:1px solid rgba(33,28,22,.14);border-radius:7px;background:#f6ecd7f5;transform-origin:top left;opacity:0;transform:translateY(-6px) scale(.985);pointer-events:none}.language-switcher.is-open .language-switcher__panel{opacity:1;transform:translateY(0) scale(1);pointer-events:auto;transition:opacity .2s cubic-bezier(.22,1,.36,1),transform .2s cubic-bezier(.22,1,.36,1)}.language-switcher:not(.is-open) .language-switcher__panel{transition:opacity .14s ease,transform .14s ease}.language-switcher__nav{display:grid;gap:4px}.language-switcher__option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px;border-radius:5px;color:inherit;text-decoration:none;transition:background-color .16s ease,color .16s ease}.language-switcher__option:focus{outline:none}.language-switcher__option:focus-visible{outline:2px solid currentColor;outline-offset:2px}.language-switcher__option-label{white-space:nowrap}.language-switcher__diamond{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;color:#b43b2a;opacity:0;transform:scale(.75);transition:opacity .16s ease,transform .16s ease}.language-switcher__diamond--active{opacity:.85;transform:scale(1)}body.dark .language-switcher__diamond{color:#f54030}.language-switcher__option[aria-current=page]{font-style:italic}.theme-toggle{position:fixed;top:12px;right:12px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:transparent;border:none;opacity:.55;cursor:pointer;color:inherit;transition:opacity .2s,color .2s;z-index:20;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.theme-toggle:focus{outline:none}.theme-toggle:focus-visible{outline:2px solid currentColor;outline-offset:4px;opacity:1}@media(hover:hover){.language-switcher__trigger:hover{opacity:1}.language-switcher__option:hover{background-color:#2e21110f}.theme-toggle:hover{opacity:1}body.dark .language-switcher__trigger:hover{color:#f5c030}body.dark .language-switcher__option:hover{background-color:#ffffff12;color:inherit}body.dark .theme-toggle:hover{color:#f5c030}body.light .language-switcher__trigger:hover{color:#8b4d1f}body.light .theme-toggle:hover{opacity:1;color:#e07830}}body.dark .language-switcher__trigger{border-color:transparent;opacity:.9}body.dark .language-switcher__panel{border-color:#ffffff1a;background-color:#1e2028;box-shadow:0 1px 2px #0003,0 3px 8px #00000040,0 8px 24px #00000026}body.light .language-switcher__trigger{border-color:transparent}body.light .language-switcher__panel{background:#fcf7ebfa;box-shadow:0 1px 1px #6e553717,0 2px 5px #6450370f,0 8px 18px #5a46320a}body.light .theme-toggle{opacity:.75}.theme-toggle svg{display:block}h1{font-size:15px;font-weight:400;text-transform:uppercase;transition:color .4s}.page-title{text-align:center;margin:0 0 2em;position:relative;display:flex;flex-direction:column;align-items:center;gap:1.5em}.page-title__heading{margin:0;font-style:italic;font-weight:380;font-size:clamp(1.95rem,4vw,2.85rem);line-height:1.14;text-transform:none;max-width:none;text-wrap:pretty}.page-title__heading span{display:block}.page-title__heading--chapter{font-size:clamp(2.5rem,4.6vw,4.8rem)}.page-title__heading .page-title__series{margin-bottom:.7em;font-size:clamp(.8rem,1.36vw,.97rem);font-style:normal;font-weight:500;letter-spacing:.08em;line-height:1.4;text-transform:uppercase;opacity:.72;display:inline-block;color:inherit;text-decoration:none}.page-title__heading .page-title__series:hover,.page-title__heading .page-title__series:visited{color:inherit}.page-title__heading .page-title__series:hover{opacity:.9}@media(min-width:1000px){.page-title__heading--chapter>span{margin-top:-.1em}}.page-title__byline{display:block;font-style:normal;font-size:.8em}.page-title__byline a,.page-title__byline span{opacity:.72}.page-title__byline a{color:inherit;text-decoration:underline;text-decoration-color:currentColor;text-underline-offset:.15em;text-decoration-thickness:1px}.page-title__byline a:hover,.page-title__byline a:visited{color:inherit;opacity:.9}body.dark .page-title__byline a{text-decoration-color:#ffffff80}.page-title:after{content:"";display:block;width:4.5em;height:1px;margin:2.6em auto 3.7em;background:currentColor;opacity:.22}.page-title--chapter{gap:1.1em}.page-title--chapter:after{margin:3em auto 2em}body.dark .page-title{color:#e2e4e9}body.light .page-title{color:#2c2825}canvas{display:block;cursor:crosshair}canvas.chart{margin-top:32px;margin-inline:auto}canvas.chart+p{margin-top:48px}#chart-tabs{margin-bottom:28px;cursor:default}p{margin-bottom:1.25em}.desc{max-width:48ch;text-align:center;font-size:24px;font-weight:400;text-wrap:pretty}.desc p:last-child{margin-bottom:0}.desc p.pause-after{margin-bottom:4em}.desc.pause-before{margin-top:6em}.desc p.pause-after--short{margin-bottom:2.6em}.desc p.aside{font-size:.85em}.aside__label{font-size:.8em;font-weight:600;letter-spacing:.08em;text-transform:uppercase;margin-right:.15em}.trend-line{--trend-length: 1.25em;display:inline-block;vertical-align:middle;position:relative;width:.85em;height:.85em;margin-inline:.06em}.trend-line:before{content:"";position:absolute;left:50%;top:50%;width:var(--trend-length);height:3px;border-radius:1.5px;background:#ffae08;background:oklch(83% .2 85);transform:translate(-50%,-50%) rotate(var(--trend-rotate, 0deg))}body.dark .trend-line:before{background:#f5c030}.trend-line--up{--trend-rotate: -45deg}.trend-line--down{--trend-rotate: 45deg}.trend-line--flat{width:var(--trend-length)}.trend-line--vertical{--trend-rotate: 90deg;width:.3em}.nowrap{white-space:nowrap}.section-divider{width:100%;max-width:50ch;margin:1.5em 0;display:flex;justify-content:center;align-items:center}.triangle-icon{flex-shrink:0}.triangle-icon line{stroke:#5a9fd4;stroke-width:4}.triangle-icon line.diagonal{stroke-width:2.2}body.dark .triangle-icon line:nth-child(1){stroke:#f06550}body.dark .triangle-icon line:nth-child(2){stroke:#ffae08}body.dark .triangle-icon line:nth-child(3){stroke:#6eb5f0}body.light .triangle-icon line:nth-child(1){stroke:#c6382a}body.light .triangle-icon line:nth-child(2){stroke:#ffae08}body.light .triangle-icon line:nth-child(3){stroke:#1a6fb5}.demo{display:flex;flex-direction:column;align-items:center;gap:20px}.demo h2{font-size:13px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}body.dark .demo h2{color:#6b7084}body.light .demo h2{color:#8a8078}.equals,.times,.divided-by{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";position:relative;top:.075em;line-height:.5;font-size:1.25em;font-weight:300;padding-inline:.05em}.demo-swatch{display:inline-block;width:55px;height:4px;border-radius:2px;vertical-align:middle;margin:0 .25em}.demo-swatch--sin,.demo-swatch--tan-line,.demo-swatch--tan-segment,.demo-swatch--sin-leg,.demo-swatch--circle,.demo-swatch--tangent-line{margin-block:-.5em}.demo-swatch--sin{width:4px;height:30px;background-color:#c6382a}.demo-swatch--cos{width:30px;height:4px;background-color:#1a6fb5}body.dark .demo-swatch--sin{background-color:#f06550}body.dark .demo-swatch--cos{background-color:#6eb5f0}.demo-swatch--yellow{background-color:#ffae08;background-color:oklch(83% .2 85)}body.dark .demo-swatch--yellow{background-color:#f5c030}.demo-swatch--dot{width:12px;height:12px;border-radius:50%;background:#2c2825}.demo-swatch--dot-yellow{width:12px;height:12px;border-radius:50%;background:#ffae08;background:oklch(83% .2 85)}body.dark .demo-swatch--dot-yellow{background:#f5c030}body.dark .demo-swatch--dot{background:#fff}.demo-swatch--tan{background-color:#6f5297}body.dark .demo-swatch--tan{background-color:#b67ecf}.demo-swatch--dot.demo-swatch--tan{width:8px;height:8px}.demo-swatch--tan-line{width:1px;height:30px;background-color:#6f5297bf}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){.demo-swatch--tan-line{width:1.5px}}body.dark .demo-swatch--tan-line{background-color:#b67ecfbf}.demo-swatch--ring{width:12px;height:12px;border-radius:50%;box-sizing:border-box;border:2.5px solid rgb(111,82,151);background:transparent}body.dark .demo-swatch--ring{border-color:#b67ecf}.demo-swatch--tan-segment{width:3px;height:28px;border-radius:1.5px}.demo-swatch--sin-leg,.demo-swatch--cos-leg{border-radius:0;--leg-color: #c6382a;--leg-dashes: var(--leg-color) 0 4px, transparent 4px 8px}.demo-swatch--sin-leg{width:1px;height:28px;background:repeating-linear-gradient(to bottom,var(--leg-dashes))}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){.demo-swatch--sin-leg{width:1.5px}}.demo-swatch--cos-leg{--leg-color: #1a6fb5;width:28px;height:1px;background:repeating-linear-gradient(to right,var(--leg-dashes))}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){.demo-swatch--cos-leg{height:1.5px}}body.dark .demo-swatch--sin-leg{--leg-color: #f06550}body.dark .demo-swatch--cos-leg{--leg-color: #6eb5f0}.demo-swatch--circle{position:relative;width:28px;height:28px;border-radius:0;background:none}.demo-swatch--circle:before{content:"";position:absolute;inset:0;background:#0006;--ticks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12.75' fill='none' stroke='black' stroke-width='2.5' stroke-dasharray='1 2.338' stroke-dashoffset='0.5'/%3E%3C/svg%3E");-webkit-mask:var(--ticks);mask:var(--ticks)}body.dark .demo-swatch--circle:before{background:#5a5f75}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){.demo-swatch--circle:before{--ticks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='12.75' fill='none' stroke='black' stroke-width='2.5' stroke-dasharray='0.75 2.588' stroke-dashoffset='0.375'/%3E%3C/svg%3E")}}.demo-swatch--tangent-line{--line-color: rgba(111, 82, 151, .75);width:1px;height:32px;border-radius:0;background:linear-gradient(to bottom,transparent,var(--line-color) 8px,var(--line-color) calc(100% - 8px),transparent)}body.dark .demo-swatch--tangent-line{--line-color: rgba(182, 126, 207, .75)}.demo-swatch--full-line{height:1px;border-radius:0;background-color:oklch(83% .2 85 / .8)}@media(-webkit-min-device-pixel-ratio:2),(min-resolution:2dppx){.demo-swatch--full-line{height:1.5px}}body.dark .demo-swatch--full-line{background-color:#f5c030b3}.demo-swatch--wedge{margin:0 .1em;border-radius:0;vertical-align:baseline;background:#ffae08;clip-path:polygon(0 100%,100% 100%,100% 0)}.demo-swatch--ramp{width:84px;height:7px}.demo-swatch--escalator{width:33px;height:19px}.road-sign{margin:2.5em 0}.road-sign img{display:block;margin:0 auto;height:auto}body.dark .road-sign img{filter:brightness(.85)}.road-sign figcaption{margin-top:.75em;font-size:20px;font-style:italic}.textbook-rules{max-width:70ch;font-size:21px;font-weight:450;border-radius:2px;padding:1.5em 3em 1.5em 2.5em;background-color:#fff;box-shadow:0 1px 1px #0000000f,0 2px 5px #0000000b,0 8px 18px #00000008,0 1px #0000000b inset;text-align:left;margin-top:1em;margin-bottom:2em;transform:rotate(-1.5deg)}body.light .textbook-rules{background-color:#fff;box-shadow:0 1px 1px #6e553717,0 2px 5px #6450370f,0 8px 18px #5a46320a,0 1px #64503708 inset}body.dark .textbook-rules{background-color:#1e2028;color:#e2e4e9;box-shadow:0 1px 2px #0003,0 3px 8px #00000040,0 8px 24px #00000026}.textbook-rules strong{font-weight:700}strong.sin,.ratio-formula__sin{color:#c6382a}strong.cos,.ratio-formula__cos{color:#1a6fb5}body.dark strong.sin,body.dark .ratio-formula__sin{color:#f06550}body.dark strong.cos,body.dark .ratio-formula__cos{color:#6eb5f0}strong.tan,.ratio-formula__tan{color:#6f5297}body.dark strong.tan,body.dark .ratio-formula__tan{color:#b67ecf}.ratio-formula{display:flex;align-items:center;gap:.4em;font-size:30px;line-height:1.1;font-variant-numeric:lining-nums tabular-nums}.ratio-formula__frac{display:inline-flex;flex-direction:column;align-items:center}.ratio-formula__frac>span{padding:0 .15em}.ratio-formula__frac>.ratio-formula__cos{border-top:1.5px solid rgba(28,26,23,.4);padding-top:.08em}.ratio-formula__eq{opacity:.55;font-family:Times New Roman,Times,serif}body.dark .ratio-formula__frac>.ratio-formula__cos{border-top-color:#fff6}.slope-formula .ratio-formula__frac{min-width:1.4em}.slope-formula .ratio-formula__frac>span{align-self:stretch;text-align:center}.slope-formula{position:relative;justify-content:center;font-size:inherit;margin:24px 0 1.25em}.slope-formula__value{font-weight:600}.slope-formula__note{position:absolute;top:100%;left:50%;transform:translate(-50%);margin-top:.5em;display:flex;align-items:center;gap:.4em;font-size:.75em;font-style:italic;white-space:nowrap;visibility:hidden}.slope-formula__note.is-shown{visibility:visible}.slope-formula .slope-formula__note.slope-formula__note--hidden{width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.slope-formula__note-line{width:3px;height:1em;border-radius:1.5px;background:#ffae08;background:oklch(83% .2 85)}.slope-formula__note-bar{width:1.5px;height:1em;background:#6f5297}body.dark .slope-formula__note-line{background:#f5c030}body.dark .slope-formula__note-bar{background:#b67ecf}.slope-formula__fn{margin-right:-.2em}.slope-demo{display:flow-root;position:relative;margin-top:32px}.slope-demo canvas.chart{margin-top:0}@media(min-width:1000px){.slope-demo .slope-formula{position:absolute;top:calc(var(--grid-top) + var(--grid-size) / 2);left:calc(50% + var(--grid-size) / 2 + clamp(40px,8vw - 40px,72px));transform:translateY(calc(-50% - 4px));margin:0;justify-content:flex-start}.slope-demo .slope-formula__note{left:0;transform:none;width:-moz-max-content;width:max-content;max-width:calc(50vw - var(--grid-size) / 2 - clamp(40px,8vw - 40px,72px) - 16px);white-space:normal;text-wrap:balance;text-align:left}.slope-demo+p{margin-top:48px}}@media(min-width:1040px){.slope-demo__side{position:absolute;top:calc(var(--grid-top) + var(--grid-size) / 2);left:calc(50% + var(--grid-size) / 2 + clamp(40px,8vw - 40px,72px));transform:translateY(-50%);width:min(288px,calc(50vw - var(--grid-size) / 2 - clamp(40px,8vw - 40px,72px) - 16px))}}@media(min-width:800px)and (max-width:1039px){.slope-demo--side{--side-width: min(288px, calc(100vw - 556px) );display:flex;align-items:center;width:calc(524px + var(--side-width));margin-inline:calc((100% - 524px - var(--side-width)) / 2)}.slope-demo--side canvas.chart{flex:none;margin:0}.slope-demo__side{width:var(--side-width)}.slope-demo--side+p{margin-top:48px}}@media(min-width:800px){.slope-demo__side .slope-formula{position:relative;top:auto;left:auto;transform:none;margin:0;justify-content:flex-start}.desc .slope-demo__side p.aside{margin:24px 0 0;font-size:18px;text-align:left}}.slope-examples{margin:-12px auto 64px;max-width:448px}.slope-examples__row{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;align-items:start;width:100%;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.slope-examples__label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.slope-example{display:flex;flex-direction:column;align-items:center}.slope-example__plot{width:min(100%,152px);aspect-ratio:1;overflow:visible}.slope-example__line{stroke:#ffae08;stroke:oklch(83% .2 85);stroke-width:4.5px;stroke-linecap:butt;vector-effect:non-scaling-stroke}body.dark .slope-example__line{stroke:#f5c030}.slope-example__value{margin-top:16px;font-size:1.25em;font-weight:600;color:#6f5297}body.dark .slope-example__value{color:#b67ecf}.slope-example__value.is-negative{translate:-.08em 0}.slope-example__kind{margin-top:-2px;font-size:.85em;font-style:italic;text-wrap:balance}.slope-examples__shuffle{display:block;margin:32px auto 0;padding:6px 16px;border:1px solid rgba(0,0,0,.15);border-radius:999px;background:none;font:inherit;font-size:15px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:#77716d;cursor:pointer}body.dark .slope-examples__shuffle{color:#8a8fa0;border-color:#ffffff2e}body .slope-examples__shuffle:hover{color:inherit;border-color:currentColor}.text-balance{text-wrap:balance}.r-control{display:flex;align-items:center;justify-content:center;gap:12px;font-family:system-ui,-apple-system,sans-serif;font-size:18px;font-weight:600}.r-control__value{min-width:2ch;text-align:center;font-variant-numeric:tabular-nums}.r-control__btn{width:36px;height:36px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center}.r-control__btn--minus{background:#4a9b8e;color:#fff}.r-control__btn--plus{background:#d4a574;color:#fff}body.light .r-control__btn--minus,body.light .r-control__btn--plus{background:#1d1d1f;color:#fff}.r-control__btn:hover{opacity:.85}.r-control__btn:active{opacity:.7}@media(max-width:639px){body{font-size:18px;padding:32px 0}br.wide-only{display:none}.header{padding-top:1.5em!important}.page-title:after{margin:2.2em auto}.demo{width:100%}.desc{font-size:20px;width:100%;box-sizing:border-box;padding-inline:18px}.slope-formula{margin:12px 0 40px}.textbook-rules{font-size:20px;max-width:calc(100% - 36px);padding-left:2em;padding-right:2em}.trig-footer{margin-inline:18px}.theme-toggle{position:absolute;top:4px;right:4px}.language-switcher{position:absolute;top:8px;left:6px;font-size:17px}.language-switcher__trigger{padding:10px 10px 10px 12px}.language-switcher__panel{min-width:min(188px,calc(100vw - 20px))}.theme-toggle svg{width:18px;height:18px}.page-title__heading{font-size:clamp(1.7rem,8vw,2rem);line-height:1.08}.page-title__heading--chapter{font-size:clamp(2.8rem,10.4vw,2.6rem)}.demo h2{font-size:11px}.demo canvas.square{max-width:100%;width:auto!important;height:auto!important;aspect-ratio:1}.demo--paper-circle{width:100%}.demo canvas#c5,.demo canvas.chart{max-width:100%;width:auto!important;height:auto!important}}@media(prefers-reduced-motion:reduce){body,h1,.language-switcher__trigger,.language-switcher__chevron,.language-switcher__panel,.language-switcher__option,.language-switcher__diamond,.theme-toggle{transition-duration:.01ms!important;animation-duration:.01ms!important}}.trig-footer{text-align:center;padding-top:24px;border-top:1px solid rgba(0,0,0,.08)}body.dark .trig-footer{border-top-color:#ffffff1a}.trig-footer__copyright{margin:0;font-size:16px;font-weight:400;letter-spacing:.02em}.trig-footer__copyright a{color:inherit;text-decoration:underline;transition:opacity .2s}.trig-footer__copyright a:hover,body.dark .desc p a:hover{opacity:.7}.trig-footer__tagline{margin:.5em 0 0;font-size:16px;opacity:.65}
