/*
 * Mox website. The tokens are the app's (design/mockups/index.html,
 * src/constants/theme.ts): warm paper, ink, one ember accent, big rounded
 * tabular numerals. Apple devices draw the numerals in SF Pro Rounded, which
 * ships with the OS; everything else gets Nunito, self-hosted and subset to
 * Latin, which is what the Android app and widget use.
 *
 * No inline styles anywhere: the Content-Security-Policy is style-src 'self'.
 */

@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/nunito-bold.f28a672f73.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/nunito-extrabold.de26dc56f3.woff2') format('woff2');
}

:root {
  --ink: #111114;
  --ink-2: #3a3a40;
  --muted: #6c6c74;
  --hair: rgba(17, 17, 20, 0.09);
  --paper: #f4f2ee;
  --paper-2: #ebe7e0;
  --card: #ffffff;
  --ember: #f2542d;
  --ember-deep: #c93b18;
  --ember-soft: #fde6df;
  --night: #121216;
  --night-2: #1c1c21;
  --num: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;
  --wallpaper: radial-gradient(120% 70% at 80% 0%, #ffcf9e 0%, rgba(255, 207, 158, 0) 50%),
    radial-gradient(100% 80% at 0% 100%, #2b5876 0%, rgba(43, 88, 118, 0) 70%),
    linear-gradient(160deg, #e9a27c 0%, #b4677a 45%, #4e4376 100%);
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--num); letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-weight: 800; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.045em; font-weight: 800; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--num); font-weight: 800; font-size: 26px; letter-spacing: -0.035em; }
.brand svg { width: 34px; height: 34px; }
.top nav { display: flex; gap: 4px; }
.top nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.top nav a:hover { background: rgba(17, 17, 20, 0.06); color: var(--ink); }
.top nav a[aria-current='page'] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }

.foot { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--hair); font-size: 14.5px; color: var(--muted); }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--ember-deep); }
.foot p { margin: 0; }
.foot .brand { font-size: 20px; color: var(--ink); }
.foot .brand svg { width: 26px; height: 26px; }

/* Store buttons. Each badge fails closed: it shows only while <body> says
   data-play-live="true" or data-apple-live="true", so a missing or misspelt
   attribute hides it rather than publishing a link to a listing that is not
   public yet. Its "Coming soon" shows in the same cases, and only then.
   Both badges are drawn at one height, the App Store one first (Apple's
   rule), black on this light page, and the 16px gap keeps Apple's minimum
   clear space (a quarter of the badge's height, 14px) on every side, wrapped
   or not. Neither artwork is altered: height is the only thing set. */
body:not([data-play-live='true']) .store-link[data-store='play'] { display: none !important; }
body:not([data-apple-live='true']) .store-link[data-store='apple'] { display: none !important; }
[data-play-live='true'] .soon[data-store='play'] { display: none !important; }
[data-apple-live='true'] .soon[data-store='apple'] { display: none !important; }
body:not([data-apple-live='true']) .when-apple-live { display: none !important; }
[data-apple-live='true'] .when-apple-soon { display: none !important; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.store-link img { height: 56px; width: auto; }
/* On a phone the two shrink together so they stay side by side, even in
   the countdown pages' padded card on a 390px screen; never below Apple's
   40px onscreen minimum. */
@media (max-width: 480px) { .store-link img { height: clamp(40px, 11vw, 56px); } }
.store-link { display: inline-block; border-radius: 12px; }
.soon { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; font-weight: 650; font-size: 16px; padding: 14px 20px; border-radius: 16px; }
.soon svg { width: 20px; height: 20px; }
.platform-note { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* Hero */
.hero { padding: 28px 0 40px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ember-deep); margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 11vw, 76px); letter-spacing: -0.04em; line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--ember); }
.lede { font-size: 19px; color: var(--ink-2); margin-top: 22px; max-width: 32em; }
.lede strong { color: var(--ink); }

/* The phone */
.phone-stage { display: flex; justify-content: center; }
.phone { width: 320px; height: 700px; border-radius: 52px; background: #0c0c0e; padding: 10px; flex: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 50px 90px -34px rgba(60, 36, 20, 0.5), 0 18px 30px -18px rgba(40, 30, 20, 0.35); }
.screen { width: 100%; height: 100%; border-radius: 43px; overflow: hidden; position: relative; background: var(--wallpaper); color: #fff; padding: 0 16px; }
.screen .cam { width: 11px; height: 11px; border-radius: 50%; background: #050506; margin: 12px auto 0; }
.clock { font-family: var(--num); font-weight: 700; font-size: 62px; letter-spacing: -0.04em; line-height: 1; margin: 16px 6px 2px; }
.dateline { font-size: 13px; font-weight: 600; opacity: 0.9; margin: 0 8px 16px; }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dock { position: absolute; left: 22px; right: 22px; bottom: 26px; display: flex; justify-content: space-between; }
.dock i { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); display: grid; place-items: center; }
.dock i.mox { background: var(--ember); }
.dock i.mox svg { width: 26px; height: 26px; }
.homebar { position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 120px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.9); }

/* Widgets, drawn the way the app's preview draws them */
.w { position: relative; border-radius: 24px; overflow: hidden; padding: 13px 14px 12px; display: flex; flex-direction: column; aspect-ratio: 1; color: #fff;
  background: var(--night) center / cover no-repeat; box-shadow: 0 14px 28px -18px rgba(20, 10, 30, 0.55); }
.w .t { font-size: 12.5px; font-weight: 700; display: flex; gap: 5px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w .n { font-size: 50px; line-height: 0.9; margin-top: auto; }
.w .u { font-size: 12.5px; font-weight: 700; opacity: 0.85; margin-top: 4px; }
.w.wide { grid-column: span 2; aspect-ratio: auto; height: 140px; }
.w.wide .n { font-size: 56px; }
.w.wide .row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.w.wide .row .n { margin-top: 0; }
.w.wide .u { font-size: 13.5px; }
.w.scrim::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.3) 100%); }
.w > * { position: relative; z-index: 1; }
.w.ember { background: var(--ember); }
.w.paper { background: #fbfaf7; color: var(--ink); }
.w.paper .u { color: var(--muted); opacity: 1; }
.w.night { background: var(--night); }
.w.ink-text { color: var(--ink); }
.w.ink-text .u { color: rgba(17, 17, 20, 0.6); opacity: 1; }
.bg-seaside { background-image: url('/assets/bg-seaside.ee2f5c0464.webp'); }
.bg-snowfall { background-image: url('/assets/bg-snowfall.73bd09ae2d.webp'); }
.bg-confetti { background-image: url('/assets/bg-confetti.9a12adb01e.webp'); }
.bg-pines { background-image: url('/assets/bg-pines.dc9b51bb1b.webp'); }
.bg-haze { background-image: url('/assets/bg-haze.db5bae62f6.webp'); }
.bg-fireworks { background-image: url('/assets/bg-fireworks.21c46e4724.webp'); }
.bg-bloom { background-image: url('/assets/bg-bloom.38e69d800c.webp'); }
.bg-autumn { background-image: url('/assets/bg-autumn.dae341e7b4.webp'); }
.bg-glow { background-image: url('/assets/bg-glow.497a936e65.webp'); }

.w.list { grid-column: span 2; aspect-ratio: auto; background: rgba(18, 18, 22, 0.88); padding: 14px 16px; }
.w.list .h { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-bottom: 6px; }
.w.list ul { list-style: none; margin: 0; padding: 0; font-size: 13px; font-weight: 600; }
.w.list li { display: flex; justify-content: space-between; padding: 4px 0; }
.w.list li b { font-family: var(--num); font-variant-numeric: tabular-nums; font-weight: 800; }
.w.list li .today { color: #ff8a6b; }

/* Sections */
.section { padding: 72px 0 0; }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(32px, 6.5vw, 48px); }
.section-head p { color: var(--ink-2); font-size: 18px; margin-top: 14px; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gallery .w { padding: 16px 16px 14px; }
.gallery .w .n { font-size: clamp(48px, 13vw, 64px); }
.gallery .w .t { font-size: 14px; }
.gallery .w .u { font-size: 14px; }
.gallery-note { color: var(--muted); font-size: 14.5px; margin-top: 18px; }

.features { display: grid; gap: 16px; }
.feature { background: var(--card); border-radius: 26px; padding: 26px 24px 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.feature .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--ember-soft); color: var(--ember-deep); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 16px; }
.pro-tag { font-family: var(--text); font-size: 10.5px; font-weight: 750; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 6px; background: var(--ember-soft); color: var(--ember-deep); vertical-align: 3px; margin-left: 4px; }

/* The dark band */
.band { margin-top: 88px; background: var(--night); color: #fff; padding: 72px 0; }
.band h2 { font-size: clamp(32px, 6.5vw, 48px); max-width: 14em; }
.band .sub { color: rgba(255, 255, 255, 0.72); font-size: 18px; margin-top: 16px; max-width: 36em; }
.promises { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.promises li { background: var(--night-2); border-radius: 20px; padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.promises li svg { width: 22px; height: 22px; flex: none; color: var(--ember); margin-top: 2px; }
.promises b { display: block; font-size: 17px; }
.promises span { color: rgba(255, 255, 255, 0.68); font-size: 15px; }
.band .more { display: inline-block; margin-top: 30px; color: #fff; font-weight: 650; text-decoration-color: var(--ember); text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Pricing */
.plans { display: grid; gap: 16px; }
.plan { background: var(--card); border-radius: 28px; padding: 30px 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.plan h3 { font-size: 24px; }
.plan .price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.plan .price .num { font-size: 60px; line-height: 1; }
.plan .price span:not(.num) { color: var(--muted); font-weight: 600; }
.plan .note { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; font-size: 16px; }
.plan li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ember); }
.plan.pro { background: var(--ink); color: #fff; }
.plan.pro .note, .plan.pro .price span:not(.num) { color: rgba(255, 255, 255, 0.65); }
.plan.pro li::before { border-color: var(--ember); background: var(--ember); }
.fine { color: var(--muted); font-size: 14.5px; margin-top: 18px; }

/* Text pages: privacy, support */
.doc { padding: 24px 0 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(40px, 9vw, 60px); letter-spacing: -0.04em; }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: 14px; }
.doc h2 { font-size: 27px; margin: 52px 0 14px; scroll-margin-top: 20px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--ember); }
.doc strong { color: var(--ink); }
.doc a { text-decoration-color: rgba(242, 84, 45, 0.6); text-underline-offset: 3px; }
.doc a:hover { color: var(--ember-deep); }
.doc code { font-size: 0.9em; background: var(--paper-2); padding: 1px 6px; border-radius: 6px; }
.summary { background: var(--card); border-radius: 26px; padding: 26px 26px 10px; margin-top: 34px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.summary h2 { margin: 0 0 14px; font-size: 21px; }
.summary ul { list-style: none; padding: 0; }
.summary li { padding-left: 28px; position: relative; }
.summary li::before { content: ''; position: absolute; left: 3px; top: 7px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ember); }
.toc { background: var(--paper-2); border-radius: 20px; padding: 20px 24px; margin-top: 30px; }
.toc p { font-weight: 700; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.toc ol { margin: 0; columns: 1; }
.toc li { margin-bottom: 4px; font-size: 15.5px; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); border-radius: 18px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
th { color: var(--ink); font-weight: 700; background: #fbfaf7; }
tr:last-child td { border-bottom: 0; }
.contact-card { background: var(--ink); color: #fff; border-radius: 26px; padding: 28px 26px; margin-top: 48px; }
.contact-card h2 { margin: 0 0 8px; font-size: 24px; color: #fff; }
.contact-card p { color: rgba(255, 255, 255, 0.75); margin: 0; }
.contact-card a { color: #fff; font-weight: 700; text-decoration-color: var(--ember); }
.steps li { margin-bottom: 10px; }

/* 404 */
.lost { padding: 40px 0 0; text-align: center; }
.lost .w { width: 240px; margin: 0 auto; text-align: left; }
.lost .w .n { font-size: 84px; }
.lost h1 { font-size: clamp(34px, 8vw, 48px); margin-top: 40px; }
.lost p { color: var(--ink-2); margin-top: 14px; }
.button { display: inline-block; margin-top: 18px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 650; padding: 14px 22px; border-radius: 16px; }
.button:hover { background: #000; }

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .promises { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: center; }
  .toc ol { columns: 2; column-gap: 32px; }
}
@media (min-width: 960px) {
  .hero { padding: 40px 0 24px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .gallery { grid-template-columns: repeat(6, 1fr); }
  .gallery .w .n { font-size: 52px; }
  .gallery .w .t, .gallery .w .u { font-size: 13px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .promises { grid-template-columns: repeat(4, 1fr); }
  .promises li { flex-direction: column; }
  .section { padding-top: 96px; }
}
@media (prefers-reduced-motion: no-preference) {
  .store-link, .button, .top nav a, a.w { transition: background-color 0.15s ease, transform 0.15s ease; }
  .store-link:hover { transform: translateY(-1px); }
}

/* Countdown pages (/days-until/). The live number is the app's: rounded,
   tabular, heavy. days-until.js keeps it right on the reader's calendar. */
.dl { padding: 16px 0 0; }
.dl .wrap { max-width: 880px; }
.crumbs { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--ember-deep); }
.dl h1 { font-size: clamp(34px, 8vw, 56px); letter-spacing: -0.035em; }
.dl-lede { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 36em; }
.counters { display: grid; gap: 16px; margin-top: 28px; }
.counter { background: var(--card); border-radius: 30px; padding: 30px 28px 26px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.counter-label { font-weight: 700; color: var(--ink-2); margin: 0 0 4px; }
.counter .big { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.counter .big .num { font-size: clamp(96px, 30vw, 184px); line-height: 0.92; color: var(--ember); }
.counter .big .unit { font-family: var(--num); font-weight: 800; font-size: clamp(28px, 7vw, 44px); letter-spacing: -0.02em; }
.counter .until { font-size: 19px; color: var(--ink-2); margin: 10px 0 0; }
.counter .until time { color: var(--ink); font-weight: 650; }
.dl-note { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.dl-note a, .dl-about a { text-decoration-color: rgba(242, 84, 45, 0.6); text-underline-offset: 3px; }
.dl-section { margin-top: 56px; }
.dl-section h2, .dl-home h2 { font-size: clamp(26px, 5.5vw, 34px); margin-bottom: 16px; }
.dl-about p { color: var(--ink-2); max-width: 40em; }
.dl-about strong { color: var(--ink); }
.dl-home { margin-top: 56px; background: var(--paper-2); border-radius: 30px; padding: 28px 24px; display: grid; gap: 26px; align-items: center; }
.dl-home p { color: var(--ink-2); }
.dl-home p strong { color: var(--ink); }
.dl-home .get { margin-top: 18px; }
.dl-home-widget .w { width: 190px; padding: 16px 16px 14px; }
.dl-home-widget .w .n { font-size: 64px; }
.dl-home-widget .w .t, .dl-home-widget .w .u { font-size: 14px; }
.dl-gallery { margin-top: 24px; }
a.w { text-decoration: none; }
a.w:hover { transform: translateY(-2px); }
@media (min-width: 640px) {
  .counters { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .dl-home { grid-template-columns: auto 1fr; padding: 32px 34px; }
}
@media (min-width: 960px) {
  .dl-gallery { grid-template-columns: repeat(5, 1fr); }
}

/* Guides (/guides/): the support page's text, with real screenshots. */
.doc .crumbs { margin-bottom: 14px; }
.doc .lede { font-size: 19px; color: var(--ink-2); margin-top: 18px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 16px 20px; margin: 26px 0 10px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 24px; background: var(--card); box-shadow: 0 14px 28px -18px rgba(20, 10, 30, 0.55); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.4; }
.doc .get { margin-top: 18px; }
.guide-next { background: var(--paper-2); border-radius: 22px; padding: 22px 24px; margin-top: 48px; }
.guide-next h2 { margin: 0 0 8px; font-size: 22px; }
.guide-next p { margin: 0; }

/* The home page's row of countdown links. */
.live-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.live-row a { display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 650; font-size: 15.5px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.live-row a span { color: var(--muted); font-weight: 600; }
.live-row a:hover { color: var(--ember-deep); }
.live-row a.all { background: transparent; box-shadow: inset 0 0 0 1.5px var(--hair); }
.live { margin-top: 30px; }
.live h3 { font-size: 19px; }
.doc .guides { margin-top: 10px; }
@media (min-width: 640px) {
  .shots { grid-template-columns: repeat(auto-fill, 220px); }
}

/* The countdown maker (/countdown) and a shared countdown (/c). The card is
   the widget at full size: the name at the top, the number at the bottom,
   on a solid colour or a gallery picture under a dimming layer. Its look
   classes (look-<key>, sw-<key>) are written by build.mjs from the one list
   in countdown-link.js. */
[hidden] { display: none !important; }
.cd { position: relative; overflow: hidden; container-type: inline-size; border-radius: 30px; padding: 26px 26px 24px; min-height: clamp(340px, 96vw, 460px); margin-top: 6px;
  display: flex; flex-direction: column; color: #fff; background: var(--night) center / cover no-repeat; box-shadow: 0 30px 60px -36px rgba(40, 20, 30, 0.55); }
.cd > * { position: relative; z-index: 1; }
.look-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.42) 100%); }
.look-photo.look-ink::after { background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.34) 100%); }
.look-ink { color: var(--ink); }
.w.look-ink .u { color: rgba(17, 17, 20, 0.62); opacity: 1; }
.cd.look-paper { box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -36px rgba(40, 20, 30, 0.35); }
.cd.look-paper .num { color: var(--ember); }
.cd-name { font-family: var(--num); font-weight: 800; font-size: clamp(26px, 6.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 auto; max-width: 18em; overflow-wrap: anywhere; }
.cd-big { margin: 28px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 14px; }
.cd-big .num { font-size: clamp(84px, 33cqi, 196px); line-height: 0.88; }
.cd-unit { font-family: var(--num); font-weight: 800; font-size: clamp(26px, 8cqi, 44px); letter-spacing: -0.02em; }
.cd-when { margin: 12px 0 0; font-size: 18px; font-weight: 650; opacity: 0.94; }
.cd-clock { margin: 6px 0 0; font-family: var(--num); font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.cd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.cd-actions .button { margin-top: 0; }
button.button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.button-quiet { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--hair); }
.button-quiet:hover { background: var(--card); color: var(--ember-deep); }
.cd-status { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.cd-more p { color: var(--ink-2); max-width: 40em; }
.cd-more .button { margin-top: 4px; }
.cd-report { margin-top: 44px; font-size: 14px; color: var(--muted); }
.cd-report a { color: var(--ink-2); font-weight: 650; text-underline-offset: 3px; }

.mk { display: grid; gap: 20px; margin-top: 26px; }
.mk-preview .cd { min-height: clamp(280px, 80vw, 380px); margin-top: 0; }
.mk-preview .cd-big .num { font-size: clamp(76px, 30cqi, 150px); }
.mk-form { background: var(--card); border-radius: 30px; padding: 24px 22px 22px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); display: grid; gap: 20px; }
.mk-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mk-field label, .mk-field legend { font-weight: 700; font-size: 15.5px; color: var(--ink); padding: 0; }
.mk-optional { font-weight: 600; color: var(--muted); margin-left: 4px; }
.mk-form input:not([type='radio']) { width: 100%; min-width: 0; min-height: 52px; font: inherit; font-size: 17px; color: var(--ink); background: var(--paper);
  border: 1.5px solid transparent; border-radius: 16px; padding: 13px 16px; -webkit-appearance: none; appearance: none; }
.mk-form input::placeholder { color: #9a9aa2; }
.mk-form input:not([type='radio']):focus-visible { outline: none; border-color: var(--ember); background: var(--card); box-shadow: 0 0 0 4px var(--ember-soft); }
.mk-form input[aria-invalid='true'] { border-color: var(--ember-deep); }
.mk-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.mk-help { font-size: 14px; color: var(--muted); margin: 0; }
.mk-error { font-size: 14.5px; font-weight: 650; color: var(--ember-deep); margin: 0; }
.mk-sub { font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin: 4px 0 0; }
/* Eight colours in one row, and the sixteen pictures four to a row on a
   phone (big enough to see), eight on a wider form. */
.swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 44px)); justify-content: space-between; gap: 8px; }
.swatches-pics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sw { position: relative; aspect-ratio: 1; border-radius: 50%; cursor: pointer; background: center / cover no-repeat; box-shadow: inset 0 0 0 1px rgba(17, 17, 20, 0.12); }
.swatches-pics .sw { border-radius: 30%; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sw:has(:checked) { box-shadow: 0 0 0 3px var(--card), 0 0 0 5.5px var(--ink); }
.sw:has(:focus-visible) { outline: 3px solid var(--ember); outline-offset: 5px; }
.mk-go { width: 100%; margin-top: 4px; padding: 16px 22px; font-size: 17px; }
.mk-result { margin-top: 22px; background: var(--ink); color: #fff; border-radius: 30px; padding: 26px 24px; }
.mk-result:focus { outline: none; }
.mk-result h2 { font-size: clamp(26px, 5.5vw, 32px); margin-bottom: 8px; }
.mk-result p { color: rgba(255, 255, 255, 0.75); }
.mk-link { width: 100%; font: inherit; font-size: 15.5px; color: #fff; background: var(--night-2); border: 0; border-radius: 14px; padding: 14px 16px; text-overflow: ellipsis; }
.mk-link:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.mk-result .button { background: #fff; color: var(--ink); }
.mk-result .button-quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.mk-result .button-quiet:hover { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.mk-result .cd-status { color: rgba(255, 255, 255, 0.82); }
.mk-page .dl-home { margin-top: 56px; }
.gallery-note a { color: var(--ink-2); font-weight: 650; text-decoration-color: rgba(242, 84, 45, 0.6); text-underline-offset: 3px; }
@media (min-width: 860px) {
  .mk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 28px; }
  .mk-preview { position: sticky; top: 20px; }
  .mk-form { padding: 28px 28px 26px; }
}
@media (min-width: 560px) {
  .swatches-pics { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
}
@media (min-width: 860px) and (max-width: 1000px) {
  .swatches-pics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
}

/* The countdown maker's looks, written by build.mjs from countdown-link.js. */
.look-ember { background-color: #CD4B2B; }
.look-amber { background-color: #F5A524; }
.look-green { background-color: #2B855B; }
.look-blue { background-color: #2B77C7; }
.look-violet { background-color: #7A5AF5; }
.look-pink { background-color: #C84489; }
.look-night { background-color: #121216; }
.look-ink { background-color: #111114; }
.look-paper { background-color: #FBF9F5; }
.look-seaside { background-image: url('/assets/photo-seaside.8a271dc941.webp'); }
.look-peaks { background-image: url('/assets/photo-peaks.89b644329f.webp'); }
.look-dunes { background-image: url('/assets/photo-dunes.4eef4982a0.webp'); }
.look-city { background-image: url('/assets/photo-city.0f22c7bd39.webp'); }
.look-aurora { background-image: url('/assets/photo-aurora.73019356b5.webp'); }
.look-haze { background-image: url('/assets/photo-haze.80bdbcf6a6.webp'); }
.look-pines { background-image: url('/assets/photo-pines.b90abe3ca9.webp'); }
.look-snowfall { background-image: url('/assets/photo-snowfall.d8fd919432.webp'); }
.look-glow { background-image: url('/assets/photo-glow.de68e96d35.webp'); }
.look-fireworks { background-image: url('/assets/photo-fireworks.ec0edf362b.webp'); }
.look-autumn { background-image: url('/assets/photo-autumn.54080512d3.webp'); }
.look-confetti { background-image: url('/assets/photo-confetti.7dcabb6dd7.webp'); }
.look-balloons { background-image: url('/assets/photo-balloons.6965acb74a.webp'); }
.look-bloom { background-image: url('/assets/photo-bloom.aa8d03b75e.webp'); }
.look-sand { background-image: url('/assets/photo-sand.0c441692a2.webp'); }
.look-mist { background-image: url('/assets/photo-mist.86f25a4753.webp'); }
.sw-ember { background-color: #CD4B2B; }
.sw-amber { background-color: #F5A524; }
.sw-green { background-color: #2B855B; }
.sw-blue { background-color: #2B77C7; }
.sw-violet { background-color: #7A5AF5; }
.sw-pink { background-color: #C84489; }
.sw-night { background-color: #121216; }
.sw-ink { background-color: #111114; }
.sw-paper { background-color: #FBF9F5; }
.sw-seaside { background-image: url('/assets/thumb-seaside.575cb6453c.webp'); }
.sw-peaks { background-image: url('/assets/thumb-peaks.57abfdd2c2.webp'); }
.sw-dunes { background-image: url('/assets/thumb-dunes.b612808fe3.webp'); }
.sw-city { background-image: url('/assets/thumb-city.d184f56ce2.webp'); }
.sw-aurora { background-image: url('/assets/thumb-aurora.23473bd9fb.webp'); }
.sw-haze { background-image: url('/assets/thumb-haze.38ccbcd2ad.webp'); }
.sw-pines { background-image: url('/assets/thumb-pines.3872aa0422.webp'); }
.sw-snowfall { background-image: url('/assets/thumb-snowfall.0c77fc41d6.webp'); }
.sw-glow { background-image: url('/assets/thumb-glow.c588fce093.webp'); }
.sw-fireworks { background-image: url('/assets/thumb-fireworks.90f0b340e5.webp'); }
.sw-autumn { background-image: url('/assets/thumb-autumn.b6f56ed101.webp'); }
.sw-confetti { background-image: url('/assets/thumb-confetti.3a0ef077f5.webp'); }
.sw-balloons { background-image: url('/assets/thumb-balloons.094e541980.webp'); }
.sw-bloom { background-image: url('/assets/thumb-bloom.733a3a65dd.webp'); }
.sw-sand { background-image: url('/assets/thumb-sand.5dcc528f97.webp'); }
.sw-mist { background-image: url('/assets/thumb-mist.5e7cc01895.webp'); }
