/* ==========================================================================
   Stormy landing page
   Self-hosted fonts only (no requests to Google or other third parties).
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Sea, from surface to deep. White text stays >= 4.5:1 from --sea-mid down. */
  --sea-surface: #5b98cc;
  --sea-mid: #3a729f;
  --sea-deep: #265172;
  --sea-abyss: #13375a;
  --foam: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

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

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

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

body {
  margin: 0;
  background: var(--sea-abyss);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--foam);
  outline-offset: 4px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  background: var(--foam);
  color: var(--sea-abyss);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Sky: one continuous gradient behind hero, features, contact and footer
   -------------------------------------------------------------------------- */

.sky {
  background: linear-gradient(
    180deg,
    var(--sea-surface) 0,
    var(--sea-mid) 760px,
    var(--sea-deep) 1500px,
    var(--sea-abyss) 2400px
  );
}

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

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 6vh, 3.5rem) var(--page-pad) clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.wordmark img {
  width: clamp(190px, 26vw, 260px);
  height: auto;
}

.hero__octo {
  width: clamp(230px, 38vw, 400px);
  margin-top: clamp(0.5rem, 2vh, 1.5rem);
  animation: drift 8s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(-1.2deg);
  }
  to {
    transform: translateY(-14px) rotate(1.2deg);
  }
}

.tagline {
  max-width: 24ch;
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.lede {
  max-width: 32rem;
  margin-top: 1.25rem;
  font-size: 1.125rem;
  text-wrap: balance;
}

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.75rem;
  border: 1.5px solid var(--foam);
  border-radius: 999px;
  color: var(--foam);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--foam);
  color: var(--sea-deep);
}

/* --------------------------------------------------------------------------
   Strip of small illustrations (decorative)
   -------------------------------------------------------------------------- */

.senses {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 2rem);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  list-style: none;
}

.senses img {
  width: clamp(64px, 17vw, 136px);
  height: auto;
}

.senses li:nth-child(even) {
  margin-top: clamp(0.75rem, 2.5vw, 1.5rem);
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.features {
  padding: clamp(4rem, 9vw, 6.5rem) var(--page-pad);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 68rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}

.feature h3 {
  font-size: clamp(1.625rem, 2.6vw, 2rem);
}

.feature p {
  max-width: 30ch;
  margin: 0.9rem auto 0;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .features__grid {
    grid-template-columns: 1fr;
    max-width: var(--measure);
  }
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  padding: clamp(3rem, 8vw, 6rem) var(--page-pad) clamp(4rem, 9vw, 7rem);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: 62rem;
  margin: 0 auto;
}

.contact__octo {
  width: 100%;
  height: auto;
  /* The artwork is cropped at its edges; fade it out so no hard cut shows */
  -webkit-mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 68%, transparent 100%);
}

.contact h2 {
  font-size: clamp(2rem, 4.4vw, 2.875rem);
}

.contact__text {
  max-width: 30rem;
  margin-top: 1rem;
}

.contact__name {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100;
  font-size: 1.5rem;
  font-weight: 500;
}

.contact__links {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.1875rem;
}

.contact__links li + li {
  margin-top: 0.25rem;
}

@media (max-width: 760px) {
  .contact__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact__octo {
    width: min(240px, 60%);
    margin: 0 auto;
  }

  .contact__text {
    margin-inline: auto;
  }
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding: 1.75rem var(--page-pad) 2.25rem;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  max-width: 62rem;
  margin: 0 auto;
}

.site-footer nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__note {
  max-width: 62rem;
  margin: 1.25rem auto 0;
  font-size: 0.875rem;
  color: #e3eef8;
}

/* --------------------------------------------------------------------------
   Legal pages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */

.sky--legal {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--sea-mid) 0, var(--sea-deep) 520px, var(--sea-abyss) 1300px);
}

.legal-header {
  padding: 1.75rem var(--page-pad) 0;
  max-width: 48rem;
  margin: 0 auto;
}

.legal-header img {
  width: 140px;
  height: auto;
}

.legal {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2.5rem var(--page-pad) 4rem;
}

.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.legal h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.legal h3 {
  margin-top: 1.5rem;
  font-size: 1.1875rem;
}

.legal p,
.legal ul {
  margin-top: 0.85rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.4rem;
}

.legal .meta {
  margin-top: 0.5rem;
  color: #e3eef8;
  font-size: 0.9375rem;
}

/* Highlights everything that still has to be filled in before going live */
.todo {
  padding: 0.05em 0.35em;
  border-radius: 0.3em;
  background: #ffe27a;
  color: #3b2f00;
  font-weight: 600;
}

.legal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  padding: 1.5rem var(--page-pad) 2.25rem;
  font-size: 0.9375rem;
}

.legal-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero__octo {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
