/* ============================================
   Listmonk Public Pages — weeraman.com Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:wght@400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
html, body {
  background: #151210 !important;
  color: #d4ccc4 !important;
  font-family: "Source Serif 4", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: #c67d4a !important;
  color: #151210 !important;
}

/* ---- Main wrapper ---- */
.container.wrap {
  background: #1e1a17 !important;
  border: 1px solid #3a3430 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.3), 0 8px 10px -6px rgba(0,0,0,0.2) !important;
  padding: 2.5rem 2.5rem 2rem !important;
  max-width: 480px !important;
}

/* ---- Header ---- */
.header {
  border-bottom: 1px solid #3a3430 !important;
  padding-bottom: 1.25rem !important;
  margin-bottom: 1.75rem !important;
  text-align: center !important;
}

/* Hide default logo */
.header .logo {
  display: none !important;
}

/* Custom branding */
.header::after {
  content: "Anuradha Weeraman";
  display: block;
  font-family: "Source Serif 4", ui-serif, Georgia, serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #f8f4f0;
  letter-spacing: -0.025em;
}

/* Subtitle under name */
.header::before {
  content: "Newsletter";
  display: block;
  order: 2;
  font-family: "Source Serif 4", ui-serif, Georgia, serif;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9a938c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Flex to reorder pseudo-elements */
.header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* ---- Section heading ---- */
section h2 {
  font-family: "Source Serif 4", ui-serif, Georgia, serif !important;
  color: #f8f4f0 !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 0.25rem !important;
}

/* Hide the "Lists" sub-heading since there's only one list */
.lists h2 {
  display: none !important;
}

/* ---- Labels ---- */
label {
  color: #d4ccc4 !important;
  font-family: "Source Serif 4", ui-serif, Georgia, serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

/* ---- Form inputs ---- */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  background: #2a2520 !important;
  border: 1px solid #3a3430 !important;
  border-radius: 0.5rem !important;
  color: #f8f4f0 !important;
  padding: 0.75rem 1rem !important;
  font-family: "Source Serif 4", ui-serif, Georgia, serif !important;
  font-size: 0.9375rem !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  width: 100% !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: #c67d4a !important;
  box-shadow: 0 0 0 3px rgba(198, 125, 74, 0.15) !important;
  outline: none !important;
}

input::placeholder {
  color: #9a938c !important;
}

input:focus::placeholder {
  color: transparent !important;
}

/* ---- Checkbox list ---- */
.lists {
  padding: 0 !important;
  margin: 0.75rem 0 !important;
  list-style: none !important;
}

.lists li {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  background: #2a2520 !important;
  border: 1px solid #3a3430 !important;
  border-radius: 0.5rem !important;
  margin-bottom: 0.375rem !important;
}

.lists li label {
  margin-bottom: 0 !important;
  font-size: 0.9375rem !important;
  color: #d4ccc4 !important;
}

.lists li input[type="checkbox"] {
  accent-color: #c67d4a !important;
  width: 1rem !important;
  height: 1rem !important;
}

.lists .description {
  color: #9a938c !important;
  font-size: 0.8125rem !important;
  margin-left: 0 !important;
}

/* ---- Subscribe button ---- */
.button {
  background: linear-gradient(to right, #c67d4a, #d4935f) !important;
  color: #151210 !important;
  border: none !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 2rem !important;
  font-family: "Source Serif 4", ui-serif, Georgia, serif !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: 100% !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
}

.button:hover {
  background: linear-gradient(to right, #d4935f, #e0a574) !important;
  color: #151210 !important;
  box-shadow: 0 4px 12px rgba(198, 125, 74, 0.25) !important;
  transform: translateY(-1px);
}

/* Outline variant */
.button.button-outline {
  background: transparent !important;
  border: 1px solid #3a3430 !important;
  color: #d4ccc4 !important;
}

.button.button-outline:hover {
  border-color: #c67d4a !important;
  color: #c67d4a !important;
  background: rgba(198, 125, 74, 0.05) !important;
}

/* ---- Links ---- */
a {
  color: #c67d4a !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
  transition: color 0.2s ease !important;
}

a:hover {
  color: #d4935f !important;
}

/* ---- Form spacing ---- */
.form p {
  margin-bottom: 1rem !important;
}

/* ---- Alerts / Messages ---- */
.error {
  color: #f87171 !important;
}

/* ---- Footer ---- */
footer.container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #9a938c !important;
  font-size: 0.75rem !important;
  opacity: 0.5 !important;
  padding: 0 !important;
  margin-top: 1.5rem !important;
}

footer.container a {
  color: #9a938c !important;
}

footer.container a:hover {
  color: #c67d4a !important;
}

/* ---- Unsub page ---- */
.unsub-all {
  border-top: 1px solid #3a3430 !important;
}

/* ---- TOTP / Login inputs ---- */
.login input[name=totp_code] {
  background: #2a2520 !important;
  border: 1px solid #3a3430 !important;
  color: #f8f4f0 !important;
}

/* ---- Responsive ---- */
@media screen and (max-width: 650px) {
  .container.wrap {
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    padding: 2rem 1.5rem !important;
  }
}

footer.container {
  display: none !important;
}