/* The black pages: the home page (Dijmo for iPhone; "Coming Soon" until
   2026-12-05), and privacy, terms, support and acknowledgements. Served under
   a content hash (see assets.rs). The story page's styles stay in site.css
   for when it comes back. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+00D7, U+00E9, U+2013-2014, U+2018-2019, U+201C-201D, U+2022, U+2026, U+2212;
}

:root {
  --ink: #fff;       /* headlines, names, links */
  --text: #a3a3a3;   /* reading text: 8:1 on black */
  --quiet: #7d7d7d;  /* dates, footer: 5:1 on black */
  --mark: #4a4a4a;   /* list marks, link underlines */
  --caret: #e0301a;  /* the logo's caret */
  --edge: clamp(16px, 5vw, 64px);
}

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

html {
  background: #000;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #000;
  font-family: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------- footer: small, bottom left, on every page */

.soon-foot {
  padding: 32px var(--edge) calc(24px + env(safe-area-inset-bottom));
}

.soon-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: .8125rem;
  line-height: 1.2;
}

.soon-foot a {
  color: var(--quiet);
  text-decoration: none;
  transition: color .2s;
}
.soon-foot a:hover,
.soon-foot a[aria-current="page"] { color: var(--ink); }

/* ---------- privacy and terms */

.soon-top { padding: 28px var(--edge) 0; }
.soon-top__mark { display: inline-flex; color: var(--ink); }
.soon-top__logo { display: block; width: 65.4px; height: 24px; }

.legal {
  flex: 1;
  width: 100%;
  max-width: calc(1120px + 2 * var(--edge));
  padding: clamp(72px, 15vh, 160px) var(--edge) clamp(88px, 14vh, 160px);
}

.legal__name {
  margin: 0 0 20px;
  color: var(--quiet);
  font-size: 1.0625rem;
}

/* The page's promise, set large, ending on the logo's caret. */
.legal__title {
  margin: 0;
  max-width: 18ch;
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.legal__title::after {
  content: "";
  display: inline-block;
  width: .07em;
  height: .78em;
  margin-left: .09em;
  vertical-align: -.02em;
  background: var(--caret);
  animation: caret 1.1s steps(1, end) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .legal__title::after { animation: none; }
}

.legal__updated {
  margin: 32px 0 0;
  color: var(--quiet);
  font-size: .875rem;
}

.legal__sections {
  display: grid;
  gap: clamp(40px, 6vh, 60px);
  margin-top: clamp(72px, 13vh, 136px);
}

/* Each section: its name on the left, the words on the right (stacked on
   narrow screens). Space does the separating; no rules or boxes. */
.legal-section {
  display: grid;
  gap: 8px;
  scroll-margin-top: 24px;
}
@media (min-width: 880px) {
  .legal-section {
    grid-template-columns: minmax(180px, 250px) minmax(0, 60ch);
    column-gap: clamp(40px, 6vw, 96px);
  }
}

.legal-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

.legal-section__body {
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.legal-section__body p,
.legal-section__body ul { margin: 0; }
.legal-section__body p + p,
.legal-section__body p + ul,
.legal-section__body ul + p { margin-top: .9em; }

.legal-section__body ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: .6em;
}
.legal-section__body li {
  position: relative;
  padding-left: 22px;
}
.legal-section__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 10px;
  height: 1px;
  background: var(--mark);
}

.legal-section__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--mark);
  transition: text-decoration-color .2s;
}
.legal-section__body a:hover { text-decoration-color: currentColor; }

/* ---------- the home page: the legal pages' head, then the app's three
   steps, numbered as the app numbers them (a filled circle) */

.app {
  padding-top: clamp(56px, 11vh, 128px);
  padding-bottom: clamp(56px, 10vh, 120px);
}

/* A 404's one quiet line, above the name. */
.app__notice {
  margin: 0 0 20px;
  color: var(--quiet);
  font-size: 1.0625rem;
}

.app__lede {
  margin: 28px 0 0;
  max-width: 34ch;
  color: var(--text);
  font-size: clamp(1.1875rem, 2.4vw, 1.5rem);
  line-height: 1.45;
}

.app__how {
  margin-top: clamp(48px, 9vh, 96px);
  max-width: 60ch;
}

.app__heading {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

.app__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 14px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.app__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
}
.app__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .1em;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #000;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.app__write {
  margin: clamp(40px, 7vh, 72px) 0 0;
  max-width: 60ch;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.app__write a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--mark);
  transition: text-decoration-color .2s;
}
.app__write a:hover { text-decoration-color: currentColor; }

/* ---------- acknowledgements: a notice or licence, as its owner wrote it,
   in the page's face and wrapped to the column (never a sideways scroll) */

.legal-text {
  margin: 0;
  font: inherit;
  font-size: .875rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.legal-section__body p + .legal-text,
.legal-section__body p + details { margin-top: .9em; }
.legal-section__body details > .legal-text,
.legal-section__body summary + p { margin-top: .9em; }
.legal-section__body .legal-text + p { margin-top: 1.4em; }

.legal-section__body summary {
  cursor: pointer;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--mark);
}
.legal-section__body summary:hover { text-decoration-color: currentColor; }
.legal-section__body summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
