/* Secret Electricity — one stylesheet for the whole site.

   Deliberately plain: this site exists so that a Jira administrator can check
   what an app does, how to set it up, and who to contact. Nothing here should
   get in the way of reading. */

:root {
  --ink: #1a1a1a;
  --ink-soft: #55565a;
  --rule: #e4e4e7;
  --accent: #1a56db;
  --accent-soft: #eef2ff;
  --page: #fdfdfc;
  --code-bg: #f5f5f4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e8e6;
    --ink-soft: #a1a1aa;
    --rule: #2e2e32;
    --accent: #93b4ff;
    --accent-soft: #1b2340;
    --page: #151517;
    --code-bg: #1e1e21;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px 80px;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; }

header.site {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 44px;
}

header.site a.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

header.site nav { margin-left: auto; display: flex; gap: 20px; }
header.site nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
header.site nav a:hover { color: var(--accent); }

h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.tagline { color: var(--ink-soft); font-size: 18px; margin: 0 0 40px; }

h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

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

p, li { color: var(--ink); }
a { color: var(--accent); }

code {
  background: var(--code-bg);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

pre {
  background: var(--code-bg);
  padding: 14px 16px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}

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

th { font-weight: 600; color: var(--ink-soft); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

.card {
  display: block;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 14px;
}

.card:hover { border-color: var(--accent); background: var(--accent-soft); }
.card h3 { margin: 0 0 4px; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin: 24px 0;
  font-size: 15px;
}

.note p { margin: 0; }

footer.site {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 14px;
}

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

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  header.site { flex-wrap: wrap; gap: 10px; }
  header.site nav { margin-left: 0; width: 100%; }
}
