/* The pages of the visitor accounts: plain, in the colors of the system, readable on a phone. */
:root {
  color-scheme: light dark;
  --text: #1d1d1f;
  --muted: #5c5c66;
  --back: #f6f6f4;
  --card: #ffffff;
  --line: #d4d4d8;
  --accent: #2f5d8a;
  --error: #a32020;
  --notice: #20683a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececef;
    --muted: #a6a6b0;
    --back: #18181b;
    --card: #232327;
    --line: #3f3f46;
    --accent: #8db8e6;
    --error: #ff8f8f;
    --notice: #7fd49b;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--back);
  color: var(--text);
  font:
    16px/1.5 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
main {
  max-width: 26rem;
  margin: 8vh auto;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
@media (max-width: 30rem) {
  main {
    margin: 0;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}
.site {
  margin: 0 0 1.5rem;
  font-weight: 600;
}
.site a {
  color: var(--text);
  text-decoration: none;
}
h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}
label {
  display: block;
  margin: 1rem 0 0.25rem;
  font-weight: 600;
}
input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--back);
  color: var(--text);
  font: inherit;
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--card);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.account-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.account-danger {
  background: var(--error);
}
button:disabled {
  opacity: 0.6;
  cursor: progress;
}
a {
  color: var(--accent);
}
.account-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
h2 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}
.account-section p {
  margin: 0.5rem 0;
}
/* The field only programs fill: out of sight, and out of the way of the keyboard and of screen readers. */
.account-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* The services visitors sign in through: links that look like the secondary buttons, above the form with the
   password. */
.account-services {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}
.account-service {
  display: block;
  padding: 0.7rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.account-or {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.account-hint,
.back,
.account-more {
  color: var(--muted);
  font-size: 0.9rem;
}
.account-hint {
  display: block;
  margin: 0.25rem 0 0;
}
.account-more {
  margin-top: 1.25rem;
}
.back {
  margin: 2rem 0 0;
}
.account-error {
  color: var(--error);
}
.account-notice {
  color: var(--notice);
}
/* The subscriptions on the page of the account: each overview with its buttons below it. */
.account-lists {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.account-lists li {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}
.account-lists li:first-child {
  border-top: 0;
}
.account-lists button {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.8rem;
  white-space: nowrap;
}
/* How often, as buttons side by side: the one that holds is filled. */
.account-choice {
  display: inline-flex;
}
.account-choice button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0;
}
.account-choice button + button {
  border-left: 0;
}
.account-choice button:first-child {
  border-radius: 8px 0 0 8px;
}
.account-choice button:last-child {
  border-radius: 0 8px 8px 0;
}
.account-choice button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--card);
}
/* How often, in the form to subscribe. */
.account-rhythm {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}
.account-rhythm legend {
  padding: 0;
  font-weight: 600;
}
.account-rhythm label {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin: 0.5rem 0 0;
  font-weight: normal;
}
.account-rhythm input {
  width: auto;
}
