:root {
  --color-brand:        #fca311;
  --color-brand-hover:  #e59311;
  --color-dark-bg:      #14213d;
  --color-dark-bg-deep: #0f1729;
  --color-dark-border:  #1e3a5f;
  --color-dark-hover:   #1a2f4a;
}

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

html, body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

/* Layout */
.site-header {
  border-bottom: 3px solid var(--color-brand);
  padding: 16px 0;
}

.site-header .inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  text-decoration: none;
}

.site-header .site-title span {
  color: var(--color-brand);
}

.site-main {
  max-width: 720px;
  margin: 48px auto;
  padding: 0 24px;
}

/* Post list (index) */
.post-list {
  list-style: none;
}

.post-list li + li {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.post-card .post-meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card .post-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-card .post-title a {
  color: #1f2937;
  text-decoration: none;
}

.post-card .post-title a:hover {
  color: var(--color-brand);
}

.post-card .post-description {
  color: #4b5563;
  font-size: 0.95rem;
}

/* Single post */
.post-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--color-brand);
}

.post-header .post-meta {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.post-header h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

/* Post content */
.post-content {
  font-size: 1rem;
  color: #374151;
  line-height: 1.75;
}

.post-content p + p {
  margin-top: 1.25em;
}

.post-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: #111827;
}

.post-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: #111827;
}

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

.post-content li {
  margin: 0.3em 0;
}

.post-content code {
  background: #f3f4f6;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.post-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1em;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.25em 0;
  border-left: 4px solid var(--color-brand);
}

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

.post-content blockquote {
  border-left: 4px solid var(--color-brand);
  padding-left: 1em;
  color: #6b7280;
  font-style: italic;
  margin: 1.25em 0;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-top: 40px;
  color: var(--color-brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--color-brand-hover);
}

/* Page title (index) */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #111827;
}

.page-title span {
  color: var(--color-brand);
}
