/* Direction: Focus Forge — graphite workshop, ember accent, geometric display */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #0d1016;
  --surface: #151a22;
  --surface-2: #1d242e;
  --border: #2a323d;
  --border-strong: #3d4756;
  --ink: #eef2f8;
  --muted: #9aa6b6;
  --accent: #f26a1b;
  --accent-hover: #ff7f33;
  --accent-ink: #15100a;
  --accent-text: #ff9a52;
  --accent-strong: #ffb27a;
  --accent-soft: #2a1a0f;
  --accent-border: #4a2d18;
  --success: #2ec27e;
  --success-ink: #07160f;
  --success-soft: #14372d;
  --success-strong: #2ec27e;
  --warning: #e8b13a;
  --warning-ink: #1a1203;
  --warning-soft: #3d331e;
  --warning-strong: #e8b13a;
  --danger: #e4573d;
  --danger-ink: #1b0b07;
  --danger-soft: #3c201f;
  --danger-strong: #e8705b;
  --chart-1: #f26a1b;
  --chart-2: #3ea8ff;
  --chart-3: #2ec27e;
  --chart-4: #c678dd;
  --chart-5: #e8b13a;
  --chart-6: #58c7c7;

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-weight: 700;
  --display-tracking: -0.03em;
  --eyebrow-tracking: 0.14em;
  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-input: 12px;
  --card-pad: 1.5rem;
  --x-on-photo: #ffffff;
  --gradient-forge: linear-gradient(145deg, #1a2029 0%, #0d1016 55%, #1d1208 100%);
  --gradient-ember: linear-gradient(90deg, #f26a1b 0%, #e8b13a 100%);
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dddede;
  --border-strong: #b6b7b9;
  --ink: #0d1016;
  --muted: #65676a;
  --accent: #f26a1b;
  --accent-hover: #ce5a17;
  --accent-ink: #0d1016;
  --accent-text: #ae4c13;
  --accent-strong: #ae4c13;
  --accent-soft: #fdeadf;
  --accent-border: #f9bc98;
  --success: #2ec27e;
  --success-ink: #0d1016;
  --success-soft: #e6f8f0;
  --success-strong: #1c764c;
  --warning: #e8b13a;
  --warning-ink: #0d1016;
  --warning-soft: #fcf6e7;
  --warning-strong: #8d6c23;
  --danger: #e4573d;
  --danger-ink: #0d1016;
  --danger-soft: #fcebe8;
  --danger-strong: #b24430;
  --chart-1: #f26a1b;
  --chart-2: #9f961a;
  --chart-3: #14976e;
  --chart-4: #10a1ca;
  --chart-5: #7666e6;
  --chart-6: #e461b3;
}

/* Focus Forge — the dial, the ember glow, the day bars. Tokens only. */

.forge-shell {
  background-image: var(--gradient-forge);
}

.forge-dial {
  position: relative;
  width: min(20rem, 78vw);
  aspect-ratio: 1 / 1;
}

.forge-dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.forge-dial .dial-track {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 10;
}

.forge-dial .dial-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.35s linear;
}

.forge-dial[data-mode="short"] .dial-progress,
.forge-dial[data-mode="long"] .dial-progress {
  stroke: var(--chart-3);
}

.forge-dial .dial-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.forge-clock {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 13vw, 4.5rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}

.forge-dial[data-running="1"] .dial-progress {
  filter: drop-shadow(0 0 10px var(--accent));
}

.day-bar {
  background-image: var(--gradient-ember);
  border-radius: 6px;
  min-height: 3px;
  transition: height 0.4s ease;
}

.forge-rise {
  animation: forge-rise 0.45s ease-out both;
}

@keyframes forge-rise {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

html.reduced-motion .forge-rise,
html.reduced-motion .day-bar,
html.reduced-motion .dial-progress {
  animation: none;
  transition: none;
}
