/* Listmonk public pages (confirm, unsubscribe, preferences, sign-in) in the site's brand. The
   public sign-up form and archive are switched off (setup.mjs). Colours are the site tokens
   (src/design-system/tokens/tokens.css): Atelier in light mode, Logic in dark mode, picked by the
   visitor's system setting. Text is 16px or more, targets 44px. */
:root {
  color-scheme: light dark;
  --bg: #eff1ee;
  --surface: #f8f9f7;
  --surface-sunk: #e3e7e3;
  --ink: #121820;
  --ink-muted: #4f5964;
  --rule: #cdd3d0;
  --rule-strong: #747e87;
  --accent: #80600f;
  --accent-strong: #634807;
  --on-accent: #ffffff;
  --danger: #b42318;
  --font-serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d2238;
    --surface: #12304d;
    --surface-sunk: #091a2c;
    --ink: #eaf0f6;
    --ink-muted: #a8bcd0;
    --rule: #24425f;
    --rule-strong: #6f8ba6;
    --accent: #e4bc62;
    --accent-strong: #f0d08c;
    --on-accent: #0d2238;
    --danger: #ff9c8f;
  }
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  min-width: 320px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 0 20px;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-strong);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -60px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Header: the site's logo (ring and dot, drawn in CSS so it follows the colour scheme). */
.top {
  max-width: 600px;
  margin: 32px auto 20px;
}
.tla-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.tla-logo__ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  flex: none;
}
.tla-logo__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bg);
}
.tla-logo__word {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.card {
  display: block;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.card__section,
.data-form {
  margin: 32px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
}
.data-form section {
  padding: 0;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.kicker em {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
.kicker__rule {
  width: 32px;
  height: 1px;
  background: var(--rule-strong);
}

h1,
h2,
h3,
.h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
}
h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.1;
}
h2 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.2;
}
h3,
.h3 {
  margin: 28px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}
p {
  margin: 0 0 16px;
}
.lede {
  color: var(--ink-muted);
  font-size: 18px;
  margin-bottom: 24px;
}
section > div > p:last-child,
.lede:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  cursor: pointer;
}
input[type='text'],
input[type='email'],
input[type='password'],
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
}
input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
input[disabled] {
  opacity: 0.55;
}

/* Checkboxes and radios: native controls, brand colour, the label is the 44px target. */
input[type='checkbox'],
input[type='radio'] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}
.lists {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.lists li,
.unsub-form p:has(input[type='checkbox']),
.manage-form p:has(input[type='checkbox']),
.data-form .row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 8px;
}
.lists li label,
.unsub-form p:has(input[type='checkbox']) label,
.manage-form p:has(input[type='checkbox']) label,
.data-form .row label {
  flex: 1;
  min-height: 44px;
  margin: 0;
  padding-top: 0;
  font-weight: 400;
}
.lists li input,
.unsub-form input[type='checkbox'],
.manage-form input[type='checkbox'],
.data-form input[type='radio'] {
  margin-top: 2px;
}
.lists--plain li {
  display: list-item;
  margin-left: 0;
  padding-left: 0;
  font-weight: 600;
}
.help {
  display: block;
  font-weight: 400;
  color: var(--ink-muted);
}
.data-form .row label strong {
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 160px;
  padding: 12px 28px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  color: var(--on-accent);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.button.button-outline {
  color: var(--accent);
  background: transparent;
}
.button.button-outline:hover {
  color: var(--on-accent);
  background: var(--accent);
}
.button:focus-visible {
  border-radius: 999px;
}
#btn-back {
  display: none;
  margin-top: 8px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.error {
  color: var(--danger);
  font-weight: 600;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}

.login .submit {
  margin-top: 24px;
}
.login button {
  width: 100%;
}
.login button img {
  max-width: 24px;
  margin-right: 10px;
}

.foot {
  max-width: 600px;
  margin: 28px auto 40px;
  font-size: 16px;
  color: var(--ink-muted);
}
.foot p {
  margin: 0 0 6px;
}
.foot__promise {
  color: var(--ink);
}
.foot a {
  color: var(--ink-muted);
}
.foot a:hover {
  color: var(--ink);
}

@media (max-width: 640px) {
  body {
    padding: 0 12px;
  }
  .top {
    margin: 16px auto 12px;
  }
  .card {
    padding: 28px 20px;
  }
  h1 {
    font-size: 32px;
  }
  .button {
    width: 100%;
  }
}
