:root {
  color-scheme: light;
  /* Lungta's pinned Dreams.7.1.1 light palette. */
  --paper: #f6f1e5;
  --surface: #fffbf2;
  --ink: #342d20;
  --muted: #76674f;
  --rule: #dccfb8;
  --focus: #9a6c19;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.4 "Mona Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body {
  margin: 0;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
}

main {
  box-sizing: border-box;
  width: min(100%, 32rem);
  width: min(100%, clamp(17rem, calc((100svh - 11rem) * 2 / 3 + 2.5rem), 32rem));
  padding: 24px clamp(16px, 4vw, 24px);
  display: grid;
  justify-items: center;
  row-gap: 24px;
}

figure {
  width: 100%;
  min-width: 0;
  margin: 0;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  box-sizing: border-box;
  background: var(--surface);
  outline: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(52, 45, 32, 0.11);
}

figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding-top: 12px;
}

h1 {
  margin: 0;
  font: 400 20px/1.3 "STIX Two Text", "Songti SC", "Noto Serif SC", Georgia, serif;
  overflow-wrap: anywhere;
}

time {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.paint {
  display: grid;
  justify-items: center;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}

.paint [lang="en"] {
  font-size: 12px;
}

.paint:hover {
  background: #21180f;
}

.paint:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
