/* LABEL: Twotell Listmonk Public Theme
   WHAT: Brand styling for public subscription and preference pages.
   WHY: Make newsletter interactions feel consistent with Twotell.
   NOTES: Responsive, light theme; no custom JavaScript required. */

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

:root {
  --tt-violet: #7561D8;
  --tt-violet-dark: #5B48B8;
  --tt-lavender: #F0ECFF;
  --tt-peach: #FFE7DB;
  --tt-ink: #292541;
  --tt-muted: #77738B;
  --tt-border: #E9E5F2;
  --tt-white: #FFFFFF;
  --tt-page: #FAF9FE;
}

html {
  background: var(--tt-page);
}

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--tt-page);
  color: var(--tt-ink);
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--tt-ink);
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 5vw, 38px);
}

p,
label,
small {
  color: var(--tt-muted);
}

a {
  color: var(--tt-violet-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--tt-violet);
}

form,
.card,
.panel,
.container > .row > div {
  border-radius: 16px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--tt-border);
  border-radius: 10px;
  background: var(--tt-white);
  color: var(--tt-ink);
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--tt-violet);
  box-shadow: 0 0 0 3px rgba(117, 97, 216, .13);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--tt-violet);
}

button,
input[type="submit"],
input[type="button"],
.btn,
.btn-primary {
  display: inline-block;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid var(--tt-violet);
  border-radius: 999px;
  background: var(--tt-violet);
  color: var(--tt-white);
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.btn-primary:hover {
  border-color: var(--tt-violet-dark);
  background: var(--tt-violet-dark);
  color: var(--tt-white);
}

button:focus-visible,
input[type="submit"]:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(117, 97, 216, .35);
  outline-offset: 3px;
}

hr {
  border: 0;
  border-top: 1px solid var(--tt-border);
}

.alert,
.notice,
.message {
  padding: 14px 16px;
  border: 1px solid var(--tt-border);
  border-radius: 12px;
  background: var(--tt-lavender);
  color: var(--tt-ink);
}

@media (max-width: 600px) {
  body {
    padding: 16px 12px;
  }

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