/* The Telechore website: the main page and the generated usage pages.
   Plain, light or dark with the system, one column that fits a phone. */

:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1c1e21;
  --muted: #5a6068;
  --border: #e1e4e8;
  --accent: #0f6e5c;
  --accent-text: #ffffff;
  --code-bg: #eef1f4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #161b22;
    --text: #e6e8eb;
    --muted: #9aa3ad;
    --border: #2d333b;
    --accent: #3fb59b;
    --accent-text: #0d1117;
    --code-bg: #1f2630;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.bar, main, .foot {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.95rem;
}
.bar a { text-decoration: none; }
.bar .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
}
.bar span { color: var(--muted); }

main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-wrap: break-word;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 600px) {
  main { padding: 2rem 2.5rem 2.5rem; }
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: 2rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 0.75rem 1rem; border-radius: 8px; overflow-x: auto; }
pre code { background: none; padding: 0; }

table { border-collapse: collapse; display: block; overflow-x: auto; margin: 1rem 0; }
th, td { border: 1px solid var(--border); padding: 0.35rem 0.6rem; text-align: left; vertical-align: top; }

.foot { color: var(--muted); font-size: 0.85rem; padding-top: 1rem; padding-bottom: 2rem; }
.foot a { color: inherit; }

/* The main page */

.lead { font-size: 1.15rem; }
.hero { display: block; border-radius: 10px; margin: 1.5rem 0; }

.get { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.5rem; }
.button {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.button.primary { background: var(--accent); color: var(--accent-text); }
.note { color: var(--muted); font-size: 0.9rem; }

.shots { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1rem 0; }
@media (min-width: 700px) { .shots { grid-template-columns: 1fr 1fr; } }
.shots figure { margin: 0; }
.shots img { display: block; border-radius: 8px; border: 1px solid var(--border); }
.shots figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

.pages { padding-left: 1.2rem; }
.pages li { margin: 0.3rem 0; }

/* What's new: a line that holds on one platform only */
.tag {
  display: inline-block;
  padding: 0 0.4em;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.8em;
  line-height: 1.5;
}
