/* Completely Fair Self. One font (Manrope), black, white and greys, nothing else.
   Light pages to plan, a dark page to follow the day. Every page fits one laptop screen. */

@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #111111;
  --paper: #FFFFFF;
  --soft: #F5F5F5;
  --line: #E2E2E2;
  --mute: #6B6B6B;
  --faint: #A0A0A0;
  --night: #0B0B0B;
  --night-2: #1A1A1A;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 500 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--night); color: #FFFFFF; color-scheme: dark; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { padding: 24px; color: var(--mute); }
svg.i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
svg.i.s { width: 13px; height: 13px; stroke-width: 1.8; }

/* ---------- light pages: Today, Activities ---------- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) max(16px, 3vw, env(safe-area-inset-right)) 16px max(16px, 3vw, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-bottom: 10px; border-bottom: 1px solid #EAEAEA;
}
.brand { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.top nav { display: flex; gap: 4px; }
.top nav a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 13px;
}
.top nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.top .date { color: var(--mute); font-size: 13px; }

.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.hero .t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
h1.h { margin: 0; font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.035em; }
.hero p { margin: 0; color: var(--mute); }
.hero .acts { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700;
}
.btn.ghost { background: transparent; color: var(--ink); }
.link { border: 0; background: none; padding: 0 2px; min-height: 32px; font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.link.mute { color: var(--mute); }

.cols { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; }
h2.s { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.2; }
.sub { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sub .hint { color: var(--mute); font-size: 12.5px; }

/* Today: the plan */
.plan { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.plan ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
  min-height: 36px; padding: 2px 4px 2px 10px; border-radius: 10px; background: var(--soft);
  cursor: grab;
}
.row.over { outline: 2px solid var(--ink); outline-offset: 2px; }
.row.dragging { opacity: .4; }
.row .grip { color: var(--faint); display: inline-flex; }
.row .grip svg { width: 16px; height: 16px; fill: currentColor; }
.row .n { width: 18px; font-weight: 700; font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; }
.row .what { flex: 1 1 180px; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.row .name { font-weight: 700; }
.row .meta { display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 12px; }
.row .tools { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.step { display: inline-flex; align-items: center; padding: 2px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); margin-right: 4px; }
.step button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; font-weight: 600; font-size: 16px; line-height: 1; }
.step output { min-width: 56px; text-align: center; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.ico { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--mute); display: inline-flex; align-items: center; justify-content: center; }
.ico:hover { color: var(--ink); }
.empty { margin: 0; padding: 14px; border: 1.5px dashed #CFCFCF; border-radius: 10px; text-align: center; color: var(--mute); }

/* Today: add an activity */
.add { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 11px 0 9px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 13px;
}
.pill:hover { border-color: var(--ink); }
.pill .len { color: var(--mute); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.note { margin: 2px 0 0; display: flex; gap: 7px; align-items: flex-start; color: var(--mute); font-size: 13px; }
.note svg { margin-top: 3px; }
.device { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.device b { font-weight: 700; }

/* Activities */
.list { flex: 1 1 340px; max-width: 400px; min-width: 0; }
.list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.act {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 0 14px;
  border-radius: 10px; border: 0; background: var(--soft); text-align: left;
}
.act .name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.act .where { flex: none; display: inline-flex; align-items: center; gap: 5px; color: var(--mute); font-size: 12.5px; }
.act .len { flex: none; min-width: 50px; text-align: right; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.act[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.act[aria-pressed="true"] .where { color: rgba(255,255,255,.75); }

.panel { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.edit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.edit input[type="text"] {
  flex: 1 1 220px; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1.5px solid #D4D4D4; background: var(--paper); font-weight: 700; font-size: 15px;
}
.edit .step { border-width: 1.5px; border-color: #D4D4D4; margin: 0; }
.edit .step button { width: 32px; height: 32px; font-size: 17px; background: #F2F2F2; }
.edit .step button.plus { background: var(--ink); color: var(--paper); }
.edit .step output { min-width: 64px; font-weight: 700; font-size: 14px; }
.sw { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 0; padding: 0; background: #CFCFCF; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); transition: left .15s ease; }
.switch[aria-checked="true"] { background: var(--ink); }
.switch[aria-checked="true"]::after { left: 23px; }
.panel .why { margin: -4px 0 0; color: var(--mute); font-size: 12.5px; }

.notes { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.notes .head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; }
.pager { display: inline-flex; align-items: center; gap: 4px; }
.pager span { margin-right: 6px; color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pager button { min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font-weight: 600; font-size: 12.5px; }
.pager button:disabled { border-color: var(--line); color: var(--faint); cursor: default; }
.nbody { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 6px 14px; align-items: start; }
.nlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nlist button { width: 100%; display: flex; align-items: baseline; gap: 10px; min-height: 30px; padding: 6px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.nlist button:hover { background: #EBEBEB; }
.nlist button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nlist button[aria-pressed="true"] .m, .nlist button[aria-pressed="true"] .pv { color: rgba(255,255,255,.75); }
.notes .d { flex: none; width: 78px; font-weight: 700; font-size: 13px; }
.notes .m { flex: none; width: 44px; color: var(--mute); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.notes .pv { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #444444; font-size: 12.5px; }
/* Long notes scroll inside the reader, never the page. */
.nread { min-width: 0; max-height: max(200px, calc(100vh - 300px)); overflow: auto; padding: 10px 14px 12px; border-radius: 10px; background: var(--paper); }
.nread .nd { margin: 0 0 6px; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.nread .full { margin: 0; white-space: pre-wrap; font-size: 13.5px; line-height: 1.5; }

/* ---------- dark page: the guide and its screen breaks ---------- */
.guide {
  min-height: 100vh; min-height: 100dvh;
  max-width: 1240px; margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) max(16px, 4vw, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, 4vw, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 24px;
}
.guide a { color: #FFFFFF; }
.gtop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.gtop .brand { font-size: 15px; }
.gtop .back { font-weight: 600; font-size: 14px; text-underline-offset: 4px; }
.day { flex: 1 1 280px; max-width: 520px; display: flex; flex-direction: column; gap: 8px; }
.segs { display: flex; gap: 4px; }
.segs span { display: block; height: 6px; border-radius: 999px; flex: 1 1 0; background: rgba(255,255,255,.2); }
.segs span.done { background: #FFFFFF; }
.segs span.now { background: rgba(255,255,255,.6); }
.segs span.skipped { background: rgba(255,255,255,.2); }
.day .lbl { font-weight: 600; font-size: 13px; line-height: 1; color: rgba(255,255,255,.65); }

.gmain {
  display: grid; align-items: center; gap: 14px 56px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head ring" "eye ring" "actions ring";
}
.ghead { grid-area: head; display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: end; }
.geye { grid-area: eye; }
.gact { grid-area: actions; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.ringbox { grid-area: ring; display: flex; justify-content: center; }
.kick { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.7); }
.kick svg { width: 16px; height: 16px; }
h1.big { margin: 0; font-weight: 800; font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.05em; overflow-wrap: anywhere; }
h1.big.ask { font-size: clamp(36px, 4.6vw, 68px); line-height: .96; }
h1.big.brk { font-size: clamp(56px, 8.5vw, 124px); line-height: .9; letter-spacing: -.055em; }
.lede { margin: 0; font-size: 16px; color: rgba(255,255,255,.7); }
.lede.brk { max-width: 34ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.75); }
.eye { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.eye svg { width: 18px; height: 18px; stroke-width: 1.8; }
.eye b, .tnum { font-variant-numeric: tabular-nums; }
.btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.gbtn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: transparent; color: #FFFFFF;
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.gbtn.main { background: #FFFFFF; color: var(--night); border-color: #FFFFFF; }
.gbtn.soft { border-color: rgba(255,255,255,.3); font-weight: 600; font-size: 14px; padding: 0 20px; }
.gbtn svg { width: 16px; height: 16px; }
.gbtn.main svg.fill { fill: var(--night); stroke: none; }
.glink { min-height: 46px; padding: 0 8px; border: 0; background: transparent; color: rgba(255,255,255,.7); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 5px; }
.learn { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.learn label { font-weight: 700; font-size: 15px; }
.learn textarea {
  width: 100%; padding: 10px 14px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.3);
  background: var(--night-2); color: #FFFFFF; font-size: 15px; line-height: 1.5; resize: vertical;
}

.ring { position: relative; width: min(300px, 76vw); aspect-ratio: 1; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring circle { fill: none; stroke: rgba(255,255,255,.22); stroke-width: .5; transition: fill .4s ease, stroke .4s ease; }
.ring circle.on { fill: #FFFFFF; stroke: #FFFFFF; }
.ring .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ring .clock { font-weight: 800; font-size: clamp(44px, 5vw, 66px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring.brk .clock { font-size: clamp(56px, 6.6vw, 88px); }
.ring .unit { font-weight: 600; font-size: 14px; line-height: 1; color: rgba(255,255,255,.65); }

.after { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); }
.after h2 { margin: 0; font-weight: 600; font-size: 14px; color: rgba(255,255,255,.65); }
.after .nx { font-weight: 700; font-size: 16px; }
.after .then { font-size: 15px; color: rgba(255,255,255,.55); }
.after.foot { justify-content: space-between; color: rgba(255,255,255,.65); font-size: 14px; }

.signin { max-width: 480px; margin: 18vh auto 0; padding: 0 24px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.toast {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px;
}
body.dark .toast { background: #FFFFFF; color: var(--night); }

/* ---------- phone ---------- */
@media (max-width: 720px) {
  .top .date { display: none; }
  .list { max-width: none; }
  .row .meta { display: none; }
  .nbody { grid-template-columns: minmax(0, 1fr); }
  .notes .m { display: none; }
  .row .grip { display: none; }
  .row { gap: 2px 8px; }
  .row .what { flex: 1 1 0; }
  .step output { min-width: 46px; }
  .ico { width: 26px; }
  .gtop .brand { display: none; }
  .gmain { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "ring" "eye" "actions"; gap: 18px; }
  .ring { width: min(240px, 64vw); }
  .gmain.ask .ringbox, .gmain.end .ringbox { display: none; }
  h1.big { font-size: clamp(40px, 12vw, 64px); }
  .guide { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
