/* An intentionally quiet, fully local material experiment. */
.sand-sample { min-width:0; background:#202332; border:1px solid #b4a5c13d; padding:23px; color:#e9e5e5; align-self:center; }
.sample-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.sample-kicker { color:#c1b8c9; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; line-height:1.5; margin-bottom:4px; }
.sample-heading h4 { margin:0; font:600 1.625rem/1.25 Georgia,serif; color:#eee4dc; letter-spacing:-.02em; }
.sample-mark { color:#d9b69f; font:400 2.75rem/1 Georgia,serif; }
.sample-provenance { color:#c7b6c2; font-size:.8125rem; line-height:1.5; margin-top:8px; margin-bottom:18px; }
.sample-tray { position:relative; border:1px solid #9d9ba164; padding:3px; background:#151a27; box-shadow:0 3px 0 #121725; }
.sample-tray canvas { display:block; width:100%; height:auto; aspect-ratio:196 / 132; background:#202437; image-rendering:pixelated; touch-action:pan-y pinch-zoom; user-select:none; -webkit-user-select:none; cursor:crosshair; }
.sample-tray canvas:focus-visible { outline:3px solid #ecd4b5; outline-offset:4px; }
.sample-readout { display:flex; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; color:#beb7c8; font-size:.75rem; line-height:1.5; margin:10px 0 15px; font-variant-numeric:tabular-nums; }
.sample-material-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.sample-materials { display:flex; gap:4px; }
.sand-sample button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; min-width:44px; font:400 .875rem/1.4 var(--reading-font); color:#ded7e1; border:1px solid #8b82915c; background:transparent; padding:9px 12px; touch-action:manipulation; }
.sand-sample button:hover { border-color:#d7b7a9; color:#f6ebdf; }
.sand-sample button:focus-visible { outline:3px solid #e7c8a1; outline-offset:3px; }
.sample-materials button[aria-pressed=true] { background:#dad2d3; border-color:#dad2d3; color:#292c3a; font-weight:700; }
.sample-palette { display:flex; gap:0; }
.sample-palette button { width:44px; height:44px; border:1px solid transparent; padding:9px; }
.sample-palette button > span { width:22px; height:22px; background:var(--swatch); position:relative; }
.sample-palette button[aria-pressed=true] { border-color:var(--swatch); }
.sample-palette button[aria-pressed=true] > span:after { content:""; position:absolute; width:6px; height:6px; background:#293141; top:8px; left:8px; }
.sample-primary-row { display:grid; grid-template-columns:minmax(78px,.72fr) minmax(0,1.28fr); gap:10px; margin-top:13px; }
.sand-sample .sample-pour { background:#e6b59a; border-color:#e6b59a; color:#292b38; font-size:1rem; font-weight:700; gap:9px; min-height:52px; }
.sand-sample .sample-pour:hover { background:#f0c8af; color:#292b38; }
.sample-pour > span { font-size:1.25rem; }
.sample-gravity { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; }
.sample-gravity button { padding:7px 3px; flex-direction:column; gap:1px; font-size:1.1rem; line-height:1; min-height:52px; }
.sample-gravity button span { font-size:.75rem; line-height:1.4; }
.sample-gravity button[aria-pressed=true] { background:#b7c5ae; border-color:#b7c5ae; color:#252d2d; }
.sample-utility-row { display:flex; align-items:center; gap:8px; margin-top:10px; }
.sample-utility-row button { flex:1; padding-inline:6px; min-width:0; font-size:.8125rem; }
.sample-utility-row button[aria-pressed=true] { border-color:#d3b7aa; background:#57434c; }
.sample-help { margin-top:14px; color:#bfb7c7; font-size:.8125rem; line-height:1.6; }
@media (max-width:1100px) and (min-width:851px) {
  .sand-sample { padding:18px; }
  .sample-material-row { justify-content:center; }
  .sample-materials { flex:1 1 100%; }
  .sample-materials button { flex:1; }
  .sample-palette { justify-content:space-between; width:100%; }
}
@media (max-width:850px) {
  .sand-sample { padding:25px; }
  .sample-tray { max-width:580px; margin-inline:auto; }
  .sample-primary-row { grid-template-columns:minmax(100px,1fr) minmax(0,1fr); }
}
@media (max-width:520px) {
  .sand-sample { border-inline:0; padding:22px 23px; }
  .sample-heading h4 { font-size:1.5rem; }
  .sample-provenance { font-size:.75rem; }
  .sample-material-row { gap:10px; }
  .sample-materials { flex:1 1 100%; }
  .sample-materials button { flex:1; }
  .sample-palette { width:100%; justify-content:space-between; }
  .sample-primary-row { grid-template-columns:minmax(78px,.72fr) minmax(0,1.28fr); }
  .sample-help { font-size:.8125rem; }
}
@media (max-width:360px) {
  .sand-sample { padding-inline:19px; }
  .sample-readout { font-size:.75rem; }
  .sample-kicker { font-size:.75rem; }
  .sample-utility-row { gap:5px; }
  .sample-utility-row button { font-size:.75rem; }
}
@media (forced-colors:active) {
  .sample-palette button { forced-color-adjust:none; }
  .sample-tray { border:1px solid CanvasText; }
}
