/*
 * Wygląd TARRUN publicznych stron listmonk (mailing.tarrun.pl): kolory,
 * czcionki, karty, pola i przyciski jak na stronie. Zastępuje style.css
 * listmonk; nazwy klas pochodzą z jego szablonów (static/public/templates).
 * Czcionki są tutaj (fonts/), więc strony nie ładują niczego z zewnątrz.
 */

@font-face {
  font-family: "Cinzel";
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-weight: 500 900;
  font-display: swap;
  src: url("fonts/cinzel-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --ink: #051a12;
  --forest: #0b2d1f;
  --forest-2: #0e3826;
  --gold: #d4af37;
  --gold-light: #f6e27f;
  --brand: #e4ac41;
  --cream: #f3ecd9;
  --mist: #a9bfb3;
  --line: rgba(255, 255, 255, 0.08);
  --field-line: rgba(255, 255, 255, 0.12);
  --error-bg: rgba(239, 68, 68, 0.1);
  --error: #fca5a5;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background:
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.07), transparent 60%),
    var(--ink);
  color: var(--cream);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: var(--gold-light);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--cream);
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 16px;
}

/* --- Taśma, pasek górny i stopka ------------------------------------------ */

/* Ostrzegawcza taśma jak nad stopką strony. */
.tape {
  height: 6px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 14px, var(--ink) 14px 28px);
  opacity: 0.85;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}
.wordmark img {
  display: block;
  height: 32px;
  width: auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 26, 18, 0.85);
}
.topbar-inner {
  display: flex;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-link {
  color: var(--mist);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar-link:hover {
  color: var(--gold-light);
}

.footer {
  display: flex;
  max-width: 1200px;
  width: 100%;
  margin: auto auto 0;
  padding: 24px 20px;
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--mist);
  font-size: 0.8125rem;
}
.footer nav {
  display: flex;
  gap: 20px;
}
.footer nav a {
  color: var(--mist);
}
.footer nav a:hover {
  color: var(--gold-light);
}

/* --- Karta z treścią strony ----------------------------------------------- */

.container.wrap {
  width: calc(100% - 32px);
  max-width: 500px;
  margin: 64px auto;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  background: var(--forest);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.section {
  margin-bottom: 0;
}
section + section,
.data-form {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* --- Pola ------------------------------------------------------------------ */

label {
  color: var(--mist);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
form p > label:first-child,
.manage-form > div > label {
  display: block;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--field-line);
  border-radius: 6px;
  outline: none;
  background: rgba(5, 26, 18, 0.7);
  color: var(--cream);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}
input::placeholder {
  color: rgba(169, 191, 179, 0.4);
}
input:focus::placeholder {
  color: transparent;
}
input[disabled] {
  opacity: 0.5;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  vertical-align: -3px;
  accent-color: var(--gold);
  cursor: pointer;
}
input[type="checkbox"] + label,
input[type="radio"] + label {
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
}

.form .nonce {
  display: none;
}
.form .captcha {
  margin-top: 24px;
}

.error {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--error-bg);
  color: var(--error);
  font-size: 0.875rem;
}

/* --- Przyciski ------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-width: 180px;
  padding: 13px 26px;
  border: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold-light) 55%, var(--gold) 100%);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18);
  transition: filter 0.15s, transform 0.15s;
}
.button:hover {
  color: var(--ink);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.button.button-outline {
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: transparent;
  color: var(--gold-light);
  box-shadow: none;
}
.button.button-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

/* --- Logowanie do panelu, nowe hasło, logowanie dwuetapowe ------------------ */

.login .submit {
  margin-top: 24px;
}
.login button {
  width: 100%;
}
.login button img {
  max-width: 20px;
}
.login input[name="totp_code"] {
  font-size: 1.75rem;
  letter-spacing: 6px;
  text-align: center;
}

/* --- Listy na stronach zapisu i rezygnacji ------------------------------------ */

.lists {
  margin: 20px 0;
  padding: 0;
  list-style: none;
}
.lists h2 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.lists li {
  margin: 0 0 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: rgba(5, 26, 18, 0.35);
}
.lists .description {
  margin: 4px 0 0 24px;
  color: var(--mist);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.optin-form ul {
  margin: 0 0 20px;
  padding-left: 20px;
}
.optin-form li {
  margin-bottom: 4px;
  font-weight: 600;
}

.unsub-form a,
.manage-form a {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.875rem;
}

.row {
  margin-bottom: 16px;
  color: var(--mist);
  font-size: 0.875rem;
}
.row label {
  color: var(--cream);
}
.unsub-all {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* --- Archiwum kampanii ---------------------------------------------------------- */

.archive {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.archive li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.archive li:last-child {
  border-bottom: 0;
}
.archive li a {
  color: var(--cream);
  font-weight: 600;
}
.archive li a:hover {
  color: var(--gold-light);
}
.archive .date {
  display: block;
  color: var(--mist);
  font-size: 0.8125rem;
}
.feed {
  margin-right: 12px;
  vertical-align: -2px;
}

.pagination {
  margin-top: 24px;
  text-align: center;
}
.pg-page {
  display: inline-block;
  min-width: 32px;
  padding: 4px 8px;
  color: var(--cream);
}
.pg-page:hover {
  background: rgba(255, 255, 255, 0.05);
}
.pg-page.pg-selected {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}

/* --- Strona startowa ------------------------------------------------------------- */

.home-options {
  margin-top: 24px;
}
.home-options a {
  margin: 0 10px;
  font-size: 0.875rem;
}

/* --- Pomocnicze ------------------------------------------------------------------ */

.center {
  text-align: center;
}
.right {
  text-align: right;
}
.small {
  font-size: 0.875rem;
}
.empty {
  margin: 16px 0;
  color: var(--mist);
}
.muted {
  color: var(--mist);
}

@media (max-width: 560px) {
  .container.wrap {
    margin: 24px auto;
    padding: 28px 20px;
  }
  .topbar-link {
    display: none;
  }
}
