/*
 * Chris Strobel branding for the public listmonk pages (news.chris-strobel.com).
 * Replaces listmonk's public style.css (not loaded any more). Same identity
 * as chris-strobel.com: Zen Kaku Gothic Antique, dark night palette,
 * teal-to-mint gradients, rounded cards (see chrismusic-astro polish.css).
 * Managed by setup.py (deploy/branding/); edit here, not on the server.
 */
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("fonts/zen-kaku-gothic-antique-v7-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/zen-kaku-gothic-antique-v7-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/zen-kaku-gothic-antique-v7-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic Antique"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/zen-kaku-gothic-antique-v7-latin-700.woff2") format("woff2"); }
/* Subset with only the letters of the name (tools/make_wordmark.py). */
@font-face { font-family: "CS Wordmark"; font-style: normal; font-weight: 400; font-display: block;
  src: url("fonts/cs-wordmark.woff2") format("woff2"); }

:root {
  --cs-bg: #03060F;
  --cs-surface: #0A101B;
  --cs-surface-2: #101826;
  --cs-border: rgba(128, 203, 196, 0.14);
  --cs-border-strong: rgba(128, 203, 196, 0.45);
  --cs-text: #E0F2F1;
  --cs-text-muted: #9DB8B5;
  --cs-mint: #80CBC4;
  --cs-mint-light: #B2DFDB;
  --cs-teal: #26A69A;
  --cs-radius: 14px;
  --cs-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --cs-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-width: 320px; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--cs-bg);
  background-image:
    radial-gradient(1200px 500px at 50% -180px, rgba(38, 166, 154, 0.22), transparent 70%),
    radial-gradient(800px 400px at 100% 100%, rgba(55, 104, 159, 0.12), transparent 70%);
  background-repeat: no-repeat;
  font-family: "Zen Kaku Gothic Antique", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--cs-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(38, 166, 154, 0.45); color: #fff; }

a { color: var(--cs-mint); text-decoration-color: rgba(128, 203, 196, 0.4); text-underline-offset: 3px; transition: color 0.2s ease; }
a:hover, a:focus-visible { color: var(--cs-mint-light); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cs-mint); outline-offset: 3px; }

/* ---------- Brand bar ---------- */
.cs-brand {
  padding: 2.2rem 1rem 0;
  text-align: center;
}
.cs-brand a { display: inline-block; text-decoration: none; }
/* The big name on the chris-strobel.com home page (.full-image-text):
   Zen Kaku Gothic Antique 400, uppercase, letter-spacing 2rem at
   1.5rem + 2vw (= 0.645em), with the site's text gradient. */
.cs-wordmark {
  display: block;
  margin: 0;
  font-family: "CS Wordmark", "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 0.9rem + 1.9vw, 2.35rem);
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.645em;
  /* letter-spacing also adds space after the last letter; balance it on the left */
  padding-left: 0.645em;
  color: #E0F2F1;
  background-image: linear-gradient(0deg, #E0F2F1, #26A69A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.9));
}
.cs-brand a:hover .cs-wordmark { background-image: linear-gradient(180deg, #B2DFDB, #4DB6AC); }
@media (max-width: 991.98px) { .cs-wordmark { letter-spacing: 0.41em; padding-left: 0.41em; } }
@media (max-width: 575.98px) { .cs-wordmark { letter-spacing: 0.2em; padding-left: 0.2em; } }
.cs-brand-sub {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
}

/* ---------- Card ---------- */
.container { width: 100%; max-width: 600px; margin: 2rem auto 0; padding: 0 1rem; }
.wrap {
  background: linear-gradient(180deg, var(--cs-surface-2), var(--cs-surface));
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  padding: 2.25rem 2.25rem 2rem;
}
.wrap > section:first-child > h2:first-child,
.wrap > h2:first-child { margin-top: 0; }

h1, h2, h3, h4 { font-weight: 300; line-height: 1.25; color: var(--cs-text); }
h2 {
  position: relative;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.7rem;
  margin: 0 0 1.25rem;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cs-teal), var(--cs-mint));
}
.lists h2::after, .center h2::after { display: none; }
h3 { font-size: 1.05rem; color: var(--cs-text-muted); }
p { margin: 0 0 1rem; }
.lead { font-size: 1.05rem; }
.muted, .small { color: var(--cs-text-muted); font-size: 0.875rem; }
.center { text-align: center; }
.right { text-align: right; }
.error { color: #F6C3CF; }
.section { margin-bottom: 2rem; }
.row { margin-bottom: 1.1rem; }

/* ---------- Forms ---------- */
label { cursor: pointer; color: var(--cs-text); }
.form label[for="email"], .form label[for="name"], .manage-form > div > label {
  display: block;
  margin: 0 0 0.35rem 0.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
}
input[type="text"], input[type="email"], input[type="password"], select {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--cs-text);
  background-color: rgba(3, 6, 15, 0.6);
  border: 1px solid #4E7471;
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder { color: #7F9C99; opacity: 1; }
input:focus::placeholder { color: transparent; }
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--cs-mint);
  box-shadow: 0 0 0 3px rgba(128, 203, 196, 0.35);
}
input[disabled] { opacity: 0.5; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--cs-teal); width: 1.05rem; height: 1.05rem; vertical-align: -2px; margin-right: 0.4rem; }
.form .nonce { display: none; }
.form .captcha { margin-top: 1.5rem; }

.button {
  display: inline-block;
  min-width: 160px;
  min-height: 48px;
  padding: 0.75rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cs-teal), var(--cs-mint));
  color: #03060F !important;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(38, 166, 154, 0.25);
  transition: transform 0.2s var(--cs-ease), filter 0.2s ease, box-shadow 0.2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 24px rgba(38, 166, 154, 0.35); }
.button.button-outline {
  background: transparent;
  color: var(--cs-mint) !important;
  border: 1px solid var(--cs-border-strong);
  box-shadow: none;
}
.button.button-outline:hover { background: rgba(128, 203, 196, 0.08); }

.lists { list-style: none; padding: 0; margin: 1.25rem 0; }
.lists li {
  margin: 0 0 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--cs-border);
  border-radius: 10px;
  background: rgba(3, 6, 15, 0.35);
}
.lists .description { margin: 0.2rem 0 0 1.6rem; font-size: 0.875rem; line-height: 1.4; color: var(--cs-text-muted); }
.optin-form ul { padding-left: 1.2rem; }

.data-form { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--cs-border); }
.data-form h2 { font-size: 1.2rem; }
.data-form .row { color: var(--cs-text-muted); font-size: 0.95rem; }
.data-form .row strong { color: var(--cs-text); font-weight: 500; }

/* ---------- Archive ---------- */
.archive { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.archive li { margin-bottom: 0.9rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--cs-border); }
.archive li:last-child { border-bottom: 0; }
.archive a { font-weight: 500; text-decoration: none; }
.archive .date { display: block; color: var(--cs-text-muted); font-size: 0.85rem; }
.feed { margin-right: 0.75rem; vertical-align: -2px; filter: grayscale(1) brightness(1.6); }
.pagination { margin-top: 1.5rem; text-align: center; }
.pg-page { display: inline-block; padding: 0 0.6rem; text-decoration: none; }
.pg-page.pg-selected { text-decoration: underline; font-weight: 700; }

.home-options { margin-top: 1.5rem; }
.home-options a { margin: 0 0.6rem; }

/* ---------- Admin login (same look) ---------- */
.login .submit { margin-top: 1.25rem; }
.login button { width: 100%; display: flex; align-items: center; justify-content: center; }
.login button img { max-width: 24px; margin-right: 10px; }
.login input[name=totp_code] { font-size: 2em; letter-spacing: 5px; text-align: center; }
.login label { display: block; margin: 0.8rem 0 0.35rem 0.2rem; font-size: 0.85rem; color: var(--cs-text-muted); }

/* ---------- Footer ---------- */
.cs-footer {
  margin-top: auto;
  padding: 2.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--cs-text-muted);
}
.cs-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.4rem; margin-bottom: 0.6rem; }
.cs-footer nav a {
  display: inline-block;
  padding: 0.5rem 0.1rem;
  color: var(--cs-mint);
  text-decoration: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.cs-footer nav a:hover { color: var(--cs-mint-light); }
.cs-footer p { margin: 0; }

@media (max-width: 575.98px) {
  body { font-size: 17px; }
  .container { margin-top: 1.5rem; }
  .wrap { padding: 1.75rem 1.35rem 1.5rem; border-radius: 12px; }
  h2 { font-size: 1.35rem; }
  .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
