/* Logo font: Playfair Display Bold, stored with the plugin (no Google request). */
@font-face { font-family: "Playfair Display"; src: url("fonts/kf-logo.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
/* Kai$erFinance standalone homepage.
 * Layout: one calm column — wordmark + language switch, headline, the performance block, a quiet footer.
 * Beige, ink and olive only: no gold, the $ in the wordmark is ink like the rest.
 * Light by default; the header switch sets data-theme="dark" on <html>. */
:root {
  /* Light: the original off-white page; accents are ink (no gold). */
  --site-bg: #f3f4f1;
  --site-ink: #161b22;
  --site-muted: #5b6470;
  --site-line: #d9ddd6;
  --site-gold: #161b22;
  --site-olive: #5b6470;
  --site-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --site-serif: "Didot", "Bodoni 72", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  /* Dark: the same beige pushed into warm graphite. */
  --site-bg: #22211d;
  --site-ink: #ebe7da;
  --site-muted: #aaa592;
  --site-line: #3a3832;
  --site-gold: #ebe7da;
  --site-olive: #a9a07a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.kf-site {
  background: var(--site-bg);
  color: var(--site-ink);
  font: 16px/1.55 var(--site-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.kf-site a { color: inherit; }
.kf-site a:focus-visible, .kf-site button:focus-visible { outline: 2px solid var(--site-gold); outline-offset: 3px; border-radius: 4px; }

.kf-site-head,
.kf-site-main,
.kf-site-foot {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: 20px;
}

.kf-site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.kf-brand {
  font: 600 clamp(20px, 3vw, 24px)/1 var(--site-serif);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.kf-brand-mark { color: var(--site-gold); }

.kf-site-main {
  flex: 1;
  display: grid;
  gap: 28px;
  padding-block: clamp(20px, 5vw, 56px) 56px;
}
.kf-site-intro { max-width: 640px; display: grid; gap: 12px; }
.kf-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-muted);
}
.kf-site h1 {
  margin: 0;
  font: 500 clamp(30px, 5.2vw, 48px)/1.08 var(--site-serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.kf-lede { margin: 0; color: var(--site-muted); max-width: 60ch; }

/* The block sits on the page as the one card. */
.kf-site .kf { max-width: none; margin: 0; width: 100%; font-family: var(--site-sans); }
.kf-site .kf-admin-link { margin: -12px 0 0; }

.kf-site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--site-line);
  font-size: 13px;
  color: var(--site-muted);
}
.kf-site-note { flex: 1 1 280px; }
.kf-powered {
  text-decoration: none;
  font-weight: 600;
  color: var(--site-ink);
  white-space: nowrap;
}
.kf-powered:hover { color: var(--site-gold); }

@media (prefers-reduced-motion: no-preference) {
  .kf-powered { transition: color .15s ease; }
}

/* Language switch in the header uses the page's own colours. */
.kf-site-head .kf-lang { border-color: var(--site-line); }
.kf-site-head .kf-lang button { color: var(--site-muted); }
.kf-site-head .kf-lang button[aria-pressed="true"] { background: var(--site-ink); color: var(--site-bg); }

/* Header controls: theme + language. */
.kf-controls { display: flex; align-items: center; gap: 10px; }
.kf-site-head .kf-theme { display: inline-flex; border: 1px solid var(--site-line); border-radius: 99px; overflow: hidden; }
.kf-site-head .kf-theme button { display: grid; place-items: center; width: 34px; height: 26px; border: 0; background: none; color: var(--site-muted); cursor: pointer; padding: 0; }
.kf-site-head .kf-theme button svg { width: 15px; height: 15px; }
.kf-site-head .kf-theme button[aria-pressed="true"] { background: var(--site-ink); color: var(--site-bg); }

/* Theme change animation (see setTheme in kaiserfinance.js). */
.kf-wash {
  position: fixed;
  z-index: 2147483000;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  transform: scale(0.06);
}

/* Language change: text fades out and back in. */
.kf-site-intro, .kf-site-note, .kf > * { transition: opacity .2s ease, transform .2s ease; }
html.kf-text-out .kf-site-intro,
html.kf-text-out .kf-site-note,
html.kf-text-out .kf > *:not(.kf-top) { opacity: 0; transform: translateY(3px); }

@media (prefers-reduced-motion: reduce) {
  .kf-site-intro, .kf-site-note, .kf > * { transition: none; }
}

/* Login icon, top right. */
.kf-head-right { display: flex; align-items: center; gap: 10px; }
.kf-login {
  display: grid; place-items: center;
  width: 34px; height: 28px;
  border: 1px solid var(--site-line); border-radius: 99px;
  color: var(--site-muted);
}
.kf-login svg { width: 16px; height: 16px; }
.kf-login:hover { color: var(--site-ink); border-color: var(--site-muted); }

/* Header wraps on narrow screens: wordmark on top, controls below. */
.kf-site-head { flex-wrap: wrap; row-gap: 12px; }
.kf-head-right { flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) {
  .kf-site-head { justify-content: center; }
  .kf-brand { width: 100%; text-align: center; }
  .kf-head-right { width: 100%; justify-content: center; }
}

/* Social links in the footer (plain links, nothing loaded from the platforms). */
.kf-social { display: inline-flex; gap: 8px; align-items: center; }
.kf-social-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 9px; border: 1px solid var(--site-line); border-radius: 99px;
  color: var(--site-muted); text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap;
}
.kf-social-link svg { width: 16px; height: 16px; flex: none; }
.kf-social-link:hover { color: var(--site-ink); border-color: var(--site-muted); }
.kf-social-link:focus-visible { outline: 2px solid var(--site-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .kf-social-link { transition: color .15s ease, border-color .15s ease; }
}
.kf-site-foot { align-items: center; }
/* Footer on phones: everything centred, one item per line. */
@media (max-width: 560px) {
  .kf-site-foot { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .kf-site-note { flex: none; max-width: 34ch; }
  .kf-social { justify-content: center; }
}

/* ---------- Header 2.11: wordmark + one display button ---------- */
.kf-site-head { flex-wrap: nowrap; }
.kf-head-right { flex-wrap: nowrap; width: auto; }
@media (max-width: 560px) {
  .kf-site-head { justify-content: space-between; padding-block: 16px; }
  .kf-brand { width: auto; text-align: left; }
  .kf-head-right { width: auto; justify-content: flex-end; }
}
.kf-menu { position: relative; }
.kf-menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--site-sans); letter-spacing: .04em;
  color: var(--site-ink); background: transparent;
  border: 1px solid var(--site-line); border-radius: 99px; padding: 7px 12px 7px 10px; cursor: pointer;
}
.kf-menu-btn svg { width: 16px; height: 16px; color: var(--site-muted); }
.kf-menu-btn:hover, .kf-menu-btn[aria-expanded="true"] { border-color: var(--site-muted); }
.kf-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; min-width: 230px;
  display: grid; gap: 10px; padding: 12px;
  background: var(--site-bg); border: 1px solid var(--site-line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  opacity: 0; transform: translateY(-4px); transform-origin: top right;
  transition: opacity .16s ease, transform .16s ease;
}
html[data-theme="dark"] .kf-menu-panel { background: #292823; box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
.kf-menu-panel.kf-open { opacity: 1; transform: none; }
.kf-menu-panel[hidden] { display: none; }
.kf-menu-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kf-menu-label { font-size: 13px; color: var(--site-muted); }
.kf-menu-panel .kf-lang { border-color: var(--site-line); }
.kf-menu-panel .kf-lang button { color: var(--site-muted); }
.kf-menu-panel .kf-lang button[aria-pressed="true"] { background: var(--site-ink); color: var(--site-bg); }
.kf-menu-panel .kf-theme { display: inline-flex; border: 1px solid var(--site-line); border-radius: 99px; overflow: hidden; }
.kf-menu-panel .kf-theme button { display: grid; place-items: center; width: 34px; height: 26px; border: 0; background: none; color: var(--site-muted); cursor: pointer; padding: 0; }
.kf-menu-panel .kf-theme button svg { width: 15px; height: 15px; }
.kf-menu-panel .kf-theme button[aria-pressed="true"] { background: var(--site-ink); color: var(--site-bg); }
@media (prefers-reduced-motion: reduce) { .kf-menu-panel { transition: none; } }

/* Login: a quiet link in the footer. */
.kf-foot-end { display: inline-flex; align-items: baseline; gap: 18px; flex-wrap: wrap; justify-content: center; }
.kf-site-foot .kf-login {
  display: inline; width: auto; height: auto; border: 0; border-radius: 0;
  color: var(--site-muted); text-decoration: none; font-weight: 500;
}
.kf-site-foot .kf-login:hover { color: var(--site-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3.0 design: beige, editorial ---------- */
/* Header: wordmark centred, display button on the right. */
.kf-site-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 26px 18px; }
.kf-site-head::before { content: ""; }
.kf-head-right { justify-self: end; }
@media (max-width: 560px) {
  .kf-site-head { grid-template-columns: 1fr auto; padding-block: 16px 8px; }
  .kf-site-head::before { display: none; }
  .kf-brand { justify-self: start; }
}
.kf-brand {
  font: 700 clamp(21px, 3.2vw, 30px)/1 var(--site-serif);
  letter-spacing: -0.01em; white-space: nowrap; /* written exactly: Kai$erFinance */
}
.kf-brand-mark { color: inherit; margin: 0 .01em; }
.kf-brand-sub { margin-left: 0; color: inherit; } /* logo in one colour */
@media (max-width: 380px) { .kf-brand { font-size: 20px; } }

/* Thin rule under the header, like a magazine masthead. */
.kf-site-head { position: relative; }
.kf-site-head::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px; background: var(--site-line); }

.kf-eyebrow { color: var(--site-olive); letter-spacing: .14em; }
.kf-site h1 { font-weight: 400; letter-spacing: -0.01em; }
.kf-menu-panel { background: #ffffff; border-radius: 6px; }
.kf-menu-btn { border-radius: 4px; }
.kf-social-link { border-radius: 4px; }
.kf-site-foot { border-top-color: var(--site-line); }
/* 3.0.1: no gold anywhere. */
.kf-brand-mark { color: inherit !important; }
.kf-site a:focus-visible, .kf-site button:focus-visible { outline-color: var(--site-olive); }
.kf-powered:hover { color: var(--site-olive); }
/* 3.1.2: the wordmark is one colour: black in light mode, white in dark mode. */
.kf-brand, .kf-brand-mark, .kf-brand-sub { color: var(--site-ink) !important; }
/* 3.2.0: the logo in Playfair Display Bold. */
.kf-brand { font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: 0; }
