diff options
Diffstat (limited to '')
| -rw-r--r-- | src/style.css | 426 |
1 files changed, 256 insertions, 170 deletions
diff --git a/src/style.css b/src/style.css index f494d8e..5ef2c34 100644 --- a/src/style.css +++ b/src/style.css @@ -1,180 +1,266 @@ :root { - font-family: Inter, 'Segoe UI', system-ui, sans-serif; - color: #dbe7f0; - background: #101822; + font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; + color: #243b3c; + background: #f6f7f3; font-synthesis: none; - color-scheme: dark; - --mint: #91e2cb; - --muted: #98adbf; - --border: #2a394a; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + font-weight: 400; + --accent: #287a6a; + --muted: #6b7775; + --border: #dce3dd; } + * { box-sizing: border-box; } -[hidden] { display: none !important; } +html { scroll-behavior: smooth; scroll-padding-top: 30px; } body { margin: 0; } -button, select, input { font: inherit; } -button, select { color: inherit; } -button, a, select, input { -webkit-tap-highlight-color: transparent; } +button, input { font: inherit; } +button, a, input, summary { -webkit-tap-highlight-color: transparent; } button { cursor: pointer; } -a { color: var(--mint); text-underline-offset: 4px; } -button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; } -.app-header { min-height: 96px; display: flex; align-items: center; gap: 22px; padding: 20px 32px; border-bottom: 1px solid var(--border); background: #121d29; } -.brand { flex-shrink: 0; font: 700 19px monospace; text-decoration: none; color: var(--mint); border: 1px solid #3c7069; border-radius: 9px; padding: 15px 12px; } -.brand span { color: #516a79; padding: 0 3px; } -h1 { font-size: 19px; font-weight: 600; margin: 0; } -.header-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; } -.status { margin-left: auto; color: var(--mint); font: 10px monospace; letter-spacing: 1px; white-space: nowrap; display: flex; align-items: center; gap: 8px; } -.status i { background: var(--mint); width: 6px; height: 6px; border-radius: 50%; } -.subjects { background: #121d29; border-bottom: 1px solid var(--border); overflow-x: auto; padding: 0 24px; } -[role='tablist'] { display: flex; min-width: max-content; } -[role='tab'] { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 20px 13px; font-size: 12px; color: var(--muted); white-space: nowrap; } -[role='tab'] span { color: #71899d; font: 10px monospace; } -[role='tab']:hover { background: #1b2b3a; color: #dbe7f0; } -[role='tab'][aria-selected='true'] { color: var(--mint); border-bottom-color: var(--mint); background: #192b32; } -[role='tab'][aria-selected='true'] span { color: var(--mint); } -main { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: calc(100dvh - 153px); } -.controls-panel { padding: 28px 25px; border-right: 1px solid var(--border); background: #15212e; } -.eyebrow { font: 10px monospace; color: var(--mint); letter-spacing: 2px; margin: 0 0 14px; } -h2 { font-size: 26px; font-weight: 550; letter-spacing: -0.5px; line-height: 1.25; margin: 0 0 15px; } -p { line-height: 1.7; } -.description { color: var(--muted); font-size: 13px; margin: 0 0 30px; } -.parameter { margin: 24px 0; } -.parameter-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } -label { font-size: 12px; color: #c2d0dd; } -output { flex-shrink: 0; color: var(--mint); font: 12px monospace; } -input[type='range'] { display: block; width: 100%; accent-color: var(--mint); margin: 14px 0 0; cursor: pointer; } -input:disabled { opacity: 0.35; cursor: default; } -select { display: block; width: 100%; padding: 10px 8px; border: 1px solid #3b4d60; border-radius: 6px; background: #1c2c3d; margin-top: 10px; font-size: 12px; } -.panel-actions button { width: 100%; border: 1px solid #3b4d60; border-radius: 6px; background: #1c2c3d; padding: 11px; font-size: 12px; } -button:hover { border-color: var(--mint); } -.measurements { margin-top: 25px; border: 1px solid #2a4252; border-radius: 8px; padding: 4px 16px; background: #101c27; } -.measurement { padding: 14px 0; } -.measurement + .measurement { border-top: 1px solid #243342; } -.measurement > span { display: block; font-size: 11px; color: var(--muted); } -.measurement > div { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; } -.measurement strong { font: 23px monospace; color: var(--mint); } -.measurement small { font-size: 11px; color: var(--muted); } -.workbench { min-width: 0; } -#viewport { position: relative; height: clamp(480px, 64dvh, 800px); min-width: 0; overflow: hidden; } -#viewport > canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; } -.scene-labels { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; container-type: inline-size; } -.scene-math-label { pointer-events: none; white-space: nowrap; padding: 2px 5px; border-radius: 3px; background: #101822d9; font-size: 13px; line-height: 1.5; } -@container (max-width: 599px) { .scene-math-label { font-size: 11px; } } -.scene-toolbar { position: absolute; z-index: 1; top: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; } -.view-tag { font: 10px monospace; color: #71899d; letter-spacing: 2px; } -.scene-toolbar > div { display: flex; gap: 8px; } -.scene-toolbar button { pointer-events: auto; background: #15212ee8; border: 1px solid #34495c; border-radius: 5px; padding: 7px 10px; font-size: 11px; } -.legend { position: absolute; z-index: 1; pointer-events: none; left: 24px; top: 64px; display: flex; flex-wrap: wrap; gap: 8px 18px; right: 24px; } -.legend span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; } -.legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; } -.scene-footer { position: absolute; z-index: 1; pointer-events: none; bottom: 0; padding: 24px 24px 12px; width: 100%; background: linear-gradient(transparent, #101822ed); } -.scene-footer p { margin: 3px 0; color: #b3c8d7; font-size: 11px; line-height: 1.6; } -.scene-footer .hint { color: #7890a4; font-size: 10px; } -.learning-panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 28px 32px; border-top: 1px solid var(--border); background: #121d29; } -.learning-panel p { font-size: 13px; color: var(--muted); margin: 12px 0; } -.learning-panel .eyebrow { color: var(--mint); font-size: 10px; margin: 0 0 14px; } -.learning-panel > div { min-width: 0; } -.equations p { color: #e3ecf3; font-size: 16px; margin: 8px 0; } -.learning-panel a { font-size: 11px; } -.challenge { border-left: 1px solid var(--border); padding-left: 30px; } -.challenge > p:not(.eyebrow) { color: #cad8e4; } -details { margin-top: 20px; } -summary { color: var(--muted); font-size: 11px; cursor: pointer; } -.collections { display: flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px; background: #0c151f; border: 1px solid var(--border); border-radius: 8px; flex-shrink: 0; } -.collections a { color: var(--muted); text-decoration: none; font-size: 12px; padding: 10px 13px; border-radius: 5px; } -.language-picker { display: flex; align-items: center; gap: 8px; margin-left: 6px; padding: 0 8px 0 10px; border-left: 1px solid var(--border); color: var(--muted); font-size: 12px; } -.language-picker select { width: auto; margin: 0; padding: 8px 8px; } -.collections a[aria-current] { background: #234139; color: #b0f3dc; } -.test-overview { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 30px 34px; background: radial-gradient(ellipse at 80% 0%, #20413988, transparent 65%), #121d29; border-bottom: 1px solid var(--border); } -.test-overview .eyebrow { font-size: 9px; margin-bottom: 10px; } -.test-overview h2 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; letter-spacing: -1px; margin-bottom: 8px; } -.test-overview p:last-child { font-size: 12px; color: var(--muted); margin: 0; } -.test-score { flex-shrink: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; } -.test-score strong { font: 17px ui-monospace, monospace; color: var(--mint); } -.test-score strong span { font-size: 11px; color: var(--muted); } -.test-score > span { grid-column: 1 / -1; font-size: 10px; color: var(--muted); } -[role='tab'] small { font: 10px ui-monospace, monospace; color: #729989; padding: 3px 5px; border: 1px solid #294739; border-radius: 4px; } -.test-question { padding: 14px 16px; margin: 0 0 24px; border-left: 2px solid #708b7e; background: #1b2d35; border-radius: 0 7px 7px 0; } -.test-question p { font-size: 12px; line-height: 1.75; margin: 9px 0 0; color: #bdcbd5; } -.test-question .question-lead { margin-top: 0; color: #eef3ed; } -.observation { padding: 18px 30px; background: #192e31; border-top: 1px solid #2c4947; border-bottom: 1px solid #2c4947; } -.observation .eyebrow { font-size: 9px; } -.observation p { margin: 8px 0 0; font-size: 13px; line-height: 1.75; color: #d1e3df; } -.test-study { padding: 30px 32px; background: #101b26; border-top: 1px solid var(--border); } -.solution-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; } -.solution-heading .eyebrow { margin-bottom: 8px; } -.solution-heading h3 { font-weight: 500; font-size: 23px; margin: 0; letter-spacing: -0.5px; } -.solution-heading a { font-size: 11px; } -.solution details { border: 1px solid #314555; border-radius: 8px; background: #152331; margin: 12px 0; overflow: hidden; } -.solution summary { font-size: 13px; color: #d0e1e8; padding: 17px 20px; line-height: 1.6; } -.solution details[open] summary { color: var(--mint); border-bottom: 1px solid #314555; } -.derivation { margin: 0; padding: 8px 24px 20px 52px; counter-reset: step; } -.derivation li { padding: 8px 0 0 6px; color: var(--mint); } -.derivation li::marker { font: 13px ui-monospace, monospace; } -.derivation p { font-size: 13px !important; color: #a9becb; line-height: 1.8; margin: 8px 0; } -.derivation .math-step { font-size: 15px !important; color: #edf4ef; background: #0d1924; border-radius: 5px; padding: 12px 14px; } -.prediction { padding: 24px; margin-top: 24px; border: 1px solid #5b5138; border-radius: 8px; background: #262a28; } -.prediction .eyebrow { color: var(--gold, #f5d58b); } -.prediction h3 { font-size: 16px; font-weight: 500; line-height: 1.65; margin: 0 0 16px; } -.prediction button { background: transparent; border: 1px solid #8c805b; border-radius: 5px; color: #f5d58b; padding: 9px 13px; font-size: 12px; } -.prediction > p:last-child { font-size: 13px; color: #d3d6c6; line-height: 1.8; margin: 18px 0 0; } -.lesson-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 30px; } -.lesson-pagination a { font-size: 12px; text-decoration: none; } -.lesson-pagination a:first-child { grid-column: 1; } -.lesson-pagination span { grid-column: 2; font: 11px ui-monospace, monospace; color: var(--muted); } -.lesson-pagination a:last-child { grid-column: 3; text-align: right; } -.math-display { max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; padding: 6px 2px; scrollbar-width: thin; scrollbar-color: #526e7c transparent; } -.math-display .katex-display { text-align: left; margin: 0.5em 0; } -.math-display .katex-display > .katex { text-align: left; } -.katex { font-size: 1.08em; } -.math-display:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; } +button:disabled { cursor: default; opacity: 0.4; } +a { color: inherit; } +button, a, input, summary, canvas { outline-offset: 5px; } +:focus-visible { outline: 3px solid #428dce; } +button { transition: background 150ms ease, border-color 150ms ease, color 150ms ease; } +[hidden] { display: none !important; } +h1, h2, h3, p { margin: 0; } +.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; } +.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } +.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; background: white; padding: 12px 20px; border-radius: 6px; } +.skip-link:focus { top: 12px; } +.site-header { height: 88px; max-width: 1480px; padding: 0 48px; margin: auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); } +.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; } +.brand > .icon { width: 35px; height: 35px; color: var(--accent); } +.brand > span:first-of-type { font-size: 27px; font-weight: 650; letter-spacing: -1.2px; } +.brand-divider { height: 23px; width: 1px; background: #d2dbd5; margin: 0 10px; } +.brand small { color: var(--muted); font-size: 12px; letter-spacing: 0.1px; } +.site-header nav { display: flex; align-items: center; gap: 29px; } +.nav-link { font-size: 13px; text-decoration: none; color: #65716d; } +.nav-link:hover { color: var(--accent); } +.model-number { padding: 7px 10px; background: #e8ede6; border-radius: 5px; color: #586b60; font-family: "Consolas", monospace; font-size: 10px; letter-spacing: 1.2px; } +main { max-width: 1384px; margin: 0 auto; padding: 0 40px; } +main:focus { outline: none; } +.intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 46px 0 32px; } +.eyebrow { color: var(--accent); font-size: 10px; font-weight: 650; letter-spacing: 1.9px; display: flex; align-items: center; gap: 9px; } +.little-line { height: 1px; width: 22px; background: var(--accent); } +h1 { font-size: clamp(30px, 3.1vw, 43px); font-weight: 550; line-height: 1.2; letter-spacing: -1.7px; margin-top: 12px; color: #203c3a; } +.subtitle { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 13px; } +.topic-tag { display: flex; align-items: center; gap: 8px; flex-shrink: 0; border: 1px solid #d4dfd5; border-radius: 20px; padding: 8px 13px; font-size: 12px; color: #57705d; background: #eef2e9; } +.topic-tag .icon { width: 17px; height: 17px; } +.lab { display: grid; grid-template-columns: minmax(0, 1fr) 310px; background: #fff; border: 1px solid #d6dfd8; border-radius: 13px; overflow: hidden; box-shadow: 0 8px 25px #233e3610; } +.visual-column { min-width: 0; display: flex; flex-direction: column; } +.scene-wrap { position: relative; min-height: 510px; flex: 1; background: radial-gradient(ellipse at 48% 44%, #1c3c40 0%, #10292e 65%, #0e242a 100%); color: #e3eeea; isolation: isolate; overflow: hidden; } +.scene-heading { position: absolute; z-index: 2; inset: 26px 27px auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; pointer-events: none; } +.scene-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: 1.6px; color: #9ab7b4; font-weight: 500; } +.live-dot { width: 5px; height: 5px; border-radius: 100%; background: #a7d5ad; box-shadow: 0 0 10px #98ceaa66; } +.scene-heading h2 { font-size: 15px; font-weight: 450; margin-top: 8px; letter-spacing: 0.1px; } +.camera-controls { display: flex; background: #ffffff06; border: 1px solid #ffffff14; border-radius: 6px; pointer-events: auto; } +.camera-controls button { display: grid; place-items: center; border: 0; background: none; color: #bad1ce; width: 34px; height: 34px; } +.camera-controls button:hover { background: #ffffff10; } +.camera-controls .icon { height: 17px; width: 17px; } +.scene-host { position: absolute; inset: 0; } +.scene-host canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; } +.scene-host canvas:active { cursor: grabbing; } +.scene-host canvas:focus-visible { outline-offset: -4px; } +.charge-marker { position: absolute; padding: 4px 8px; border: 1px solid #f4b58a29; background: #132c30c9; border-radius: 4px; color: #f4c09c; font-family: "Consolas", monospace; font-size: 11px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; } +[data-polarity="negative"] .charge-marker { color: #a4caff; border-color: #85bafa30; } +[data-polarity="neutral"] .charge-marker { color: #c3d1d0; } +.scene-status { position: absolute; top: 99px; left: 27px; padding: 5px 8px; font-size: 10px; color: #b4c9bd; border: 1px solid #addbb324; border-radius: 4px; background: #cee4d207; pointer-events: none; } +.scene-status::before { content: ''; display: inline-block; height: 4px; width: 4px; background: currentColor; border-radius: 50%; margin-right: 6px; vertical-align: middle; } +.scene-status[data-status="boundary"] { color: #f2c387; } +.scene-bottom { position: absolute; inset: auto 26px 20px; display: flex; flex-direction: column; gap: 14px; pointer-events: none; } +.legend { display: flex; gap: 17px; flex-wrap: wrap; font-size: 10px; color: #b2c6c2; } +.legend > span { display: inline-flex; align-items: center; gap: 6px; } +.legend i { width: 15px; height: 2px; display: inline-block; } +.legend-field { background: #f4b58a; } +[data-polarity="negative"] .legend-field { background: #85bafa; } +[data-polarity="neutral"] .legend-field { background: #a1b3b4; } +.legend-surface { border-top: 1px dashed #6fc9bb; } +.legend-normal { background: #d9e8d2; } +.scene-bottom > p { color: #88a5a6; font-size: 10px; display: flex; align-items: center; gap: 6px; } +.scene-bottom > p .icon { width: 14px; height: 14px; } +.graphics-error { position: absolute; top: 42%; left: 10%; right: 10%; padding: 20px; border: 1px solid #9db7b6; background: #173137; line-height: 1.7; font-size: 14px; border-radius: 7px; } +.readings { display: grid; grid-template-columns: 1fr 1fr 1.22fr; padding: 22px 25px; border-top: 1px solid #dde4df; background: #fdfefb; gap: 20px; } +.reading { display: flex; flex-direction: column; gap: 8px; min-width: 0; } +.reading + .reading { padding-left: 22px; border-left: 1px solid var(--border); } +.reading > span { color: var(--muted); font-size: 11px; display: flex; align-items: baseline; gap: 6px; } +.reading i { font-family: Georgia, serif; color: #7d8d84; } +.reading strong { font-family: "Consolas", "SFMono-Regular", monospace; font-size: clamp(15px, 1.6vw, 21px); font-weight: 400; letter-spacing: -0.7px; color: #354c42; white-space: nowrap; } +.reading-flux strong { color: #247e65; } +.controls { padding: 25px 25px 17px; border-left: 1px solid var(--border); } +.controls-intro h2 { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; } +.controls-intro p { font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 5px; margin-bottom: 23px; } +.range-control { margin-top: 18px; } +.control-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; } +.control-heading label { font-weight: 550; } +.symbol { color: #859489; font-family: Georgia, serif; font-style: italic; font-size: 14px; margin-left: 5px; } +.control-heading output { font-family: "Consolas", monospace; font-size: 11px; background: #edf3ee; color: #33765e; padding: 4px 7px; border-radius: 4px; min-width: 55px; text-align: center; } +input[type="range"] { display: block; width: 100%; height: 22px; background: transparent; margin: 11px 0 0; appearance: none; cursor: pointer; --progress: 50%; } +input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 10px; background: linear-gradient(to right, #6e9983 var(--progress), #e4eae4 var(--progress)); } +input[type="range"]::-webkit-slider-thumb { appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #52816c; margin-top: -5.5px; box-shadow: 0 1px 3px #263e4022; } +input[type="range"]::-moz-range-track { height: 3px; border-radius: 10px; background: #e4eae4; } +input[type="range"]::-moz-range-progress { height: 3px; background: #6e9983; } +input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 3px solid #52816c; } +.range-limits { display: flex; justify-content: space-between; font-family: "Consolas", monospace; color: #64756b; font-size: 9px; margin-top: 0; } +.control-note { font-size: 10px; color: #5f7065; line-height: 1.65; margin-top: 7px; } +.control-divider { height: 1px; background: #e5eae4; margin: 18px 0; } +fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } +legend { font-size: 11px; font-weight: 550; padding: 0; margin-bottom: 10px; } +.segmented { display: flex; gap: 5px; padding: 4px; background: #f1f4ef; border-radius: 6px; border: 1px solid #e6ebe4; } +.segmented label { flex: 1; position: relative; cursor: pointer; } +.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; } +.segmented span { display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 4px; padding: 7px 5px; font-size: 11px; color: #63746b; } +.segmented .icon { width: 16px; height: 16px; } +.segmented input:checked + span { background: white; border-color: #d3ded3; color: #2b6c54; box-shadow: 0 1px 2px #153c1810; } +.segmented input:focus-visible + span { outline: 3px solid #428dce; outline-offset: 2px; } +.layer-controls legend { margin-bottom: 6px; } +.layer-controls label { position: relative; display: flex; align-items: center; justify-content: space-between; font-size: 11px; line-height: 1.5; padding: 6px 0; color: #5f6e65; cursor: pointer; } +.layer-controls input { position: absolute; right: 0; width: 29px; height: 17px; opacity: 0; margin: 0; } +.toggle { width: 28px; height: 16px; border-radius: 20px; background: #d9e1d9; padding: 2px; transition: background 150ms ease; } +.toggle::before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #0002; transition: transform 150ms ease; } +.layer-controls input:checked + .toggle { background: #63977b; } +.layer-controls input:checked + .toggle::before { transform: translateX(12px); } +.layer-controls input:focus-visible + .toggle { outline: 3px solid #428dce; outline-offset: 3px; } +.reset-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 7px; background: #fff; color: #627168; border: 1px solid #dce4dc; border-radius: 5px; padding: 9px; font-size: 11px; margin-top: 17px; } +.reset-button .icon { width: 14px; height: 14px; } +.reset-button:hover { background: #f0f5ef; border-color: #b7cbb9; } +.scenarios { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 19px; } +.scenarios-label { font-size: 11px; color: #5f7060; margin-right: 7px; } +.scenario { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; padding: 8px 11px; border: 1px solid #dce3d8; background: #fff9; border-radius: 6px; color: #596d60; } +.scenario:hover { background: #eaf0e7; } +.scenario[aria-pressed="true"] { background: #e9f0e5; border-color: #b3c6aa; color: #355b3e; } +.scenario-symbol { font-size: 13px; font-weight: 500; border-radius: 50%; width: 17px; height: 17px; display: inline-grid; place-items: center; } +.positive { color: #9c6648; background: #f2e5d7; } +.negative { color: #48799b; background: #e3ebf3; } +.scenario .icon { width: 15px; height: 15px; } +.insight { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 30px; padding: 25px 28px; margin-top: 25px; background: #eaf0e5; border: 1px solid #dbe4d3; border-radius: 9px; } +.insight-copy { display: flex; align-items: flex-start; gap: 15px; } +.insight-icon { border-radius: 50%; background: #dce7d4; color: #5a7c52; display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; } +.insight-copy h2 { font-size: 15px; font-weight: 600; color: #3a573b; margin: 0 0 7px; } +.insight-copy p { font-size: 12px; line-height: 1.85; color: #5d6f58; max-width: 540px; } +.main-equation { text-align: center; color: #3c604a; padding-left: 20px; border-left: 1px solid #cfdbc8; min-width: 0; } +.main-equation > .katex { font-size: 1.22em; } +.main-equation > span:last-child { display: block; font-size: 10px; letter-spacing: 0.2px; margin-top: 14px; color: #596d52; } +.physics-section { padding-top: 52px; padding-bottom: 32px; } +.physics-section > h2 { margin-top: 12px; font-size: 30px; font-weight: 500; letter-spacing: -1px; } +.physics-subtitle { color: var(--muted); font-size: 13px; line-height: 1.8; margin-top: 9px; } +.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 25px; } +.lesson-card { position: relative; border-top: 1px solid #d3dfd3; padding: 24px 20px 15px 0; } +.lesson-number { font-family: "Consolas", monospace; font-size: 11px; color: #5f7459; } +.lesson-card h3 { font-size: 16px; font-weight: 550; margin-top: 12px; color: #354e3e; } +.lesson-formula { color: #537457; margin-top: 23px; margin-bottom: 19px; min-height: 34px; display: flex; align-items: center; } +.lesson-formula .katex { font-size: 1.12em; } +.lesson-card p { color: #6c786a; font-size: 12px; line-height: 1.9; max-width: 350px; } +.try-it { display: flex; align-items: center; gap: 16px; padding: 17px 20px; background: #eef1e9; border-radius: 6px; margin-top: 20px; } +.try-it > span { color: #566f4b; font-size: 9px; letter-spacing: 1.2px; font-weight: 650; flex-shrink: 0; } +.try-it p { font-size: 12px; color: #4e6348; } +.try-it .icon { margin-left: auto; width: 17px; color: #7a8f70; } +.model-notes { color: #5e6f59; font-size: 11px; margin-top: 25px; line-height: 1.8; } +.model-notes summary { cursor: pointer; width: fit-content; color: #5d7157; } +.model-notes summary .icon { width: 14px; height: 14px; margin: 0 5px; } +.model-notes p { margin-top: 12px; max-width: 920px; } +.site-footer { max-width: 1304px; margin: 0 auto; padding: 22px 0 30px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; color: #5f715f; font-size: 10px; } +.site-footer > span:first-child { display: flex; align-items: center; gap: 8px; } +.site-footer .icon { width: 18px; height: 18px; } +.load-error { padding: 100px 20px; text-align: center; } +.button { margin-top: 20px; padding: 10px 16px; background: #287a6a; border: 0; border-radius: 6px; color: white; } + +@media (min-width: 1500px) { .scene-wrap { min-height: 560px; } } +@media (max-width: 1100px) { + .site-header { padding: 0 28px; } + main { padding: 0 28px; } + .lab { grid-template-columns: minmax(0, 1fr) 285px; } + .controls { padding: 24px 20px 17px; } + .scene-heading { left: 20px; right: 20px; } + .scene-heading h2 { font-size: 13px; } + .scene-status { left: 20px; } + .scene-bottom { left: 20px; right: 20px; } + .readings { padding: 21px 18px; gap: 12px; } + .reading + .reading { padding-left: 12px; } + .reading > span { font-size: 10px; } + .insight { gap: 20px; padding: 22px; } + .main-equation > .katex { font-size: 1.03em; } + .site-footer { margin-left: 28px; margin-right: 28px; } +} @media (max-width: 850px) { - .app-header { flex-wrap: wrap; gap: 16px; } - .collections { margin-left: auto; } - .header-title { flex: 1; } - .test-overview { padding: 25px 22px; gap: 20px; } - .test-score { gap: 8px 14px; } + .brand small, .brand-divider, .topic-tag { display: none; } + .site-header { height: 74px; } + .intro { padding-top: 32px; } + .lab { grid-template-columns: minmax(0, 1fr); } + .scene-wrap { height: 480px; flex: none; } + .controls { border-left: 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 24px; } + .controls-intro { grid-column: 1 / -1; } + .controls-intro p { margin-bottom: 4px; } + .controls .control-divider { grid-column: 1 / -1; margin: 20px 0; } + .controls .control-note { grid-column: 1 / -1; } + .controls .shape-control { align-self: center; } + .controls #size { margin-top: 7px; } + .controls .shape-control + .range-control { margin-top: 0; } + .reset-button { align-self: center; height: fit-content; } + .reading strong { font-size: 20px; } + .reading > span { font-size: 11px; } + .insight { grid-template-columns: 1fr; } + .main-equation { border-left: 0; border-top: 1px solid #cfdbc8; padding: 20px 0 0; } + .main-equation > .katex { font-size: 1.2em; } + .lesson-grid { gap: 18px; } + .lesson-card h3 { font-size: 14px; } } -@media (max-width: 600px) { - .app-header { padding: 16px 20px; } - .collections { width: 100%; margin: 0; flex-wrap: wrap; } - .collections a { flex: 1; text-align: center; } - .language-picker { flex: 1 0 100%; margin: 4px 0 0; padding: 8px 4px 4px; border-left: 0; border-top: 1px solid var(--border); } - .test-overview { align-items: flex-start; flex-direction: column; gap: 18px; padding: 24px 20px; } - .test-score { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; } - .test-score > span { font-size: 9px; } - .observation { padding: 18px 20px; } - .test-study { padding: 26px 20px; } - .solution-heading { align-items: flex-start; flex-direction: column; } - .derivation { padding-left: 35px; padding-right: 14px; } - .derivation .math-step { font-size: 13px !important; padding: 10px; } - .prediction { padding: 19px; } - .lesson-pagination a { font-size: 11px; } +@media (max-width: 560px) { + .site-header { padding: 0 19px; } + .brand > span:first-of-type { font-size: 24px; } + .brand > .icon { width: 29px; height: 29px; } + .site-header nav { gap: 15px; } + .nav-link { font-size: 11px; } + .model-number { display: none; } + main { padding: 0 16px; } + .intro { padding: 28px 2px 25px; } + .eyebrow { font-size: 8px; letter-spacing: 1.5px; } + h1 { font-size: 32px; letter-spacing: -1.3px; max-width: 300px; } + .subtitle { font-size: 12px; } + .scene-wrap { height: 420px; min-height: 420px; } + .scene-heading { top: 20px; left: 18px; right: 15px; gap: 8px; } + .scene-heading h2 { font-size: 12px; max-width: 180px; line-height: 1.6; } + .scene-eyebrow { font-size: 7px; letter-spacing: 1px; } + .camera-controls button { width: 29px; height: 29px; } + .camera-controls .icon { width: 14px; } + .scene-status { left: 18px; top: 83px; font-size: 9px; } + .scene-bottom { left: 18px; right: 18px; bottom: 16px; } + .legend { gap: 9px; font-size: 9px; } + .scene-bottom > p { font-size: 9px; } + .readings { gap: 8px; padding: 18px 13px; grid-template-columns: 0.85fr 0.85fr 1.3fr; } + .reading { gap: 7px; } + .reading + .reading { padding-left: 8px; } + .reading > span { font-size: 9px; display: block; line-height: 1.6; } + .reading > span i { display: none; } + .reading strong { font-size: 13px; letter-spacing: -0.7px; } + .controls { display: block; padding: 23px; } + .controls .shape-control + .range-control { margin-top: 20px; } + .controls .control-note { font-size: 11px; } + .control-heading { font-size: 13px; } + .layer-controls label { padding: 9px 0; font-size: 12px; } + .reset-button { margin-top: 20px; padding: 12px; } + .scenarios { gap: 7px; } + .scenarios-label { flex-basis: 100%; margin: 3px 0; } + .scenario { padding: 8px; font-size: 10px; gap: 5px; } + .insight { padding: 20px 18px; } + .insight-copy { gap: 10px; } + .insight-icon { width: 28px; height: 28px; } + .insight-icon .icon { width: 18px; } + .insight-copy h2 { font-size: 14px; } + .main-equation > .katex { font-size: 1.05em; } + .physics-section { padding: 37px 4px 25px; } + .physics-section > h2 { font-size: 27px; } + .physics-subtitle { font-size: 12px; } + .lesson-grid { grid-template-columns: 1fr; gap: 8px; } + .lesson-card { padding: 20px 3px 15px; } + .lesson-card h3 { font-size: 17px; margin-top: 9px; } + .lesson-card p { max-width: none; } + .lesson-formula { margin: 19px 0 14px; } + .try-it { gap: 10px; padding: 14px; } + .try-it p { font-size: 11px; } + .site-footer { flex-direction: column; gap: 12px; margin: 0 20px; padding: 20px 0 25px; } } -details p { font-size: 11px !important; } -.webgl-error { position: absolute; z-index: 2; top: 140px; left: 12%; right: 12%; padding: 24px; background: #1e2937; border: 1px solid #ff967b; border-radius: 8px; color: #ffb79f; font-size: 14px; line-height: 1.7; } -@media (min-width: 1600px) { main { grid-template-columns: 340px minmax(0, 1fr); } .controls-panel { padding: 32px; } } -@media (max-width: 1100px) { .app-header { padding: 16px 24px; } .subjects { padding: 0 12px; } [role='tab'] { padding: 18px 12px; } main { grid-template-columns: 280px minmax(0, 1fr); } .controls-panel { padding: 24px 20px; } .learning-panel { grid-template-columns: 1fr; gap: 24px; padding: 25px; } .challenge { border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; } } -@media (max-width: 760px) { - .app-header { padding: 16px; gap: 13px; min-height: 88px; } - .brand { font-size: 15px; padding: 12px 8px; } - h1 { font-size: 15px; } - .header-title p { font-size: 10px; } - .status { display: none; } - main { display: flex; flex-direction: column; } - .controls-panel { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px; } - h2 { font-size: 25px; } - #parameters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; } - .parameter { min-width: 0; margin: 10px 0 15px; } - .parameter-label { flex-wrap: wrap; gap: 6px; } - .measurements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin-top: 18px; } - .measurement { min-width: 0; } - .measurement strong { font-size: 21px; overflow-wrap: anywhere; } - .measurement > div { flex-wrap: wrap; gap: 4px; } - .measurement:nth-child(2) { border-top: 0; } - #viewport { height: 520px; } - .scene-toolbar { top: 18px; left: 16px; right: 16px; } - .scene-toolbar button { font-size: 10px; padding: 7px; } - .legend { left: 16px; right: 16px; } - .scene-footer { padding: 20px 16px 12px; } - .learning-panel { padding: 24px; } +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { transition: none !important; } } |