/* Plain pages in the triauth family: Inter, the brand blue as the one accent, a readable column, no app chrome. */

:root {
  --page: #fcfcfc;
  --panel: #ffffff;
  --ink: #213547;
  --text: #3c3c43;
  --muted: #6b6f76;
  --line: #e5e7eb;
  --soft: #f3f4f6;
  --brand: #1f61eb;
  --brand-dark: #174fc4;
  --error: #b91c1c;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.7 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brand);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
}

/* One line at the top: the mark and the host, so the viewer knows where they are */
header {
  border-bottom: 1px solid var(--line);
}
header a {
  display: block;
  max-width: 42rem;
  margin: 0 auto;
  padding: .875rem 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
header .mark {
  margin-right: .5rem;
  color: var(--brand);
}

main {
  flex: 1;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  box-sizing: border-box;
}
h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.02em;
}
h2 {
  margin: 2rem 0 .5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
p {
  margin: .75rem 0;
}
.lead {
  font-size: 1.125rem;
  color: var(--text);
}
.muted {
  font-size: .9375rem;
  color: var(--muted);
}
pre {
  margin: .75rem 0;
  padding: 1rem 1.25rem;
  background: var(--soft);
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.6;
  overflow-x: auto;
}

/* The action of a request page */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 .5rem;
}
button {
  padding: .625rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}
button:hover {
  background: var(--brand-dark);
}
button.secondary {
  color: var(--ink);
  background: var(--soft);
}
button.secondary:hover {
  background: var(--line);
}
button.text {
  margin-left: -.5rem;
  padding: .375rem .5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--brand);
  background: transparent;
}
button.text:hover {
  background: transparent;
  text-decoration: underline;
}
button:disabled {
  opacity: .55;
  cursor: default;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
progress {
  display: block;
  width: 100%;
  height: .375rem;
  margin: 1.5rem 0 .75rem;
  accent-color: var(--brand);
}
#status {
  font-size: 1.0625rem;
  color: var(--text);
}
#status:empty {
  display: none;
}
#status.error {
  color: var(--error);
}

/* The providers on the root page */
.doors {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}
.door {
  display: block;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  transition: border-color .2s;
}
.door:hover {
  border-color: var(--brand);
}
.door-title {
  display: block;
  font-weight: 600;
  color: var(--brand);
}
.door-url {
  display: block;
  margin: .125rem 0 .375rem;
  font-size: .8125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.door-text {
  display: block;
  font-size: .9375rem;
  color: var(--text);
}
@media (prefers-reduced-motion: reduce) {
  .door { transition: none; }
}

footer {
  padding: 1.25rem 1.5rem;
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
}
footer a {
  color: inherit;
}
