@font-face {
  font-family: "Baloo 2";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/Baloo2-ExtraBold.woff2") format("woff2");
}
@font-face {
  font-family: "GenSen Rounded";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/GenSenRounded-Heavy-UI.woff2") format("woff2");
}
:root {
  --paper: #fff5df;
  --card: #fffdf7;
  --ink: #29231d;
  --muted: #716657;
  --orange: #ff5b2a;
  --green: #bfe6a6;
  --pink: #ffbad0;
  --yellow: #ffdc57;
  --line: #968a78;
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
h1,
h2,
h3,
.brand,
.entry-day strong,
.empty-mark,
.calendar-body > strong,
.calendar-body b {
  font-family:
    "Baloo 2", "GenSen Rounded", "Arial Rounded MT Bold", system-ui, sans-serif !important;
  font-weight: 800 !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button {
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.page {
  max-width: 1248px;
  margin: auto;
  padding: 24px 0 40px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
}
.brand-dot {
  color: var(--orange);
}
.avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--green);
  font-size: 45px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  transform: rotate(-9deg);
}
.avatar-dot {
  position: absolute;
  bottom: 2px;
  right: 0;
  width: 19px;
  height: 19px;
  background: var(--orange);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
nav {
  display: flex;
  gap: 22px;
}
.icon-button {
  width: 46px;
  height: 46px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding: 10px;
  box-shadow: 1px 2px 0 var(--ink);
  flex-shrink: 0;
}
.icon-button:hover {
  transform: translateY(-3px);
}
svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 232px;
  gap: 80px;
  align-items: center;
  margin: 66px 0 78px;
  min-height: 330px;
}
.hero-copy h1 {
  font-size: 54px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0 0 30px;
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--orange);
  white-space: nowrap;
}
.intro {
  font-size: 23px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 23px;
  max-width: 860px;
  text-wrap: pretty;
}

.cheer-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin-top: 28px;
}
.cheer-control {
  position: relative;
  isolation: isolate;
}
.cheer-button {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 53px;
  padding: 9px 18px;
  border: 3px solid #29231d;
  border-radius: 15px;
  background: var(--yellow);
  color: #29231d;
  box-shadow: 4px 5px 0 #29231d;
  font-size: 18px;
  font-weight: 800;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.cheer-button:hover {
  background: #ffe67d;
}
.cheer-button:active {
  transform: translate(3px, 4px);
  box-shadow: 1px 1px 0 #29231d;
}
.cheer-icon {
  font-size: 25px;
  line-height: 1;
}
.cheer-taps {
  min-width: 1.5ch;
  font-family: "Baloo 2", monospace;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cheer-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.cheer-particle {
  position: absolute;
  top: -8px;
  font-size: 36px;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.cheer-sticker {
  color: #29231d;
  background: var(--yellow);
  border: 3px solid #29231d;
  border-radius: 11px;
  box-shadow: 3px 3px 0 #29231d;
  padding: 7px 10px;
  font:
    800 25px/1 "Baloo 2",
    monospace;
}

@media (max-width: 640px) {
  .cheer-row {
    margin-top: 25px;
    gap: 14px;
  }
  .cheer-button {
    padding: 9px 14px;
    font-size: 16px;
  }
}

.calendar {
  height: 326px;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 11px 11px 5px 5px;
  position: relative;
  transform: rotate(2deg);
  box-shadow:
    0 7px 0 -2px var(--card),
    0 10px 0 -2px var(--ink),
    3px 15px 0 -1px var(--ink);
}
.ring {
  position: absolute;
  top: -19px;
  width: 17px;
  height: 37px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  background: #e4dccb;
  box-shadow: inset -4px 0 #aea493;
  z-index: 1;
}
.ring:after {
  content: "";
  position: absolute;
  width: 25px;
  height: 9px;
  bottom: -7px;
  left: -7px;
  background: var(--ink);
  border-radius: 50%;
  z-index: -1;
}
.ring-one {
  left: 59px;
}
.ring-two {
  right: 57px;
}
.calendar-top {
  height: 70px;
  border-bottom: 3px dashed var(--ink);
  border-radius: 8px 8px 0 0;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font: 700 14px/1.3 monospace;
  letter-spacing: 2px;
  padding-top: 10px;
}
.calendar-body {
  text-align: center;
  padding: 17px 17px 15px;
}
.calendar-body > span {
  font-size: 15px;
  letter-spacing: 5px;
}
.calendar-body > strong {
  display: block;
  font-size: 82px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -4px;
}
.calendar-divider {
  border-bottom: 1px dashed var(--line);
  margin: 12px 0 15px;
}
.calendar-body b {
  font-size: 28px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.calendar-body small {
  display: block;
  margin-top: 6px;
  font: 12px monospace;
  letter-spacing: 2px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
h2 {
  font-size: 44px;
  font-weight: 900;
  margin: 0;
  letter-spacing: -1.5px;
}
.legend {
  display: flex;
  gap: 24px;
  font-size: 16px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  box-shadow: 1px 1px 0 var(--ink);
  flex-shrink: 0;
}
.green {
  background: var(--green);
}
.orange {
  background: var(--orange);
}
.days {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 7px;
}
.day {
  padding: 0;
  aspect-ratio: 1;
  font: 700 14px monospace;
  border: 2px dashed var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  position: relative;
}
.day::before {
  content: "";
  position: absolute;
  inset: -5px -2px;
}
.day:hover {
  background: var(--card);
  transform: translateY(-3px);
}
.day.done {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 var(--ink);
}
.day.treat {
  background: var(--orange);
  color: #fff;
}
.day.current {
  border-color: var(--ink);
  border-style: solid;
  background: var(--yellow);
  color: var(--ink);
}
.day.selected {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.journal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  margin: 14px 0 10px;
  font-size: 13px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px 0;
}
.entry {
  border: 3px solid var(--ink);
  background: var(--card);
  border-radius: 19px;
  box-shadow: 4px 5px 0 var(--ink);
  margin-bottom: 23px;
  scroll-margin-top: 30px;
  overflow: hidden;
}
.entry summary {
  display: grid;
  grid-template-columns: 180px 1fr auto 46px;
  gap: 24px;
  align-items: center;
  padding: 27px 34px;
  cursor: pointer;
  list-style: none;
}
.entry summary::-webkit-details-marker {
  display: none;
}
.entry-day strong {
  display: block;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 900;
}
.entry-day time {
  display: block;
  color: var(--muted);
  font: 700 16px monospace;
  margin-top: 9px;
}
.entry-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.5;
}
.chevron {
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.chevron svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
}
.entry[open] .chevron {
  transform: rotate(180deg);
}
.vote-preview {
  font: 700 14px monospace;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.vote-bar {
  display: flex;
  width: 66px;
  height: 8px;
  background: var(--pink);
  border: 1px solid var(--ink);
  border-radius: 9px;
  overflow: hidden;
}
.vote-bar i {
  height: 100%;
  background: var(--green);
}
.entry[open] summary {
  align-items: start;
  padding-bottom: 0;
}
.entry[open] .entry-title,
.entry[open] .vote-preview {
  visibility: hidden;
}
.entry-content {
  margin: -55px 95px 30px 238px;
  position: relative;
}
.badge {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--green);
  font-size: 14px;
  line-height: 1.6;
  padding: 1px 11px;
  margin-bottom: 14px;
}
.badge.treat {
  background: var(--orange);
  color: #fff;
}
.entry-content h3 {
  font-size: 29px;
  line-height: 1.5;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.entry-body {
  font-size: 19px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entry-photo {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  object-position: left;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
  background: var(--paper);
}
.friend {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 18px;
}
.reactions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.reaction {
  border: 2px solid var(--line);
  background: var(--card);
  border-radius: 30px;
  padding: 10px 17px;
  min-height: 48px;
  font: 700 18px monospace;
  display: flex;
  gap: 12px;
  align-items: center;
}
.reaction.active {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.reaction.like.active {
  background: var(--green);
}
.reaction.dislike.active {
  background: var(--pink);
}
.reaction:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.empty {
  border: 3px solid var(--ink);
  border-radius: 19px;
  background: var(--card);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 36px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
}
.empty-mark {
  font-size: 32px;
  font-weight: 900;
}
.empty-date {
  font: 700 16px monospace;
  color: var(--muted);
  display: block;
  margin-top: 10px;
}
.empty h3 {
  font-size: 29px;
  margin: 0 0 12px;
  line-height: 1.5;
}
.empty p {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0;
}
.empty .badge {
  background: var(--yellow);
}

.loading {
  padding: 60px;
  text-align: center;
  color: var(--muted);
}
dialog {
  width: min(600px, calc(100% - 32px));
  max-height: 90dvh;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 6px 7px 0 var(--ink);
  padding: 36px;
  overflow: auto;
}
dialog::backdrop {
  background: #29231d77;
  backdrop-filter: blur(4px);
}
dialog h2 {
  font-size: 28px;
  margin: 0 48px 14px 0;
}
dialog p {
  line-height: 1.8;
  color: var(--muted);
}
.close {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 26px;
  border-width: 2px;
  box-shadow: none;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 7px;
}
input,
textarea,
select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  background: var(--paper);
  font-size: 16px;
}

.help {
  font-size: 13px !important;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translate(-50%, 15px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 3px 3px 0 #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 10;
  max-width: calc(100% - 32px);
  width: max-content;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.rules-list {
  padding-left: 22px;
  color: var(--muted);
  line-height: 2;
}

body.dark {
  --paper: #25231e;
  --card: #302e27;
  --ink: #fff0d5;
  --muted: #c8bda8;
  --line: #9a8e7b;
  --orange: #ff8054;
  --green: #bfe6a6;
  --pink: #ffbad0;
  --yellow: #f1cd50;
  color-scheme: dark;
}
body.dark .calendar-top,
body.dark .avatar,
body.dark .badge,
body.dark .day.done,
body.dark .day.current,
body.dark .reaction.active {
  color: #29231d;
}
body.dark .calendar-top {
  border-bottom-color: #29231d;
}
body.dark .badge.treat {
  color: #29231d;
}
@media (min-width: 1450px) {
  .page {
    max-width: 1248px;
  }
}
@media (max-width: 1340px) {
  .page {
    margin: 0 6.7%;
  }
  .hero {
    gap: 55px;
  }
  .hero-copy h1 {
    font-size: 48px;
  }
  .intro {
    font-size: 21px;
  }
  .days {
    gap: 6px;
  }
  .entry summary {
    grid-template-columns: 160px 1fr auto 44px;
  }
  .entry-content {
    margin-left: 218px;
  }
  .empty {
    grid-template-columns: 160px 1fr;
  }
}
@media (max-width: 1000px) {
  .brand {
    font-size: 36px;
  }
  .avatar {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  .hero {
    gap: 35px;
    grid-template-columns: 1fr 200px;
    margin: 60px 0;
  }
  .hero-copy h1 {
    font-size: 39px;
  }
  .intro {
    font-size: 18px;
  }
  .calendar {
    height: 305px;
  }
  .calendar-body > strong {
    font-size: 70px;
  }
  .calendar-top {
    font-size: 12px;
  }
  .calendar-body small {
    letter-spacing: 1px;
  }
  .ring-one {
    left: 40px;
  }
  .ring-two {
    right: 40px;
  }
  .days {
    grid-template-columns: repeat(14, 1fr);
    gap: 11px;
  }
  .day {
    aspect-ratio: auto;
    height: 38px;
  }
  .entry summary {
    grid-template-columns: 130px 1fr 40px;
    gap: 18px;
    padding: 24px;
  }
  .vote-preview {
    display: none;
  }
  .entry-content {
    margin-left: 172px;
    margin-right: 75px;
  }
  .entry-day strong {
    font-size: 27px;
  }
  .entry-day time {
    font-size: 13px;
  }
  .entry-title {
    font-size: 19px;
  }
  .entry-content h3 {
    font-size: 24px;
  }
  .entry-body {
    font-size: 17px;
  }
  .empty {
    grid-template-columns: 130px 1fr;
    padding: 28px;
    gap: 18px;
  }
  .empty h3 {
    font-size: 25px;
  }
  .empty p {
    font-size: 17px;
  }
  .empty-mark {
    font-size: 27px;
  }
}
@media (max-width: 640px) {
  .page {
    margin: 0;
    padding: 23px 22px calc(48px + env(safe-area-inset-bottom));
  }
  .brand {
    font-size: 27px;
    gap: 11px;
    letter-spacing: -0.8px;
  }
  .avatar {
    width: 44px;
    height: 44px;
    font-size: 28px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
  }
  .avatar-dot {
    width: 13px;
    height: 13px;
  }
  .icon-button {
    width: 36px;
    height: 36px;
    padding: 8px;
    border-width: 2px;
  }
  nav {
    gap: 10px;
  }
  nav #rules {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 47px 0 45px;
    gap: 40px;
  }
  .hero-copy h1 {
    font-size: 35px;
    letter-spacing: -1.4px;
    margin-bottom: 20px;
    line-height: 1.45;
  }
  .intro {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
  }

  .calendar {
    width: 190px;
    height: 270px;
    align-self: center;
    transform: rotate(3deg);
  }
  .calendar-top {
    height: 56px;
  }
  .calendar-body {
    padding: 14px;
  }
  .calendar-body > span {
    font-size: 13px;
  }
  .calendar-body > strong {
    font-size: 66px;
  }
  .calendar-divider {
    margin: 8px 0 12px;
  }
  .calendar-body b {
    font-size: 25px;
  }
  .calendar-body small {
    font-size: 11px;
  }
  h2 {
    font-size: 30px;
    letter-spacing: -1px;
  }
  .section-heading {
    align-items: end;
    margin-bottom: 24px;
    gap: 12px;
  }
  .legend {
    gap: 12px;
    font-size: 12px;
  }
  .legend span {
    gap: 6px;
  }
  .swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
  }
  .days {
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
  }
  .day {
    height: 35px;
    font-size: 13px;
  }
  .journal-toolbar {
    margin: 14px 0 12px;
    font-size: 12px;
    min-height: 28px;
  }
  .entry {
    border-width: 2px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 3px 4px 0 var(--ink);
  }
  .entry summary {
    grid-template-columns: 1fr 35px;
    gap: 13px;
    padding: 20px;
  }
  .entry-day {
    grid-column: 1;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .entry-day strong {
    font-size: 24px;
  }
  .entry-day time {
    font-size: 12px;
    margin: 0;
  }
  .entry-title {
    grid-column: 1;
    font-size: 18px;
    gap: 8px;
  }
  .chevron {
    grid-column: 2;
    grid-row: 1;
    width: 34px;
    height: 34px;
  }
  .chevron svg {
    width: 16px;
    height: 16px;
  }
  .entry[open] .entry-title {
    display: none;
  }
  .entry-content {
    margin: 18px 20px 24px;
  }
  .entry-content h3 {
    font-size: 23px;
    letter-spacing: -0.5px;
  }
  .entry-body {
    font-size: 16px;
    line-height: 1.85;
  }
  .badge {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .reaction {
    font-size: 16px;
    padding: 8px 14px;
    min-height: 44px;
  }
  .empty {
    display: block;
    padding: 24px 22px;
    border-width: 2px;
    box-shadow: 3px 4px 0 var(--ink);
    border-radius: 14px;
  }
  .empty-mark {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 24px;
    margin-bottom: 25px;
  }
  .empty-date {
    font-size: 12px;
    margin: 0;
  }
  .empty h3 {
    font-size: 24px;
  }
  .empty p {
    font-size: 16px;
  }

  dialog {
    padding: 28px 22px;
  }
  dialog h2 {
    font-size: 25px;
  }

  .close {
    right: 14px;
    top: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
