/* Sheri Fredricks-inspired listmonk public styling */

:root {
  --bg: #f8f3ee;
  --panel: #fffaf6;
  --text: #2f2a28;
  --muted: #6f625d;
  --border: #e5d8cf;
  --accent: #a85d5d;
  --accent-dark: #874a4a;
  --accent-soft: #f4e4de;
  --link: #a85d5d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.6;
}

body {
  margin: 0;
  padding: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

h1, h2, h3, h4, .title, .page-title {
  color: var(--text);
  font-family: "Georgia", "Times New Roman", serif;
  letter-spacing: 0.2px;
}

p, li, label, input, select, textarea, button {
  font-family: inherit;
  font-size: 1rem;
}

.container, .content, main, .panel, .card, .box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.container, main, .content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
}

header, .header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
}

button,
input[type="submit"],
input[type="button"],
.btn {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 93, 93, 0.16);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

small, .muted, .help, .subtitle {
  color: var(--muted);
}

.notice, .alert, .message, .success, .error {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  background: var(--accent-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0.5rem;
}

th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}

::placeholder {
  color: #9b8f89;
  opacity: 1;
}

/* Listmonk-specific public page polish */
.subscription-form,
.subscription,
.optin,
.message-page {
  padding-top: 1rem;
}

@media (max-width: 640px) {
  .container, main, .content {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
  }

  button,
  input[type="submit"],
  input[type="button"],
  .btn {
    width: 100%;
  }
}
