/* Friedensprogramm theme — deliberately small and dependency-free. */

:root {
  --fp-ink: #1f2f34;
  --fp-muted: #607177;
  --fp-blue: #356f82;
  --fp-blue-deep: #275866;
  --fp-mist: #edf4f5;
  --fp-sand: #f6f2e9;
  --fp-paper: #fffefd;
  --fp-line: #dce6e7;
  --fp-radius: 18px;
  --fp-shadow: 0 18px 50px rgba(31, 47, 52, 0.08);
  --pico-font-family-display: "Cal Sans", "Avenir Next", Avenir, system-ui, sans-serif;
  --pico-font-family-sans-serif: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  --q2-accent: var(--fp-blue);
  --q2-link: var(--fp-blue-deep);
}

html[data-theme='dark'] {
  --fp-ink: #e9f0f1;
  --fp-muted: #b7c6c9;
  --fp-mist: #183039;
  --fp-sand: #28271f;
  --fp-paper: #12242b;
  --fp-line: #2e4951;
}

body {
  color: var(--fp-ink);
  background: var(--fp-paper);
}

#header {
  border-bottom: 1px solid color-mix(in srgb, var(--fp-line) 86%, transparent);
  background: color-mix(in srgb, var(--fp-paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

.fp-brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  color: var(--fp-ink);
}

.fp-brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border: 2px solid var(--fp-blue);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
}

.fp-brand-mark::before,
.fp-brand-mark::after,
.fp-brand-mark span {
  content: "";
  position: absolute;
  width: .92rem;
  height: 1px;
  background: var(--fp-blue);
  transform-origin: center;
}
.fp-brand-mark::before { transform: rotate(0deg); }
.fp-brand-mark::after { transform: rotate(60deg); }
.fp-brand-mark span { transform: rotate(-60deg); }

.fp-brand-text {
  font-family: var(--pico-font-family-display);
  font-size: 1.08rem;
  letter-spacing: .01em;
  font-weight: 650;
}

.navigation a {
  font-weight: 520;
  text-decoration: none;
}

.fp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 15%, rgba(255,255,255,.8) 0 8%, transparent 33%),
    linear-gradient(135deg, var(--fp-mist), var(--fp-sand));
  border-bottom: 1px solid var(--fp-line);
}

.fp-hero-has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(20,45,52,.76), rgba(20,45,52,.28)), var(--fp-hero-image);
  background-size: cover;
  background-position: center;
}

.fp-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(4.5rem, 10vw, 8.5rem);
  padding-bottom: clamp(4.5rem, 10vw, 8.5rem);
  max-width: 900px;
}

.fp-hero-has-image .fp-hero-inner,
.fp-hero-has-image .fp-hero-inner h1,
.fp-hero-has-image .fp-hero-inner p {
  color: white;
}

.fp-eyebrow {
  margin: 0 0 .9rem;
  color: var(--fp-blue-deep);
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fp-hero h1 {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.55rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--fp-ink);
}

.fp-hero-subtitle {
  max-width: 64ch;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--fp-muted);
}

.fp-hero-actions { margin-top: 2rem; }
.fp-button {
  display: inline-block;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  background: var(--fp-blue);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(53,111,130,.2);
  transition: transform .15s ease, background .15s ease;
}
.fp-button:hover { background: var(--fp-blue-deep); transform: translateY(-1px); }
.fp-button:focus-visible { outline: 3px solid color-mix(in srgb, var(--fp-blue) 35%, transparent); outline-offset: 4px; }

.fp-main-section { padding-top: clamp(3rem, 7vw, 6rem); padding-bottom: clamp(3rem, 7vw, 6rem); }
.fp-content { max-width: 920px; }
.fp-content article > h1:first-child { margin-top: 0; }
.fp-content h2 { margin-top: 2.5rem; }
.fp-content p, .fp-content li { line-height: 1.75; }
.fp-content blockquote {
  border-left: 3px solid var(--fp-blue);
  background: var(--fp-mist);
  padding: 1.1rem 1.4rem;
  border-radius: 0 var(--fp-radius) var(--fp-radius) 0;
}

.fp-footer {
  border-top: 1px solid var(--fp-line);
  background: var(--fp-mist);
}
.fp-footer-inner {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.fp-footer strong { display: block; }
.fp-footer-subtitle, .fp-footer-meta { color: var(--fp-muted); font-size: .9rem; }

@media (max-width: 700px) {
  .fp-brand-text { font-size: 1rem; }
  .fp-hero-inner { padding-top: 4rem; padding-bottom: 4rem; }
  .fp-footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Friedensprogramm wordmark: replace Quark 2's default Grav brand until a final logo is chosen. */
#header .logo a,
.mobile-logo a {
  text-decoration: none;
  font-size: 0;
  color: var(--fp-ink);
}

#header .logo a svg,
#header .logo a img,
.mobile-logo a svg,
.mobile-logo a img {
  display: none;
}

#header .logo a::after,
.mobile-logo a::after {
  content: "Friedensprogramm";
  font-family: var(--pico-font-family-display);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: .005em;
  color: var(--fp-ink);
}

@media (max-width: 700px) {
  #header .logo a::after,
  .mobile-logo a::after {
    font-size: 1.02rem;
  }
}
