* {
  margin: 0;
  padding: 0;
}

:root {
  --padding: 1.5rem;
  --color-accent: #e8632b;
  --color-accent-hover: #f47a45;
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-surface-hover: #1c1c1c;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-white: #fff;
  --color-text: rgba(255, 255, 255, 0.9);
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-dim: rgba(255, 255, 255, 0.3);
  --font-family-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}
img {
  width: 100%;
}
body {
  padding: 0;
  margin: 0;
  min-height: 100vh;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-muted);
}

/* Header */
.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0 0 16px 16px;
}

.logo {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--color-accent);
}

.menu {
  display: flex;
  gap: 0.25rem;
}
.menu a {
  padding: 0.625rem 1.25rem;
  display: block;
  border-radius: 8px;
  background: transparent;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.menu a[aria-current] {
  color: var(--color-accent);
}

/* Grid */
.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Text content */
.text {
  line-height: 1.5em;
}
.text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.text a:hover {
  color: var(--color-accent-hover);
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text h1,
.h1,
.intro {
  font-size: 2rem;
  margin-bottom: 3rem;
  line-height: 1.25em;
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.125rem 0.5rem;
  display: inline-block;
  border-radius: 4px;
  color: var(--color-accent);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-surface);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
  border-radius: 8px;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-muted);
}

hr {
  border: 0;
  background: var(--color-border);
  height: 1px;
  margin: 3rem auto;
}

/* CTA Button */
.cta {
  background: var(--color-accent);
  color: #fff;
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.cta:hover {
  background: var(--color-accent-hover);
}

@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
    border-radius: 0;
  }
  .menu a {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}
