/* LumeAir website styles. Used by _layouts/default.html on every page. */

:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-2: #eef4f3;
  --text: #1b2a2e;
  --muted: #56686d;
  --border: #d9e3e2;
  --accent: #0b7a75;
  --accent-strong: #075e5a;
  --accent-soft: #e0f1ef;
  --note-bg: #fff7e6;
  --note-border: #e8b04b;
  --code-bg: #eef2f2;
  --shadow: 0 1px 2px rgba(16, 42, 46, 0.06), 0 4px 16px rgba(16, 42, 46, 0.06);
  --radius: 12px;
  --measure: 46rem;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1719;
    --surface: #152024;
    --surface-2: #1b292d;
    --text: #e3ecec;
    --muted: #9db0b2;
    --border: #2a3a3e;
    --accent: #4fc3b8;
    --accent-strong: #7fd8cf;
    --accent-soft: #163a38;
    --note-bg: #2b2416;
    --note-border: #b8893a;
    --code-bg: #1d2a2e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
  }
}

/* The "reading the source on GitHub" notices only show on GitHub. */
.gh-only { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--font);
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus { left: 8px; }

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9be3da, var(--accent) 70%);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }

/* Page content */

.content { padding-top: 40px; padding-bottom: 56px; }

.content h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.content h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.content h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.content > h1 + p, .content > .gh-only + p, .lead { font-size: 1.15rem; color: var(--muted); }

.content p, .content ul, .content ol, .content table, .content blockquote { margin: 0 0 16px; }
.content li { margin: 4px 0; }
.content li > p { margin: 0; }
.content strong { font-weight: 650; }

.content code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
}

.content hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* Callouts: a Markdown blockquote ("> ...") */
.content blockquote {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
}
.content blockquote > :last-child { margin-bottom: 0; }

/* Tables scroll sideways on narrow screens instead of breaking the page. */
.content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.content th, .content td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.content th { background: var(--surface-2); font-weight: 650; white-space: nowrap; }
.content tr:last-child td { border-bottom: 0; }

/* Numbered steps get a little more room. */
.content ol > li { padding-left: 4px; margin: 8px 0; }

/* Home page */

.page-index .content h1 { font-size: clamp(2.2rem, 7vw, 3rem); }

/* "What it measures" list, shown as tiles. */
.page-index h2#what-it-measures + ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.page-index h2#what-it-measures + ul li {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  line-height: 1.4;
}

/* "Where to go next" links, shown as cards. */
.page-index h2#where-to-go-next + ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.page-index h2#where-to-go-next + ul li {
  margin: 0;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.page-index h2#where-to-go-next + ul li:hover { border-color: var(--accent); }
.page-index h2#where-to-go-next + ul a {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 4px;
}
/* The line break after each link is only for GitHub's view of the page. */
.page-index h2#where-to-go-next + ul br { display: none; }
/* The whole card is clickable. */
.page-index h2#where-to-go-next + ul a::after { content: ""; position: absolute; inset: 0; }

/* Build guide: the Install firmware button (ESP Web Tools). */
esp-web-install-button {
  display: block;
  margin: 20px 0 24px;
  --esp-tools-button-color: var(--accent);
  --esp-tools-button-text-color: #ffffff;
  --esp-tools-button-border-radius: 999px;
}
esp-web-install-button [slot="unsupported"] {
  display: block;
  background: var(--note-bg);
  border-left: 4px solid var(--note-border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer__inner { padding-top: 24px; padding-bottom: 32px; }
.site-footer p { margin: 0 0 8px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .content { padding-top: 28px; }
  .content h2 { margin-top: 36px; }
  .site-header__inner { padding-top: 10px; padding-bottom: 10px; }
}
