:root {
  --teal: #3a8a8c;
  --teal-dark: #2d6b6d;
  --teal-light: #8fc4c5;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-alt: #f8f9fa;
}

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

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  border-bottom: 1px solid #eee;
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

nav a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

nav a:hover {
  text-decoration: underline;
}

main {
  padding: 60px 20px;
}

h1, h2, h3 {
  color: var(--teal-dark);
  margin-bottom: 20px;
}

h1 {
  font-size: 2.2em;
  margin-bottom: 30px;
}

h2 {
  font-size: 1.5em;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

h2:first-of-type {
  border-top: none;
  margin-top: 40px;
}

p {
  margin-bottom: 16px;
}

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

a:hover {
  color: var(--teal-dark);
}

.lead {
  font-size: 1.25em;
  color: var(--text-light);
  margin-bottom: 40px;
}

.implementations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin: 30px 0;
}

.impl-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.2s;
}

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

.impl-card h3 {
  margin-bottom: 12px;
  font-size: 1.2em;
}

.impl-card p {
  color: var(--text-light);
  font-size: 0.95em;
  margin-bottom: 16px;
}

.impl-card a {
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
}

pre, code {
  font-family: "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background: var(--bg-alt);
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 20px 0;
}

code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

ul, ol {
  margin: 16px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

footer {
  border-top: 1px solid #eee;
  padding: 30px 0;
  margin-top: 60px;
  color: var(--text-light);
  font-size: 0.9em;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  margin: 0;
}

main img {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  main {
    padding: 40px 20px;
  }

  h1 {
    font-size: 1.8em;
  }

  .implementations {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
