/* Starsailor Investment — minimal stylesheet, no external resources */

:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --rule: #e4e4e4;
  --measure: 40rem; /* ~640px */
  color-scheme: light; /* keep the white background even in dark mode */
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
  text-align: center;

  /* vertically centred; "safe" keeps the top reachable when the content is
     taller than the viewport (Impressum, Datenschutz) */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-content: safe center;
}

/* --- logo ---------------------------------------------------------------- */

.logo {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: auto;
  margin-inline: auto;
}

.logo-heading {
  margin: 0 0 3.5rem;
  font-size: inherit;
  font-weight: inherit;
}

/* --- contact block ------------------------------------------------------- */

.contact {
  font-style: normal;
}

.contact__name {
  font-weight: 600;
}

.contact__role {
  color: var(--muted);
}

.contact__group {
  margin: 0 0 1.75rem;
}

.contact__group:last-child {
  margin-bottom: 0;
}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--ink);
}

/* --- text pages ---------------------------------------------------------- */

h1 {
  margin: 0 0 2.5rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style-position: inside; /* keeps bullets with the centred text */
}

li {
  margin-bottom: 0.35rem;
}

.legal .logo {
  max-width: 13rem;
  margin-bottom: 3rem;
}

.legal a {
  color: inherit;
}

/* Visible marker for facts that are not yet confirmed. Must be empty before
   the site goes live. */
.todo {
  background: #ffe9a8;
  padding: 0 0.2em;
}

/* --- footer -------------------------------------------------------------- */

.footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}

.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.footer__sep {
  padding: 0 0.5rem;
}

@media (max-width: 30rem) {
  .page {
    padding-top: 3rem;
  }

  .logo {
    max-width: 15rem;
  }
}
