:root {
  --color-bg: #004e64;
  --color-bg-light: #006080;
  --color-accent: #00a5cf;
  --color-highlight: #9fffcb;
  --color-secondary: #25a18e;
  --color-green: #7ae582;
  --color-text: #e8f4f8;
  --color-text-muted: #a0c4cf;
  --font-main: 'Roboto', sans-serif;
  --spacing: 1.5rem;
  --max-width: 1200px;
}

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

html {
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-highlight);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-highlight);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.site-header {
  background-color: var(--color-bg-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-highlight);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
}

.site-footer {
  background-color: var(--color-bg-light);
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-links a {
  color: var(--color-text-muted);
}

.social-links a:hover {
  color: var(--color-accent);
}

.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--color-highlight);
  color: var(--color-bg);
}

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.post-header {
  text-align: center;
  padding: 3rem 0 2rem;
}

.post-header h1 {
  margin-bottom: 0.5rem;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--spacing);
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
}

.post-content ul,
.post-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content code {
  background-color: var(--color-bg-light);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre {
  background-color: var(--color-bg-light);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-text-muted);
}

.link-list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
}

.link-list li {
  margin-bottom: 1rem;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--color-bg-light);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.link-list a:hover {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.link-list .link-title {
  font-weight: 500;
}

.link-list .link-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-secondary);
  color: var(--color-text);
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.tags {
  margin-top: 1rem;
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem var(--spacing);
}

.about-content img {
  max-width: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  display: block;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-light);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
  }

  .nav-links.open {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .link-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
