/* Shared stylesheet for the Landing page and the Privacy notice.
   The font is defined only here. */

/* Departure Mono v1.500 by Helena Zhang, SIL OFL 1.1, see
   DepartureMono-LICENSE.txt. Taken unmodified from the GitHub release
   (rektdeckard/departure-mono). Regular weight only: there is no bold
   cut, bold text relies on synthesised bold. */
@font-face {
  font-family: "Departure Mono";
  src: url("/DepartureMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Colour tokens. When changing --fg or --bg, also update the copies
   that cannot read CSS variables: the two theme-color metas in the head
   of index.html and datenschutz.html, the fills in favicon.svg, and
   favicon.ico (regenerated from favicon.svg). */
:root {
  color-scheme: light dark;
  --fg: #111;
  --bg: #fff;
  --muted: #595959;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #d8dcd8;
    --bg: #0e0f0e;
    --muted: #9aa09a;
  }
}

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

body {
  margin: 0;
  font-family: "Departure Mono", ui-monospace, monospace;
  color: var(--fg);
  background: var(--bg);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Landing page */

.landing {
  display: grid;
  /* Two equal outer rows keep the Wordmark in the true viewport centre;
     the footer sits at the bottom of the lower one. On very short
     screens the lower row grows to fit the footer instead of overlapping. */
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
}

.wordmark {
  display: block;
  max-width: 100%;
  height: auto;
  fill: currentColor;
  shape-rendering: crispEdges;
}

.landing main {
  grid-row: 2;
  max-width: 100%;
}

/* "Datenschutz" link at the bottom centre: 13 px, in a muted colour
   that still meets WCAG AA on both backgrounds. */
.landing footer {
  grid-row: 3;
  align-self: end;
  font-size: 0.8125rem;
}

.landing footer a {
  color: var(--muted);
  text-decoration: none;
}

.landing footer a:hover,
.landing footer a:focus-visible {
  text-decoration: underline;
}

/* Privacy notice */

.notice {
  font-size: 1rem;
  line-height: 1.55;
}

.notice main {
  max-width: 36em;
  margin: 0 auto;
  padding: 32px 16px;
}

.notice h1 {
  font-size: 1.6em;
  font-weight: 700;
}

.notice h2 {
  font-size: 1em;
  font-weight: 700;
  margin: 1.5em 0 0;
}

.notice h2 + p {
  margin-top: 0;
}
