:root {
  --bg: #060b12;
  --navy: #13253a;
  --orange: #fd6805;
  --text: #f5f7fa;
  --muted: #93a0af;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

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

main,
footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand img {
  width: 1.9rem;
  height: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--text);
}

.button-small {
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}

@media (max-width: 40rem) {
  .site-nav {
    order: 3;
    width: 100%;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  animation: fade-in-up 0.6s ease-out both;
}

.logo {
  width: 10rem;
  max-width: 60%;
  height: auto;
  margin-bottom: 1.5rem;
}

.headline {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.page-head {
  padding-top: 3rem;
  padding-bottom: 1rem;
  animation: fade-in-up 0.6s ease-out both;
}

.page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
}

.page-head .lede {
  margin: 0;
}

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

.status {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--navy);
  border-radius: 0.4rem;
  padding: 0.6rem 1.5rem;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.button-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
}

.button-primary:hover {
  background: transparent;
}

#demos:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.demo-options {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.demo-option + .demo-option {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy);
}

.demo-option h3 {
  margin: 0;
  font-size: 1.15rem;
}

.demo-option p {
  margin: 0.5rem 0 1rem;
}

.demo-facts {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.demo-facts li + li {
  margin-top: 0.5rem;
}

.external-mark {
  margin-left: 0.25em;
  font-size: 0.85em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--navy);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: 1.4rem;
  line-height: 1.3;
}

section p {
  margin: 1rem 0 0;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  background: var(--navy);
  border-radius: 0.25rem;
}

.code {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--navy);
  border-radius: 0.4rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

.commands code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.preview {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--navy);
  border-radius: 0.4rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.75rem;
  counter-increment: step;
}

.steps li + li {
  margin-top: 2rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--bg);
  font-weight: 700;
  line-height: 1.9rem;
  text-align: center;
}

.steps h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.9rem;
}

.steps p {
  margin: 0.25rem 0 0.75rem;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  color: var(--orange);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--navy);
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--orange);
}

.newsletter {
  width: 100%;
  margin-bottom: 1.25rem;
  text-align: center;
}

.newsletter label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.newsletter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter input {
  flex: 1 1 14rem;
  max-width: 20rem;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--navy);
  border-radius: 0.4rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.newsletter button {
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-note {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.newsletter input:focus-visible,
.newsletter button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.footer-note {
  width: 100%;
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-summary + .post-summary {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--navy);
}

.post-summary-title {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: break-word;
}

.post-summary-title:hover {
  color: var(--orange);
}

.post-summary-description {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.post-meta {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.post-meta a {
  color: var(--muted);
}

.post-meta a:hover {
  color: var(--orange);
}

.post-body {
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.post-body h2 {
  font-size: 1.5rem;
}

.post-body h3 {
  font-size: 1.25rem;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body pre,
.post-body table {
  margin: 1rem 0;
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
}

.post-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.post-body a:hover {
  color: var(--orange);
}

.post-body blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}

.post-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.post-body th,
.post-body td {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--navy);
  text-align: left;
  vertical-align: top;
}

.post-body pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }

  .button {
    transition: none;
  }
}
