/* Moretti Dev / WorkPro
   Every rule lives in this file on purpose. `_headers` sets style-src 'self',
   so a <style> block or a style="" attribute is refused by the browser and the
   page silently renders unstyled in that spot. If something needs styling, it
   gets a class here — never an attribute there. */

:root {
  --bg: #f5f7fa;
  --wash: #e7edf7;
  --card: #ffffff;
  --ink: #11141a;
  --muted: #5d6673;
  --line: #e2e7ee;
  --accent: #2f6feb;
  --on-accent: #ffffff;
  --good: #1c8a4e;
  --warn: #b57206;
  --idle: #8b95a3;
  --shadow: 0 1px 2px rgba(15,22,35,.05), 0 14px 30px -14px rgba(15,22,35,.16);
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d11;
    --wash: #141924;
    --card: #161a22;
    --ink: #eef1f6;
    --muted: #99a2b0;
    --line: #242a35;
    --accent: #6ea2ff;
    --on-accent: #07101f;
    --good: #4ec984;
    --warn: #e0a33c;
    --idle: #7d8695;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 20px 44px -20px rgba(0,0,0,.85);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 84px;
  background:
    radial-gradient(1200px 560px at 50% -260px, var(--wash), transparent 72%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 748px; margin: 0 auto; }

/* --- Masthead ------------------------------------------------------------ */
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  font-size: 16.5px; letter-spacing: -0.012em;
}
.mark svg { display: block; border-radius: 9px; }
.mark strong { font-weight: 650; }

/* --- Type ---------------------------------------------------------------- */
h1 {
  font-size: clamp(33px, 6.3vw, 48px);
  line-height: 1.07; letter-spacing: -0.03em; font-weight: 700;
  margin: 22px 0 15px; text-wrap: balance;
}
h2 { font-size: 21px; letter-spacing: -0.018em; font-weight: 650; margin: 0 0 10px; }
h3 { font-size: 17.5px; letter-spacing: -0.012em; font-weight: 650; margin: 0 0 7px; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.lede {
  font-size: clamp(17.5px, 2.3vw, 19.5px); line-height: 1.55;
  color: var(--muted); max-width: 34em; margin: 0; text-wrap: pretty;
}
.quiet { color: var(--muted); }
a { color: var(--accent); text-underline-offset: 2px; }

/* --- Structure ----------------------------------------------------------- */
.hero { padding: 58px 0 4px; }
.page-head { padding: 54px 0 22px; }
.tight { margin-top: 0; }

.pill {
  display: inline-block; margin: 0 0 4px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 999px; padding: 5px 12px;
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 26px; margin: 18px 0;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

.grid { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; margin: 26px 0; }
.grid .card { margin: 0; padding: 22px; }
.grid p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

ul { padding-left: 20px; margin: 0 0 12px; }
li { margin: 7px 0; }
li::marker { color: var(--accent); }

.cta {
  display: inline-block; margin-top: 4px;
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; font-weight: 640; font-size: 16.5px;
  padding: 13px 24px; border-radius: 13px;
  box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 78%, transparent);
}

/* --- The day, as the app draws it ---------------------------------------
   Not decoration: this is the screen the whole product is about, in the same
   semantic colours the app uses — green on site, amber moving, grey unknown. */
.day {
  margin: 34px 0 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.day-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--wash), transparent);
}
.day-when { font-weight: 650; letter-spacing: -0.01em; }
.day-total { font-weight: 700; font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.day-rows { list-style: none; margin: 0; padding: 6px 0; }
.day-rows li {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 11px 20px; font-size: 15.5px;
}
.day-rows li + li { border-top: 1px solid var(--line); }
.tick { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--idle); }
.tick.on { background: var(--good); }
.tick.moving { background: var(--warn); }
.where { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.how-long { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.day-note {
  padding: 12px 20px 15px; font-size: 14.5px; color: var(--muted);
  border-top: 1px solid var(--line); background: var(--wash);
}

/* --- Prose --------------------------------------------------------------- */
.prose h2 { margin: 30px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose strong { font-weight: 640; }

nav { margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 20px; }
nav a { font-weight: 600; text-decoration: none; font-size: 15.5px; }
footer {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14.5px;
}
