:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #29251f;
  background: #faf9f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

main {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .16em;
  padding-left: .16em;
}

footer {
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

a { color: #6b645d; text-underline-offset: 4px; }
a:hover { color: #29251f; }
a:focus-visible { outline: 2px solid #92521d; outline-offset: 6px; border-radius: 2px; }

@media print {
  :root { background: #fff; color: #000; }
  body { min-height: 90vh; }
  a { color: #000; }
}
