/*
 * One page, no framework. Kept in its own file rather than inline so the
 * Content-Security-Policy in _headers can forbid inline styles outright.
 */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #262b36;
  --text: #e6e8ec;
  --muted: #949aa8;
  --accent: #7aa2f7;
  --accent-strong: #5b87e8;
}

* {
  box-sizing: border-box;
}

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

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 0 80px;
}

header {
  margin-bottom: 40px;
}

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

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

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

h3 {
  margin: 28px 0 8px;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin: 0 0 14px;
}

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

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

.pitch p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 1.05rem;
}

/* The emote sits on the text baseline like it would in chat. */
.emote {
  height: 1.9em;
  width: auto;
  margin-left: 0.35em;
  vertical-align: -0.55em;
}

/*
 * Censored rather than coy: the word is still there, still selectable, still
 * read aloud by a screen reader. Hover clears it.
 */
.censored {
  color: transparent;
  text-shadow: 0 0 7px rgba(230, 232, 236, 0.85);
  transition: text-shadow 0.12s ease, color 0.12s ease;
}

.censored:hover {
  color: var(--text);
  text-shadow: none;
}

/* Download */

.download {
  margin: 36px 0 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  text-align: center;
}

.button {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #0f1115;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: #0f1115;
}

.meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Steps */

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 8px;
}

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

.path-label {
  margin: 14px 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Disclosures */

details {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}

summary {
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

/* Hide the native triangle so the one below is the only marker. */
summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▸";
  display: inline-block;
  width: 1.1em;
  color: var(--muted);
  font-weight: 400;
}

details[open] summary::before {
  content: "▾";
}

summary:hover {
  background: rgba(255, 255, 255, 0.03);
}

.hint {
  color: var(--muted);
  font-weight: 400;
}

details .body {
  padding: 2px 18px 16px;
}

details .body > p:last-child {
  margin-bottom: 0;
}

/* Code */

code {
  padding: 2px 6px;
  border-radius: 4px;
  background: #20242e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  word-break: break-word;
}

pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #12151c;
}

pre code {
  padding: 0;
  background: none;
  white-space: pre;
}

@media (max-width: 520px) {
  main {
    padding: 40px 0 56px;
  }

  h1 {
    font-size: 1.7rem;
  }
}
