:root {
  color-scheme: light;
  --ink: #102e26;
  --muted: #4b665b;
  --paper: #f3f6ef;
  --panel: #fff;
  --rule: #c8d6cc;
  --accent: #10634d;
}
* { box-sizing: border-box; }
body {
  margin: 0 auto;
  max-width: 70rem;
  padding: 0 clamp(1rem, 5vw, 4rem);
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 system-ui, "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); text-underline-offset: .2em; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 4rem;
  border-bottom: 1px solid var(--rule);
}
.brand { font-weight: 700; color: var(--ink); text-decoration: none; }
main { padding: clamp(2rem, 6vw, 4rem) 0; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.45rem); line-height: 1.2; }
.intro p { margin-top: .8rem; color: var(--muted); }
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .65rem;
  margin: 1.8rem 0;
}
.controls label { display: grid; gap: .3rem; font-weight: 600; }
input, button {
  font: inherit;
  color: var(--ink);
  min-height: 2.7rem;
  padding: .35rem .8rem;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  background: var(--panel);
}
button { cursor: pointer; }
button.apply { background: var(--accent); border-color: var(--accent); color: white; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.muted, footer { color: var(--muted); font-size: .9rem; }
#zone { flex-basis: 100%; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.card { padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--rule); border-radius: .65rem; }
.card h2 { font-size: 1.05rem; }
.clock { font-size: 2rem; line-height: 1.4; font-variant-numeric: tabular-nums; font-weight: 650; }
#error { margin-bottom: 1rem; color: #9a2020; }
.article { max-width: 43rem; }
.article h2 { margin-top: 1.5rem; }
.article p { margin-top: .75rem; }
footer { border-top: 1px solid var(--rule); padding: 1.25rem 0; }
