:root {
  color-scheme: light dark;
  --paper: #f4f1e8;
  --ink: #191b17;
  --muted: #54574b;
  --line: #d1cec2;
  --accent: #eee95b;
  --band: #eee95b;
  --pink: #ec52b9;
  --window: #fffdf8;
  --shadow: #ec52b9;
  --display: Anton, Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  --mono: 'Departure Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;
  --text: Arial, Helvetica, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181916;
    --ink: #f4f1e8;
    --muted: #c0c0b4;
    --line: #47483e;
    --band: #24261d;
    --pink: #e758b9;
    --window: #272727;
    --shadow: #995d82;
  }
}

* { box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 26px;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
}

.container {
  width: 100%;
  max-width: 640px;
  margin: 48px auto 24px;
  padding: 0 16px;
}

.wrap {
  overflow: hidden;
  padding: 0;
  background: var(--window);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--shadow);
}

.header {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 20px 32px;
  background: #eee95b;
}

.header .logo,
.header .logo a {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header .logo .app-icon {
  display: block;
  width: 48px;
  height: 48px;
}

.wordmark-image {
  display: block;
  width: 146px;
  height: 34px;
}

.rule {
  height: 8px;
  background: var(--pink);
}

.wrap > section,
.wrap > .section {
  padding: 32px;
}

h1, h2, h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  text-shadow: 3px 3px 0 var(--shadow);
  text-transform: uppercase;
}

h1 { font-size: 44px; line-height: 42px; }
h2 { font-size: 38px; line-height: 38px; }
h3 { margin: 24px 0 10px; font-size: 22px; line-height: 24px; text-shadow: none; }

p { margin: 0 0 16px; }

label {
  display: inline-block;
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  margin: 0 0 0 10px;
  font-family: var(--text);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: none;
  font: 17px/24px var(--text);
}

input::placeholder { color: var(--muted); }

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: 20px;
  height: 20px;
  padding: 0;
  background: var(--window);
  border: 2px solid var(--ink);
  vertical-align: middle;
  appearance: none;
  cursor: pointer;
}

input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }

input[type="checkbox"]:checked {
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6' fill='none' stroke='%23191b17' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

input[type="radio"]:checked {
  background: radial-gradient(circle, var(--pink) 0 4px, var(--window) 5px 100%);
}

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

.button {
  display: inline-block;
  min-width: 0;
  padding: 12px 26px;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pink);
  font: 700 17px/24px var(--text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--pink);
}

.button.button-outline {
  color: var(--ink);
  background: var(--window);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.button.button-outline:hover {
  color: var(--ink);
  background: var(--window);
  box-shadow: 6px 6px 0 var(--ink);
}

.button:focus,
input.button:focus,
button.button:focus {
  border-color: var(--ink);
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.lists {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.lists h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-shadow: none;
  text-transform: uppercase;
}

.lists li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.lists li:first-of-type { border-top: 0; }

.lists label {
  display: inline;
  margin: 0 0 0 8px;
  font-family: var(--text);
  font-size: 17px;
  line-height: 26px;
  letter-spacing: 0;
  text-transform: none;
}

.lists .description,
.description {
  margin: 6px 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
}

.error {
  padding-left: 12px;
  color: var(--ink);
  border-left: 4px solid var(--pink);
  font-weight: 700;
}

.small {
  color: var(--muted);
  font-size: 14px;
  line-height: 21px;
}

.unsub-all {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.wrap > .data-form {
  margin: 0;
  padding: 24px 32px 32px;
  border-top: 1px solid var(--line);
}

.row { margin-bottom: 18px; }

.data-form label {
  font-family: var(--text);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
}

.data-form input[type="radio"] { margin-right: 8px; }

.archive {
  margin: 0;
  padding: 0;
  list-style: none;
}

.archive li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.archive .date {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer.container {
  margin: 18px auto 32px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }

@media only screen and (max-width: 620px) {
  .container {
    margin: 0;
    padding: 0;
  }

  .wrap {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .header { padding: 18px 20px; }
  .wrap > section, .wrap > .section { padding: 24px 20px; }
  .wrap > .data-form { padding: 24px 20px; }
  h1 { font-size: 36px; line-height: 34px; }
  h2 { font-size: 30px; line-height: 30px; }
  .button { width: 100%; }
  footer.container { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
