/* Mooo's website. The page is the app's clay wall: shade, a patch of window
   light, and cards that are slabs of the same clay. It does not follow dark
   mode, like the app. No scripts, no fonts or files from other sites. */
:root {
  --wall: #A87964;                 /* the wall in shade */
  --sun: #D25D35;                  /* screened onto the wall, it gives the wall in light */
  --slab: #F9D8C0;                 /* a card: the same clay, raised into the light */
  --slab-top: #FFE9DA;
  --ink: #24160F;
  --soft: rgba(36, 22, 15, 0.74);
  --line: rgba(36, 22, 15, 0.16);
  --cast: 70, 36, 22;              /* the color of a shadow on this wall */
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--wall); }
body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* The wall: clay with a fine grain. Everything on the page is in front of it. */
.wall {
  min-height: 100vh;
  background-color: var(--wall);
  background-image: var(--grain);
  background-blend-mode: soft-light;
  isolation: isolate;
  overflow-x: clip;
}
.wrap { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(36, 22, 15, 0.45); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

/* Window light on the wall. The blur is on the outside, so the cut edge is soft. */
.light { position: absolute; z-index: 0; pointer-events: none; filter: blur(22px); mix-blend-mode: screen; }
.light i { display: block; width: 100%; height: 100%; background: var(--sun); }

/* Top bar */
.top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 4px 8px 12px -6px rgba(var(--cast), 0.7); }
.top nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; }

/* Home: the first screen */
.hero { position: relative; display: grid; grid-template-columns: 1.3fr 0.7fr; align-items: center; gap: 40px; padding: 56px 0 104px; }
.hero .light { top: 4px; bottom: 44px; left: -36px; right: -50vw; }
.hero .light i { clip-path: polygon(0 0, 100% 0, 100% 100%, 9% 100%); }
.pitch, .hero .phone { position: relative; z-index: 1; }
.pitch { padding-left: 48px; }
h1 { margin: 0 0 20px; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
.lead { margin: 0 0 28px; max-width: 27em; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; }
.soon { display: inline-block; margin: 0; padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.needs { margin: 14px 0 0; font-size: 14px; font-weight: 500; }

/* A screenshot in a thin phone body, standing in front of the wall */
.phone {
  justify-self: center;
  width: min(300px, 74vw);
  aspect-ratio: 1320 / 2868;
  border-radius: 14.2% / 6.54%;
  overflow: hidden;
  background: #1C1512;
  box-shadow: 0 0 0 5px #1C1512, 0 0 0 6px rgba(255, 255, 255, 0.22),
    30px 48px 60px -20px rgba(var(--cast), 0.62), 10px 16px 20px -8px rgba(var(--cast), 0.5);
}
.phone img { display: block; width: 100%; height: 100%; }

/* Cards */
.slab, .soon {
  background: linear-gradient(180deg, var(--slab-top), var(--slab) 46px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 rgba(var(--cast), 0.22),
    16px 26px 36px -22px rgba(var(--cast), 0.7);
}
.slab { border-radius: 24px; padding: 24px 26px; }
.slab h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; letter-spacing: -0.01em; }
.slab p { margin: 0; color: var(--soft); }
.slab p + p { margin-top: 12px; }

/* The three moods */
.moods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0 0 88px; text-align: center; }
.moods figure { margin: 0; }
.moods img { display: block; width: 116px; margin: 0 auto 14px; filter: drop-shadow(8px 16px 10px rgba(var(--cast), 0.5)); }
.moods b { display: block; font-size: 19px; letter-spacing: -0.01em; }
.moods figcaption { font-size: 15px; font-weight: 500; }

/* Screens and what they are for */
.pair { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0 96px; }
.pair .light { top: 0; bottom: 190px; left: -50vw; right: 22%; }
.pair .light i { clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
.pair > div:not(.light) { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 40px; }
.pair .phone { width: min(264px, 70vw); }
.pair .slab { width: 100%; }

.onscreen { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; padding-bottom: 96px; }
.widget { display: block; width: 100%; filter: drop-shadow(18px 28px 22px rgba(var(--cast), 0.55)) drop-shadow(4px 8px 6px rgba(var(--cast), 0.35)); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two .slab { padding: 28px 30px 30px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.swatches li { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.45), inset 0 -3px 5px rgba(0, 0, 0, 0.16), 0 1px 2px rgba(var(--cast), 0.4); }
.slab .more { margin-top: 20px; color: var(--ink); font-weight: 700; }
.small { margin: 36px 0 0; font-size: 14px; font-weight: 500; text-align: center; }

/* Support and privacy: one long card on the wall */
.page-light { top: 70px; left: 34%; right: -50vw; height: 520px; }
.page-light i { clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%); }
.page { position: relative; z-index: 1; max-width: 760px; margin: 20px auto 0; padding: 44px 48px 48px; border-radius: 30px; }
.page h1 { font-size: clamp(34px, 5vw, 44px); margin-bottom: 10px; }
.page h2 { margin: 34px 0 6px; font-size: 20px; }
.page p, .page li { color: var(--ink); }
.page .muted { color: var(--soft); }
.page ul { padding-left: 1.2em; }
.page li + li { margin-top: 6px; }
.note { margin: 22px 0 6px; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.42); box-shadow: inset 0 0 0 1px var(--line); }

footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 72px; padding: 26px 0 48px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding: 28px 0 88px; text-align: center; }
  .hero .light { top: -8px; bottom: 40px; left: -8px; right: -50vw; }
  .hero .light i { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .pitch { padding: 0 8px; }
  .lead { margin-left: auto; margin-right: auto; }
  .moods { gap: 8px; padding-bottom: 72px; }
  .moods img { width: 88px; }
  .moods b { font-size: 16px; }
  .moods figcaption { font-size: 14px; }
  .pair { grid-template-columns: 1fr; gap: 64px; padding: 40px 0 72px; }
  .pair .light { bottom: 55%; left: -50vw; right: 8%; }
  .onscreen { grid-template-columns: 1fr; gap: 32px; padding-bottom: 72px; }
  .two { grid-template-columns: 1fr; gap: 24px; }
  .page-light { left: 10%; height: 380px; }
  .page { margin-top: 8px; padding: 30px 24px 34px; border-radius: 26px; }
  footer { margin-top: 56px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .top nav { gap: 16px; }
}
