/* Todogram's site. One page colour that everything sits on, one typeface, one accent.
   The colours and the type are the product's own (DESIGN.md at the repository's root):
   change them there first. No file here is loaded from anywhere but this folder. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-regular.woff2") format("woff2");
  unicode-range: U+20-7E, U+A0-17F, U+2010-2015, U+2018-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2260, U+2264-2265;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-semibold.woff2") format("woff2");
  unicode-range: U+20-7E, U+A0-17F, U+2010-2015, U+2018-2022, U+2026, U+2030, U+2032-2033,
    U+2039-203A, U+2044, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2260, U+2264-2265;
}

/* What shows for the moment before Inter has arrived, set to Inter's measure so that
   nothing moves when it does. */
@font-face {
  font-family: "Inter fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light dark;

  --page: #FBFBFA;
  --raised: #FEFEFE;
  --fill: #F0F2F2;
  --hairline: #E8EAEA;
  --text: #17191A;
  --secondary: #5F676B;
  --brand: #0067C8;
  --ring: #E2E5E5;
  --lift: 0 1px 2px rgb(23 25 26 / 0.04), 0 12px 24px -8px rgb(23 25 26 / 0.08),
    0 40px 80px -24px rgb(23 25 26 / 0.14);

  --edge: clamp(20px, 5vw, 48px);
  --gap: clamp(32px, 8vw, 104px);
  --part: clamp(72px, 10vw, 136px);
  --phone: clamp(252px, 24vw, 315px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111314;
    --raised: #1B1E20;
    --fill: #1F2325;
    --hairline: #272C2E;
    --text: #ECEEEE;
    --secondary: #9AA2A6;
    --brand: #5AB0FF;
    --ring: #2E3437;
    --lift: 0 40px 80px -24px rgb(0 0 0 / 0.6);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Inter", "Inter fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

a {
  color: var(--brand);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in srgb, var(--brand) 30%, transparent);
}

code {
  font: inherit;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--fill);
  overflow-wrap: anywhere;
}

.wrap {
  max-width: calc(1088px + 2 * var(--edge));
  margin-inline: auto;
  padding-inline: var(--edge);
}

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

.nowrap {
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--edge);
  top: -64px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--page);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------------------------- */
/* The top of every page, and its foot                                                 */
/* ---------------------------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.name img {
  width: 28px;
  height: 28px;
}

.ways {
  display: flex;
  gap: 4px;
  margin-right: -12px;
}

.ways a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 12px;
  color: var(--secondary);
  font-size: 0.9375rem;
  text-decoration: none;
}

.ways a:hover,
.ways a[aria-current="page"] {
  color: var(--text);
}

.foot {
  margin-top: var(--part);
  padding-block: 32px 56px;
  border-top: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
}

.foot .ways {
  flex-wrap: wrap;
  margin-left: -12px;
}

.foot .ways a {
  font-size: 0.875rem;
}

.foot-small {
  max-width: 62ch;
  margin-top: 20px;
}

/* ---------------------------------------------------------------------------------- */
/* Words                                                                               */
/* ---------------------------------------------------------------------------------- */

/* Large letters stand a little in from where their line begins; this takes it back, so
   that a heading and the words under it start on one edge. */
.display,
.title,
.say {
  margin-left: -0.02em;
}

.display {
  font-size: clamp(2.5rem, 1.45rem + 4.4vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.title {
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  letter-spacing: -0.008em;
}

.quiet {
  color: var(--secondary);
}

.small {
  font-size: 0.9375rem;
}

/* A part of the page: a hairline, a small grey name, then what it holds. */
.part {
  padding-top: var(--part);
}

.label {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.54;
}

.label + * {
  margin-top: clamp(28px, 4vw, 48px);
}

/* A heading on the left and what it is about on the right, from 880 px. */
.split {
  display: grid;
  gap: 28px;
}

.split-head > * + * {
  margin-top: 20px;
}

.split-head .lead {
  max-width: 34ch;
}

@media (min-width: 880px) {
  /* The heading's first line and the first line beside it stand on one baseline. */
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--gap);
    align-items: first baseline;
  }
}

/* Rows, as the app has them: a name, what there is to say of it, a hairline between. */
.rows > * {
  padding-block: 18px;
  border-top: 1px solid var(--hairline);
}

.rows > :first-child {
  padding-top: 0;
  border-top: 0;
}

.rows > :last-child {
  padding-bottom: 0;
}

.row dt,
.row h3 {
  font-size: inherit;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.008em;
}

.row dd,
.row p {
  color: var(--secondary);
}

@media (min-width: 560px) {
  .row {
    display: grid;
    grid-template-columns: 10.75rem minmax(0, 1fr);
    column-gap: 24px;
  }

  .row--step {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 0;
  }
}

.row--step {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
}

.step-number {
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.aside {
  margin-top: 28px;
  color: var(--secondary);
  font-size: 0.9375rem;
}

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

.hero {
  display: grid;
  gap: 56px;
  padding-top: clamp(32px, 6vw, 72px);
}

.hero-words {
  max-width: 40rem;
}

.hero .lead {
  max-width: 33em;
  margin-top: clamp(20px, 2.4vw, 28px);
}

.soon {
  max-width: 22rem;
  margin-top: clamp(32px, 4vw, 48px);
  font-size: 0.9375rem;
}

.soon > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 11px;
  border-top: 1px solid var(--hairline);
}

.soon > div:last-child {
  border-bottom: 1px solid var(--hairline);
}

.soon dt {
  font-weight: 600;
}

.soon dd {
  color: var(--secondary);
}

.hero-more {
  margin-top: 24px;
  font-size: 0.9375rem;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) var(--phone);
    column-gap: var(--gap);
    align-items: start;
  }

  /* The top of the capitals is level with the top of the phone. */
  .hero .display {
    margin-top: -0.148em;
  }
}

/* A real screenshot of the phone app, held by a hairline. Nothing is drawn round it. */
.phone {
  width: var(--phone);
  margin-inline: auto;
}

.phone img,
.window img {
  width: 100%;
  background: var(--fill);
  box-shadow: 0 0 0 1px var(--ring), var(--lift);
}

.phone img {
  border-radius: calc(var(--phone) * 0.105);
}

.window img {
  border-radius: 10px;
}

figcaption {
  margin-top: 20px;
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.54;
  text-align: center;
}

/* ---------------------------------------------------------------------------------- */
/* A task, typed the way it is said                                                    */
/* ---------------------------------------------------------------------------------- */

.said {
  margin-top: clamp(40px, 6vw, 72px);
}

.say {
  font-size: clamp(1.5rem, 0.76rem + 3.7vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  padding-bottom: calc(22px + 0.2em);
  text-wrap: balance;
}

.say + .say {
  margin-top: 0.35em;
}

.got {
  position: relative;
  display: inline-block;
  color: var(--brand);
  white-space: nowrap;
}

.got::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.06em;
  height: max(2px, 0.045em);
  border-radius: 2px;
  background: currentColor;
  opacity: 0.32;
}

.got-as {
  position: absolute;
  left: 0;
  top: calc(100% + 0.5em);
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------------------------- */
/* A screenshot beside the rows, and where to get it                                   */
/* ---------------------------------------------------------------------------------- */

.split--pictured .phone {
  margin-top: 28px;
}

@media (min-width: 880px) {
  .split--pictured {
    grid-template-rows: auto 1fr;
  }

  .split--pictured .rows {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .split--pictured .phone {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    margin: 56px 0 0;
  }
}

.window + .split {
  margin-top: clamp(40px, 6vw, 72px);
}

.platform + .platform {
  margin-top: 44px;
}

.platform h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: inherit;
  line-height: 1.6;
  letter-spacing: -0.008em;
}

.platform h3 span {
  color: var(--secondary);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}

.platform ul {
  margin-top: 14px;
  color: var(--secondary);
}

.platform li {
  padding-block: 11px;
  border-top: 1px solid var(--hairline);
}

.platform li:last-child {
  padding-bottom: 0;
}

/* ---------------------------------------------------------------------------------- */
/* Pages of words: privacy, support, a page that is not there                          */
/* ---------------------------------------------------------------------------------- */

.page-head {
  padding-top: clamp(32px, 6vw, 72px);
}

.page-head .display {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
}

.page-head .lead {
  max-width: 36em;
  margin-top: 20px;
  color: var(--secondary);
}

.doc {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.contents {
  font-size: 0.9375rem;
}

.contents h2 {
  color: var(--secondary);
  font-size: 0.8125rem;
  line-height: 1.54;
}

.contents ol {
  margin-top: 12px;
}

.contents a {
  display: block;
  padding-block: 10px;
  color: var(--secondary);
  text-decoration: none;
}

.contents a:hover {
  color: var(--text);
}

.contents .reach {
  margin-top: 12px;
}

.contents .reach a {
  color: var(--brand);
  text-decoration: underline;
  overflow-wrap: anywhere;
}

.reach-who {
  max-width: 24em;
  margin-top: 16px;
  color: var(--secondary);
}

.prose {
  max-width: 42rem;
}

.prose section + section {
  margin-top: 56px;
}

.prose h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: 24px;
}

.prose h3 {
  margin-top: 32px;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.008em;
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.prose h3 + p,
.prose h3 + ul {
  margin-top: 6px;
}

.prose ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.prose li::marker {
  color: var(--secondary);
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  overflow-wrap: anywhere;
}

.prose strong {
  font-weight: 600;
}

@media (min-width: 880px) {
  /* The first heading and the small name of the column beside it stand on one baseline. */
  .doc {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--gap);
    align-items: first baseline;
    padding-top: 40px;
  }

  .contents {
    position: sticky;
    top: 32px;
  }

  .contents a {
    padding-block: 5px;
  }
}

.lost {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 50vh;
  padding-top: 48px;
}

.lost img {
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
}

.lost .lead {
  margin-top: 16px;
  color: var(--secondary);
}

.lost .hero-more {
  margin-top: 28px;
}

/* ---------------------------------------------------------------------------------- */
/* Movement: the first screen arrives once. Nothing else moves.                        */
/* ---------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .arrive {
    animation: arrive 0.8s var(--ease) both;
  }

  .arrive--2 {
    animation-delay: 0.08s;
  }

  .arrive--3 {
    animation-delay: 0.16s;
  }

  @keyframes arrive {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
  }
}

@media print {
  .top .ways,
  .contents,
  .skip {
    display: none;
  }
}
