:root { color-scheme: light; --ink: #18221d; --muted: #65756c; --paper: #f2f0e9; --white: #fffef9; --line: #cfd8ce; --green: #adff2f; --teal: #008874; --purple: #6e73f5; --orange: #ff6d55; font-family: Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.page { width: min(100% - 44px, 1540px); margin: 0 auto; }
.hero { padding: 45px 20px 32px; }
.eyebrow, .section-heading p, .section-kicker, .workspace-heading p, .comparison-label > span, .panel-kicker, .inspector-head > p, .explanation-label, .code-toolbar, .guide-grid article > span, .page-footer, .workspace-footnote, .workspace-top, .heading-pill { font: 800 11px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .08em; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 15px; color: var(--teal); }
.brand-mark { position: relative; width: 18px; height: 18px; border: 2px solid var(--purple); border-radius: 5px; }
.brand-mark::after { position: absolute; inset: 5px -7px -7px 5px; z-index: -1; border-radius: 5px; background: var(--green); content: ""; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(43px, 5.5vw, 82px); font-weight: 900; line-height: .98; letter-spacing: 0; }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.lead { margin: 0; font-size: clamp(18px, 1.8vw, 24px); font-weight: 850; line-height: 1.4; }
.lead strong { color: var(--purple); }
.hero-actions { display: flex; gap: 10px; flex: none; }
.hero-actions button, .code-toolbar button { min-height: 44px; padding: 0 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 850; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.hero-actions button:last-child { border-color: var(--ink); background: var(--ink); color: #fff; }
.hero-actions button:hover, .code-toolbar button:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgb(24 34 29 / 12%); }
.lab, .guide { overflow: hidden; border: 1px solid var(--line); border-radius: 27px; background: var(--white); box-shadow: 0 16px 45px rgb(33 55 40 / 6%); }
.section-heading { display: flex; align-items: center; gap: 15px; min-height: 92px; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.section-number { display: grid; flex: none; place-items: center; width: 53px; height: 53px; border-radius: 16px; background: var(--orange); color: #fff; font: 900 14px "SFMono-Regular", Consolas, monospace; }
.section-number.blue { background: var(--purple); }
.section-heading p { margin: 0 0 3px; color: var(--teal); }
.section-heading h2 { margin: 0; font-size: clamp(21px, 2.4vw, 31px); line-height: 1.2; font-weight: 900; }
.heading-pill { margin-left: auto; padding: 9px 12px; border-radius: 999px; background: #e7f7ef; color: var(--teal); white-space: nowrap; }
.lab-grid { display: grid; grid-template-columns: minmax(255px, 280px) minmax(0, 1fr) minmax(270px, 304px); align-items: stretch; }
.controls { background: #f8f6ef; border-right: 1px solid var(--line); }
.control-section { padding: 24px 20px 27px; border-bottom: 1px solid var(--line); }
.control-section:last-child { border-bottom: 0; }
.section-kicker { margin: 0 0 6px; color: var(--teal); }
.control-section h3 { margin: 0 0 16px; font-size: 18px; font-weight: 900; }
.preset-grid { display: grid; gap: 8px; }
.preset-grid button { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 49px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); text-align: left; transition: transform 160ms ease, background-color 160ms ease; }
.preset-grid button b { font-size: 13px; }
.preset-grid button small { color: var(--muted); font-size: 10px; font-weight: 750; }
.preset-grid button:hover { transform: translateX(3px); }
.preset-grid button[aria-pressed="true"] { border: 2px solid var(--ink); background: var(--green); box-shadow: 3px 4px 0 var(--ink); }
.preset-grid button[aria-pressed="true"] small { color: #304522; }
.range-group, .position-label { display: grid; gap: 16px; }
.range-group label, .position-label { display: grid; gap: 8px; }
.range-group label > span, .position-label > span { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 850; }
output { color: var(--purple); font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; }
input[type="range"] { width: 100%; margin: 0; accent-color: var(--purple); cursor: pointer; }
.control-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.65; }
.segmented { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #e9eee9; }
.range-group + .control-note + .segmented { margin-top: 16px; }
.segmented button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font-size: 11px; font-weight: 850; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.segmented button:hover { transform: translateY(-2px); }
.segmented button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.position-label { margin-top: 19px; }
.motion-button { width: 100%; min-height: 43px; margin-top: 17px; border: 2px solid var(--ink); border-radius: 11px; background: #ffe079; color: var(--ink); font-size: 12px; font-weight: 900; transition: transform 160ms ease, box-shadow 160ms ease; }
.motion-button:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.motion-button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.motion-button span { margin-right: 3px; }
.workspace { min-width: 0; background: #e8efea; }
.workspace-top { display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 0 18px; border-bottom: 1px solid #c5d0c6; background: #d8e2d9; color: #55665a; font-size: 10px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: #ff7058; }
.window-dots i:nth-child(2) { background: #ffd568; }
.window-dots i:nth-child(3) { background: #63caa7; }
.workspace-top strong { margin-left: auto; padding: 6px 10px; border-radius: 999px; background: #078974; color: white; font-size: 10px; letter-spacing: 0; }
.workspace-body { container-type: inline-size; padding: 21px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 21px; }
.workspace-heading p { margin: 0 0 5px; color: var(--teal); font-size: 10px; }
.workspace-heading h3 { margin: 0; font-size: clamp(16px, 1.5vw, 22px); font-weight: 900; }
.compare-arrow { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple); font-size: 24px; font-weight: 800; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.comparison-item { min-width: 0; padding: 10px; border: 1px solid #cad5ca; border-radius: 17px; background: #fcfdf8; }
.comparison-item--backdrop { border: 2px solid var(--purple); box-shadow: 4px 5px 0 rgb(110 115 245 / 22%); }
.comparison-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; padding: 8px 7px 12px; }
.comparison-label > span { flex-basis: 100%; margin-bottom: 4px; color: var(--teal); font-size: 10px; }
.comparison-label h4 { margin: 0; font-size: clamp(18px, 2.1vw, 27px); font-weight: 900; line-height: 1.1; }
.comparison-label p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; }
.scene-frame { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1 / 1.05; min-height: 278px; border: 2px solid var(--ink); border-radius: 12px; background: #f8b87b; }
.scene-art { position: absolute; inset: 0 auto 0 -20%; width: 140%; background: linear-gradient(135deg, #ff826d 0 23%, #ffc26a 23% 45%, #b7fd55 45% 67%, #7278ef 67%); transform: translateX(var(--scene-x, 0%)); }
.scene-art > * { position: absolute; display: block; }
.scene-word { top: 12%; left: 18%; color: #14231c; font-size: clamp(20px, 2.4vw, 35px); font-weight: 950; letter-spacing: .04em; transform: rotate(-8deg); }
.scene-disc { top: 28%; right: 6%; width: 51%; aspect-ratio: 1; border: 12px solid var(--ink); border-radius: 50%; background: #ffdf81; }
.scene-square { bottom: 12%; left: 4%; width: 40%; aspect-ratio: 1; border: 9px solid var(--ink); border-radius: 17px; background: #6e73f5; transform: rotate(16deg); }
.scene-band { right: 3%; bottom: 10%; width: 75%; height: 18%; border: 6px solid var(--ink); border-radius: 10px; background: #fd6c55; transform: rotate(-23deg); }
.scene-grid { inset: 0; background: linear-gradient(rgb(24 34 29 / 12%) 1px, transparent 1px), linear-gradient(90deg, rgb(24 34 29 / 12%) 1px, transparent 1px); background-size: 27px 27px; }
.workspace[data-scene="photo"] .scene-art { background: url("./assets/sample-bicycle.jpg") center / cover no-repeat; }
.workspace[data-scene="photo"] .scene-art > * { display: none; }
.effect-panel { position: absolute; z-index: 1; top: 37%; left: 7%; display: flex; flex-direction: column; justify-content: center; width: 86%; min-height: 44%; padding: 18px; border: 1px solid rgb(255 255 255 / 72%); border-radius: 18px; box-shadow: 0 17px 33px rgb(12 22 18 / 20%); }
.panel-kicker { margin-bottom: 11px; font-size: 10px; }
.effect-panel strong { display: block; max-width: 190px; font-size: clamp(21px, 2vw, 28px); font-weight: 900; line-height: 1.1; }
.effect-panel > span:not(.panel-kicker) { max-width: 170px; margin-top: 7px; font-size: 11px; font-weight: 750; }
.panel-symbol { position: absolute; top: 19px; right: 17px; width: 34px; height: 34px; border: 5px solid currentColor; border-radius: 50%; }
.panel-symbol::after { position: absolute; top: 20px; left: 22px; width: 15px; height: 5px; border-radius: 4px; background: currentColor; content: ""; transform: rotate(45deg); }
.comparison-result { display: flex; align-items: start; gap: 7px; margin: 12px 6px 2px; min-height: 33px; color: #384e42; font-size: 11px; font-weight: 800; line-height: 1.4; }
.result-dot { flex: none; width: 9px; height: 9px; margin-top: 3px; border-radius: 50%; }
.result-dot--orange { background: var(--orange); }
.result-dot--green { background: var(--teal); }
.workspace-footnote { display: flex; align-items: center; gap: 7px; margin-top: 18px; padding: 13px 15px; border: 1px solid #c9d7cb; border-radius: 10px; background: #f8fff2; color: #48614e; font-family: inherit; font-size: 11px; font-weight: 750; line-height: 1.5; letter-spacing: 0; }
.workspace-footnote span { color: var(--teal); font-size: 14px; }
.inspector { min-width: 0; background: #202620; color: #f8fcf4; }
.inspector-head { position: relative; min-height: 101px; padding: 25px 20px 18px; border-bottom: 1px solid #3f4c40; }
.inspector-head p { margin: 0 0 8px; color: #a7b7a7; }
.inspector-head h3 { max-width: 240px; margin: 0; font-size: 19px; font-weight: 900; }
.inspector-head > span { position: absolute; top: 42px; right: 15px; padding: 5px 7px; border-radius: 999px; background: var(--green); color: #142018; font: 900 10px "SFMono-Regular", Consolas, monospace; }
.inspector-explanation { padding: 20px; border-bottom: 1px solid #3f4c40; }
.explanation-label { margin: 0 0 8px; color: #a8b7a9; font-size: 10px; }
.inspector-explanation strong { color: var(--green); font-size: 19px; font-weight: 900; }
.inspector-explanation p:not(.explanation-label) { margin: 8px 0 20px; color: #d5e0d4; font-size: 11px; line-height: 1.6; font-weight: 650; }
.inspector-explanation p:last-child { margin-bottom: 0; }
.inspector code { color: #c4c5ff; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 20px 18px 10px; color: var(--green); }
.code-toolbar button { min-height: 35px; padding: 0 10px; border: 0; border-radius: 9px; font-size: 11px; }
.code-block { overflow: auto; margin: 0 16px; padding: 16px 13px; border: 1px solid #475348; border-radius: 12px; background: #151c17; white-space: pre; tab-size: 2; }
.code-block code { color: #e6f2df; font: 11px/1.6 "SFMono-Regular", Consolas, monospace; }
.code-footnote { margin: 15px 18px 24px; color: #aab8aa; font-size: 11px; line-height: 1.55; }
.guide { margin-top: 20px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 22px 14px; }
.guide-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.guide-grid article > span { color: var(--purple); }
.guide-grid h3 { margin: 17px 0 8px; font-size: 17px; font-weight: 900; }
.guide-grid p { margin: 0; color: #526457; font-size: 12px; font-weight: 650; line-height: 1.65; }
.guide-grid code, .source-links a { color: var(--purple); }
.source-links { margin: 4px 23px 21px; color: var(--muted); font-size: 12px; font-weight: 700; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 25px 4px 32px; color: #7c8b7e; }
.toast { position: fixed; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); z-index: 10; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 12px 17px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@container (max-width: 620px) { .comparison-grid { grid-template-columns: 1fr; } .scene-frame { aspect-ratio: 1.3; min-height: 250px; } }
@media (max-width: 1180px) { .lab-grid { grid-template-columns: 270px minmax(0, 1fr); } .inspector { grid-column: 1 / -1; } .inspector-head, .inspector-explanation { padding-left: 22px; } }
@media (max-width: 750px) { .page { width: min(100% - 24px, 560px); } .hero { padding: 29px 4px 24px; } .hero-bottom { display: block; } .hero-actions { margin-top: 17px; } .section-heading { padding: 15px; } .heading-pill { display: none; } .lab-grid { display: block; } .controls { border-right: 0; } .control-section { padding: 20px; } .preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .preset-grid button { display: block; min-height: 58px; } .preset-grid button small { display: block; margin-top: 3px; } .workspace-body { padding: 14px; } .guide-grid { grid-template-columns: 1fr; padding: 15px; } .guide-grid article { padding: 15px; } .page-footer { font-size: 10px; } }
@media (max-width: 390px) { .page { width: min(100% - 16px, 560px); } h1 { font-size: 41px; } .hero-actions button { padding-inline: 13px; } .section-heading h2 { font-size: 20px; } .preset-grid { gap: 6px; } .preset-grid button { padding: 8px; } .preset-grid button b { font-size: 11px; } .preset-grid button small { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
