/* The colours of the Together-Pad website, for the pages that define its document formats. The pages
   load nothing but this file, so they use the system fonts. */
:root {
  color-scheme: dark;
  --ink: #f4f8fb;
  --muted: #9fb2c0;
  /* One navy for the wordmark, the website and the help. */
  --navy: #081426;
  --panel: rgba(244, 248, 251, 0.05);
  --line: rgba(244, 248, 251, 0.14);
  --tp-blue: #1a94f8;
  --tp-violet: #971ae1;
  /* The logo's front card, all seven stops at the logo's offsets. */
  --tp-gradient: linear-gradient(90deg, #971ae1 7.1%, #b420ca 21.4%, #db28ab 35.7%, #f7397b 50%, #f95756 64.3%, #fa803b 78.6%, #f9b123 92.9%);
  /* From the logo blue, 7.0:1 on the navy. */
  --link: #44a4fe;
}

html {
  background: var(--navy);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(26, 148, 248, 0.12), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(219, 40, 171, 0.08), transparent 28rem),
    var(--navy);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

header,
main,
footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header {
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
  font-weight: 600;
}

h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--tp-blue);
}

code,
pre {
  font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

code {
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--panel);
  overflow-wrap: anywhere;
}

pre {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  margin: 0.75rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
  margin: 1rem 0;
}

dl.facts dt {
  color: var(--muted);
}

dl.facts dd {
  margin: 0;
}

.note {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--tp-violet);
  background: var(--panel);
}

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

hr {
  width: 2.5rem;
  height: 2px;
  margin: 2rem 0;
  border: 0;
  border-radius: 2px;
  background: var(--tp-gradient);
}

footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer a {
  color: inherit;
}

@media (max-width: 30rem) {
  dl.facts {
    grid-template-columns: 1fr;
  }

  dl.facts dd {
    margin-bottom: 0.5rem;
  }
}
