/* Shared by the server-rendered pages and the Halogen app shell.
   Just enough to be readable on a phone. Real styling comes later. */

/* One accent colour for both themes. #8457f5 is the purple whose contrast is
   balanced across the three places it appears: as text on the light background
   (4.5:1), under white button text (4.5:1) and as text on the dark background
   (4.1:1). Moving it darker helps light mode and hurts dark mode, and vice
   versa; keep links underlined so they never rely on colour alone. */
:root {
  color-scheme: light dark;
  --accent: #8457f5;
  --bg: #ffffff;
  --fg: #1b1b1f;
  --muted: #5b5b66;
  --border: #c9c7d2;
  --error: #b00020;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141317;
    --fg: #ececf1;
    --muted: #a3a1ad;
    --border: #3f3d48;
    --error: #ff6b6b;
  }
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.4;
  background: var(--bg);
  color: var(--fg);
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem;
}

a {
  color: var(--accent);
}

/* Impressum and Datenschutz, on every page. */
body > footer {
  max-width: 40rem;
  margin: 2rem auto 0;
  padding: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

body > footer a {
  color: inherit;
}

.legal h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal address {
  font-style: normal;
}

.legal li {
  margin-bottom: 0.4rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul.proposals {
  list-style: none;
  padding: 0;
}

ul.proposals > li {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

ul.proposals a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.when {
  font-weight: 600;
}

ul.proposals p {
  margin: 0.6rem 0 0;
}

/* The people who would like to come, inside one of my proposals. */
ul.claimants {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.claimants li {
  border-top: 1px solid var(--border);
  padding: 0.6rem 0;
  margin-top: 0.6rem;
}

ul.claimants button {
  margin-top: 0.5rem;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 0 0 0.75rem;
}

/* Something that went well or is settled: a claim sent, a meeting agreed. */
.notice {
  border-left: 3px solid var(--accent);
  padding-left: 0.75rem;
}

table {
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.25rem 1rem 0.25rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: normal;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--error);
}

.screen {
  max-width: 24rem;
}

.fields {
  margin: 1rem 0;
}

.fields input,
.fields select {
  font: inherit;
  font-size: 1.1rem;
  padding: 0.6rem;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--fg);
}

.fields input:focus,
.fields select:focus {
  border-color: var(--accent);
  outline: none;
}

.field {
  display: block;
  margin-bottom: 1rem;
}

.field > span {
  display: block;
  margin-bottom: 0.3rem;
}

.fields .row {
  display: flex;
  gap: 0.5rem;
}

.choice {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.1rem;
}

.choice input {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
  accent-color: var(--accent);
}

button {
  font: inherit;
  font-size: 1.1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.4rem;
  border: 0;
  background: var(--accent);
  color: #fff;
}

button[disabled] {
  opacity: 0.5;
}

button.secondary {
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 1rem;
  padding: 0.45rem 0.9rem;
}

.actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

button.link {
  background: none;
  color: var(--accent);
  text-decoration: underline;
  padding: 0.5rem 0;
}

.footer {
  margin-top: 1rem;
}
