/* claude-base website */

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-dim: #1f6feb;
  --green: #3fb950;
  --code-bg: #1f2428;
  --max-width: 860px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Layout */

header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

header h1 span {
  color: var(--accent);
}

header p.tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

header .badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

header .badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.8rem;
}

header .badge.green {
  border-color: var(--green);
  color: var(--green);
}

nav {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
  text-align: center;
}

nav a {
  color: var(--muted);
  display: inline-block;
  font-size: 0.9rem;
  padding: 0.3rem 0.8rem;
}

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

main {
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
}

h3 {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.2rem 0 0.4rem;
}

p {
  color: var(--muted);
  margin-bottom: 0.8rem;
}

ul, ol {
  color: var(--muted);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.3rem;
}

/* Code */

code {
  background: var(--code-bg);
  border-radius: 4px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85em;
  padding: 0.1em 0.4em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin: 1rem 0;
  overflow-x: auto;
  padding: 1rem 1.2rem;
}

pre code {
  background: none;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0;
}

/* Loop diagram */

.loop-diagram {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 1.5rem 0;
  overflow: hidden;
}

.loop-step {
  background: var(--surface);
  flex: 1 1 160px;
  padding: 1rem;
  text-align: center;
}

.loop-step .icon {
  font-size: 1.6rem;
}

.loop-step .label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

.loop-step .desc {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.loop-arrow {
  color: var(--accent-dim);
  font-size: 1.4rem;
  flex: 0 0 auto;
  padding: 0 0.2rem;
}

/* Setup steps */

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

.steps li {
  border-left: 2px solid var(--border);
  counter-increment: step;
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  position: relative;
}

.steps li::before {
  background: var(--accent-dim);
  border-radius: 50%;
  color: #fff;
  content: counter(step);
  font-size: 0.7rem;
  font-weight: 700;
  height: 1.4rem;
  left: -0.75rem;
  line-height: 1.4rem;
  position: absolute;
  text-align: center;
  top: 0.1rem;
  width: 1.4rem;
}

.steps li strong {
  color: var(--text);
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

/* CTA */

.cta-box {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.cta-box p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.cta-btn {
  background: var(--accent-dim);
  border-radius: 6px;
  color: #fff !important;
  display: inline-block;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  text-decoration: none !important;
  transition: background 0.15s;
}

.cta-btn:hover {
  background: var(--accent);
}

/* Remotes table */

.remotes-table {
  border-collapse: collapse;
  margin: 1rem 0;
  width: 100%;
}

.remotes-table th,
.remotes-table td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.remotes-table th {
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.remotes-table td {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1.5rem 1rem;
  text-align: center;
}

/* Responsive */

@media (max-width: 600px) {
  header h1 { font-size: 1.8rem; }
  .loop-arrow { display: none; }
  .loop-step { flex-basis: 100%; border-bottom: 1px solid var(--border); }
}
