/* Rutito coming-soon page. Visual idea: a fridge sticker chart on a morning sky. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --sky: #D7ECFF;
  --ink: #1C1A4F;
  --ink-soft: #4A4880;
  --paper: #FFFFFF;
  --berry: #FF4F8B;
  --sun: #FFC533;
  --leaf: #1FA874;
  --blue: #4C7DFF;
  --line: var(--ink);
  --shadow: var(--ink);
  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #16153A;
    --ink: #F2F1FF;
    --ink-soft: #B9B7E6;
    --paper: #25235C;
    --line: #F2F1FF;
    --shadow: #07061F;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--sky);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
}

.stage {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  align-content: center;
}

/* ---- Intro ---- */
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  line-height: .9;
  letter-spacing: -.015em;
  display: flex;
  margin-left: -.04em;
}
.wordmark span { display: inline-block; animation: hop .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.wordmark span:nth-child(1) { color: var(--berry); animation-delay: .05s; }
.wordmark span:nth-child(2) { color: var(--sun);   animation-delay: .12s; }
.wordmark span:nth-child(3) { color: var(--leaf);  animation-delay: .19s; }
.wordmark span:nth-child(4) { color: var(--blue);  animation-delay: .26s; }
.wordmark span:nth-child(5) { color: var(--berry); animation-delay: .33s; }
.wordmark span:nth-child(6) { color: var(--sun);   animation-delay: .40s; }
.wordmark span { -webkit-text-stroke: .035em var(--line); paint-order: stroke fill; text-shadow: .04em .05em 0 var(--shadow); }

.lead {
  margin-top: 28px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.about { margin-top: 16px; max-width: 34em; color: var(--ink-soft); }
.soon {
  margin-top: 28px;
  display: inline-block;
  padding: 10px 18px;
  border: 2.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
  font-weight: 700;
  font-size: 1rem;
  transform: rotate(-1deg);
}

/* ---- Board ---- */
.board { position: relative; justify-self: center; width: 100%; max-width: 440px; }

.sun { position: absolute; top: -62px; right: -58px; width: 128px; z-index: 2; transform: rotate(8deg); }
.sun circle, .sun rect { fill: var(--sun); stroke: var(--line); stroke-width: 3; }
.sun .rays { transform-origin: 60px 60px; animation: spin 40s linear infinite; }

.card {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: 28px;
  box-shadow: 10px 10px 0 var(--shadow);
  padding: 28px 24px 24px;
  transform: rotate(1.5deg);
  animation: drop .8s cubic-bezier(.3, 1.4, .5, 1) .25s both;
}
.day { font-weight: 700; color: var(--berry); font-size: 1rem; }
.card h2 { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.01em; margin-top: 2px; }

.tasks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.task {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 2.5px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s, transform .15s;
}
.task:hover { transform: translate(-1px, -1px); }
.task:active { transform: translate(1px, 1px); }
.task:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.box {
  flex: none;
  width: 30px; height: 30px;
  border: 2.5px solid var(--line);
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--paper);
  transition: background-color .2s;
}
.box::after {
  content: "";
  width: 12px; height: 7px;
  border-left: 3.5px solid #fff; border-bottom: 3.5px solid #fff;
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform .25s cubic-bezier(.3, 1.8, .5, 1);
}
.label { flex: 1; }
.pts { font-family: var(--display); font-weight: 800; color: var(--ink-soft); font-size: 1rem; }

.task[aria-pressed="true"] { background: color-mix(in srgb, var(--leaf) 14%, transparent); }
.task[aria-pressed="true"] .box { background: var(--leaf); }
.task[aria-pressed="true"] .box::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.task[aria-pressed="true"] .label { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.task[aria-pressed="true"] .pts { color: var(--leaf); }

.reward { margin-top: 22px; }
.reward-row { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1rem; }
.reward-score { font-family: var(--display); font-weight: 800; white-space: nowrap; }
.bar {
  margin-top: 8px;
  height: 22px;
  border: 2.5px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--sun) 18%, var(--paper));
}
.fill {
  display: block;
  height: 100%;
  width: var(--progress, 40%);
  background: repeating-linear-gradient(-45deg, var(--sun) 0 12px, #FFB300 12px 24px);
  border-right: 2.5px solid var(--line);
  transition: width .5s cubic-bezier(.3, 1.3, .5, 1);
}
.hint { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); min-height: 1.5em; }

.stamp {
  position: absolute;
  right: -18px; bottom: 74px;
  padding: 10px 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  background: var(--berry);
  border: 3px solid var(--line);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--shadow);
  transform: rotate(-12deg) scale(0);
  opacity: 0;
  pointer-events: none;
}
.card.done .stamp { animation: stamp .5s cubic-bezier(.3, 1.8, .5, 1) forwards; }

/* ---- Footer ---- */
.foot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.foot a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.foot a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---- Motion ---- */
@keyframes hop { from { transform: translateY(.35em) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(40px) rotate(6deg); opacity: 0; } to { transform: rotate(1.5deg); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes stamp { to { transform: rotate(-12deg) scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Small screens ---- */
@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; gap: 64px; padding: 40px 16px 24px; }
  .intro { text-align: left; }
  .board { max-width: 420px; }
  .sun { width: 96px; top: -48px; right: -14px; }
  .card { box-shadow: 7px 7px 0 var(--shadow); transform: rotate(1deg); }
  .stamp { right: -6px; }
  .foot { padding: 16px 16px 24px; flex-direction: column; gap: 4px; }
}
