:root {
  --background: #050607;
  --surface: rgba(255, 255, 255, 0.035);
  --text: #d7dadd;
  --muted: #777d83;
  --accent: #a6b4b2;
  --line: rgba(214, 224, 224, 0.12);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  transition: background-color 300ms ease, color 300ms ease;
}

.dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 3.5vh 5vw 3vh;
}

.top-bar, .bottom-bar {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.identity, .mode-label, .bottom-bar, .panel-label {
  color: var(--muted);
  font-size: clamp(0.65rem, 0.8vw, 0.9rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.identity { margin: 0; }
.identity span { color: var(--accent); }
.mode-label { margin: 0; }

.hero-clock {
  margin: auto 0;
  padding: 6vh 0;
}

.clock {
  color: var(--text);
  display: block;
  font-size: clamp(5rem, 17vw, 15rem);
  font-weight: 200;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.date {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.6rem);
  letter-spacing: 0.08em;
  margin: 2.5vh 0 0 0.6em;
  text-transform: capitalize;
}

.information-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 0.8fr 1.2fr 1.3fr;
}

.information-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 16vh;
  padding: 1.2rem 1.4rem;
}

.panel-label { margin: 0 0 0.8rem; }
.panel-value { color: var(--accent); font-size: clamp(1.8rem, 3vw, 3rem); margin: 0; }
.panel-value-small { font-size: clamp(1rem, 1.5vw, 1.5rem); }
.panel-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 0; }

.calendar { color: var(--muted); display: grid; font-size: 0.7rem; gap: 0.35rem; grid-template-columns: repeat(7, 1fr); margin-top: 0.7rem; text-align: center; }
.calendar span { padding: 0.2rem; }
.calendar .today { background: var(--accent); color: var(--background); border-radius: 50%; }

blockquote { color: var(--text); font-size: clamp(1rem, 1.4vw, 1.4rem); line-height: 1.4; margin: 0.5rem 0 0.8rem; }
cite { color: var(--muted); font-size: 0.8rem; font-style: normal; }

.bottom-bar { margin-top: 2.5vh; }
.bottom-bar p { margin: 0; }
kbd { border: 1px solid var(--line); border-radius: 0.25rem; color: var(--accent); padding: 0.15rem 0.35rem; }

body[data-mode="ultra-dim"] { --text: #686d70; --muted: #3d4245; --accent: #555c5e; --line: rgba(214, 224, 224, 0.05); --surface: rgba(255, 255, 255, 0.015); }
body[data-mode="day"] { --background: #182022; --text: #edf2f1; --muted: #a7b3b2; --accent: #c5d8d4; --line: rgba(220, 240, 237, 0.22); --surface: rgba(255, 255, 255, 0.08); }

@media (max-width: 900px) {
  .information-grid { grid-template-columns: 1fr 1fr; }
  .verse-panel { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .dashboard { padding: 1.5rem; }
  .top-bar, .bottom-bar { align-items: flex-start; flex-direction: column; gap: 0.6rem; }
  .hero-clock { margin: 10vh 0; padding: 0; }
  .information-grid { grid-template-columns: 1fr; }
  .verse-panel { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { body { transition: none; } }
