/* The dashboard: tiles that drive the day, each with its own dawn color. */
@layer components {

.tiles {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem; margin: 0 0 2rem;
}
.tile {
  --accent: var(--gold-bright);
  display: flex; flex-direction: column; gap: 0.45rem;
  padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-top: 3px solid var(--accent);
  border-radius: 14px;
  text-decoration: none; background: var(--paper-high);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.tile:nth-child(2) { --accent: var(--air); }
.tile:nth-child(3) { --accent: var(--water); }
.tile:nth-child(4) { --accent: var(--earth); }
@media (hover: hover) {
  .tile:hover, .tile:hover * { text-decoration: none; }
  .tile:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(62, 50, 120, 0.16); }
}
.tile__kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent);
}
.tile__title { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--ink); }
.tile__teaser { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.45; }

/* A tile whose door opens onto the till. Still shown and still worth
   wanting — the lock is a price tag, not a closed sign. */
.tile--locked { position: relative; }
.tile--locked .tile__title { color: var(--ink-dim); }
.tile__lock { position: absolute; top: 1rem; right: 1.1rem; color: var(--accent); }
.tile__lock svg { display: block; width: 1.05rem; height: 1.05rem; }
@media (hover: hover) {
  .tile--locked:hover .tile__lock { color: var(--gold); }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .tile:hover { transform: none; }
}

/* The dashboard's bands announce themselves quietly. */
.dashboard__band {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin: 2.2rem 0 0.8rem;
  font-family: var(--font-ui); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-dim);
}
.dashboard__band:first-of-type { margin-top: 0; }
.dashboard__band-link {
  font-weight: 600; font-size: 0.8rem;
  text-transform: none; letter-spacing: 0.02em;
}

/* The almanac: the day's small sky facts in a quiet row between the
   readings and the questions. */
.almanac {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 0.6rem; margin: 0 0 2rem;
}
.almanac__fact {
  --accent: var(--line-strong);
  display: flex; flex-direction: column; gap: 0.05rem;
  padding: 0.6rem 0.9rem 0.65rem;
  background: var(--paper-high); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 10px;
  text-decoration: none;
}
.almanac__fact--fire { --accent: var(--fire); }
.almanac__fact--earth { --accent: var(--earth); }
.almanac__fact--air { --accent: var(--air); }
.almanac__fact--water { --accent: var(--water); }
.almanac__fact--gold { --accent: var(--gold-bright); }
.almanac__glyph { color: var(--accent); font-size: 1.1rem; }
.almanac__fact--fire .almanac__glyph { color: var(--fire); }
.almanac__label { color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.almanac__line { color: var(--ink-dim); font-size: 0.8rem; font-style: italic; }
.almanac__fact--door { position: relative; padding-right: 2.2rem; }
@media (hover: hover) {
  .almanac__fact--door:hover { border-color: var(--gold-dim); text-decoration: none; }
}
.almanac__go {
  position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-family: var(--font-ui);
}

}
