/* Composition only. Every colour and typeface is a --sw-* token from the
   hosted brand theme, and the wordmark itself is the hosted composition of
   those tokens; both are linked before this file in index.html:
     /brand/v1/theme.css     (source: public/brand/v1/theme.css)
     /brand/v1/wordmark.css  (source: public/brand/v1/wordmark.css)
   Docs for both: brand/README.md. No fallbacks here on purpose: those files
   are same-origin, so if they fail to load this one has failed too. External
   consumers add their own. */

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: var(--sw-bg);
  color: var(--sw-fg);
  font-family: var(--sw-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

/* ---- Wordmark ----
   The mark itself — faces, weights, dot gap, works scale and tracking, and
   the --brand colours — is .sw-wordmark in /brand/v1/wordmark.css, which the
   <h1> carries alongside the class below. All that is left here is this
   page's display treatment of it: how large it is and where it sits. */
.wordmark {
  margin: 0;
  /* ~9vw between 2.75rem and 8rem so it stays large on phones and desktops. */
  font-size: clamp(2.75rem, 9vw, 8rem);
  line-height: 1;
  text-align: center;
}

/* Sizing for the eventual SVG mark (see the comment in index.html). */
.wordmark__mark {
  display: block;
  width: clamp(16rem, 60vw, 48rem);
  max-width: 100%;
  height: auto;
}

/* ---- Footer ---- */
footer {
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--sw-muted);
  text-decoration: underline;
  text-decoration-color: currentColor; /* fallback for browsers without color-mix() */
  text-decoration-color: color-mix(in srgb, var(--sw-muted) 50%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

footer a:hover,
footer a:focus-visible {
  color: var(--sw-fg);
  text-decoration-color: currentColor;
}

footer a:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: 4px;
  border-radius: 2px;
}
