:root {
  color-scheme: light;
  font: 100%/1.6 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: #232c23;
  background: #f5f0e7;
  --green: #244732;
  --line: #ded9ce;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 36rem); margin: clamp(2rem, 9vh, 6rem) auto; }
.masthead { display: flex; gap: .65rem; align-items: center; margin-bottom: 1rem; font-weight: 700; }
.sun { display: grid; place-items: center; width: 2.15rem; aspect-ratio: 1; border-radius: 50%; background: #f7d480; }
.card { padding: clamp(1.25rem, 5vw, 2.75rem); background: #fffcf5; border: 1px solid var(--line); border-radius: 1.5rem; box-shadow: 0 .6rem 0 #e9e2d5; }
h1 { margin: .4rem 0 .75rem; font-size: clamp(1.75rem, 5vw, 2.8rem); line-height: 1.25; }
p { margin: 0 0 1.5rem; color: #4d594d; }
.eyebrow { margin-bottom: .6rem; font-size: .9rem; font-weight: 700; }
progress { display: block; width: 100%; height: .55rem; accent-color: var(--green); margin-bottom: 1.5rem; }
.options { display: grid; gap: .65rem; margin-top: 1.4rem; }
button { font: inherit; padding: .75rem 1rem; min-height: 3rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; color: inherit; cursor: pointer; }
button:hover { background: #edf2e7; }
button:focus-visible { outline: 3px solid #2d633d; outline-offset: 3px; }
button.primary { background: var(--green); color: #fff; border-color: var(--green); }
button.primary:hover { background: #345a41; }
.options button { text-align: left; }
.result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  margin-bottom: .6rem;
}
.result-header .eyebrow { margin: 0; }
button.history-button {
  margin-inline-start: auto;
  min-height: 2.75rem;
  padding: .4rem .8rem;
  background: #f5f6ee;
  color: #4d594d;
  font-size: .9rem;
  white-space: nowrap;
  cursor: default;
}
