:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --code: #f5f5f7;
  --accent: #2f6fdb;
  --background: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e8e8ed;
    --muted: #98989d;
    --line: #2c2c2e;
    --code: #1c1c1e;
    --accent: #7aa7ff;
    --background: #111113;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    system-ui,
    sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}

.brand svg {
  display: block;
  height: 22px;
  width: auto;
  color: var(--text);
}

svg[aria-label="halo"] text {
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
}

header span {
  display: flex;
  gap: 18px;
}

main.landing {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

main.landing > p:first-child svg {
  height: 64px;
  width: auto;
  color: var(--text);
}

main.landing h2 {
  border-top: 0;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 8px 0 32px;
}

.cta a {
  display: inline-block;
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

.cta a:first-child {
  background: var(--text);
  border-color: var(--text);
  color: var(--background);
}

.cta a:hover {
  text-decoration: none;
}

.layout {
  display: flex;
  max-width: 1060px;
  margin: 0 auto;
}

nav {
  flex: 0 0 200px;
  padding: 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

nav p {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

nav p:first-child {
  margin-top: 0;
}

nav a {
  display: block;
  color: var(--text);
  padding: 2px 0;
}

nav a.current {
  color: var(--accent);
  font-weight: 600;
}

main {
  flex: 1;
  min-width: 0;
  padding: 24px 24px 80px;
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 16px;
}

h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

h3 a {
  color: var(--text);
}

code,
pre {
  font:
    13px/1.5 ui-monospace,
    "SF Mono",
    Menlo,
    monospace;
}

:not(pre) > code {
  background: var(--code);
  padding: 1px 5px;
  border-radius: 4px;
}

pre {
  background: var(--code);
  padding: 12px 14px;
  border-radius: 8px;
  overflow-x: auto;
}

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

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-weight: 600;
}

img,
video {
  max-width: 100%;
}

video {
  display: block;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .layout {
    display: block;
  }

  nav {
    position: static;
    padding-bottom: 0;
  }
}

footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

footer a {
  color: var(--muted);
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}

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

.card img,
.card video {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
  background: #111117;
}

.card span {
  color: var(--muted);
  font-size: 14px;
}
