/* Pipestra coming-soon site
   Colours from the official brand kit and Gumroad covers:
   navy #0F1C34 / #152848 / #1F3864, gold #E8B04A, muted #AABACE,
   stress bar #1E8BD0 #17A07A #F5B400 #F08A1A #E23B2E
   Wordmark colour on light: #353C46
   Fonts: IBM Plex Sans Condensed + Source Sans Pro (same as the covers), self-hosted.
*/
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("assets/fonts/IBMPlexSansCondensed-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("assets/fonts/IBMPlexSansCondensed-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("assets/fonts/SourceSansPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("assets/fonts/SourceSansPro-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0F1C34;
  --navy-mid: #152848;
  --navy-2: #1F3864;
  --ink: #353C46;
  --paper: #F4F7FB;
  --muted: #AABACE;
  --muted-on-light: #5A6A80;
  --gold: #E8B04A;
  --line: #D5DCE6;
}

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

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--paper);
  background:
    radial-gradient(ellipse 70% 55% at 50% 28%, #1a3360 0%, transparent 62%),
    linear-gradient(180deg, #152848 0%, #0F1C34 58%, #0b1426 100%);
}

.stress-bar {
  flex: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    #1E8BD0 0 20%,
    #17A07A 20% 40%,
    #F5B400 40% 60%,
    #F08A1A 60% 80%,
    #E23B2E 80% 100%
  );
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 36px;
  width: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 28px;
}

.brand .icon {
  display: block;
  height: 148px;
  width: auto;
}

.brand .wordmark {
  display: block;
  width: 340px;
  max-width: 86vw;
  height: auto;
  margin-top: 10px;
}

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

.eyebrow {
  margin: 0 0 14px;
  font-family: "IBM Plex Sans Condensed", "Source Sans Pro", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.tagline {
  margin: 0 0 12px;
  max-width: 40rem;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--paper);
  text-wrap: balance;
}

.now {
  margin: 0 0 28px;
  max-width: 40rem;
  font-size: 16px;
  color: var(--muted);
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--paper);
  color: var(--navy);
  font-family: "IBM Plex Sans Condensed", "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  border: 0;
}
.btn:hover { background: #ffffff; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.contact {
  margin: 22px 0 0;
  font-size: 15px;
}
.contact a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.contact a:hover,
.contact a:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--gold);
  outline: none;
}

footer {
  flex: 0 0 auto;
  padding: 16px 24px 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover,
footer a:focus-visible {
  color: var(--paper);
  text-decoration: underline;
  outline: none;
}
footer .dot { margin: 0 0.55em; opacity: 0.7; }

/* Impressum — light, readable legal page */
body.legal {
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
}
body.legal .inner,
body.legal .legal-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
body.legal .site-header {
  background: var(--navy);
  color: var(--paper);
  padding: 14px 0 16px;
}
body.legal .site-header .brand {
  flex-direction: row;
  gap: 14px;
  margin: 0;
  width: auto;
  justify-content: flex-start;
}
body.legal .site-header .icon { height: 44px; }
body.legal .site-header .wordmark {
  width: 168px;
  margin-top: 0;
}
body.legal .legal-wrap {
  flex: 1 1 auto;
  padding-top: 40px;
  padding-bottom: 64px;
  text-align: left;
}
body.legal h1 {
  margin: 0 0 8px;
  font-family: "IBM Plex Sans Condensed", "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--navy);
}
body.legal .lede {
  margin: 0 0 28px;
  color: var(--muted-on-light);
  font-size: 15px;
}
body.legal h2 {
  margin: 28px 0 8px;
  font-family: "IBM Plex Sans Condensed", "Source Sans Pro", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy-2);
  text-wrap: balance;
}
body.legal p { margin: 0 0 14px; }
body.legal address {
  font-style: normal;
  margin: 0 0 14px;
}
body.legal a { color: var(--navy-2); }
body.legal a:hover { color: var(--navy); }
body.legal h2.legal-en-title {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: var(--navy);
}
body.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
body.legal footer {
  color: var(--muted-on-light);
  border-top: 1px solid var(--line);
}
body.legal footer a { color: var(--muted-on-light); }
body.legal footer a:hover { color: var(--navy); }

@media (max-width: 600px) {
  main { padding: 36px 20px 28px; }
  .brand { margin-bottom: 24px; }
  .brand .icon { height: 112px; }
  .brand .wordmark { width: 260px; }
  .tagline { font-size: 19px; }
  .now { font-size: 15px; margin-bottom: 24px; }
  .btn { width: min(100%, 320px); }
  body.legal h1,
  body.legal h2.legal-en-title { font-size: 28px; }
  body.legal .legal-wrap { padding-top: 28px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
