@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2.woff") format("woff");
  font-weight: 600 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand: #ffc23d;
  --on-brand: #1c1b19;
  --pet: #fff3cf;
  --pet-line: #f2dfa6;
  --on-pet: #1c1b19;
  --link: #2b59c3;
  --ground: #fffcf6;
  --card: #ffffff;
  --text: #1c1b19;
  --muted: #6b665e;
  --line: #efe6d4;
  --line-strong: #e3d7bf;
  --toes: #e2a21f;
  --done-t: #1b6b45;
  --done-f: #dff3e8;
  --due-t: #8a5a00;
  --due-f: #fdf0d5;
  --due-b: #e9c77e;
  --over-t: #a3321f;
  --over-f: #fbe2de;
  --on-over: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: dark;
    --pet: #3a3020;
    --pet-line: #5a4a2c;
    --on-pet: #f4efe6;
    --link: #8aa8f0;
    --ground: #161513;
    --card: #22201c;
    --text: #f4efe6;
    --muted: #a8a196;
    --line: #34312c;
    --line-strong: #3e3a33;
    --toes: #ffc23d;
    --done-t: #7fd6a6;
    --done-f: #173a2a;
    --due-t: #f0be5e;
    --due-f: #3b2c0e;
    --due-b: #6b5222;
    --over-t: #ff9e8a;
    --over-f: #4c1e16;
    --on-over: #1c1b19;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font: 400 1rem/1.5 "Nunito", system-ui, sans-serif;
}

h1,
h2,
p,
ul {
  margin: 0;
}

a {
  color: var(--link);
  font-weight: 700;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

h1:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.top {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text);
  text-decoration: none;
  font: 700 1.25rem/1.3 "Baloo 2", sans-serif;
}

.logo img {
  border-radius: 50%;
}

.logo span span {
  color: var(--toes);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
}

main > section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 0.375rem 1.25rem 1.75rem;
}

.center {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.625rem;
}

.h1 {
  font: 700 1.75rem/2rem "Baloo 2", sans-serif;
}

.lead {
  font-size: 0.9375rem;
  line-height: 1.375rem;
  color: var(--muted);
}

.cap {
  font-weight: 600;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--muted);
}

.label {
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.band {
  position: relative;
  overflow: hidden;
  height: 15.625rem;
  margin: 0 -0.25rem;
  border-radius: 1.75rem;
  background: var(--pet);
  color: var(--on-pet);
  display: flex;
  align-items: center;
  justify-content: center;
}

.band::before,
.band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.band::before {
  right: -70px;
  top: -80px;
  width: 210px;
  height: 210px;
  background: var(--brand);
  opacity: 0.32;
}

.band::after {
  left: -40px;
  bottom: -60px;
  width: 120px;
  height: 120px;
  background: #ffffff;
  opacity: 0.35;
}

.band > * {
  position: relative;
  z-index: 1;
}

.avatars {
  display: flex;
  align-items: center;
}

.avatar {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: none;
  font: 700 1.625rem/1 "Baloo 2", sans-serif;
}

.avatar + .avatar {
  margin-left: -1rem;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.person {
  width: 4rem;
  height: 4rem;
  background: #1c1b19;
  color: #ffc23d;
  border: 3px solid var(--pet);
}

.avatar.pet {
  width: 6rem;
  height: 6rem;
  font-size: 2.5rem;
  background: var(--card);
  color: var(--text);
  border: 3px solid var(--brand);
}

.avatar.pet + .avatar.pet {
  width: 4.5rem;
  height: 4.5rem;
  font-size: 1.875rem;
  background: var(--pet);
  color: var(--on-pet);
  border-color: var(--card);
}

.intro {
  padding: 0.625rem 0.25rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.foot {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.cta,
.cta2,
.del {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: 700 1rem/1.25 "Nunito", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.cta {
  background: var(--brand);
  color: var(--on-brand);
  border: 2px solid #1c1b19;
}

.cta2 {
  min-height: 3rem;
  font-size: 0.9375rem;
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--line-strong);
}

.del {
  background: var(--over-t);
  color: var(--on-over);
  border: 0;
}

.del[aria-busy="true"] {
  cursor: progress;
}

.del[aria-busy="true"] > :not(.spinner) {
  visibility: hidden;
}

.del {
  position: relative;
}

.del .spinner {
  position: absolute;
  border-color: currentColor;
  border-right-color: transparent;
}

.tbtn {
  min-height: 2.75rem;
  padding: 0 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: 700 0.9375rem/1.25 "Nunito", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.tbtn b {
  color: var(--text);
}

.circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pet);
  border: 1.5px solid var(--pet-line);
  color: var(--on-pet);
}

.circle .icon {
  width: 2.75rem;
  height: 2.75rem;
}

.circle.done {
  background: var(--done-f);
  border-color: var(--done-f);
  color: var(--done-t);
}

.qr {
  width: 11rem;
  height: 11rem;
  padding: 0.25rem;
  border-radius: 0.875rem;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
}

.qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.card {
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: 1.125rem;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list li,
.help {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
}

.list li {
  font-size: 0.9375rem;
  line-height: 1.25rem;
}

.list .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.deleted .icon {
  color: var(--over-t);
}

.kept .icon {
  color: var(--done-t);
}

.help {
  gap: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--muted);
}

.help .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.field-label {
  margin-top: 0.375rem;
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--muted);
}

.google {
  width: 100%;
  min-height: 2.75rem;
  display: flex;
  justify-content: center;
}

.banner {
  border-radius: 1rem;
  padding: 0.625rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.125rem;
  background: var(--due-f);
  color: var(--due-t);
  border: 1px solid var(--due-b);
}

.banner .icon {
  width: 1.25rem;
  height: 1.25rem;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid var(--line-strong);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}

.del .spinner {
  width: 1.5rem;
  height: 1.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 3s;
  }
}

.legal {
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
}

.legal nav {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

.grecaptcha-badge {
  visibility: hidden;
}

.doc {
  padding: 0.5rem 1.25rem 2rem;
}

.doc h1 {
  font: 700 1.75rem/2rem "Baloo 2", sans-serif;
  margin-bottom: 0.25rem;
}

.doc h2 {
  font: 700 1.0625rem/1.5rem "Nunito", sans-serif;
  margin: 1.75rem 0 0.5rem;
}

.doc p,
.doc ul,
.doc table {
  margin: 0 0 0.75rem;
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.25rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.doc h1 + p {
  color: var(--muted);
  font-size: 0.875rem;
}

.home .band {
  height: 13rem;
}

.home .band img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  border: 3px solid var(--card);
}

@media (min-width: 48rem) {
  main > section {
    padding-top: 2rem;
  }

  .foot {
    margin-top: 1.5rem;
  }
}
