:root { color-scheme: light; --ink: #203e36; --muted: #758178; --line: #dadfd4; --jade: #285e4d; --paper: #f2f0e8; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f8f9f4; font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Noto Sans CJK SC', sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #ba983f; outline-offset: 4px; }
.page-header { max-width: 1680px; margin: auto; padding: 13px 38px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 12px; letter-spacing: .06em; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #90aa94; color: #548369; font-size: 24px; }
.brand i { padding: 0 10px; color: #b4b9ad; font-style: normal; font-weight: 400; }
.edition { font-size: 11px; color: var(--muted); letter-spacing: .12em; }.edition span { padding: 0 8px; }
main { max-width: 1680px; margin: auto; padding: 22px 38px 20px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 20px; }
.eyebrow { color: #59836b; font-size: 10px; font-weight: 650; letter-spacing: .17em; margin: 0 0 9px; }
h1 { font-family: 'Songti SC', 'Noto Serif CJK SC', Georgia, serif; font-weight: 600; font-size: clamp(25px, 2.5vw, 35px); letter-spacing: .055em; margin: 0; line-height: 1.4; }
.lede { color: #7a8277; margin: 10px 0 0; font-size: 12px; }
.palette { display: flex; align-items: center; gap: 6px; padding-bottom: 4px; white-space: nowrap; }.palette i { width: 13px; height: 13px; border-radius: 50%; background: #20554d; }.palette i:nth-child(2) { background: #91c5ac; }.palette i:nth-child(3) { background: #e8c56a; }.palette i:nth-child(4) { background: #fff6db; border: 1px solid #e5dfc8; }.palette span { font-size: 10px; color: var(--muted); margin-left: 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 15px; justify-content: space-between; align-items: center; padding: 11px 0; margin-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; background: #f8f9f4; }
.view-switch { display: flex; gap: 3px; background: #e9ede4; border-radius: 7px; padding: 4px; }
.view-switch button { background: transparent; color: #748073; font-size: 11px; border: 0; border-radius: 5px; padding: 7px 13px; white-space: nowrap; }.view-switch button[aria-pressed=true] { color: #fff; background: var(--jade); box-shadow: 0 1px 3px #23382b1f; }.view-switch button:hover:not([aria-pressed=true]) { color: var(--ink); background: #f8f9f4; }
.display-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }.pattern-toggle { display: flex; align-items: center; gap: 7px; font-size: 11px; cursor: pointer; }.pattern-toggle input { accent-color: var(--jade); width: 15px; height: 15px; margin: 0; }
.backgrounds { display: flex; gap: 8px; align-items: center; }.backgrounds > span { font-size: 11px; color: var(--muted); margin-right: 4px; }.swatch { width: 21px; height: 21px; border-radius: 50%; border: 1px solid #0002; padding: 0; }.swatch[aria-pressed=true] { outline: 2px solid #608775; outline-offset: 3px; }.paper { background: var(--paper); }.black { background: #161b1a; }.gray { background: #8c9692; }.white { background: #fff; }.pattern { background: conic-gradient(#a0b4ac 25%, #e0e8de 0 50%, #a0b4ac 0 75%, #e0e8de 0) 0 0 / 10px 10px; }
.status { font-size: 11px; color: var(--muted); min-height: 18px; margin: 9px 0 6px; }.status.ready { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.card { min-width: 0; background: #fff; border: 1px solid #dbe1d6; border-radius: 11px; overflow: hidden; box-shadow: 0 3px 10px #334d3704; }
.card-header { display: flex; gap: 11px; align-items: center; padding: 18px 18px 16px; }.letter { width: 31px; height: 36px; border: 1px solid #cdd8c6; border-radius: 20px 20px 4px 4px; display: grid; place-items: center; flex-shrink: 0; font: 19px Georgia, serif; color: #688d6d; background: #f5f7f0; }h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: .06em; }.card-header p { font-size: 10px; color: var(--muted); margin: 2px 0 0; }.expand { margin-left: auto; padding: 5px 0 5px 7px; border: none; background: none; font-size: 10px; color: #729180; white-space: nowrap; }.expand:hover { color: #174c37; }
.stage { width: 100%; background: var(--paper); position: relative; border-block: 1px solid #00000005; }
.composition { aspect-ratio: 1; width: 100%; position: relative; }
canvas, .overlay { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.overlay { pointer-events: none; }
body.pattern-hidden .overlay { visibility: hidden; }
body[data-background=black] .stage { background: #161b1a; }body[data-background=gray] .stage { background: #8c9692; }body[data-background=white] .stage { background: #fff; }
body[data-background=pattern] .stage { background-color: #dce6db; background-image: repeating-linear-gradient(45deg, transparent 0 23px, #819f8c24 23px 25px), repeating-linear-gradient(-45deg, transparent 0 23px, #819f8c24 23px 25px); }
.card-note { padding: 17px 20px 20px; }.note-title { margin: 0 0 7px; font-weight: 600; font-size: 11px; }.note-title span { font: italic 12px Georgia, serif; color: #9ba788; margin-right: 6px; }.card-note > p:not(.note-title) { font-size: 11px; color: #859081; margin: 0; line-height: 1.9; }.tags { display: flex; gap: 6px; margin-top: 13px; }.tags span { font-size: 9px; color: #748772; background: #f2f5ed; padding: 2px 7px; border-radius: 3px; }
body:not([data-view=all]) .gallery { grid-template-columns: minmax(0, 850px); justify-content: center; }
body:not([data-view=all]) .card-header { padding: 18px 25px; }body:not([data-view=all]) .card-note { padding: 20px 26px; }
.card[hidden] { display: none; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; font-size: 10px; color: #90988a; }
@media(min-width: 1500px) { .card-header p, .card-note > p:not(.note-title), .note-title { font-size: 12px; } }
@media(max-width: 1060px) { main { padding: 25px 22px; }.page-header { padding: 16px 22px; }.palette { display: none; }.gallery { gap: 12px; }.card-header { padding: 14px 12px; gap: 8px; }h2 { font-size: 14px; }.card-header p { max-width: 120px; }.card-note { padding: 14px; } }
@media(max-width: 760px) { .gallery { grid-template-columns: 1fr; gap: 22px; }.card { max-width: 600px; width: 100%; margin: auto; }.edition { display: none; }.intro { margin-bottom: 20px; }.lede { font-size: 11px; }.view-switch { width: 100%; justify-content: space-between; }.view-switch button { padding: 8px; font-size: 10px; }.display-controls { width: 100%; justify-content: space-between; gap: 12px; }.card-header p { max-width: none; }.card-header { padding: 16px 18px; }footer { flex-direction: column; gap: 5px; }.status { margin-top: 5px; } }
