:root { color-scheme: light; --paper: #f7ece2; --ink: #282724; --line: #28272430; --panel: #efe1d3; background: var(--paper); color: var(--ink); font: 400 13px/1.6 var(--font-mono); }
:root[data-theme='dark'] { color-scheme: dark; --paper: #202320; --ink: #e6dfd2; --line: #e6dfd230; --panel: #292d29; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, select, input { font: inherit; color: inherit; }
button, select, input[type='number'] { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 40px; }
button { cursor: pointer; }
button:hover { background: var(--panel); }
:focus-visible { outline: 2px solid #a47827; outline-offset: 3px; }
.toolbar { min-height: 68px; padding: 12px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
aside { position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 24px; border-right: 1px solid var(--line); background: var(--panel); }
.ui-title { font: 400 18px/1.4 var(--font-mono); margin: 0 0 12px; }
.note { font-size: 11px; opacity: .7; }
aside label { display: block; margin: 18px 0 6px; }
aside select { width: 100%; }
.metric { display: grid; grid-template-columns: 1fr 75px; align-items: center; gap: 10px; }
.metric input[type='number'] { width: 75px; }
input[type='range'] { width: 100%; accent-color: #a47827; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
main { min-width: 0; padding: 56px clamp(16px, 5vw, 80px) 100px; overflow-wrap: anywhere; }
article { max-width: var(--reading-width, 720px); margin-inline: auto; }
main[data-width] { max-width: var(--preview-width); margin-inline: auto; width: 100%; padding-inline: 20px; border-inline: 1px dashed var(--line); }
.sample { position: relative; margin: 0; padding-top: 28px; cursor: pointer; border-radius: 4px; }
.sample.selected { outline: 1px dashed var(--line); outline-offset: 8px; }
.tag { display: block; font: 400 10px/1.4 var(--font-mono); letter-spacing: .06em; opacity: .5; margin-bottom: 10px; }
article h1, article h2, article h3, article h4, article p, article ul, article blockquote, article figcaption { font-family: var(--type-body-med-font); }
article strong { font-weight: 400; }
article em { font-style: italic; }
article ul { padding-left: 1.5em; }
article li { margin-bottom: .5em; }
article blockquote { border-left: 2px solid currentColor; margin-left: 0; padding-left: 24px; }
article code { font-family: inherit; font-size: .9em; background: var(--panel); padding: .1em .3em; border-radius: 3px; }
.figure-art { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; height: 180px; display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 16px; }
.figure-art span { height: 60px; width: 60px; background: #a47827; border-radius: 50%; }
.figure-art span:nth-child(2) { background: #5e7545; border-radius: 4px; transform: rotate(20deg); }
.figure-art span:nth-child(3) { background: #6ca0bb; border-radius: 50% 50% 4px 4px; }
dialog { width: min(680px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
dialog::backdrop { background: #0008; }
.close { float: right; }
textarea { width: 100%; height: 350px; padding: 16px; font: 12px/1.5 monospace; background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
@media(max-width: 800px) { .layout { grid-template-columns: 1fr; } aside { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); } .toolbar { flex-wrap: wrap; padding-inline: 16px; } main { padding-top: 32px; } input, select { font-size: 16px; } }
