/*
  Glazzy on the web: glazzyapp.uz.

  THESIS      A page you can use: the first thing on it is a check to tap, because one
              tap is the whole of Glazzy. Not a grid of feature cards.
  OWN-WORLD   The App Store screenshots' sticker sheet: lime with a dot grid, ink
              outlines, hard offset shadows, capsules, sparkles and pen strokes. The
              habits' own tints color what's tapped. Cards are 28px, as in the app.
  STORY       Tap, and a day is checked off. Scroll, and it adds up: goals, reminders
              that go quiet, twelve weeks filling. Then: it's private, and it's free.
  FIRST VIEW  The tag, the headline with "stick" on its sticker, one line, the check to
              tap, and three phones fanned on the section's edge.
  FORM        A long sticker sheet: lime, paper, a band, the ink block, lime again.
              The policy and support pages stay one reading column.

  The colors are the app's own, copied by value. Measured (WCAG): ink on paper 15.5:1,
  secondary 8.5:1, links 6.5:1; in dark mode text 15.5:1, secondary 9.1:1, links 12.6:1;
  ink on lime 12.6:1.

  No script, no font and no image from anywhere else. What moves is CSS, and what's
  tapped is a checkbox or a radio button.
*/

:root {
  color-scheme: light dark;

  --bg: #F5F6EA;
  --band: #ECF1DA;
  --fg: #1C1E0B;
  --fg-2: #45493B;
  --link: #535D14;
  --rule: rgba(28, 30, 11, 0.16);

  /* A sticker: the front page's links and its tag. */
  --sticker: #FFFFFF;
  --sticker-fg: #1C1E0B;
  --sticker-line: #1C1E0B;
  --sticker-shadow: #1C1E0B;

  /* The block that says it in short, and the headline's keyword. */
  --note: #1C1E0B;
  --note-fg: #F5F6EA;
  --note-head: #C8ED0C;
  --note-shadow: #A9CF00;

  /* The front page's ground. */
  --hero-top: #DDF54A;
  --hero: #C8ED0C;
  --hero-end: #A9CF00;
  --hero-fg: #1C1E0B;
  --hero-fg-2: #2E3410;
  --hero-dot: rgba(28, 30, 11, 0.12);
  --key-shadow: #EFFAA6;
  --doodle-fill: #FFFFFF;
  --mark-edge: rgba(28, 30, 11, 0);

  /*
    The habits' tints, and how much of one colors a sticker. Computed from the values
    (WCAG, mixed in OKLab) over the app's twelve colors: on a tinted sticker its text
    11.1:1 at worst and its small text 6.1:1; in dark mode, at 22%, 8.1:1 and 4.7:1.
    At 30% the small text fell to 3.9:1 there.
  */
  --blue: #6C8DFF;
  --violet: #B98CFF;
  --teal: #4ED8D0;
  --tint-mix: 42%;
  --sticker-fg-2: #45493B;

  /* A phone's edge, and the ring drawn around what the keyboard is on. */
  --bezel: #1C1E0B;
  --bezel-edge: rgba(28, 30, 11, 0);
  --focus: #1C1E0B;

  /* The three themes' backdrops: each one's ground and its middle stop. */
  --glz-a: #F5F6EA;
  --glz-b: #E9EECD;
  --ocean-a: #EDF6FF;
  --ocean-b: #DCEDFF;
  --dusk-a: #F6F4FF;
  --dusk-b: #EEE7FF;

  /* What Plus adds, on the brand's lime in both modes. */
  --plus-bg: #C8ED0C;
  --plus-fg: #1B2004;

  /* A phone's width, and the glass counter's start: 3 of 8, as on the screens. */
  --pw: min(17.5rem, 68vw);
  --glasses: 3;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --slap: cubic-bezier(0.2, 1.35, 0.4, 1);

  --font: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --column: 41rem;
  --radius: 28px;

  /*
    Running text follows the text size picked on the iPhone, up to where its longest
    ordinary word ("notifications", 13 letters) still fits the column whole: an eighth
    of the screen's width. A title never drops below the text under it.
  */
  --text: min(1rem, 12.5vw);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1E0B;
    --band: #23260E;
    --fg: #F5F6EA;
    --fg-2: #BCC0AC;
    --link: #C8ED0C;
    --rule: rgba(245, 246, 234, 0.18);

    --sticker: #282F0F;
    --sticker-fg: #F5F6EA;
    --sticker-line: #F5F6EA;
    --sticker-shadow: #C8ED0C;

    --note: #C8ED0C;
    --note-fg: #1B2004;
    --note-head: #1B2004;
    --note-shadow: #F5F6EA;

    --hero-top: #23260E;
    --hero: #1C1E0B;
    --hero-end: #1C1E0B;
    --hero-fg: #F5F6EA;
    --hero-fg-2: #BCC0AC;
    --hero-dot: rgba(200, 237, 12, 0.13);
    --key-shadow: #F5F6EA;
    --doodle-fill: #1C1E0B;
    --mark-edge: rgba(245, 246, 234, 0.26);

    --tint-mix: 22%;
    --sticker-fg-2: #BCC0AC;
    --bezel: #0D0E05;
    --bezel-edge: rgba(245, 246, 234, 0.3);
    --focus: #C8ED0C;

    --glz-a: #1C1E0B;
    --glz-b: #444D15;
    --ocean-a: #101E2B;
    --ocean-b: #254B71;
    --dusk-a: #1F1A2B;
    --dusk-b: #52406F;
  }
}

/* Typed, so the page can count a streak up and fade one theme's backdrop into the next. */
@property --streak {
  syntax: "<integer>";
  inherits: true;
  initial-value: 30;
}

@property --th-a {
  syntax: "<color>";
  inherits: true;
  initial-value: #F5F6EA;
}

@property --th-b {
  syntax: "<color>";
  inherits: true;
  initial-value: #E9EECD;
}

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

html {
  font-family: var(--font);
  font-size: 106.25%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* On an iPhone the text follows the size picked in Settings, as Glazzy's own does. */
@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text);
  line-height: 1.6;
  overflow-wrap: break-word;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
  border-radius: 6px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- The mark and the name ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 44px;
  color: var(--fg);
  font-size: min(1.15rem, 8vw);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 1.95em;
  height: 1.95em;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--mark-edge);
}

/* ---------- Reading pages: the policy and support ---------- */

.top,
.read main,
.foot > div {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding-block: max(14px, env(safe-area-inset-top, 0px)) 8px;
}

/* The links' padding is their tap target; the margin puts their words on the column's edge. */
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  margin-inline: -10px;
}

.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  color: var(--fg-2);
  font-size: min(1rem, 8vw);
  font-weight: 600;
  text-decoration: none;
}

.top nav a:hover {
  color: var(--fg);
  text-decoration: underline;
}

.top nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 0.14em;
  text-decoration-color: var(--link);
}

.read main {
  padding-block: 28px 4rem;
}

.read h1 {
  margin: 0;
  font-size: max(1.12 * var(--text), min(2.9rem, 13vw));
  font-weight: 850;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.meta {
  margin: 0.7em 0 0;
  color: var(--fg-2);
  font-size: min(0.94rem, 9vw);
}

.lede {
  margin: 1.3em 0 0;
  font-size: max(var(--text), min(1.12rem, 6vw));
  line-height: 1.5;
}

.read h2 {
  margin: 2.1em 0 0;
  font-size: max(var(--text), min(1.24rem, 8vw));
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.read p {
  max-width: 68ch;
  margin: 0.55em 0 0;
}

.read p + p {
  margin-top: 0.9em;
}

.read strong {
  font-weight: 750;
}

/* The policy in two sentences, on the screenshots' ink sticker. */
.short {
  margin: 32px 0 0;
  padding: min(1.35rem, 6vw) min(1.5rem, 6.5vw) min(1.5rem, 6.5vw);
  border-radius: var(--radius);
  background: var(--note);
  color: var(--note-fg);
  box-shadow: 6px 6px 0 var(--note-shadow);
}

.read .short h2 {
  margin: 0;
  color: var(--note-head);
  font-size: min(0.84rem, 6.4vw);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.read .short p {
  margin-top: 0.3em;
  font-size: max(var(--text), min(1.3rem, 7.4vw));
  font-weight: 650;
  line-height: 1.34;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.short + .lede {
  margin-top: 40px;
}

/* An address someone copies, and a path through the app: never off the screen's edge. */
.mail,
.path,
.site {
  overflow-wrap: anywhere;
}

.path {
  font-weight: 650;
}

.read .also {
  margin-top: 2.8em;
  padding-top: 1.3em;
  border-top: 1px solid var(--rule);
  color: var(--fg-2);
}

.foot {
  background: var(--band);
  color: var(--fg-2);
  font-size: min(0.94rem, 9vw);
}

.foot > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
  padding-block: 16px max(16px, env(safe-area-inset-bottom, 0px));
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg-2);
}

.foot a:hover {
  color: var(--fg);
}

/* ---------- The front page: a sticker sheet you can use ---------- */

/*
  Nothing here needs a script. What's tapped is a checkbox or a radio button, and the
  page reads their state: a count of what's checked, a ring's fill, a reminder gone
  quiet. Every section is whole and still before anything moves, so a browser that
  can't tie an animation to scrolling, and Reduce Motion, both show the finished page.
*/

.home {
  background: var(--bg);
}

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* The set's lime, with its dot grid. In dark mode, its ink. */
.lime {
  background-color: var(--hero);
  background-image:
    radial-gradient(circle, var(--hero-dot) 1.3px, transparent 1.7px),
    linear-gradient(180deg, var(--hero-top) 0%, var(--hero) 46%, var(--hero-end) 100%);
  background-size: 26px 26px, 100% 100%;
  color: var(--hero-fg);
}

.opener {
  overflow: clip;
}

.home .top {
  max-width: calc(72rem + 2 * var(--gutter));
  padding-top: max(20px, env(safe-area-inset-top, 0px));
}

.home .brand {
  color: var(--hero-fg);
  font-size: min(1.3rem, 8.4vw);
}

.home .top nav a {
  color: var(--hero-fg-2);
}

.home .top nav a:hover {
  color: var(--hero-fg);
}

.home :focus-visible {
  outline-color: var(--focus);
}

/* ---------- A phone, with one of Glazzy's real screens in it ---------- */

.phone {
  position: relative;
  flex: none;
  width: var(--pw);
  margin: 0;
  padding: calc(var(--pw) * 0.03);
  border-radius: calc(var(--pw) * 0.165);
  background: var(--bezel);
  box-shadow: 0 0 0 1.5px var(--bezel-edge), 8px 8px 0 var(--sticker-shadow);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--pw) * 0.136);
}

.phone::before {
  content: "";
  position: absolute;
  top: calc(var(--pw) * 0.058);
  left: 50%;
  width: 29%;
  height: calc(var(--pw) * 0.078);
  border-radius: 999px;
  background: #000;
  translate: -50% 0;
}

/* ---------- The first screen ---------- */

.hero {
  display: grid;
  gap: clamp(2.2rem, 6vw, 3.5rem);
  align-items: center;
  padding-top: clamp(1.4rem, 4vw, 3rem);
  text-align: center;
}

.hero > * {
  min-width: 0;
}

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.34em 1.05em;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 3px 3px 0 var(--sticker-shadow);
  font-size: min(0.8rem, 4.6vw);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  width: fit-content;
  margin: 0.44em auto 0;
  font-size: min(12.6vw, 5.75rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

.key {
  display: inline-block;
  padding: 0 0.16em 0.07em;
  border-radius: 0.2em;
  background: var(--note);
  color: var(--note-head);
  box-shadow: 0.07em 0.07em 0 var(--key-shadow);
  transform: rotate(-2.5deg);
  transition: transform 0.4s var(--slap), box-shadow 0.4s var(--slap);
}

/* The first tap presses the headline's sticker down: it sticks. */
body:has(#tap:checked) .hero .key {
  transform: rotate(0deg) translate(0.05em, 0.05em);
  box-shadow: 0.02em 0.02em 0 var(--key-shadow);
}

.hero .say {
  margin: 1em 0 0;
  font-size: min(1.5rem, 6.2vw);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero .plain {
  max-width: 17em;
  margin: 0.7em auto 0;
  color: var(--hero-fg-2);
  font-size: min(1rem, 6.2vw);
  font-weight: 550;
  line-height: 1.45;
  text-wrap: balance;
}

.first {
  position: relative;
  display: inline-block;
  margin-top: 30px;
}

/* One tap: the whole of Glazzy, on the page's first screen. */
.try {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px 24px 8px 9px;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 5px 5px 0 var(--sticker-shadow);
  font-size: min(1.1rem, 5.2vw);
  font-weight: 850;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.14s var(--ease),
    box-shadow 0.14s var(--ease),
    background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.try:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--sticker-shadow);
}

.try:active {
  transform: translate(5px, 5px);
  box-shadow: 0 0 0 var(--sticker-shadow);
}

.try input,
.row input,
.pick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.try:has(input:focus-visible),
.row:has(input:focus-visible),
.pick:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.try-ring,
.tick {
  display: grid;
  flex: none;
  place-items: center;
  border: 2.5px solid var(--sticker-line);
  border-radius: 50%;
  background: var(--sticker);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.try-ring {
  width: 42px;
  height: 42px;
}

.try-ring svg,
.tick svg {
  width: 62%;
  fill: none;
  stroke: var(--note);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.3s 0.06s var(--ease);
}

.try-on {
  display: none;
}

.try:has(input:checked) {
  background: var(--note);
  color: var(--note-head);
}

.try input:checked ~ .try-ring,
.row input:checked ~ .tick {
  border-color: var(--note-head);
  background: var(--note-head);
}

.try input:checked ~ .try-ring svg,
.row input:checked ~ .tick svg {
  stroke-dashoffset: 0;
}

.try input:checked ~ .try-off {
  display: none;
}

.try input:checked ~ .try-on {
  display: inline;
}

/* Six sparkles thrown from the check as it lands. */
.burst {
  position: absolute;
  top: 50%;
  left: 31px;
  width: 0;
  height: 0;
  pointer-events: none;
}

.burst i {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 14px;
  height: 14px;
  background: var(--hero-fg);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  opacity: 0;
}

.burst i:nth-child(1) { --a: -70deg; }
.burst i:nth-child(2) { --a: -25deg; }
.burst i:nth-child(3) { --a: 20deg; }
.burst i:nth-child(4) { --a: 160deg; }
.burst i:nth-child(5) { --a: 205deg; }
.burst i:nth-child(6) { --a: 250deg; }

.arrow {
  position: absolute;
  top: -40px;
  right: -22px;
  width: 54px;
  fill: none;
  stroke: var(--hero-fg);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 0.3s var(--ease);
}

.first:has(input:checked) .arrow {
  opacity: 0;
}

.soon {
  display: flex;
  align-items: center;
  gap: 0.6em;
  width: fit-content;
  margin: 26px auto 0;
  padding: 0.5em 1.15em;
  border-radius: 999px;
  background: var(--note);
  color: var(--note-fg);
  font-size: min(0.92rem, 5vw);
  font-weight: 700;
}

.soon-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--note-head);
}

/* Three phones, fanned: the App Store set's first panel. They stand on the section's edge. */
.fan {
  --pw: clamp(10.5rem, 42vw, 16rem);
  position: relative;
  display: grid;
  justify-items: center;
  max-height: calc(var(--pw) * 1.5);
}

.fan .phone {
  grid-area: 1 / 1;
}

.fan .left {
  transform: translate(-62%, 7%) rotate(-9deg) scale(0.88);
}

.fan .right {
  transform: translate(62%, 7%) rotate(9deg) scale(0.88);
}

.fan .mid {
  z-index: 2;
}

.chip {
  position: absolute;
  z-index: 3;
  margin: 0;
  padding: 0.42em 1em;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 4px 4px 0 var(--sticker-shadow);
  font-size: min(1rem, 4.6vw);
  font-weight: 850;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.chip.ink {
  border-color: var(--note);
  background: var(--note);
  color: var(--note-head);
  box-shadow: 4px 4px 0 var(--key-shadow);
}

.fan .c1 {
  top: 34%;
  left: max(0%, 50% - var(--pw) * 1.12);
  rotate: -5deg;
}

.fan .c2 {
  top: 22%;
  right: max(0%, 50% - var(--pw) * 1.08);
  rotate: 4deg;
}

.fan .c3 {
  top: 62%;
  left: max(1%, 50% - var(--pw) * 1.02);
  rotate: 3deg;
}

/* The set's doodles: two sparkles by the headline and a pen stroke at the page's end. */
.spark {
  position: absolute;
  width: 0.42em;
  height: 0.42em;
  fill: var(--doodle-fill);
  stroke: var(--hero-fg);
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.spark.one {
  top: -0.2em;
  right: -3%;
}

.spark.two {
  top: 0.52em;
  left: -6%;
  width: 0.28em;
  height: 0.28em;
}

@media (min-width: 60rem) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    text-align: left;
  }

  .hero h1 {
    font-size: clamp(3rem, 5.6vw, 5.4rem);
  }

  .hero h1,
  .hero .plain,
  .hero .soon {
    margin-inline: 0;
  }

  .hero-words {
    padding-bottom: clamp(3rem, 6vw, 5rem);
  }

  .fan {
    --pw: clamp(12.5rem, 20vw, 17.5rem);
    align-self: end;
    max-height: calc(var(--pw) * 1.8);
  }
}

/* ---------- The tour ---------- */

.tour {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.tour.band {
  background: var(--band);
}

.tour > .wrap {
  display: grid;
  gap: clamp(2.4rem, 7vw, 5rem);
  align-items: center;
}

.tour > .wrap > * {
  min-width: 0;
}

.show {
  display: grid;
  justify-items: center;
}

@media (min-width: 56rem) {
  .tour > .wrap {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .tour.flip > .wrap {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .tour.flip .show {
    order: -1;
  }
}

.home h2 {
  margin: 0;
  font-size: max(1.2 * var(--text), min(3.3rem, 9.4vw));
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.home h3 {
  margin: 0;
  font-size: max(1.1 * var(--text), min(1.7rem, 7.4vw));
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 34em;
  margin: 1em 0 0;
  font-size: max(var(--text), min(1.15rem, 5.6vw));
  line-height: 1.5;
}

/* What Glazzy does, in the App Store page's own sentences, each by an ink check. */
.points {
  display: grid;
  gap: 0.8em;
  max-width: 34em;
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
}

.points li {
  position: relative;
  padding-left: 1.95em;
}

.points li::before {
  content: "";
  position: absolute;
  top: 0.26em;
  left: 0;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--note);
}

.points li::after {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 0.4em;
  width: 0.3em;
  height: 0.52em;
  border: solid var(--note-head);
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(42deg);
}

/* "Try it", written on the tag's sticker and stuck on a little crooked. */
.tryit {
  margin: 0 0 14px;
  padding: 0.3em 0.95em;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 3px 3px 0 var(--sticker-shadow);
  font-size: min(0.86rem, 4.8vw);
  font-weight: 800;
  rotate: -2deg;
}

.rows,
.glass,
.picks {
  min-width: 0;
  max-width: 26rem;
  margin: 2rem 0 0;
  padding: 0;
  border: 0;
}

/* A habit's row, as Glazzy draws one, on the stickers' outline. */
.rows {
  display: grid;
  gap: 13px;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: center;
  min-height: 62px;
  padding: 9px 13px 9px 22px;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--tint) var(--tint-mix), var(--sticker));
  color: var(--sticker-fg);
  box-shadow: 4px 4px 0 var(--sticker-shadow);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease);
}

.row:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--sticker-shadow);
}

.row:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--sticker-shadow);
}

.row-name {
  font-weight: 800;
  letter-spacing: -0.01em;
}

.row-meta {
  grid-column: 1;
  color: var(--sticker-fg-2);
  font-size: min(0.88rem, 5vw);
}

.tick {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 36px;
  height: 36px;
}

/* How many are checked: counted by the page itself, from the boxes. */
.rows {
  counter-reset: done;
}

.row input:checked {
  counter-increment: done;
}

.tally {
  margin: 4px 0 0;
  color: var(--fg-2);
  font-size: min(0.95rem, 5.2vw);
  font-weight: 700;
}

.tally::before {
  content: "Today · " counter(done) " of 3 done";
}

.rows:not(:has(input:not(:checked))) .tally {
  color: var(--fg);
}

.rows:not(:has(input:not(:checked))) .tally::before {
  content: "Today · 3 of 3 done. Streak kept.";
}

/* An amount: each tap adds one, and the ring fills. */
.glass {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 22px;
  align-items: center;
}

.glass > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dial {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  width: 150px;
  aspect-ratio: 1;
  border: 2.5px solid var(--sticker-line);
  border-radius: 50%;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 4px 4px 0 var(--sticker-shadow);
  transition: background-color 0.3s var(--ease);
}

.glass:has(input:focus-visible) .dial {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.dial svg {
  position: absolute;
  inset: 7px;
  rotate: -90deg;
}

.dial circle {
  fill: none;
  stroke-width: 9;
}

.dial .track {
  stroke: color-mix(in oklab, var(--tint) 30%, var(--sticker));
}

.dial .fill {
  stroke: var(--tint);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--glasses) * 12.5);
  transition: stroke-dashoffset 0.5s var(--ease);
}

.dial p {
  position: relative;
  margin: 0;
}

.dial-n {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.dial-n::before {
  counter-reset: n var(--glasses);
  content: counter(n);
}

.dial-of {
  color: var(--sticker-fg-2);
  font-size: 0.72rem;
  font-weight: 650;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  align-content: center;
}

.steps label {
  display: none;
  place-items: center;
  min-width: 54px;
  height: 54px;
  padding-inline: 0.2em;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 4px 4px 0 var(--sticker-shadow);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}

.steps label:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--sticker-shadow);
}

.steps .again {
  padding-inline: 0.85em;
  font-size: min(0.95rem, 4.4vw);
}

.met {
  display: none;
  flex-basis: 100%;
  margin: 0;
  font-weight: 800;
}

/* Which glass is the one checked, told to the whole page: the reminder below reads it too. */
body:has(#g0:checked) { --glasses: 0; }
body:has(#g1:checked) { --glasses: 1; }
body:has(#g2:checked) { --glasses: 2; }
body:has(#g3:checked) { --glasses: 3; }
body:has(#g4:checked) { --glasses: 4; }
body:has(#g5:checked) { --glasses: 5; }
body:has(#g6:checked) { --glasses: 6; }
body:has(#g7:checked) { --glasses: 7; }
body:has(#g8:checked) { --glasses: 8; }

body:has(#g0:checked) .plus [for="g1"],
body:has(#g1:checked) .plus [for="g2"],
body:has(#g2:checked) .plus [for="g3"],
body:has(#g3:checked) .plus [for="g4"],
body:has(#g4:checked) .plus [for="g5"],
body:has(#g5:checked) .plus [for="g6"],
body:has(#g6:checked) .plus [for="g7"],
body:has(#g7:checked) .plus [for="g8"],
body:has(#g8:checked) .plus [for="g0"],
body:has(#g1:checked) .minus [for="g0"],
body:has(#g2:checked) .minus [for="g1"],
body:has(#g3:checked) .minus [for="g2"],
body:has(#g4:checked) .minus [for="g3"],
body:has(#g5:checked) .minus [for="g4"],
body:has(#g6:checked) .minus [for="g5"],
body:has(#g7:checked) .minus [for="g6"],
body:has(#g8:checked) .minus [for="g7"] {
  display: grid;
}

body:has(#g8:checked) .dial {
  background: color-mix(in oklab, var(--tint) var(--tint-mix), var(--sticker));
}

body:has(#g8:checked) .met {
  display: block;
}

/* Two phones, one over the other: the target, and the sheet that adds to it. */
.pair {
  --pw: min(14rem, 46vw);
  padding-bottom: calc(var(--pw) * 0.22);
}

.pair .phone {
  grid-area: 1 / 1;
}

.pair .back {
  transform: translate(-24%, 0) rotate(-4deg);
}

.pair .front {
  z-index: 1;
  transform: translate(26%, 10%) rotate(3deg);
}

/* ---------- Start in seconds: the sixteen ready-made habits, passing by ---------- */

.start {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  overflow: clip;
}

.start .wrap {
  margin-bottom: 2rem;
  text-align: center;
}

.start .lead {
  margin-inline: auto;
}

.belt {
  display: flex;
  gap: 14px;
  max-width: 78rem;
  margin-inline: auto;
  padding-block: 8px 12px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.run {
  display: flex;
  flex: none;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.run li {
  padding: 0.5em 1.15em;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: color-mix(in oklab, var(--tint) var(--tint-mix), var(--sticker));
  color: var(--sticker-fg);
  box-shadow: 3px 3px 0 var(--sticker-shadow);
  font-weight: 750;
  white-space: nowrap;
}

/* ---------- A reminder, and what the goal above does to it ---------- */

.ping {
  position: relative;
  max-width: 24rem;
  margin: 2rem 0 0;
  padding: 14px 18px 16px;
  border: 2.5px solid var(--sticker-line);
  border-radius: var(--radius);
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 5px 5px 0 var(--sticker-shadow);
  transition: opacity 0.4s var(--ease), box-shadow 0.4s var(--ease), translate 0.4s var(--ease);
}

.ping p {
  margin: 0;
}

.ping-app {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sticker-fg-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.ping-app img {
  width: 22px;
  height: 22px;
  border-radius: 22.5%;
}

.ping-app span {
  margin-left: auto;
  font-weight: 600;
}

.ping .ping-title {
  margin-top: 6px;
  font-weight: 800;
}

.ping-due::before {
  counter-reset: n var(--glasses);
  content: counter(n) " of 8 glasses so far today.";
}

.ping-quiet {
  display: none;
  font-weight: 700;
}

.hint {
  max-width: 24rem;
  margin: 14px 0 0;
  color: var(--fg-2);
  font-size: min(0.92rem, 5vw);
}

body:has(#g8:checked) .ping {
  box-shadow: 1px 1px 0 var(--sticker-shadow);
  opacity: 0.62;
  translate: 4px 4px;
}

body:has(#g8:checked) .ping-due {
  display: none;
}

body:has(#g8:checked) .ping-quiet {
  display: block;
}

body:has(#g8:checked) .hint {
  visibility: hidden;
}

/* ---------- Twelve weeks: the grid a habit's own screen draws ---------- */

.weeks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  align-items: end;
  max-width: 28rem;
  margin: 2.2rem 0 0;
  padding: 18px 20px 20px;
  border: 2.5px solid var(--sticker-line);
  border-radius: var(--radius);
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 5px 5px 0 var(--sticker-shadow);
}

.weeks p {
  margin: 0;
}

.weeks-label {
  grid-column: 1 / -1;
  color: var(--sticker-fg-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.cells {
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}

.cells i {
  aspect-ratio: 1;
  border-radius: 28%;
  background: var(--tint);
}

.cells .m {
  background: color-mix(in oklab, var(--tint) 22%, var(--sticker));
}

.streak {
  display: grid;
  justify-items: center;
  line-height: 1;
}

.streak-n {
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.streak-n::before {
  counter-reset: s var(--streak);
  content: counter(s);
}

.streak-of {
  margin-top: 4px;
  color: var(--sticker-fg-2);
  font-size: 0.82rem;
  font-weight: 700;
}

/* ---------- The widget ---------- */

.noted {
  position: relative;
}

.noted .note {
  top: 29.5%;
  right: max(0%, 50% - var(--pw) * 0.62);
  rotate: 4deg;
}

@media (min-width: 56rem) {
  .noted .note {
    top: 20%;
    right: auto;
    left: calc(50% - var(--pw) * 1.16);
    rotate: -4deg;
  }
}

/* ---------- With Glazzy Plus ---------- */

.plus {
  --pw: min(15rem, 62vw);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.plus h2 {
  margin-top: 0.5em;
}

.duo {
  display: grid;
  gap: clamp(2.6rem, 7vw, 4rem);
  margin-top: clamp(2rem, 6vw, 3.4rem);
}

.duo-item {
  display: grid;
  gap: 1.8rem;
  justify-items: center;
  min-width: 0;
}

.duo-item > div {
  width: 100%;
  max-width: 30rem;
}

.plus .points li::before {
  background: var(--hero-fg);
}

.plus .points li::after {
  border-color: var(--hero);
}

@media (min-width: 44rem) {
  .duo-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: clamp(1.6rem, 4vw, 2.8rem);
  }
}

@media (min-width: 74rem) {
  .plus {
    --pw: 13rem;
  }

  .duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Themes: the section takes the one that's picked ---------- */

.themes {
  --th-a: var(--glz-a);
  --th-b: var(--glz-b);
  background:
    radial-gradient(120% 90% at 78% 30%, var(--th-b) 0%, transparent 62%),
    var(--th-a);
  transition: --th-a 0.5s var(--ease), --th-b 0.5s var(--ease);
}

body:has(#t-ocean:checked) .themes {
  --th-a: var(--ocean-a);
  --th-b: var(--ocean-b);
}

body:has(#t-dusk:checked) .themes {
  --th-a: var(--dusk-a);
  --th-b: var(--dusk-b);
}

.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: none;
}

.pick {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 6px 20px 6px 8px;
  border: 2.5px solid var(--sticker-line);
  border-radius: 999px;
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 4px 4px 0 var(--sticker-shadow);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s var(--ease), box-shadow 0.14s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.pick:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--sticker-shadow);
}

.pick:has(input:checked) {
  background: var(--note);
  color: var(--note-fg);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sticker-shadow);
}

.swatch {
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--sticker-line);
  border-radius: 50%;
}

.swatch.glazzy { background: radial-gradient(circle at 65% 35%, var(--glz-b), var(--glz-a)); }
.swatch.ocean { background: radial-gradient(circle at 65% 35%, var(--ocean-b), var(--ocean-a)); }
.swatch.dusk { background: radial-gradient(circle at 65% 35%, var(--dusk-b), var(--dusk-a)); }

/* ---------- Private by design: the ink block, the page wide ---------- */

.private {
  padding-block: clamp(4rem, 10vw, 7.5rem);
  background: var(--note);
  color: var(--note-fg);
}

.private h2 {
  color: var(--note-head);
}

.nos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1em 0.7em;
  margin: 0.5em 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(2rem, 8.6vw, 5.2rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

/* Each thing Glazzy doesn't have, struck through with the pen. */
.nos li {
  position: relative;
}

.nos li::after {
  content: "";
  position: absolute;
  top: 54%;
  left: -0.08em;
  right: -0.08em;
  height: 0.13em;
  border-radius: 999px;
  background: var(--note-shadow);
  rotate: -3deg;
  transform-origin: left center;
}

.nos li:nth-child(even)::after {
  rotate: 2.5deg;
}

.private .big {
  max-width: 24em;
  margin: 1.5em 0 0;
  font-size: max(var(--text), min(1.5rem, 6.4vw));
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.private .fine {
  max-width: 38em;
  margin: 1em 0 0;
  opacity: 0.86;
}

.private a {
  color: inherit;
  font-weight: 700;
}

.private :focus-visible {
  outline-color: var(--note-head);
}

/* ---------- Free, and what Plus adds ---------- */

.plans {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.two {
  display: grid;
  gap: 26px;
  margin-top: clamp(1.8rem, 5vw, 2.8rem);
}

@media (min-width: 46rem) {
  .two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.plan {
  padding: clamp(1.4rem, 5vw, 2.1rem);
  border: 2.5px solid var(--sticker-line);
  border-radius: var(--radius);
  background: var(--sticker);
  color: var(--sticker-fg);
  box-shadow: 6px 6px 0 var(--sticker-shadow);
}

.plan.more {
  background: var(--plus-bg);
  color: var(--plus-fg);
}

.plan.more .points li::before {
  background: var(--plus-fg);
}

.plan.more .points li::after {
  border-color: var(--plus-bg);
}

.plan .points {
  gap: 0.55em;
  margin-top: 1.1em;
}

.terms {
  margin: 1.3em 0 0;
  font-weight: 700;
}

.everyone {
  max-width: 44em;
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  color: var(--fg-2);
}

.everyone strong {
  color: var(--fg);
}

/* ---------- Questions ---------- */

.faq {
  padding-block: clamp(3.5rem, 9vw, 7rem);
  background: var(--band);
}

.asks {
  max-width: 46rem;
  margin-top: clamp(1.4rem, 4vw, 2.2rem);
  border-top: 1.5px solid var(--rule);
}

.asks details {
  border-bottom: 1.5px solid var(--rule);
}

.asks summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding-block: 14px;
  font-size: max(var(--text), min(1.2rem, 6vw));
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.012em;
  list-style: none;
  cursor: pointer;
}

.asks summary::-webkit-details-marker {
  display: none;
}

/* A plus on a sticker, which turns to a cross as its answer opens. */
.asks summary::after {
  content: "";
  flex: none;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--sticker-line);
  border-radius: 50%;
  background:
    linear-gradient(var(--sticker-fg), var(--sticker-fg)) center / 14px 2.5px no-repeat,
    linear-gradient(var(--sticker-fg), var(--sticker-fg)) center / 2.5px 14px no-repeat,
    var(--sticker);
  box-shadow: 3px 3px 0 var(--sticker-shadow);
  transition: rotate 0.3s var(--slap), translate 0.14s var(--ease), box-shadow 0.14s var(--ease);
}

.asks summary:hover::after {
  translate: 1px 1px;
  box-shadow: 2px 2px 0 var(--sticker-shadow);
}

.asks details[open] summary::after {
  rotate: 45deg;
}

.asks details p {
  max-width: 62ch;
  margin: 0;
  padding-bottom: 1.3em;
}

@supports (interpolate-size: allow-keywords) {
  .asks {
    interpolate-size: allow-keywords;
  }

  .asks details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.34s var(--ease), content-visibility 0.34s allow-discrete;
  }

  .asks details[open]::details-content {
    block-size: auto;
  }
}

/* ---------- The page's end ---------- */

.home .foot {
  color: var(--hero-fg-2);
  font-size: min(0.94rem, 5.4vw);
}

.home .foot > div {
  max-width: calc(72rem + 2 * var(--gutter));
}

.home .foot .close {
  display: grid;
  justify-content: center;
  justify-items: center;
  padding-block: clamp(3.5rem, 10vw, 6rem) 1.5rem;
  color: var(--hero-fg);
  text-align: center;
}

.close-line {
  margin: 0;
  font-size: min(10.4vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.wave {
  display: block;
  width: min(7.5rem, 34vw);
  height: auto;
  margin: 34px auto 0;
  fill: none;
  stroke: var(--hero-fg);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home .foot a {
  color: var(--hero-fg-2);
}

.home .foot a:hover {
  color: var(--hero-fg);
}

/* ---------- Motion ---------- */

@keyframes pop {
  0% { scale: 0.7; }
  60% { scale: 1.12; }
  100% { scale: 1; }
}

@keyframes burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-6px) scale(0.3); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-52px) scale(1); }
}

@keyframes arrive {
  from { opacity: 0; scale: 0.6; }
  to { opacity: 1; scale: 1; }
}

@keyframes float {
  from { translate: 0 -3px; }
  to { translate: 0 4px; }
}

@keyframes twinkle {
  0%, 100% { scale: 1; rotate: 0deg; }
  50% { scale: 0.72; rotate: 28deg; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes belt {
  to { transform: translateX(calc(-100% - 14px)); }
}

@keyframes fan-left {
  to { transform: translate(-80%, 0%) rotate(-16deg) scale(0.88); }
}

@keyframes fan-right {
  to { transform: translate(80%, 0%) rotate(16deg) scale(0.88); }
}

@keyframes fan-mid {
  to { transform: translateY(-5%); }
}

@keyframes sheet-up {
  from { transform: translate(26%, 34%) rotate(6deg); }
}

@keyframes slide-in {
  from { opacity: 0; translate: 46px 0; }
}

@keyframes cell {
  from { opacity: 0.12; scale: 0.4; }
}

@keyframes count {
  from { --streak: 0; }
}

@keyframes strike {
  from { scale: 0 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* What a tap gets back. */
  .try input:checked ~ .try-ring,
  .row input:checked ~ .tick {
    animation: pop 0.36s var(--ease);
  }

  .try input:checked ~ .burst i {
    animation: burst 0.6s var(--ease) both;
  }

  /* The first screen arrives once: the stickers are slapped on, one after another. */
  .fan .chip {
    animation: arrive 0.5s var(--slap) backwards, float 4.6s ease-in-out 1.2s infinite alternate;
  }

  .fan .c1 { animation-delay: 0.35s, 1.2s; }
  .fan .c2 { animation-delay: 0.5s, 1.9s; }
  .fan .c3 { animation-delay: 0.65s, 2.6s; }

  .spark {
    animation: twinkle 3.4s ease-in-out infinite;
  }

  .spark.two {
    animation-delay: 1.3s;
  }

  .soon-dot {
    animation: blink 2.2s ease-in-out infinite;
  }

  .run {
    animation: belt 46s linear infinite;
  }

  .belt.back .run {
    animation-direction: reverse;
  }

  .belt:hover .run {
    animation-play-state: paused;
  }

  /*
    Tied to scrolling, where a browser can: each section moves the way its subject does.
    Everything rests in its finished state, so without this the page is simply still.
  */
  @supports (animation-timeline: view()) {
    .fan .left {
      animation: fan-left linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }

    .fan .right {
      animation: fan-right linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }

    .fan .mid {
      animation: fan-mid linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 90vh;
    }

    /* The sheet that adds an amount rises over the target, as it does in the app. */
    .pair .front {
      animation: sheet-up linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 46%;
    }

    /* A reminder arrives. */
    .ping {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    /* Twelve weeks fill a column at a time, and the streak counts them. */
    .weeks {
      view-timeline: --weeks block;
    }

    .cells i {
      animation: cell linear both;
      animation-timeline: --weeks;
      animation-range: cover calc(6% + var(--c, 0) * 2.6%) cover calc(16% + var(--c, 0) * 2.6%);
    }

    .cells i:nth-child(n + 8) { --c: 1; }
    .cells i:nth-child(n + 15) { --c: 2; }
    .cells i:nth-child(n + 22) { --c: 3; }
    .cells i:nth-child(n + 29) { --c: 4; }
    .cells i:nth-child(n + 36) { --c: 5; }
    .cells i:nth-child(n + 43) { --c: 6; }
    .cells i:nth-child(n + 50) { --c: 7; }
    .cells i:nth-child(n + 57) { --c: 8; }
    .cells i:nth-child(n + 64) { --c: 9; }
    .cells i:nth-child(n + 71) { --c: 10; }
    .cells i:nth-child(n + 78) { --c: 11; }

    .streak {
      animation: count linear both;
      animation-timeline: --weeks;
      animation-range: cover 6% cover 46%;
    }

    /* The widget's note is stuck on as the Home Screen comes up. */
    .noted .note {
      animation: arrive linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 34%;
    }

    /* Six things Glazzy doesn't have, struck out one by one. */
    .private {
      view-timeline: --private block;
    }

    .nos li::after {
      animation: strike linear both;
      animation-timeline: --private;
      animation-range: cover calc(14% + var(--c, 0) * 4%) cover calc(22% + var(--c, 0) * 4%);
    }

    .nos li:nth-child(2) { --c: 1; }
    .nos li:nth-child(3) { --c: 2; }
    .nos li:nth-child(4) { --c: 3; }
    .nos li:nth-child(5) { --c: 4; }
    .nos li:nth-child(6) { --c: 5; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }

  /* The sixteen stand still, all in view. */
  .belt {
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gutter);
    overflow: visible;
    mask-image: none;
  }

  /* A row may shrink to the screen here, so its stickers wrap inside it. */
  .run {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }

  .run.again {
    display: none;
  }
}

@media print {
  .top nav,
  .foot nav {
    display: none;
  }

  .short {
    border: 2px solid #000;
    background: none;
    color: #000;
    box-shadow: none;
  }

  .read .short h2 {
    color: #000;
  }
}
