:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #606060;
  --accent: #c2410c;
  --border: #e5e7eb;
  --card: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --fg: #e8e8e8;
    --muted: #9a9a9a;
    --accent: #fb923c;
    --border: #2a2d33;
    --card: #161a20;
  }
}

* { box-sizing: border-box; }

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

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

header h1 {
  font-size: 22px;
  margin: 0;
}

nav a {
  margin-left: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

h1, h2, h3 { line-height: 1.3; }

h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
}

h3 {
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 4px;
}

p { margin: 0 0 14px; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

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

ul { padding-left: 22px; }
li { margin-bottom: 6px; }

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

footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

footer a { color: var(--muted); margin: 0 8px; }

.lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
}

form.contact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

form.contact label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  margin-top: 12px;
}

form.contact input,
form.contact textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

form.contact input:focus,
form.contact textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

form.contact textarea {
  min-height: 140px;
  resize: vertical;
}

form.contact button {
  margin-top: 18px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

form.contact button:hover { filter: brightness(1.05); }

.gotcha {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.feature-list li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.feature-list li:last-child { border-bottom: 0; }

.effective {
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* The header is a two-child flex row (name, nav). The rename note has to ride
   with the name rather than becoming a third child, or it lands between them. */
.brand { display: flex; flex-direction: column; gap: 2px; }
.former-name {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
