/* The host site: plain, calm, readable on a 375 pixel phone and on a laptop. */

:root {
  color-scheme: light;
  --ink: #1f2328;
  --quiet: #5b636d;
  --line: #d7dbe0;
  --paper: #ffffff;
  --wash: #f4f5f7;
  --accent: #1f5f8b;
  --ready: #1e6b3a;
  --needs: #8a4b00;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

h1 { font-size: 1.5rem; margin: 0.5rem 0; }
h2 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
a { color: var(--accent); }
.quiet { color: var(--quiet); }
.head { margin: 0 0 0.5rem; }

.button {
  display: inline-block;
  min-height: 3rem;
  min-width: 7rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--accent); color: var(--paper); }
.button:disabled { opacity: 0.4; cursor: default; }

.hosts, .pin { display: flex; flex-direction: column; gap: 1rem; max-width: 20rem; }
.pin input {
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

.notice {
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--needs);
  background: var(--paper);
}
.notice[hidden] { display: none; }

.queue { list-style: none; margin: 0; padding: 0; }
.queue li { margin: 0 0 0.75rem; }
.row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.row-top { display: flex; justify-content: space-between; gap: 1rem; }

.state { font-weight: 600; }
.state-ready { color: var(--ready); }
.state-needs_us { color: var(--needs); }
.state-updating { color: var(--quiet); }

.text {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--paper);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.english { background: var(--wash); }
.reason { font-weight: 600; }
.links { padding-left: 1.25rem; overflow-wrap: anywhere; }

.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.actions form { margin: 0; }

.sources { margin-top: 1.5rem; }
.sources summary { cursor: pointer; min-height: 2.5rem; padding: 0.5rem 0; color: var(--accent); }
.sources ul { padding-left: 1.25rem; }
.sources li { margin-bottom: 0.75rem; overflow-wrap: anywhere; }
.sources li > span, .sources li > a { display: block; }
.sources blockquote {
  margin: 0.25rem 0 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--line);
  color: var(--quiet);
}

/* The hidden text box the Copy fallback selects from. */
.copy-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  font-size: 16px;
}
