/* ki2min Ghost theme · v1.0.0 */

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

:root {
  --pink: #f1008b;
  --pink-dark: #c60074;
  --violet: #7b2ff7;
  --ink: #15171a;
  --muted: #5c6169;
  --faint: #8a9099;
  --line: #e9ebee;
  --bg: #fff;
  --soft: #f6f7f9;
  --wrap: 1080px;
  --read: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.bar-left { display: flex; align-items: center; }
.logo { font-weight: 800; font-size: 26px; letter-spacing: -.03em; }
.logo b { color: var(--pink); }
.main-nav { display: flex; gap: 28px; margin-left: 36px; }
.main-nav a { color: var(--muted); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 18px; }
.signin { color: var(--muted); font-weight: 500; font-size: 15px; }
.btn {
  display: inline-block; background: var(--pink); color: #fff; font-weight: 600;
  font-size: 15px; padding: 10px 20px; border-radius: 999px; border: 0;
  cursor: pointer; transition: background .15s; font-family: inherit; text-align: center;
}
.btn:hover { background: var(--pink-dark); }

/* ---------- hero ---------- */
.hero-wrap { padding-top: 40px; padding-bottom: 8px; }
.hero {
  position: relative; text-align: center; border-radius: 28px; overflow: hidden;
  padding: 76px 40px 80px; color: #fff;
  background:
    radial-gradient(90% 140% at 15% 0%, rgba(255, 138, 0, .55) 0%, rgba(255, 138, 0, 0) 45%),
    radial-gradient(110% 150% at 90% 10%, rgba(123, 47, 247, .85) 0%, rgba(123, 47, 247, 0) 60%),
    linear-gradient(135deg, #f1008b 0%, #d4119e 45%, #8a2be2 100%);
}
.hero h1 {
  font-size: 52px; line-height: 1.06; font-weight: 800; letter-spacing: -.03em;
  max-width: 22ch; margin: 0 auto;
  text-wrap: balance;
}
.hero .sub { font-size: 20px; color: rgba(255, 255, 255, .88); max-width: 62ch; margin: 20px auto 0; }
.hero .note { margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.hero .btn { background: var(--ink); }
.hero .btn:hover { background: #000; }
.hero-map {
  position: absolute; top: 50%; right: 2.5%;
  height: 112%; width: auto; transform: translateY(-50%);
  pointer-events: none;
}
.hero > :not(.hero-map) { position: relative; z-index: 1; }

/* ---------- signup form (Ghost members) — one connected pill ---------- */
.sub-form {
  display: flex; align-items: center; gap: 0; max-width: 540px; margin: 32px auto 0;
  background: #fff; border-radius: 999px; padding: 5px 5px 5px 0;
  border: 1.5px solid transparent;
}
.sub-form:focus-within { border-color: var(--ink); }
.sub-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; border-radius: 999px;
  padding: 11px 20px; font-size: 16px; font-family: inherit; color: var(--ink);
}
.sub-form input:focus { outline: none; }
.sub-form .btn { flex-shrink: 0; }
.form-msg { display: none; margin-top: 14px; font-size: 14.5px; font-weight: 600; }
form[data-members-form].success ~ .success-msg,
form[data-members-form].success + .success-msg { display: block; }
form[data-members-form].error ~ .error-msg { display: block; }
form[data-members-form].loading .btn { opacity: .6; pointer-events: none; }
.hero .form-msg { color: #fff; }

/* ---------- issue list ---------- */
.section { padding-top: 40px; padding-bottom: 72px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 4px;
}
.section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.issue {
  display: grid; grid-template-columns: 140px 1fr; gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.issue:hover .issue-title { color: var(--pink); }
.issue-date { font-size: 15px; color: var(--ink); font-weight: 600; padding-top: 3px; white-space: nowrap; }
.issue-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.28; transition: color .15s; }
.issue-teaser { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* pagination */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 0 0; font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.pagination a { color: var(--pink); }
/* single page → no prev/next links → hide the whole bar */
.pagination:not(:has(a)) { display: none; }

/* ---------- post / issue page ---------- */
.post-article { padding: 56px 0 40px; }
.eyebrow {
  text-align: center; font-weight: 700; font-size: 13px; letter-spacing: .09em;
  text-transform: uppercase; color: var(--pink);
}
.issue-heading {
  text-align: center; font-size: 40px; line-height: 1.12; font-weight: 800;
  letter-spacing: -.03em; margin: 16px auto 0; max-width: 20ch; text-wrap: balance;
}
.divider { height: 1px; background: var(--line); margin: 40px 0; }

/* agent output: first <p> = welcome line */
.gh-content > p:first-child {
  text-align: center; font-size: 19px; color: var(--muted);
  max-width: 56ch; margin: -14px auto 44px;
}
/* story blocks: h2 title (linked), optional reading-time <em>, bullets */
.gh-content h2 {
  font-size: 23px; line-height: 1.32; font-weight: 700; letter-spacing: -.02em;
  margin-top: 44px;
}
.gh-content > p:first-child + h2, .gh-content h2:first-child { margin-top: 0; }
.gh-content h2 a { transition: color .15s; }
.gh-content h2 a:hover { color: var(--pink); }
.gh-content h2 + p em, .gh-content h2 + p { margin-top: 7px; font-size: 14px; color: var(--faint); }
.gh-content h2 + p em { font-style: italic; }
.gh-content ul { margin: 16px 0 0; padding: 0; list-style: none; }
.gh-content ul li {
  position: relative; padding-left: 22px; margin-bottom: 9px;
  color: #2b2f34; font-size: 16.5px;
}
.gh-content ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pink);
}
.gh-content a { color: inherit; }
.gh-content p { margin-top: 14px; }
.gh-content h3, .gh-content h4 { margin-top: 28px; font-weight: 700; }
.gh-content ol { margin: 16px 0 0 20px; }
.gh-content ol li { margin-bottom: 9px; font-size: 16.5px; }
.gh-content blockquote {
  margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pink); color: var(--muted);
}

/* pages (Impressum, Datenschutz) — uniform dark text, no muted mixing */
.page-article .page-heading { text-align: left; max-width: none; }
.page-article .gh-content > p:first-child {
  text-align: left; font-size: 16.5px; color: var(--ink); max-width: none; margin: 0 0 14px;
}
.page-article .gh-content h2 { font-size: 20px; margin-top: 36px; }
.page-article .gh-content h3 { font-size: 17px; }
.page-article .gh-content ul { list-style: none; }
.page-article .gh-content p,
.page-article .gh-content h2 + p,
.page-article .gh-content h2 + p em,
.page-article .gh-content li {
  color: var(--ink); font-size: 16.5px; font-style: normal;
}

/* ---------- promo boxes (home) ---------- */
.promos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding-bottom: 72px;
}
.promo {
  position: relative; overflow: hidden; border-radius: 24px;
  padding: 44px 36px; min-height: 300px;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-end; gap: 6px;
}
.promo .btn { margin-top: 14px; }
.promo { color: #fff; }
.promo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(21, 23, 26, .12) 25%, rgba(21, 23, 26, .78) 100%);
}
.promo > * { position: relative; }
.promo-photo { background: url("../img/bernhard-cafe.jpg") center 28% / cover no-repeat; }
/* busy daylight photo — needs a stronger, full-height darkening than the shared overlay */
.promo-photo::before {
  background: linear-gradient(180deg, rgba(21, 23, 26, .38) 0%, rgba(21, 23, 26, .56) 55%, rgba(21, 23, 26, .86) 100%);
}
.promo-ads { background: url("../img/keyboard-dark.jpg") center / cover no-repeat; }
.promo-logo { height: 26px; width: auto; filter: brightness(0) invert(1); margin-bottom: 8px; }
.promo-title, .promo-ads h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.promo-sub { font-size: 14.5px; color: rgba(255, 255, 255, .85); max-width: 46ch; margin-top: 4px; }
.promo-photo .btn { background: #fff; color: var(--ink); }
.promo-photo .btn:hover { background: #eceef1; }

/* ---------- CTA ---------- */
.cta {
  color: #fff; border-radius: 20px;
  padding: 44px 40px; text-align: center; margin: 48px 0 8px;
  background:
    radial-gradient(90% 140% at 15% 0%, rgba(255, 138, 0, .55) 0%, rgba(255, 138, 0, 0) 45%),
    radial-gradient(110% 150% at 90% 10%, rgba(123, 47, 247, .85) 0%, rgba(123, 47, 247, 0) 60%),
    linear-gradient(135deg, #f1008b 0%, #d4119e 45%, #8a2be2 100%);
}
.cta h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.cta p { color: rgba(255, 255, 255, .88); margin-top: 10px; font-size: 16px; }
.cta .btn { background: var(--ink); }
.cta .btn:hover { background: #000; }
.cta .sub-form { max-width: 460px; margin-top: 24px; }
.cta .form-msg { color: #fff; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); margin-top: 56px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 36px; padding-bottom: 36px; }
.foot .logo { font-size: 22px; }
.foot-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.foot-nav a:hover { color: var(--ink); }
.foot .rights { color: var(--faint); font-size: 13.5px; }
.foot-bottom {
  width: 100%; border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.byline { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.byline img { height: 22px; width: auto; display: block; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .hero h1 { font-size: 42px; }
}
@media (max-width: 640px) {
  .wrap, .read { padding: 0 24px; }
  .bar { height: 60px; }
  .logo { font-size: 23px; }
  .main-nav { display: none; }
  .signin { display: none; }
  .btn { padding: 9px 16px; font-size: 14px; }

  .hero-wrap { padding-top: 16px; padding-bottom: 4px; }
  .hero { padding: 46px 22px 50px; border-radius: 20px; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero .sub { font-size: 16.5px; }
  .sub-form { margin-top: 26px; padding: 4px 4px 4px 0; }
  .sub-form input { padding: 10px 16px; font-size: 15px; }
  .sub-form .btn { padding: 11px 18px; font-size: 15px; }
  .hero .note { font-size: 12.5px; }
  .hero-map { opacity: .5; right: -10%; }

  .section { padding-top: 28px; padding-bottom: 48px; }
  .issue { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .issue-date { font-size: 13.5px; color: var(--faint); padding-top: 0; }
  .issue-title { font-size: 19px; }
  .issue-teaser { font-size: 14.5px; }

  .post-article { padding: 36px 0 24px; }
  .issue-heading { font-size: 28px; }
  .divider { margin: 30px 0; }
  .gh-content > p:first-child { font-size: 16.5px; margin-bottom: 34px; }
  .gh-content h2 { font-size: 19.5px; margin-top: 36px; }
  .gh-content ul li { font-size: 15.5px; }

  .cta { padding: 34px 22px; border-radius: 16px; }
  .cta h3 { font-size: 22px; }

  .promos { grid-template-columns: 1fr; gap: 16px; padding-bottom: 48px; }
  .promo { min-height: 240px; padding: 32px 24px; border-radius: 20px; }

  .foot { padding-top: 28px; padding-bottom: 28px; gap: 18px; }
  .foot-nav { justify-content: center; gap: 16px; }
}

/* tiny screens */
@media (max-width: 380px) {
  .hero h1 { font-size: 28px; }
  .issue-title { font-size: 17.5px; }
}

/* Ghost editor card widths (required) */
.kg-width-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
