/* Religio Futura landing page
   Fonts are self-hosted on purpose: no request leaves the visitor's browser
   for a third party, which keeps the Datenschutz page accurate. */

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/lora-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/work-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/work-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --lapis-deep: #0b2557;
  --lapis: #1b49a6;
  --lapis-light: #5f8ad6;
  --lapis-wash: #e1e9f9;

  /* The brand sheet lists Ochre Deep as #0b2557, which is the Lapis Deep hex.
     Sampled from the swatch until the real value is confirmed. */
  --ochre-deep: #a4730f;
  --ochre: #e0a33a;
  --ochre-light: #f0cb7e;
  --ochre-wash: #fcf4e2;

  --ink: #26241f;
  --parchment: #f6f2ea;

  --ink-muted: #5c574d;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);

  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);

  background-color: var(--parchment);
  /* A soft wash of lapis behind the mark, so the logo does not sit on a
     flat field. */
  background-image: radial-gradient(
    ellipse 70rem 40rem at 50% 0%,
    var(--lapis-wash) 0%,
    rgba(225, 233, 249, 0) 70%
  );
  background-repeat: no-repeat;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: var(--lapis);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--lapis-deep);
}

a:focus-visible {
  outline: 2px solid var(--lapis);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: clamp(3rem, 10vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.logo {
  width: clamp(14rem, 40vw, 21rem);
  height: auto;
}

.taglines {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 44rem;
}

.tagline-de {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.1rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--lapis-deep);
  text-wrap: balance;
}

.tagline-en {
  margin: 0;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: balance;
}

/* ---------- Ornament ---------- */

.ornament {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100%, 22rem);
  color: var(--ochre);
}

.ornament::before,
.ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(224, 163, 58, 0),
    var(--ochre-light),
    rgba(224, 163, 58, 0)
  );
}

.ornament svg {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
}

/* ---------- Notices ---------- */

.notices {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  width: 100%;
  max-width: 54rem;
}

@media (min-width: 46em) {
  .notices {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

.notice h2 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--lapis-deep);
}

.notice p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-muted);
}

/* ---------- LinkedIn call to action ---------- */

.linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;

  padding: 0.75rem 1.5rem;
  border-radius: 999px;

  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--parchment);
  text-decoration: none;

  background: var(--lapis);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.linkedin svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.linkedin:hover {
  color: var(--parchment);
  background: var(--lapis-deep);
  transform: translateY(-1px);
}

.linkedin:focus-visible {
  outline-color: var(--lapis-deep);
}

@media (prefers-reduced-motion: reduce) {
  .linkedin {
    transition: none;
  }

  .linkedin:hover {
    transform: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;

  padding: 1.75rem 0;
  border-top: 1px solid rgba(38, 36, 31, 0.1);

  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
}

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

.site-footer a:hover {
  color: var(--lapis);
  text-decoration: underline;
}

.site-footer .sep {
  color: var(--ochre);
}

/* On narrow screens the copyright drops to its own line and the separator
   before it is left stranded at the end of the previous one. */
@media (max-width: 30em) {
  .site-footer > .sep {
    display: none;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 4.5rem) 0 clamp(2.5rem, 6vh, 4rem);
}

.legal .logo {
  width: 11rem;
  margin-bottom: clamp(2rem, 6vh, 3rem);
}

.legal h1 {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--lapis-deep);
}

.legal h2 {
  margin: 2.25rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--lapis-deep);
}

.legal p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.legal address {
  margin: 0 0 1rem;
  font-style: normal;
  color: var(--ink-muted);
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

/* Marks content the foundation still has to supply. Deliberately loud:
   this page is not publishable while any of these remain. */
.todo {
  padding: 0.1em 0.45em;
  border-radius: 3px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
  /* Darker than --ochre-deep: that tone only reaches 3.8:1 on the wash. */
  color: #7a5409;
  background: var(--ochre-wash);
  box-shadow: inset 0 0 0 1px var(--ochre-light);
}
