:root {
  --ink: #1f2225;
  --muted: #6b7280;
  --faint: #9ca3af;
  --coral: #e8806a;
  --paper: #f8f7f4;
  --card: #ffffff;
  --butter: #fdf0d2;
  --butter-ink: #c98f1f;
  --peach: #fde7df;
  --peach-ink: #e0705a;
  --lilac: #ece6f6;
  --lilac-ink: #8a73c0;
  --sky: #e2edf8;
  --sky-ink: #5b8fc7;
  --mint: #e4f1e1;
  --mint-ink: #5f9a57;
  --teal: #dcf0ee;
  --teal-ink: #3b9389;
  --shadow: 0 1px 2px rgba(31, 34, 37, 0.04), 0 8px 24px rgba(31, 34, 37, 0.06);
  --on-ink: #fff;
  --wash-middle: #faf9f6;
  --wash-end: #fcfbf9;
  --hairline: rgba(31, 34, 37, 0.07);
  --phone: #1f2225;
  --logo-plate: transparent;
  --logo-pad: 0;
  --sparkle-filter: none;
  --welcome-art: url("/welcome.svg");
  --broken-art: url("/join-broken.svg");
  --roof: #1f2225;
  --card-butter: var(--butter);
  --card-peach: var(--peach);
  --card-lilac: var(--lilac);
  --card-sky: var(--sky);
  color-scheme: light;
}

/* The app's night colours. Dark follows the browser, unless the link says which
   (?theme=), which is how the app matches a theme picked in it. The tints stay
   the same, except on what fills a whole card. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f0ec;
    --muted: #a3a8b0;
    --faint: #71767e;
    --paper: #151618;
    --card: #222427;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.28);
    --on-ink: #151618;
    --wash-middle: #17181a;
    --wash-end: #191a1d;
    --hairline: rgba(255, 255, 255, 0.09);
    --phone: #2b2d31;
    --logo-plate: #f8f7f4;
    --logo-pad: 5px;
    --sparkle-filter: invert(1);
    --welcome-art: url("/welcome-dark.svg");
    --broken-art: url("/join-broken-dark.svg");
    --roof: #e8806a;
    --card-butter: #fdf0d233;
    --card-peach: #fde7df33;
    --card-lilac: #ece6f633;
    --card-sky: #e2edf833;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #f2f0ec;
  --muted: #a3a8b0;
  --faint: #71767e;
  --paper: #151618;
  --card: #222427;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.28);
  --on-ink: #151618;
  --wash-middle: #17181a;
  --wash-end: #191a1d;
  --hairline: rgba(255, 255, 255, 0.09);
  --phone: #2b2d31;
  --logo-plate: #f8f7f4;
  --logo-pad: 5px;
  --sparkle-filter: invert(1);
  --welcome-art: url("/welcome-dark.svg");
  --broken-art: url("/join-broken-dark.svg");
  --roof: #e8806a;
  --card-butter: #fdf0d233;
  --card-peach: #fde7df33;
  --card-lilac: #ece6f633;
  --card-sky: #e2edf833;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  min-height: 100dvh;
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--wash-middle) 50%,
    var(--wash-end) 100%
  );
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.muted {
  color: var(--muted);
}

.button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button.quiet {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.button:active {
  opacity: 0.7;
}

.face {
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--peach);
  box-shadow: 0 1px 4px rgba(31, 34, 37, 0.1);
}

/* An invitation */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.joining .switches,
.reading .switches {
  margin-left: auto;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 8px 0 44px;
}

.invite {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 410px;
  padding: 26px 22px 24px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.invite h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bubble {
  color: #1f2225;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 16px 5px 5px;
  border-radius: 999px;
  background: var(--peach);
  font-size: 15px;
  font-weight: 600;
}

.bubble .face {
  width: 40px;
  height: 40px;
}

.home {
  position: relative;
  width: 272px;
  height: 200px;
  margin: 4px 0 2px;
  overflow: visible;
}

.home::before {
  position: absolute;
  bottom: 0;
  left: 36px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--peach);
  content: "";
}

.home .roof {
  position: absolute;
  top: 8px;
  left: 0;
  width: 100%;
}

.home .faces {
  position: absolute;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  justify-content: center;
}

.home .faces .face {
  width: 88px;
  height: 88px;
  margin: 0 -8px;
}

.home .faces .face:nth-child(2) {
  z-index: 1;
  transform: translateY(-10px);
}

.home .heart {
  position: absolute;
  top: -4px;
  left: 124px;
  width: 24px;
}

.home .sparkle {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 16px;
}

.waiting {
  color: var(--muted);
  font-size: 14px;
}

.names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -6px 0 6px;
  padding: 0;
  list-style: none;
}

.names li {
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.broken {
  width: 100%;
  max-width: 260px;
  height: auto;
}

.hint {
  color: var(--faint);
  font-size: 13px;
}

/* The landing page */
.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 19px;
  font-weight: 800;
}

.top img {
  padding: var(--logo-pad);
  border-radius: 11px;
  background: var(--logo-plate);
}

img[src="/sparkle.svg"] {
  filter: var(--sparkle-filter);
}

/* The night's versions, with the colours the app draws them in. */
.hero .art {
  content: var(--welcome-art);
}

.broken {
  content: var(--broken-art);
}

@media (max-width: 420px) {
  .top .soon {
    display: none;
  }

  .top .switches {
    margin-left: auto;
  }
}

.top .soon {
  margin-left: auto;
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.switches {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: var(--muted);
}

.theme svg {
  width: 17px;
  height: 17px;
}

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.lang a {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--on-ink);
}

.hero {
  position: relative;
  padding: 12px 0 28px;
  text-align: center;
}

.hero .art {
  display: block;
  width: min(380px, 84vw);
  height: auto;
  margin: 0 auto;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(26px, 7.4vw, 54px);
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  max-width: 480px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  white-space: pre-line;
}

.cta {
  display: inline-block;
  margin-top: 26px;
  padding: 15px 34px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 17px;
  font-weight: 600;
}

.decor {
  position: absolute;
  color: var(--coral);
  animation: float 5s ease-in-out infinite;
}

@media (max-width: 600px) {
  .decor.low {
    display: none;
  }

  .hero p {
    font-size: 15px;
  }
}

@keyframes float {
  50% {
    transform: translateY(-10px) rotate(var(--tilt, 6deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .decor {
    animation: none;
  }
}

/* The app, as it looks */
/* Only the top of the phone: it fades out where the page goes on. */
.showcase {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 664px;
  margin-bottom: 16px;
  padding-top: 28px;
  overflow: hidden;
  mask-image: linear-gradient(#000 92%, transparent);
}

.phone {
  width: 330px;
  padding: 10px;
  border-radius: 50px;
  background: var(--phone);
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 46px 14px 18px;
  overflow: hidden;
  border-radius: 40px;
  background: var(--paper);
}

.place {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
}

.chev {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.strip {
  display: flex;
  gap: 14px;
}

.strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
}

.strip .face {
  width: 58px;
  height: 58px;
}

.strip .on {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

.strip .add {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1.5px dashed var(--faint);
  border-radius: 50%;
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
}

.strip .off {
  color: var(--muted);
  font-weight: 400;
}

.card {
  padding: 14px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.pet {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.pet .face {
  width: 54px;
  height: 54px;
}

.pet b {
  display: block;
  font-size: 19px;
}

.pet span {
  color: var(--muted);
  font-size: 13px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 10px;
  color: var(--faint);
  font-size: 12px;
}

.facts b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 2px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
}

.tinted {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.butter {
  background: var(--butter);
  color: var(--butter-ink);
}

.peach {
  background: var(--peach);
  color: var(--peach-ink);
}

.lilac {
  background: var(--lilac);
  color: var(--lilac-ink);
}

.sky {
  background: var(--sky);
  color: var(--sky-ink);
}

.mint {
  background: var(--mint);
  color: var(--mint-ink);
}

.teal {
  background: var(--teal);
  color: var(--teal-ink);
}

.log {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.log span {
  flex: 1;
}

.log time {
  color: var(--faint);
  font-size: 12px;
  font-weight: 400;
}

.log .tinted {
  width: 28px;
  height: 28px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.shots img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 8%;
}

/* Who logged it, under a card, as in the app. */
.by {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.by .face {
  width: 20px;
  height: 20px;
}

/* A section's small heading on the phone. */
.label {
  margin-bottom: -4px;
  padding-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Important days: the app's cards, each with its icon rising behind. */
.days {
  display: flex;
  gap: 8px;
}

.day {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  min-width: 0;
  padding: 12px 6px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: center;
}

.day .back {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 152%;
  max-width: none;
  opacity: 0.16;
  transform: translate(-50%, 50%);
}

.day .name,
.day b,
.day .unit,
.day time {
  position: relative;
}

.day .name {
  overflow: hidden;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day b {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.day .unit {
  font-size: 11px;
  opacity: 0.75;
}

.day time {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.phone .days {
  overflow: hidden;
  margin-right: -14px;
}

.phone .day {
  flex: 0 0 92px;
  padding: 10px 6px;
}

.feature .day {
  padding: 16px 8px;
  background: var(--paper);
  box-shadow: none;
}

.feature .day .name {
  font-size: 13px;
}

.feature .day b {
  font-size: 36px;
}

.feature .day .unit,
.feature .day time {
  font-size: 12px;
}

.feature.all {
  grid-column: 1 / -1;
}

/* What it does */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
  padding-bottom: 40px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature .head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature .tinted {
  width: 46px;
  height: 46px;
}

.feature h2 {
  font-size: 22px;
  font-weight: 800;
}

.feature > p {
  margin-top: -8px;
  color: var(--muted);
}

.kinds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.kinds div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
}

.kinds .picked {
  border-color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
}

.chips .picked {
  background: var(--ink);
  color: var(--on-ink);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.numbers div {
  padding: 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 600;
}

.numbers .butter {
  background: var(--card-butter);
}

.numbers .peach {
  background: var(--card-peach);
}

.numbers .lilac {
  background: var(--card-lilac);
}

.numbers .sky {
  background: var(--card-sky);
}

.numbers .kind {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.numbers .kind img {
  width: 32px;
  height: 32px;
}

.numbers b {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 26px;
  font-weight: 800;
}

.numbers small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.people {
  display: flex;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper);
}

.people .face {
  width: 52px;
  height: 52px;
  margin-right: -10px;
}

.people span {
  margin-left: 22px;
  color: var(--muted);
  font-size: 14px;
}

.shots.wide {
  margin-top: 0;
  gap: 8px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 36px;
  color: var(--faint);
  font-size: 13px;
}

.foot-paw {
  width: 16px;
  height: 16px;
  fill: var(--coral);
}

/* The terms and the privacy policy */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0 72px;
  font-size: 16px;
  line-height: 1.75;
}

.legal h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.legal p,
.legal ul {
  margin: 0 0 12px;
  color: var(--ink);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 6px;
}

.legal .effective {
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: inherit;
}
