/* One look, taken from the design canvas: its colours, its spacing, its corner radius. */
:root {
  --ground: #0F1216; --panel: #181C22; --track: #1D2229;
  --text: #F2F0EA; --soft: #C9CED6; --muted: #A7ADB7;
  --day: #F0B44C; --ahead: #4A525E; --night: #6E9BE0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font: 15px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
}
main {
  width: 100%; max-width: 390px; min-height: 100dvh; margin: 0 auto; padding: 56px 24px 24px;
  display: flex; flex-direction: column; gap: 20px;
}
header { display: flex; justify-content: space-between; align-items: baseline; }
h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
#whose { font-size: 14px; color: var(--muted); }

.dial { display: flex; justify-content: center; }
.dial svg { max-width: 100%; height: auto; }
.track { fill: none; stroke: var(--track); stroke-width: 14; }
.phases circle { fill: none; stroke-width: 14; stroke: var(--ahead); }
.phases .past { stroke: var(--day); stroke-opacity: 0.4; }
.phases .now { stroke: var(--day); }
.phases .night { stroke: var(--night); }
.hand { fill: var(--text); stroke: var(--ground); stroke-width: 4; }
.hours text { font-size: 12px; fill: var(--muted); text-anchor: middle; }
.since { font-size: 35px; font-weight: 700; fill: var(--text); text-anchor: middle; letter-spacing: -0.5px; }
.phase { font-size: 15px; font-weight: 600; fill: var(--day); text-anchor: middle; }
.gate { font-size: 13px; fill: var(--muted); text-anchor: middle; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.list li { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; }
.list .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--ahead); }
.list .name { flex-grow: 1; }
.list .span { font-size: 14px; color: var(--muted); }
.list .past .swatch { background: var(--day); opacity: 0.4; }
.list .past .name { color: var(--muted); }
.list .now { background: var(--panel); }
.list .now .swatch { background: var(--day); }
.list .now .name { font-weight: 600; }
.list .now .span { color: var(--text); }
.list .night .swatch { background: var(--night); opacity: 1; }

.controls {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px;
  background: var(--panel); border-radius: 16px;
}
button {
  height: 44px; border: 0; border-radius: 10px; background: none; color: var(--soft);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
button:hover { color: var(--text); }
button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
button.primary { background: var(--day); color: var(--ground); }
button.primary:hover { color: var(--ground); }
button.plain { height: 44px; padding: 0 12px; margin: 0 -12px; text-decoration: underline; font-weight: 500; }

.about { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; color: var(--muted); }
.about p, .about dl, .about dd { margin: 0; }
.about .lead { color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.about dl { display: grid; grid-template-columns: 64px 1fr; row-gap: 12px; }
.about dt { color: var(--text); font-weight: 600; }
footer { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--muted); }
a { color: var(--soft); }
a:hover { color: var(--text); }
.phase.night { fill: var(--night); }
