:root {
  --ground: #F2F1EE;
  --surface: #FBFBF9;
  --ink: #23241F;
  --muted: #5F625B;
  --line: #E4E3DE;
  --accent: #4F6152;
  --accent-dark: #3C4A3F;
  --tint: #E3E8E1;
  --warn: #86621F;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; }
header.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
header.brand img { width: 32px; height: 32px; border-radius: 8px; }
header.brand span { font-size: 26px; font-weight: 500; letter-spacing: -0.3px; }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.3px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border-radius: 20px; padding: 16px; margin: 16px 0; }
.from { background: var(--tint); }
.from strong { display: block; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 24px;
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
ol.pieces { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; overflow: hidden; }
ol.pieces li { padding: 14px 16px; border-bottom: 1px solid var(--line); }
ol.pieces li:last-child { border-bottom: 0; }
.title { font-weight: 600; font-size: 17px; }
.creator { color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.links a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  color: var(--accent-dark); font-size: 14px; text-decoration: none; overflow-wrap: anywhere;
}
.error { background: #F3ECDD; color: #5C4416; border-radius: 12px; padding: 12px; }
footer { margin-top: 32px; font-size: 13px; color: var(--muted); }
footer a { color: var(--accent-dark); }
