/* Colours, fonts, spacing, corners and shadows come from the design system */
@import url("design-system/tokens.css");
html { scroll-behavior: smooth; }
* { box-sizing: border-box; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--display); font-size: 16px; line-height: 1.5; overflow-x: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--muted) 25%, transparent) 1px, transparent 1px); background-size: 22px 22px; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--s3); overflow-x: clip; }
nav { position: sticky; top: 12px; z-index: 5; margin-top: 12px; }
nav .bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); background: var(--card); border: 2px solid var(--line); border-radius: 99px; box-shadow: 3px 3px 0 var(--line); padding: 6px 8px 6px 18px; }
.logo { font-weight: 800; font-size: 18px; white-space: nowrap; }
.logo span { background: var(--pop); color: var(--on-pop); padding: 0 8px; border-radius: 8px; margin-left: 4px; }
nav .links { display: flex; gap: 2px; align-items: center; font-weight: 600; font-size: 14px; }
nav .links a { padding: 4px 10px; border-radius: 99px; } nav .links a:hover { background: var(--lx); }
button { white-space: nowrap; font: 600 13px var(--display); background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 99px; padding: 4px 12px; cursor: pointer; }
.hero { min-height: calc(100svh - 70px); display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s5); align-items: center; padding: var(--s5) 0; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 7.5vw, 84px); line-height: .95; letter-spacing: -.035em; }
.hero h1 mark { background: var(--yt); color: inherit; padding: 0 .12em; border-radius: 12px; }
.hero h1 .u { background: var(--lx); border-radius: 12px; padding: 0 .12em; }
.hero p { color: var(--muted); font-size: 18px; margin-top: var(--s3); max-width: 36ch; }
.cta { display: inline-block; margin-top: var(--s4); background: var(--pop); color: var(--on-pop); font-weight: 800; border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: 99px; padding: 12px 24px; transition: transform .15s, box-shadow .15s; }
.cta:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.stack { position: relative; height: 340px; }
.stack > * { position: absolute; }
.daybadge { background: var(--pop); color: var(--on-pop); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: 50%; width: 170px; height: 170px; display: grid; place-content: center; text-align: center; transform: rotate(-8deg); top: 0; right: 10%; z-index: 2; }
.daybadge b { font-size: 68px; line-height: .9; }
.daybadge span { font-family: var(--mono); font-size: 13px; }
.livecard { background: var(--card); border: 2px solid var(--line); box-shadow: var(--shadow); border-radius: var(--r); padding: var(--s3); width: 260px; bottom: 10px; left: 0; transform: rotate(3deg); }
.livecard .on { font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--go-ink); font-weight: 500; }
.livecard .on::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--go); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .5; } }
.livecard p { font-size: 14px; color: var(--text); margin-top: 4px; }
.livecard small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tape { width: 90px; height: 26px; background: color-mix(in srgb, var(--rd) 80%, transparent); border: 1.5px solid var(--line); transform: rotate(-12deg); top: 150px; left: 40%; }
section { padding-top: var(--s6); }
h2 { font-weight: 800; font-size: clamp(40px, 6.5vw, 64px); letter-spacing: -.03em; line-height: 1; }
h2 + p { color: var(--muted); margin: var(--s2) 0 var(--s4); }
h3 { font-weight: 800; font-size: 26px; margin: var(--s5) 0 var(--s3); letter-spacing: -.01em; display: flex; gap: var(--s3); align-items: baseline; flex-wrap: wrap; }
h3 small { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s4); }
.status { font-family: var(--mono); font-size: 11px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 99px; padding: 1px 10px; display: inline-block; }
.s-active { background: var(--go); color: #062b16; } .s-planned { background: var(--lx); } .s-completed { background: var(--rd); }
.feature .top { display: flex; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; align-items: flex-start; }
.feature .title { font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin-top: var(--s2); }
.feature .upd { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.feature .upd b { color: var(--text); font-weight: 500; }
.todaynote { margin-top: var(--s4); background: var(--li); border: 2px solid var(--line); border-radius: 14px; padding: var(--s3); transform: rotate(-.6deg); }
.todaynote b { font-size: 13px; font-family: var(--mono); font-weight: 500; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s5); }
.goal { position: relative; }
.goal .sticker { position: absolute; top: -14px; right: 14px; transform: rotate(6deg); border: 2px solid var(--line); border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: 13px; background: var(--card); }
.goal h4 { font-size: 22px; font-weight: 800; }
.goal .rule { color: var(--muted); font-size: 14px; }
.ring { width: 100%; max-width: 140px; margin: var(--s3) auto 0; display: block; }
.ring .bg { stroke: color-mix(in srgb, var(--muted) 25%, transparent); }
.ring .fg { stroke: var(--line); stroke-linecap: round; }
:root[data-theme="dark"] .ring .fg { stroke: var(--text); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ring .fg { stroke: var(--text); } }
.ring text { font-family: var(--display); font-weight: 800; fill: var(--text); }
.weeks { display: grid; gap: var(--s3); }
.week { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 6px; align-items: center; }
.week .wl { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.wd { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.cell { border: 2px dashed color-mix(in srgb, var(--muted) 50%, transparent); border-radius: 12px; min-height: 54px; display: flex; flex-wrap: wrap; gap: 3px; padding: 5px; align-content: flex-start; }
.cell.today { border: 2px solid var(--pop); }
.cell.future { opacity: .45; }
.chip { font-family: var(--mono); font-size: 10px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 6px; padding: 0 4px; line-height: 16px; color: var(--text); }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.count { border: 2px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s3); }
.count:nth-child(odd) { transform: rotate(-1deg); } .count:nth-child(even) { transform: rotate(1deg); }
.count .pn { font-weight: 800; font-size: 15px; }
.count .n { font-weight: 800; font-size: 44px; line-height: 1; margin: var(--s2) 0 2px; letter-spacing: -.02em; }
.count .lbl { font-family: var(--mono); font-size: 12px; }
.count .d { display: inline-block; margin-top: var(--s2); background: var(--card); border: 1.5px solid var(--line); border-radius: 8px; padding: 0 6px; font-family: var(--mono); font-size: 12px; }
.count svg { width: 100%; height: 30px; margin-top: var(--s2); }
.count polyline { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: var(--s3); }
.log { display: grid; gap: var(--s2); }
.entry { display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s3); align-items: center; padding: 12px var(--s3); }
.entry.cur { background: var(--li); }
.entry .day { font-family: var(--mono); font-size: 12px; color: var(--muted); } .entry .day b { display: block; color: var(--text); font-family: var(--display); font-size: 16px; }
.entry .chips { display: flex; gap: 4px; }
.others { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.other h4 { font-size: 22px; font-weight: 800; margin: var(--s2) 0 4px; }
.other p { color: var(--muted); }
.other .when { font-family: var(--mono); font-size: 13px; margin-top: var(--s3); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.proj { transition: transform .2s, box-shadow .2s; display: block; }
.proj:hover { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: 7px 7px 0 var(--line); }
.proj .ic { width: 52px; height: 52px; border: 2px solid var(--line); border-radius: 14px; display: grid; place-content: center; font-weight: 800; font-size: 24px; margin-bottom: var(--s3); }
.proj h4 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.proj p { color: var(--muted); font-size: 15px; margin: 4px 0 var(--s3); }
.proj .ic.logo { overflow: hidden; padding: 0; } .proj .ic.logo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.proj .go { font-family: var(--mono); font-size: 13px; font-weight: 500; margin-left: var(--s2); }
.c-yt { background: var(--yt); } .c-lx { background: var(--lx); } .c-rd { background: var(--rd); } .c-li { background: var(--li); } .c-x { background: var(--x); }
footer { padding: var(--s6) 0 var(--s5); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rv { opacity: 0; transform: translateY(26px) rotate(-1.5deg); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1.25); }
.rv.in { opacity: 1; transform: none; }
.count.rv.in:nth-child(odd) { transform: rotate(-1deg); } .count.rv.in:nth-child(even) { transform: rotate(1deg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { opacity: 1; transform: none; transition: none; } .livecard .on::before { animation: none; } }
@media (max-width: 760px) {
  nav .links a.hide-s { display: none; }
  nav .bar { padding-left: 12px; } .logo { font-size: 16px; } nav .links a { padding: 4px 6px; } button { padding: 4px 9px; }
  .hero { grid-template-columns: 1fr; gap: var(--s3); min-height: 0; padding-top: var(--s5); }
  .stack { height: 260px; }
  .daybadge { width: 120px; height: 120px; right: 0; } .daybadge b { font-size: 48px; }
  .livecard { width: 230px; }
  .goals, .others, .projects { grid-template-columns: 1fr; } .counts { grid-template-columns: repeat(2, 1fr); }
  .week { grid-template-columns: repeat(7, 1fr); } .week .wl { grid-column: 1 / -1; } .week:first-child > span:first-child { display: none; }
  .cell { min-height: 44px; padding: 3px; } .chip { font-size: 9px; padding: 0 2px; }
  .feature .upd { text-align: left; }
  .entry { grid-template-columns: 1fr; gap: 4px; }
}
