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

/* Base */
:root {
  --text: #111;
  --text-muted: #666;
  --bg: #fff;
  --border: #e0e0e0;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
  --max-width: 640px;
  --spacing: 1.5rem;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem var(--spacing);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation */
header {
  margin-bottom: 2rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
}

.site-title {
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Main content */
main {
  flex: 1;
}

main img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

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

/* Lists */
.item-list {
  list-style: none;
}

.item-list li {
  margin-bottom: 1.25rem;
}

.item-list a {
  text-decoration: none;
  display: block;
}

.item-list a:hover .item-title {
  text-decoration: underline;
}

.item-title {
  font-weight: 500;
}

.item-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.item-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Article/Post content */
.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.post-content h2 {
  margin-top: 2.5rem;
}

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

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

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.post-content pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  border-radius: 3px;
}

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

.post-content blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Inspiration cards */
.inspiration-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.inspiration-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.inspiration-item img {
  width: 150px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.inspiration-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.inspiration-title {
  font-weight: 500;
  text-decoration: none;
}

.inspiration-title:hover {
  text-decoration: underline;
}

.inspiration-author {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.inspiration-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Stack vertically on mobile */
@media (max-width: 480px) {
  .inspiration-item {
    flex-direction: column;
  }

  .inspiration-item img {
    width: 100%;
    max-width: 200px;
  }
}

/* Gallery Slideshow */
.gallery-slideshow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gallery-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.gallery-prev,
.gallery-next {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem 0;
}

.gallery-prev:hover,
.gallery-next:hover {
  color: var(--text);
}

.gallery-counter {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-slides {
  position: relative;
}

.gallery-slide {
  display: none;
}

.gallery-slide.active {
  display: block;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 2rem var(--spacing);
  }
  
  nav {
    flex-direction: column;
    gap: 1rem;
  }
  
  header {
    margin-bottom: 3rem;
  }
}
