/* MARK: COMING SOON
   Shared "coming soon" landing look for every AutoCSS domain site
   (css.fish, css.here, …).
*/
@layer coming-soon {
  html {
    color-scheme: dark;
    /* height: 100%; */
    background: radial-gradient(ellipse at bottom, oklch(26.84% 0.0312 252.76) 0%, oklch(14.61% 0.011 275.82) 100%);
    overflow: hidden;
  }

  app-container {
    grid-template-rows: repeat(auto-fit, minmax(1rem, 1fr));
  }

  main {
     display: grid;
  }

  article {
     display: grid;
     align-content: center;
     justify-items: center;
     text-align: center;
     color: oklch(100% 0 0 / 0.4);
  }

  h1 {
    font-size: clamp(2.5rem, 1.5rem + 5cqi, 5rem);
    font-weight: 300;
    line-height: 1.1;
    text-wrap: balance;

    color: oklch(100% 0 0 / 0.7);
  }

  p {
    font-size: clamp(1rem, 0.9rem + 0.5cqi, 1.25rem);
    line-height: 1.6;
    max-inline-size: 60ch;
    text-wrap: pretty;
    /* Room for the italic overhang: background-clip: text only paints inside
       the box, so without it the last glyph is cut off. */
    padding-inline: 0.25ch;

    font-style: italic;
  }

  /* Gradient text only where background-clip: text is supported. Elsewhere the
     solid color stays, so the text is never transparent and unreadable. */
  @supports (background-clip: text) {
    h1, p {
      color: transparent;
      background: linear-gradient(oklch(100% 0 0), oklch(39.8% 0.0361 248.75));
      background-clip: text;
    }
  }

  /* Every paragraph after the first is secondary. */
  p ~ p {
    opacity: .5;
  }

  h1, p {
    overflow-wrap: anywhere;
  }
}
