/* Constian, holding page.
 *
 * Deliberately one hand-written stylesheet and no build step. This site exists
 * to be replaced: the real one is the inherited Next.js app in web/, refactored
 * once there is a product to describe. Until then the whole point is that every
 * byte served is auditable at a glance, because the home page must not reveal
 * anything about what is being built.
 *
 * Brand values are the app's, from app/lib/theme/tokens.dart. Kept in sync by
 * hand rather than by a pipeline, because there are four of them.
 */

:root {
  --green: #006b3f;
  --sky: #51b0e8;
  --ink: #0b0f12;
  --paper: #fbfaf7;
  --muted: #5b6670;
  --rule: rgba(11, 15, 18, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fbfaf7;
    --paper: #0b0f12;
    --muted: #9aa5ad;
    --rule: rgba(251, 250, 247, 0.14);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  /* Room for a notch and a home indicator on a phone, since a link tapped from
     a message opens straight into a browser in whatever chrome it has. */
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

main {
  flex: 1;
  width: 100%;
  /* Around 70 characters at this size, which is where centred prose stops
     being readable on a wide screen. */
  max-width: 38rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}



.home 
h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2.5rem 0 0.5rem;
}

p { margin: 0 0 1rem; }

.lead { color: var(--muted); max-width: 26rem; }

a { color: inherit; text-decoration-color: var(--sky); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--green); }

.updated { color: var(--muted); font-size: 0.875rem; }

footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

footer a { margin: 0 0.5rem; display: inline-block; padding: 0.25rem 0; }

/* A tap target that clears 44px without the links looking spaced out. */
@media (max-width: 30rem) {
  footer a { padding: 0.5rem 0; }
}

/* A word, not a logo. The brand mark is deliberately not on this site: a
   holding page should not be the first place anybody sees it. */
.wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin: 0 0 2rem;
}
