/* Shared styling for every page on waytolearn.co.in.
   Deliberately plain: these are legal and support pages, and they should read as
   trustworthy documents rather than marketing. One stylesheet for the whole
   site, so a change lands everywhere at once. */

:root {
  --bg: #ffffff;
  --fg: #1c1e21;
  --muted: #5b6169;
  --rule: #e3e6ea;
  --accent: #b4801a;
  --card: #f7f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8eaed;
    --muted: #9aa1ab;
    --rule: #2a2e35;
    --accent: #e0a63a;
    --card: #1c1f25;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 20px 72px;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
}

header.site {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 40px;
}

header.site a.brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

header.site a.brand:hover { color: var(--accent); }

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
}

h3 { font-size: 1.05rem; margin: 28px 0 8px; }

p, li { color: var(--fg); }

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.lede {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 0 0 8px;
}

.lede p:first-child { margin-top: 0; }
.lede p:last-child { margin-bottom: 0; }

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

ul { padding-left: 1.25rem; }
li { margin: 6px 0; }

code {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.9em;
}

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

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

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

/* Wide content must scroll inside itself rather than the page. */
.scroll-x { overflow-x: auto; }

footer.site {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

footer.site a { color: var(--muted); }

.apps { list-style: none; padding: 0; }

.apps li {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 12px 0;
  background: var(--card);
}

.apps h2 { margin: 0 0 4px; font-size: 1.1rem; }
.apps p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.apps a { margin-right: 16px; font-size: 0.95rem; }
