/* The black pages: "Coming Soon", and the privacy and terms pages. 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;
}

/* ---------- Coming Soon: the title in the true centre */

body.home {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}

.soon {
  grid-row: 2;
  padding: 0 16px;
  text-align: center;
}

.soon__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

.home .soon-foot {
  grid-row: 3;
  align-self: end;
}

.soon-foot__nav {
  display: flex;
  gap: 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; }
